|
@@ -276,18 +276,6 @@ export default {
|
|
if (!this.address) {
|
|
if (!this.address) {
|
|
this.address = `${this.orderDetail.province}${this.orderDetail.city}${this.orderDetail.area}${this.orderDetail.street}`
|
|
this.address = `${this.orderDetail.province}${this.orderDetail.city}${this.orderDetail.area}${this.orderDetail.street}`
|
|
}
|
|
}
|
|
- // uni.hideLoading()
|
|
|
|
- // return this.$modal({
|
|
|
|
- // content: '请开启位置信息权限后,重新获取位置信息',
|
|
|
|
- // confirmText: '获取位置'
|
|
|
|
- // }).then(async() => {
|
|
|
|
- // const lo = await this.$getAddress();
|
|
|
|
- // this.address = lo.address || '';
|
|
|
|
- // if(!this.address) {
|
|
|
|
- // this.address = `${this.orderDetail.province}${this.orderDetail.city}${this.orderDetail.area}${this.orderDetail.street}`;
|
|
|
|
- // // this.$tips('获取定位失败,请开启位置信息权限');
|
|
|
|
- // }
|
|
|
|
- // }).catch(() => {})
|
|
|
|
}
|
|
}
|
|
|
|
|
|
uni.chooseImage({
|
|
uni.chooseImage({
|
|
@@ -310,6 +298,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
fail: err => {
|
|
fail: err => {
|
|
|
|
+ uni.hideLoading()
|
|
console.log(err)
|
|
console.log(err)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -324,18 +313,6 @@ export default {
|
|
if (!this.address) {
|
|
if (!this.address) {
|
|
this.address = `${this.orderDetail.province}${this.orderDetail.city}${this.orderDetail.area}${this.orderDetail.street}`
|
|
this.address = `${this.orderDetail.province}${this.orderDetail.city}${this.orderDetail.area}${this.orderDetail.street}`
|
|
}
|
|
}
|
|
- uni.hideLoading()
|
|
|
|
- // return this.$modal({
|
|
|
|
- // content: '请开启位置信息权限后,重新获取位置信息',
|
|
|
|
- // confirmText: '获取位置'
|
|
|
|
- // }).then(async() => {
|
|
|
|
- // const lo = await this.$getAddress();
|
|
|
|
- // this.address = lo.address || '';
|
|
|
|
- // if(!this.address) {
|
|
|
|
- // this.address = `${this.orderDetail.province}${this.orderDetail.city}${this.orderDetail.area}${this.orderDetail.street}`;
|
|
|
|
- // // this.$tips('获取定位失败,请开启位置信息权限');
|
|
|
|
- // }
|
|
|
|
- // }).catch(() => {})
|
|
|
|
}
|
|
}
|
|
|
|
|
|
uni.chooseImage({
|
|
uni.chooseImage({
|
|
@@ -358,6 +335,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
fail: err => {
|
|
fail: err => {
|
|
|
|
+ uni.hideLoading()
|
|
console.log(err)
|
|
console.log(err)
|
|
}
|
|
}
|
|
})
|
|
})
|