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

@ -1,136 +1,136 @@
{ {
"name": "泉医助手", "name" : "泉医助手",
"appid": "__UNI__9FA8ADB", "appid" : "__UNI__9FA8ADB",
"description": "", "description" : "",
"versionName": "1.0.0", "versionName" : "1.0.0",
"versionCode": 100, "versionCode" : 100,
"transformPx": false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus": { "app-plus" : {
"usingComponents": true, "usingComponents" : true,
"nvueStyleCompiler": "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion": 3, "compilerVersion" : 3,
"splashscreen": { "splashscreen" : {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender" : true,
"waiting": true, "waiting" : true,
"autoclose": true, "autoclose" : true,
"delay": 0 "delay" : 0
}, },
/* */ /* */
"modules": { "modules" : {
"Geolocation": {}, "Geolocation" : {},
"Maps": {}, "Maps" : {},
"Camera": {} "Camera" : {}
}, },
/* */ /* */
"distribute": { "distribute" : {
/* android */ /* android */
"android": { "android" : {
"permissions": [ "permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>", "<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
] ]
}, },
/* ios */ /* ios */
"ios": { "ios" : {
"dSYMs": false "dSYMs" : false
}, },
/* SDK */ /* SDK */
"sdkConfigs": { "sdkConfigs" : {
"ad": {}, "ad" : {},
"geolocation": { "geolocation" : {
"amap": { "amap" : {
"__platform__": ["ios", "android"], "__platform__" : [ "ios", "android" ],
"appkey_ios": "fa38860a5159a551b6819ea3092a68f3", "appkey_ios" : "fa38860a5159a551b6819ea3092a68f3",
"appkey_android": "fa38860a5159a551b6819ea3092a68f3" "appkey_android" : "fa38860a5159a551b6819ea3092a68f3"
} }
}, },
"maps": { "maps" : {
"amap": { "amap" : {
"appkey_ios": "fa38860a5159a551b6819ea3092a68f3", "appkey_ios" : "fa38860a5159a551b6819ea3092a68f3",
"appkey_android": "fa38860a5159a551b6819ea3092a68f3" "appkey_android" : "fa38860a5159a551b6819ea3092a68f3"
} }
} }
}, },
"icons": { "icons" : {
"android": { "android" : {
"hdpi": "", "hdpi" : "",
"xhdpi": "", "xhdpi" : "",
"xxhdpi": "", "xxhdpi" : "",
"xxxhdpi": "" "xxxhdpi" : ""
}, },
"ios": { "ios" : {
"appstore": "", "appstore" : "",
"ipad": { "ipad" : {
"app": "", "app" : "",
"app@2x": "", "app@2x" : "",
"notification": "", "notification" : "",
"notification@2x": "", "notification@2x" : "",
"proapp@2x": "", "proapp@2x" : "",
"settings": "", "settings" : "",
"settings@2x": "", "settings@2x" : "",
"spotlight": "", "spotlight" : "",
"spotlight@2x": "" "spotlight@2x" : ""
}, },
"iphone": { "iphone" : {
"app@2x": "", "app@2x" : "",
"app@3x": "", "app@3x" : "",
"notification@2x": "", "notification@2x" : "",
"notification@3x": "", "notification@3x" : "",
"settings@2x": "", "settings@2x" : "",
"settings@3x": "", "settings@3x" : "",
"spotlight@2x": "", "spotlight@2x" : "",
"spotlight@3x": "" "spotlight@3x" : ""
} }
} }
} }
} }
}, },
/* */ /* */
"quickapp": {}, "quickapp" : {},
/* */ /* */
"mp-weixin": { "mp-weixin" : {
"appid": "wxa4f2b43d2ccb9908", "appid" : "wxa4f2b43d2ccb9908",
"setting": { "setting" : {
"urlCheck": false, "urlCheck" : false,
"postcss": true, "postcss" : true,
"minified": true "minified" : true
}, },
"usingComponents": true, "usingComponents" : true,
"permission": { "permission" : {
"scope.userLocation": { "scope.userLocation" : {
"desc": "你的位置信息将用于完成工单信息" "desc" : "你的位置信息将用于上门服务作业,并完成工单信息"
} }
}, },
"requiredPrivateInfos": ["getLocation"], "requiredPrivateInfos" : [ "getLocation" ],
"lazyCodeLoading": "requiredComponents" "lazyCodeLoading" : "requiredComponents"
}, },
"mp-alipay": { "mp-alipay" : {
"usingComponents": true "usingComponents" : true
}, },
"mp-baidu": { "mp-baidu" : {
"usingComponents": true "usingComponents" : true
}, },
"mp-toutiao": { "mp-toutiao" : {
"usingComponents": true "usingComponents" : true
}, },
"uniStatistics": { "uniStatistics" : {
"enable": false "enable" : false
}, },
"vueVersion": "2", "vueVersion" : "2",
"locale": "zh-Hans", "locale" : "zh-Hans",
"fallbackLocale": "zh-Hans" "fallbackLocale" : "zh-Hans"
} }

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;
} }