Commit 59054319 authored by zhengke's avatar zhengke

修改地图

parent 24f3e350
......@@ -90,7 +90,7 @@
<view>{{dataList.AddressDes}}</view>
</view>
</view>
<view class="loc-right">
<view class="loc-right" @click="goMap(dataList.Address,dataList.Lng,dataList.Lat)">
<text style="margin-right: 20rpx;">地图详情</text>
<u-icon name="arrow" size="20" />
</view>
......@@ -336,18 +336,19 @@
);
},
goMap(name, lon, lat) {
let newLon=parseFloat(lon)
let newLat=parseFloat(lat)
wx.openLocation({
latitude: lat,
longitude: lon,
scale: 18,
name,
address: "武侯区科华中路 2 号",
success: (res) => {
// console.log(res)
},
fail: (err) => {
// console.log(err)
}
latitude:newLat,
longitude:newLon,
scale: 18,
name,
success:(res)=>{
console.log(res)
},
fail: (err) => {
console.log(err)
}
})
},
openPicture() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment