优化定位弹窗显示位置,优化弹窗和表单提示文本
This commit is contained in:
parent
9b60a142da
commit
51cd769177
6
App.vue
6
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')
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
"appid": "wx303943e10cbe2743",
|
||||
"permission": {
|
||||
"scope.userLocation": {
|
||||
"desc": "您的位置信息将用于小程序位置接口效果展示"
|
||||
"desc": "您的位置信息将用于定位您的收货地址"
|
||||
}
|
||||
},
|
||||
"setting": {
|
||||
|
|
|
|||
|
|
@ -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 @@
|
|||
<text class="field-label">租赁周期</text>
|
||||
<view class="selector" @click="selectPeriod">
|
||||
<text :class="['selector-text', { placeholder: !formData.period }]">
|
||||
{{ formData.period || '请先选择设备类型' }}
|
||||
{{ formData.period || '请选择租赁周期' }}
|
||||
</text>
|
||||
<text class="arrow-icon">></text>
|
||||
</view>
|
||||
|
|
@ -151,6 +151,12 @@ export default {
|
|||
// 检查是否可以支付 - 直接验证,不依赖formData默认值
|
||||
},
|
||||
onLoad() {
|
||||
uni.authorize({
|
||||
scope: 'scope.userLocation',
|
||||
success: function () {
|
||||
console.log('用户同意了授权')
|
||||
},
|
||||
})
|
||||
// 页面加载时获取设备类型列表
|
||||
this.getDeviceTypes()
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user