修改
This commit is contained in:
parent
de0cef4574
commit
c4823f035c
@ -112,7 +112,7 @@
|
||||
"usingComponents" : true,
|
||||
"permission" : {
|
||||
"scope.userLocation" : {
|
||||
"desc": "你的位置信息将用于完成工单信息"
|
||||
"desc" : "你的位置信息将用于上门服务作业,并完成工单信息"
|
||||
}
|
||||
},
|
||||
"requiredPrivateInfos" : [ "getLocation" ],
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user