作者 倪静楠

2/25

... ... @@ -401,7 +401,7 @@
success(r) {
uni.setStorageSync('lat', r.latitude)
uni.setStorageSync('lot', r.longitude)
wx.setStorageSync('nowLat', r.longitude)
wx.setStorageSync('nowLat', r.latitude)
wx.setStorageSync('nowLot', r.longitude)
uni.request({
url: 'https://apis.map.qq.com/ws/geocoder/v1',
... ... @@ -692,8 +692,11 @@
bindPickerChange: function(e) {
this.index = e.target.value
if (this.tabIndex == 0) {
this.pageNum=1
this.goodsXz()
} else {
this.pageNum=1
this.goodsXy()
}
... ... @@ -702,8 +705,10 @@
let _that = this
_that.index1 = e.target.value
if (_that.tabIndex == 0) {
this.pageNum=1
_that.goodsXz()
} else {
this.pageNum=1
_that.goodsXy()
}
},
... ...
... ... @@ -21,7 +21,7 @@
<view class="current">
<!-- <text @click="geoTapped">{{address}}</text>
<image @click="reloadCurrent" src="../../images/geo.png" /> -->
<view class="" v-for="(item,index) in list" :key="index" @click="addressTapped(item.address,item.lat,item.lng)">
<view class="" v-for="(item,index) in list" :key="index" @click="addressTapped(item.address,item.lat2,item.lng2)">
{{item.address}}
</view>
</view>
... ... @@ -122,6 +122,7 @@
});
},
addressTapped: function(title, lat, lot) {
console.log(lat,lot)
// var title = e.currentTarget.dataset.title;
// 取出点中的地址,然后使用WxNotification回传给首页
// WxNotificationCenter.postNotificationName("addressSelectedNotification", title);
... ...