This commit is contained in:
shijingjing
2022-02-09 11:51:58 +08:00
parent efb3748ab9
commit 39c9c7dd5a
2 changed files with 5 additions and 68 deletions

View File

@@ -80,8 +80,8 @@
</div>
</div>
<div class="flow-option">
<div class="byself" :class="!form.opts? 'current': ''" @click="form.opts = 0">自己结办</div>
<div class="report" :class="form.opts? 'current': ''" @click="form.opts = 1">上报处理</div>
<div class="byself" :class="!form.opts? 'current': ''" @click="form.opts = 2">自己结办</div>
<div class="report" :class="form.opts? 'current': ''" @click="form.opts = 0">上报处理</div>
</div>
</div>
</div>
@@ -142,7 +142,7 @@
flag: false,
result: '',
resultFiles: [],
opts: 1,
opts: 0,
name: ''
},
dictList: [],
@@ -165,36 +165,7 @@
methods: {
chooseAddress () {
uni.authorize({
scope: 'scope.userLocation',
success: () => {
uni.chooseLocation({
success: res => {
this.form.address = res.address
this.form.lat = res.latitude
this.form.lng = res.longitude
}
})
},
fail: () => {
this.$dialog.confirm({
content: '您未授权定位权限,无法选择位置'
}).then(() => {
wx.openSetting({
success: res => {
if (!res.authSetting['scope.userLocation']) {
this.$dialog.alert({
content: '您未授权定位权限,无法选择位置'
}).then(() => {
})
} else {
console.log('设置定位权限')
}
}
})
})
}
})
uni.navigateTo({ url: './map' })
},
confirmSelect(e) {