mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 00:49:49 +08:00
【优化】优化添加地址,如果是从微信直接获取绑定的地址,则地图选点后不更新掉详细地址。
This commit is contained in:
@@ -100,6 +100,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
getType: 1, //1手动输入,0从微信获取
|
||||||
id: 0,
|
id: 0,
|
||||||
form: {
|
form: {
|
||||||
name: '',
|
name: '',
|
||||||
@@ -188,7 +189,10 @@
|
|||||||
|
|
||||||
this.region = [location.province, location.district, location.city];
|
this.region = [location.province, location.district, location.city];
|
||||||
this.form.street = location.name;
|
this.form.street = location.name;
|
||||||
this.form.address = location.address;
|
if (this.getType == 1) {
|
||||||
|
this.form.address = location.address;
|
||||||
|
}
|
||||||
|
|
||||||
console.log("location1:", location);
|
console.log("location1:", location);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -473,6 +477,7 @@
|
|||||||
},
|
},
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
wechatAddress() {
|
wechatAddress() {
|
||||||
|
this.getType = 0;
|
||||||
let _that = this;
|
let _that = this;
|
||||||
wx.chooseAddress({
|
wx.chooseAddress({
|
||||||
success: res => {
|
success: res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user