修改bug

This commit is contained in:
duan
2024-05-17 09:29:08 +08:00
parent 6ee3d6a8c9
commit ea60344f02
9 changed files with 351 additions and 301 deletions

View File

@@ -20,7 +20,7 @@
{{item.shopName}}
</view>
</view>
<view class="fivecontent_itemoneboxtow flex-start" @click="goMap">
<view class="fivecontent_itemoneboxtow flex-start" @click="goMap(item)">
<image class="fivecontent_itemoneboxtowimage"
src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/dw.png" mode="widthFix"></image>
<view class="fivecontent_itemoneboxtow_o">
@@ -81,11 +81,15 @@
this.distiricttopCommon()
},
methods: {
goMap() {
goMap(d) {
uni.openLocation({
longitude: uni.cache.get('getLocationstorage').lng,
latitude: uni.cache.get('getLocationstorage').lat
longitude: (d.lng * 1),
latitude: (d.lat * 1)
})
// uni.openLocation({
// longitude: uni.cache.get('getLocationstorage').lng,
// latitude: uni.cache.get('getLocationstorage').lat
// })
},
init_fn(e) {
this.list = []