tianyi 2 weeks ago
parent
commit
71075ddbbf
  1. 16
      package1/group/groupBuySingle.vue

16
package1/group/groupBuySingle.vue

@ -90,10 +90,10 @@
</swiper> </swiper>
</view> </view>
<!-- 分类栏移到goods-list外层position:sticky才能生效 --> <!-- 分类栏移到goods-list外层position:sticky才能生效 -->
<view style="display: flex;height: 72%;margin-top: 10px;"> <view class="container" style="display: flex;height: 72%;margin-top: 10px;">
<view id="menuList" style="border-right: 1px solid #eee;font-weight: 700;font-size: 14px;"> <view id="menuList" style="border-right: 1px solid #eee;font-weight: 700;font-size: 14px;">
<view class="menu1" @tap="checkTab(index)" v-for="(item,index) in menuList" :key="index" <view class="menu1" @tap="checkTab(index)" v-for="(item,index) in menuList" :key="index"
:style="{'border-radius':item.checked?'10px':'','color':item.checked?'rgba(0, 35, 28, 1)':'#777','background':item.checked?'#fff':'','border-right':item.checked?'5px solid #48D1CC;':''}"> :style="{'border-radius':item.checked?'10px':'','color':item.checked?'rgba(0, 35, 28, 1)':'#777','background':item.checked?'#fff':''}">
<view style="width: 160rpx;">{{item.categoryName}}</view> <view style="width: 160rpx;">{{item.categoryName}}</view>
</view> </view>
</view> </view>
@ -669,12 +669,12 @@
for (let i = 0; i < this.menuList.length; i++) { for (let i = 0; i < this.menuList.length; i++) {
this.menuList[i].checked = (i === index); this.menuList[i].checked = (i === index);
} }
// // //
this.searchForm.pageNum = 1; // this.searchForm.pageNum = 1;
this.pageNum = 1; // this.pageNum = 1;
this.total = 1; // this.total = 1;
this.productItem = []; // this.productItem = [];
this.getProduct(this.menuList[index].id); // this.getProduct(this.menuList[index].id);
}, },
openOrderWait(item){ openOrderWait(item){
this.chooseWaitType = false this.chooseWaitType = false

Loading…
Cancel
Save