【优化】添加个人地址,初始选择省市县弹窗的位置,根据后台商城设置的商家区域位置展示。

This commit is contained in:
jianweie code
2023-12-29 19:35:54 +08:00
parent c931447c41
commit f020072bce

View File

@@ -114,7 +114,7 @@
longitude: 0,
latitude: 0,
region: ['湖南省', '怀化市', '鹤城区'],
areaId: 0,
areaId: this.$store.state.config.reshipAreaId || 0,
checked: false,
pickerValue: '',
submitStatus: false,
@@ -192,7 +192,6 @@
if (this.getType == 1) {
this.form.address = location.address;
}
console.log("location1:", location);
}
},
@@ -214,7 +213,7 @@
} else {
//添加(取消初始化)
//this.pickerValue = this.region[0] + " " + this.region[1] + " " + this.region[2];
//this.init();
this.init();
}
},
computed: {},