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