|
@@ -260,6 +260,9 @@
|
|
});
|
|
});
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ getTag(){
|
|
|
|
+ return this.labelList.filter((ite => ite.checked)).map(ite => ite.id).join(',')
|
|
|
|
+ },
|
|
getHomeData() {
|
|
getHomeData() {
|
|
getHomeInfo({
|
|
getHomeInfo({
|
|
latitude: uni.getStorageSync('user_latitude'),
|
|
latitude: uni.getStorageSync('user_latitude'),
|
|
@@ -281,7 +284,8 @@
|
|
getMerchantList({
|
|
getMerchantList({
|
|
latitude: uni.getStorageSync('user_latitude'),
|
|
latitude: uni.getStorageSync('user_latitude'),
|
|
longitude: uni.getStorageSync('user_longitude'),
|
|
longitude: uni.getStorageSync('user_longitude'),
|
|
- cateId: this.cateId
|
|
|
|
|
|
+ cateId: this.cateId,
|
|
|
|
+ queryLabels: this.getTag()
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.merchantList = res.data.list;
|
|
this.merchantList = res.data.list;
|
|
console.log('商品信息:', this.merchantList);
|
|
console.log('商品信息:', this.merchantList);
|
|
@@ -294,6 +298,15 @@
|
|
},
|
|
},
|
|
item2Click(item) {
|
|
item2Click(item) {
|
|
item.checked = !item.checked;
|
|
item.checked = !item.checked;
|
|
|
|
+ getMerchantList({
|
|
|
|
+ latitude: uni.getStorageSync('user_latitude'),
|
|
|
|
+ longitude: uni.getStorageSync('user_longitude'),
|
|
|
|
+ cateId: this.cateId,
|
|
|
|
+ queryLabels: this.getTag()
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.merchantList = res.data.list;
|
|
|
|
+ console.log('商品信息:', this.merchantList);
|
|
|
|
+ });
|
|
},
|
|
},
|
|
startScroll() {
|
|
startScroll() {
|
|
setInterval(() => {
|
|
setInterval(() => {
|
|
@@ -358,7 +371,8 @@
|
|
getMerchantList({
|
|
getMerchantList({
|
|
latitude: res.latitude,
|
|
latitude: res.latitude,
|
|
longitude: res.longitude,
|
|
longitude: res.longitude,
|
|
- cateId: this.cateId
|
|
|
|
|
|
+ cateId: this.cateId,
|
|
|
|
+ queryLabels: this.getTag()
|
|
}).then(data => {
|
|
}).then(data => {
|
|
this.merchantList = data.data.list;
|
|
this.merchantList = data.data.list;
|
|
console.log('商品信息:', this.merchantList);
|
|
console.log('商品信息:', this.merchantList);
|