Fix:4340 【旅居商城小程序】地理定位选择无效(选择后,会变为默认值0)
This commit is contained in:
@@ -408,14 +408,14 @@ export default {
|
||||
onLoad(opts) {
|
||||
this.partnerId = opts.partnerId
|
||||
this.queryCity()
|
||||
},
|
||||
onShow() {
|
||||
this.initInfo()
|
||||
},
|
||||
// onShow() {
|
||||
// },
|
||||
onHide() {
|
||||
if (this.form.isDraft === 0 && (this.form.reviewStatus === 0 || this.form.reviewStatus === 1)) {
|
||||
return
|
||||
}
|
||||
// if (this.form.isDraft === 0 && (this.form.reviewStatus === 0 || this.form.reviewStatus === 1)) {
|
||||
// return
|
||||
// }
|
||||
this.saveDraft()
|
||||
|
||||
},
|
||||
@@ -643,6 +643,7 @@ export default {
|
||||
if(this.form.isDraft === 0 && (this.form.reviewStatus === 0 || this.form.reviewStatus === 1)) return
|
||||
uni.chooseLocation({
|
||||
success: (res) => {
|
||||
console.log(res)
|
||||
this.form.address = res.address
|
||||
this.form.longitude = this.$forceToDecimal(res.longitude, 6)
|
||||
this.form.latitude = this.$forceToDecimal(res.latitude, 6)
|
||||
|
||||
Reference in New Issue
Block a user