|
|
|
@ -275,7 +275,7 @@ |
|
|
|
|
this.latitude = res.latitude |
|
|
|
|
this.longitude = res.longitude |
|
|
|
|
console.log(res) |
|
|
|
|
this.storeMerchantList('') |
|
|
|
|
this.searchSubmit() |
|
|
|
|
getGeocoder({ |
|
|
|
|
lat: latitude, |
|
|
|
|
long: longitude |
|
|
|
@ -347,10 +347,10 @@ |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
searchSubmit(){ |
|
|
|
|
console.log("uuuuu",this.where.keyword) |
|
|
|
|
|
|
|
|
|
this.sotreParam.page = 1; |
|
|
|
|
this.storeList=[] |
|
|
|
|
this.storeMerchantList('') |
|
|
|
|
this.storeMerchantList() |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
// 查找店铺 |
|
|
|
@ -373,7 +373,12 @@ |
|
|
|
|
item.allScore = tempNum.toFixed(2) |
|
|
|
|
}) |
|
|
|
|
this.storeScroll = res.data.list.length >= this.sotreParam.limit |
|
|
|
|
this.storeList = this.storeList.concat(res.data.list) |
|
|
|
|
if(type){ |
|
|
|
|
this.storeList = this.storeList.concat(res.data.list) |
|
|
|
|
}else{ |
|
|
|
|
this.storeList = res.data.list |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.count = res.data.count |
|
|
|
|
this.loading = false |
|
|
|
|
}) |
|
|
|
@ -386,7 +391,7 @@ |
|
|
|
|
this.sotreParam.page = 1 |
|
|
|
|
this.storeScroll = true |
|
|
|
|
this.storeList = [] |
|
|
|
|
this.storeMerchantList() |
|
|
|
|
this.searchSubmit() |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
onLoadFun: function(e) { |
|
|
|
@ -427,7 +432,7 @@ |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
this.sotreParam.page += 1 |
|
|
|
|
this.storeMerchantList() |
|
|
|
|
this.storeMerchantList(true) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|