feat:优惠券
This commit is contained in:
@@ -114,6 +114,7 @@ export default {
|
||||
const city = province && province.length !== 0 ? await this.getRegion(province[0].id) : [];
|
||||
const area = city && city.length !== 0 ? await this.getRegion(city[0].id) : [];
|
||||
this.regionColumns = [nation, province, city, area];
|
||||
console.log("我是秦星星regionColumns", this.regionColumns);
|
||||
} else {
|
||||
this.regionColumns = [[], [], [], []];
|
||||
}
|
||||
@@ -150,6 +151,7 @@ export default {
|
||||
picker
|
||||
} = e;
|
||||
const selectData = this.regionColumns[columnIndex][index];
|
||||
if (!selectData) return;
|
||||
const resultData = await this.getRegion(selectData.id);
|
||||
if (resultData && resultData.length !== 0) {
|
||||
const index = columnIndex + 1;
|
||||
@@ -174,6 +176,7 @@ export default {
|
||||
}
|
||||
})
|
||||
this.form.regionStr = regionStr;
|
||||
console.log("我是秦星星regionStr", regionStr,regionId);
|
||||
if (regionId && regionId.length !== 0) {
|
||||
this.form.countryId = regionId[0] ? regionId[0] : null;
|
||||
this.form.provinceId = regionId[1] ? regionId[1] : null;
|
||||
@@ -225,7 +228,9 @@ export default {
|
||||
if (!params.areaId || params.areaId === 0) {
|
||||
delete params.areaId;
|
||||
}
|
||||
console.log("params", params,selectAddress);
|
||||
delete params.regionStr;
|
||||
delete params.id;
|
||||
const res = await editAddress(params);
|
||||
if (res && res.bizcode === 100) {
|
||||
const goodsParams = {
|
||||
@@ -254,6 +259,7 @@ export default {
|
||||
// 地址选中
|
||||
getAddressValueFunc(item) {
|
||||
this.selectAddress = item;
|
||||
console.log("地址选中item", item);
|
||||
},
|
||||
// 地址选中OK
|
||||
addressOk() {
|
||||
|
||||
Reference in New Issue
Block a user