|
|
@ -88,8 +88,8 @@ |
|
|
|
<image src="https://supervise.yxtsoft.com/lpk/image/location.png" style="width: 20px;height: 20px;"> |
|
|
|
</image> |
|
|
|
<text style="margin-left: 5px;font-size: 12px; color: #999;flex: 1;">门店地址:{{item.address}}</text> |
|
|
|
<image src="https://supervise.yxtsoft.com/lpk/image/navigation.png" |
|
|
|
style="width: 20px;height: 20px; margin-right: 20px;"></image> |
|
|
|
<image v-if="item.lonAndLat" src="https://supervise.yxtsoft.com/lpk/image/navigation.png" |
|
|
|
style="width: 20px;height: 20px; margin-right: 20px;" @click="navigat(item)"></image> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: row;margin-top: 38rpx;border-top: 1rpx #f1f2f3 solid; justify-content: space-between; |
|
|
@ -180,6 +180,20 @@ |
|
|
|
clear(res) { |
|
|
|
this.page.key = '' |
|
|
|
this.request() |
|
|
|
}, |
|
|
|
navigat(item){ |
|
|
|
// console.log('JJJJJJJ',item) |
|
|
|
if(item.lonAndLat){ |
|
|
|
let arrLonLat = item.lonAndLat.split(',') |
|
|
|
console.log('arrLonLat:', arrLonLat) |
|
|
|
uni.openLocation({ |
|
|
|
latitude:arrLonLat[1], |
|
|
|
longitude:arrLonLat[0], |
|
|
|
scale: 15, |
|
|
|
name: item.name, |
|
|
|
address: item.address |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|