|
@@ -4,6 +4,7 @@
|
|
|
<view class="search flex">
|
|
|
<!-- <image src="../../static/icon/img01.png" class="address"></image> -->
|
|
|
<view class="shop-name clamp" @click.stop="navTo('/pages/index/selectCity')">{{chooseDistrict || '定位中'}}</view>
|
|
|
+ <image src="../../static/icon/dingwei.png" mode="widthFix" style="width: 11rpx;"></image>
|
|
|
<view class="input-box flex" @click.stop="clickSearch">
|
|
|
<view class=" input-content flex">
|
|
|
<view class="iconfont iconsearch"></view>
|
|
@@ -275,7 +276,9 @@
|
|
|
watch: {
|
|
|
PXType(val, old) {
|
|
|
this.getStoreList()
|
|
|
-
|
|
|
+ },
|
|
|
+ chooseDistrict(val,old) {
|
|
|
+ this.reGetStoreList()
|
|
|
}
|
|
|
},
|
|
|
onShow: function() {
|
|
@@ -560,11 +563,14 @@
|
|
|
}).then(res => {
|
|
|
console.log(res, '逆解析结果')
|
|
|
// obj.district = res.data.district
|
|
|
- obj.setChoose({
|
|
|
- chooseProvince: res.data.province,
|
|
|
- chooseCity: res.data.city,
|
|
|
- chooseDistrict: res.data.district
|
|
|
- })
|
|
|
+ if(!obj.chooseDistrict) {
|
|
|
+ obj.setChoose({
|
|
|
+ chooseProvince: res.data.province,
|
|
|
+ chooseCity: res.data.city,
|
|
|
+ chooseDistrict: res.data.district
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
obj.getStoreList()
|
|
|
})
|
|
|
},
|