diff --git a/App.vue b/App.vue
index 10b75fd..52dd89d 100644
--- a/App.vue
+++ b/App.vue
@@ -2,12 +2,6 @@
export default {
onLaunch: function () {
console.log('App Launch')
- uni.authorize({
- scope: 'scope.userLocation',
- success: function () {
- console.log('用户同意了授权')
- },
- })
},
onShow: function () {
console.log('App Show')
diff --git a/manifest.json b/manifest.json
index 80c9bbe..1507e58 100644
--- a/manifest.json
+++ b/manifest.json
@@ -55,7 +55,7 @@
"appid": "wx303943e10cbe2743",
"permission": {
"scope.userLocation": {
- "desc": "您的位置信息将用于小程序位置接口效果展示"
+ "desc": "您的位置信息将用于定位您的收货地址"
}
},
"setting": {
diff --git a/pages/lease/lease.vue b/pages/lease/lease.vue
index 95c6e4e..b92232f 100644
--- a/pages/lease/lease.vue
+++ b/pages/lease/lease.vue
@@ -48,7 +48,7 @@
ref="mapLocation"
v-model="formData.address"
label="地址"
- placeholder="请输入或选择收货地址"
+ placeholder="请选择收货地址"
@input="onAddressInput"
@location-success="onLocationSuccess"
@update:location="onLocationUpdate"
@@ -81,7 +81,7 @@
租赁周期
- {{ formData.period || '请先选择设备类型' }}
+ {{ formData.period || '请选择租赁周期' }}
>
@@ -151,6 +151,12 @@ export default {
// 检查是否可以支付 - 直接验证,不依赖formData默认值
},
onLoad() {
+ uni.authorize({
+ scope: 'scope.userLocation',
+ success: function () {
+ console.log('用户同意了授权')
+ },
+ })
// 页面加载时获取设备类型列表
this.getDeviceTypes()
},