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