This commit is contained in:
曹辉 2023-04-17 10:39:33 +08:00
parent c4823f035c
commit 2701a974de

View File

@ -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>