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

View File

@ -264,26 +264,38 @@
this.itemlist = JSON.parse(options.list) this.itemlist = JSON.parse(options.list)
this.list.id = options.orderDetailsId this.list.id = options.orderDetailsId
this.orderNo = this.itemlist.orderNo this.orderNo = this.itemlist.orderNo
var that = this },
onShow() {
// var that = this
// uni.getLocation({ // uni.getLocation({
// type: 'gcj02', // type: 'wgs84',
// geocode: true,
// success: function(res) { // success: function(res) {
// that.list.serviceLocationName = res.address.poiName
// that.list.serveLocationLatitude = res.latitude // that.list.serveLocationLatitude = res.latitude
// that.list.serveLocationLongitude = res.longitude // 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 => { // fail: error => {
// uni.showModal({ // uni.showModal({
// title: '', // title: '',
// content: '', // content: '',
// success: (res) => { // success: (res) => {
// if (res.confirm) {} // uni.openSetting({
// success(res) {}
// });
// } // }
// }) // })
// } // }
// }); // });
}, }
} }
</script> </script>
@ -292,6 +304,7 @@
font-size: 36rpx; font-size: 36rpx;
padding: 0; padding: 0;
padding-bottom: 100rpx; padding-bottom: 100rpx;
::v-deep .u-mask { ::v-deep .u-mask {
height: 100vh !important; height: 100vh !important;
} }