From 51cd769177d737d66c4157567c30281fdfb8e9b1 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Thu, 4 Sep 2025 14:47:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=9A=E4=BD=8D=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E6=98=BE=E7=A4=BA=E4=BD=8D=E7=BD=AE=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=BC=B9=E7=AA=97=E5=92=8C=E8=A1=A8=E5=8D=95=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 6 ------ manifest.json | 2 +- pages/lease/lease.vue | 10 ++++++++-- 3 files changed, 9 insertions(+), 9 deletions(-) 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() },