修改
This commit is contained in:
parent
c4823f035c
commit
2701a974de
@ -266,35 +266,35 @@
|
|||||||
this.orderNo = this.itemlist.orderNo
|
this.orderNo = this.itemlist.orderNo
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
// var that = this
|
var that = this
|
||||||
// uni.getLocation({
|
uni.getLocation({
|
||||||
// type: 'wgs84',
|
type: 'wgs84',
|
||||||
// success: function(res) {
|
success: function(res) {
|
||||||
// that.list.serveLocationLatitude = res.latitude
|
that.list.serveLocationLatitude = res.latitude
|
||||||
// that.list.serveLocationLongitude = res.longitude
|
that.list.serveLocationLongitude = res.longitude
|
||||||
// uni.request({
|
uni.request({
|
||||||
// url: "https://apis.map.qq.com/ws/geocoder/v1/" + '?location=' + res.latitude +
|
url: "https://apis.map.qq.com/ws/geocoder/v1/" + '?location=' + res.latitude +
|
||||||
// ',' +
|
',' +
|
||||||
// res.longitude + "&key=TXGBZ-VGEWW-LJHRR-3CDLI-N57YO-YQBHJ",
|
res.longitude + "&key=TXGBZ-VGEWW-LJHRR-3CDLI-N57YO-YQBHJ",
|
||||||
// method: 'GET',
|
method: 'GET',
|
||||||
// success: function(respone) {
|
success: function(respone) {
|
||||||
// that.list.serviceLocationName = respone.data.result.address
|
that.list.serviceLocationName = respone.data.result.address
|
||||||
// },
|
},
|
||||||
// fail(err) {}
|
fail(err) {}
|
||||||
// })
|
})
|
||||||
// },
|
},
|
||||||
// fail: error => {
|
fail: error => {
|
||||||
// uni.showModal({
|
uni.showModal({
|
||||||
// title: '提示',
|
title: '提示',
|
||||||
// content: '获取定位失败,是否授权打开定位',
|
content: '获取定位失败,是否授权打开定位',
|
||||||
// success: (res) => {
|
success: (res) => {
|
||||||
// uni.openSetting({
|
uni.openSetting({
|
||||||
// success(res) {}
|
success(res) {}
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user