Fix:4340 【旅居商城小程序】地理定位选择无效(选择后,会变为默认值0)

This commit is contained in:
linxi
2025-11-04 13:09:36 +08:00
parent ac6f854746
commit d24c176a89
+6 -5
View File
@@ -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)