|
|
@ -22,7 +22,7 @@ |
|
|
|
/> |
|
|
|
</view> |
|
|
|
<view class="tools-box"> |
|
|
|
<view class="item-box" @click="handleLocation"> |
|
|
|
<view class="item-box" @click="choosePlace"> |
|
|
|
<view class="location-btn"> |
|
|
|
<image |
|
|
|
mode="scaleToFill" |
|
|
@ -146,6 +146,20 @@ export default { |
|
|
|
_this.init(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
choosePlace() { |
|
|
|
let that = this; |
|
|
|
uni.chooseLocation({ |
|
|
|
success: function (res) { |
|
|
|
that.setData({ |
|
|
|
curAddress: res.address+'('+res.name+')', |
|
|
|
locations: { |
|
|
|
lng: res.longitude, |
|
|
|
lat: res.latitude, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}, |
|
|
|
}); |
|
|
|
}, |
|
|
|
init() { |
|
|
|
let userInfo = userTools.getStoreUserInfo(); |
|
|
|
let gridInfo = userTools.getStoreGridInfo(); |
|
|
|