...
|
...
|
@@ -264,7 +264,7 @@ |
|
|
<li @click="goMessage" style="position: relative;">
|
|
|
<image src="../../static/image/xiaoxi_icon_5@2x.png" style="width: 48rpx;height: 44rpx;" mode=""></image>
|
|
|
<text class="botText">消息</text>
|
|
|
<view class="num" >
|
|
|
<view class="num" v-if="messageNum!==0">
|
|
|
{{messageNum>99?'99+':messageNum}}
|
|
|
</view>
|
|
|
</li>
|
...
|
...
|
@@ -401,6 +401,8 @@ |
|
|
success(r) {
|
|
|
uni.setStorageSync('lat', r.latitude)
|
|
|
uni.setStorageSync('lot', r.longitude)
|
|
|
wx.setStorageSync('nowLat', r.longitude)
|
|
|
wx.setStorageSync('nowLot', r.longitude)
|
|
|
uni.request({
|
|
|
url: 'https://apis.map.qq.com/ws/geocoder/v1',
|
|
|
data: {
|
...
|
...
|
@@ -408,7 +410,9 @@ |
|
|
location: (r.latitude + "," + r.longitude)
|
|
|
},
|
|
|
success: res => {
|
|
|
wx.setStorageSync('City', res.data.result.address_component.city)
|
|
|
wx.setStorageSync('City', res.data.result.address_component.district+ res.data.result.address_component.street)
|
|
|
wx.setStorageSync('nowAddres', res.data.result.address_component.district+ res.data.result.address_component.street)
|
|
|
|
|
|
if (that.addressText == '') {
|
|
|
if (uni.getStorageSync("City") == "") {
|
|
|
that.addressText = res.data.result.address_component.city
|
...
|
...
|
|