|
|
|
@ -2,9 +2,9 @@ |
|
|
|
<!-- 拼团单一商家 --> |
|
|
|
<view class="page1"> |
|
|
|
<!-- 固定顶部导航栏(悬浮在背景图之上) --> |
|
|
|
<view class="nav-bar" :style="{'padding-top': menuButtonInfo.top +'px'}"> |
|
|
|
<view class="nav-bar" :style="{'padding-top': menuButtonInfo.top +'px','background':lastScrollTop>200?'#fff':''}"> |
|
|
|
<view class="back-btn" @tap="back"> |
|
|
|
<uni-icons type="left" size="28" color="#fff"></uni-icons> |
|
|
|
<uni-icons type="left" size="28"></uni-icons> |
|
|
|
</view> |
|
|
|
<view class="title-search"> |
|
|
|
<uni-icons type="search" size="18" style="margin: 9rpx;"></uni-icons> |
|
|
|
@ -29,7 +29,7 @@ |
|
|
|
<view class="shop-content-center"> |
|
|
|
<view class="shop-rate"> |
|
|
|
<view class="shop-rate-num">{{shopItem.shopScore}}</view> |
|
|
|
<view style="padding-top: 2px;"> |
|
|
|
<view> |
|
|
|
<uni-rate :disabled="true" size="20" disabledColor="rgba(255, 184, 84, 1)" |
|
|
|
:value="shopItem.shopScore" /> |
|
|
|
</view> |
|
|
|
@ -81,7 +81,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 分类栏:移到goods-list外层,position:sticky才能生效 --> |
|
|
|
<view class="menu-list" id="menuList" :style="{'top': navBarHeight + 'px'}"> |
|
|
|
<view class="menu-list" id="menuList" :style="{'top': navBarHeight + 'px','background':lastScrollTop>200?'#fff':''}"> |
|
|
|
<view class="menu1" @tap="checkTab(index)" v-for="(item,index) in menuList" :key="index" :style="{'font-size':item.checked?'40rpx':'30rpx','color':item.checked?'rgba(0, 35, 28, 1)':'#777'}"> |
|
|
|
<view style="width: 90px;">{{item.categoryName}}</view> |
|
|
|
<img v-if="item.checked" class="checked-img" src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/4bb5fc7725cb4a7a84d1d3a15f05b39c.png" alt="" /> |
|
|
|
@ -454,7 +454,7 @@ |
|
|
|
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect(); |
|
|
|
// 计算导航栏高度用于sticky offset:statusBarHeight + 44px内容区 |
|
|
|
const info = uni.getSystemInfoSync(); |
|
|
|
this.navBarHeight = info.statusBarHeight + 44; |
|
|
|
this.navBarHeight = info.statusBarHeight + 40; |
|
|
|
}, |
|
|
|
onReady() { |
|
|
|
// 记录分类栏相对页面的偏移量,用于上滑检测 |
|
|
|
@ -765,7 +765,6 @@ |
|
|
|
justify-content: center; |
|
|
|
width: 60rpx; |
|
|
|
height: 60rpx; |
|
|
|
background: rgba(0,0,0,0.25); |
|
|
|
border-radius: 50%; |
|
|
|
} |
|
|
|
|
|
|
|
@ -785,6 +784,7 @@ |
|
|
|
width: 100%; |
|
|
|
background-size: 100%; |
|
|
|
height: 100%; |
|
|
|
border-radius: 10px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -828,6 +828,7 @@ |
|
|
|
border-top-left-radius: 20rpx; |
|
|
|
border-bottom-right-radius: 10rpx; |
|
|
|
border-top-right-radius: 10rpx; |
|
|
|
font-weight: 700; |
|
|
|
} |
|
|
|
|
|
|
|
.shop-tag { |
|
|
|
@ -853,6 +854,7 @@ |
|
|
|
.shop-bottom { |
|
|
|
margin-top: 20rpx; |
|
|
|
line-height: 40rpx; |
|
|
|
font-weight: 700; |
|
|
|
} |
|
|
|
|
|
|
|
.pintuan { |
|
|
|
@ -877,6 +879,7 @@ |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
background-size: 100%; |
|
|
|
border-radius: 10px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|