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