Browse Source

修改 缓存命中

master
wangfukang 1 month ago
parent
commit
0c2dcc35c0
  1. 13
      package1/group/groupBuyList.vue

13
package1/group/groupBuyList.vue

@ -95,7 +95,7 @@
</view>
</view>
<view class="shop-bottom" v-if="item.products != null && item.products.length > 0">
<view class="menu-member" v-for="(item1,index1) in item.products" :key="index1" @tap="goDetail('product',item1)">
<view class="menu-member" v-if='item1.isPush == 1' v-for="(item1,index1) in item.products" :key="index1" @tap="goDetail('product',item1)">
<view class="menu-img">
<img :src="item1.productPicture" alt="">
</view>
@ -132,16 +132,16 @@
duration: 1000,
searchScore: false,
searchSale: false,
pageNum:1,
pageNumber:1,
shopArea:[],
totalPages:1,
searchForm:{
regionId:JSON.parse(uni.getStorageSync('area')).id,
shopType:'',
shopArea:'',
pageNum: 1,
pageNumber: 1,
pageSize: '10',
sort: "createTime",
sort: "shoprank",
order: "desc",
sortOrder:'shoprank',
orderOrder:'desc',
@ -242,13 +242,16 @@
}else if(type == 'score'){
this.searchScore = !this.searchScore
this.searchSale = false
this.searchForm.sort = 'shopScore'
}else if(type == 'sale'){
this.searchSale = !this.searchSale
this.searchScore = false
this.searchForm.sort = 'saleCount'
}else if(type == 'all'){
this.searchForm.sortOrder = 'shoprank'
this.searchForm.orderOrder = 'desc'
this.searchForm.shopArea = ''
this.searchForm.sort = 'shoprank'
this.searchScore = false
this.searchSale = false
}else if(type == 'typeUp'){
@ -318,7 +321,7 @@
let that = this
that.tui.request("/app/shop/getByCondition", "GET", this.searchForm, false, true).then((res) => {
if (res.code == 200) {
if (that.pageNum == 1) {
if (that.pageNumber == 1) {
that.shopList = res.result.content
} else {
that.shopList = [...that.shopList, ...res.result.content]

Loading…
Cancel
Save