提货点地址导航
This commit is contained in:
@@ -88,8 +88,8 @@
|
|||||||
<image src="https://supervise.yxtsoft.com/lpk/image/location.png" style="width: 20px;height: 20px;">
|
<image src="https://supervise.yxtsoft.com/lpk/image/location.png" style="width: 20px;height: 20px;">
|
||||||
</image>
|
</image>
|
||||||
<text style="margin-left: 5px;font-size: 12px; color: #999;flex: 1;">门店地址:{{item.address}}</text>
|
<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"
|
<image v-if="item.lonAndLat" src="https://supervise.yxtsoft.com/lpk/image/navigation.png"
|
||||||
style="width: 20px;height: 20px; margin-right: 20px;"></image>
|
style="width: 20px;height: 20px; margin-right: 20px;" @click="navigat(item)"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="display: flex;flex-direction: row;margin-top: 38rpx;border-top: 1rpx #f1f2f3 solid; justify-content: space-between;
|
<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) {
|
clear(res) {
|
||||||
this.page.key = ''
|
this.page.key = ''
|
||||||
this.request()
|
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
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user