This commit is contained in:
曹辉 2023-04-14 10:42:44 +08:00
parent de0cef4574
commit c4823f035c
2 changed files with 153 additions and 140 deletions

View File

@ -112,7 +112,7 @@
"usingComponents" : true,
"permission" : {
"scope.userLocation" : {
"desc": "你的位置信息将用于完成工单信息"
"desc" : "你的位置信息将用于上门服务作业,并完成工单信息"
}
},
"requiredPrivateInfos" : [ "getLocation" ],

View File

@ -264,26 +264,38 @@
this.itemlist = JSON.parse(options.list)
this.list.id = options.orderDetailsId
this.orderNo = this.itemlist.orderNo
var that = this
},
onShow() {
// var that = this
// uni.getLocation({
// type: 'gcj02',
// geocode: true,
// type: 'wgs84',
// success: function(res) {
// that.list.serviceLocationName = res.address.poiName
// that.list.serveLocationLatitude = res.latitude
// that.list.serveLocationLongitude = res.longitude
// uni.request({
// url: "https://apis.map.qq.com/ws/geocoder/v1/" + '?location=' + res.latitude +
// ',' +
// res.longitude + "&key=TXGBZ-VGEWW-LJHRR-3CDLI-N57YO-YQBHJ",
// method: 'GET',
// success: function(respone) {
// that.list.serviceLocationName = respone.data.result.address
// },
// fail(err) {}
// })
// },
// fail: error => {
// uni.showModal({
// title: '',
// content: '',
// success: (res) => {
// if (res.confirm) {}
// uni.openSetting({
// success(res) {}
// });
// }
// })
// }
// });
},
}
}
</script>
@ -292,6 +304,7 @@
font-size: 36rpx;
padding: 0;
padding-bottom: 100rpx;
::v-deep .u-mask {
height: 100vh !important;
}