修改收货地址管理
This commit is contained in:
parent
c02f537db5
commit
90f6534fce
@ -311,6 +311,7 @@
|
|||||||
];
|
];
|
||||||
that.$set(that, 'userAddress', res.data);
|
that.$set(that, 'userAddress', res.data);
|
||||||
that.$set(that, 'region', region);
|
that.$set(that, 'region', region);
|
||||||
|
that.$set(that, 'location', res.data.location);
|
||||||
that.city_id = res.data.city_id
|
that.city_id = res.data.city_id
|
||||||
if (res.data.areas) that.addressInfo = res.data.areas;
|
if (res.data.areas) that.addressInfo = res.data.areas;
|
||||||
else {
|
else {
|
||||||
@ -467,7 +468,7 @@
|
|||||||
title: '请填写详细地址'
|
title: '请填写详细地址'
|
||||||
});
|
});
|
||||||
if (!value.location) return that.$util.Tips({
|
if (!value.location) return that.$util.Tips({
|
||||||
title: '请填写详细地址'
|
title: '请选择地址'
|
||||||
});
|
});
|
||||||
value.address_id = that.address_id;
|
value.address_id = that.address_id;
|
||||||
value.is_default = that.userAddress.is_default ? 1 : 0;
|
value.is_default = that.userAddress.is_default ? 1 : 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user