Commit 382fe51e by 李嘉林

修改

parent 12cf0abb
......@@ -207,7 +207,7 @@ export default {
.getUserAddressList()
.then(res => {
if (res.data.code == 200) {
let list = res.data.data.list;
let list = res.data.data.list || [];
if (!list.length > 0) {
this.userAddressReq.isDefaultShipping = 1;
} else {
......@@ -216,27 +216,37 @@ export default {
addres
.addOrEditAddress(this.userAddressReq)
.then(res => {
let TimeOut = 0;
if (res.data.code == 200) {
console.log("!!!!!!!!!!!!!", this.options.back);
console.log("微信地址", this.userAddressReq);
} else {
TimeOut = 1500;
}
console.log(res.data.msg,'-------------------224')
wx.showToast({ title: res.data.msg, icon: "none" });
wx.navigateBack();
setTimeout(() => {
wx.navigateBack();
}, TimeOut);
})
.catch(err => {
wx.showToast({ title: err, icon: "none" });
wx.navigateBack();
setTimeout(() => {
wx.navigateBack();
}, 1500);
});
} else {
wx.showToast({ title: res.data.msg, icon: "none" });
wx.navigateBack();
setTimeout(() => {
wx.navigateBack();
}, 1500);
}
})
.catch(err => {
wx.showToast({ title: err, icon: "none" });
wx.navigateBack();
setTimeout(() => {
wx.navigateBack();
}, 1500);
});
}
}
......
......@@ -90,8 +90,9 @@ const componentOptions = {
console.log(_this.data.submitFliterVal, '----------submitFliterVal')
_this.init();
}
console.log(this.data.datas.componentData.filterBrand,'---this.data.datas.componentData.filterBrand')
this.setData({
"submitFliterVal.brandIdList": JSON.parse(JSON.stringify(this.data.datas.componentData.filterBrand)),
"submitFliterVal.brandIdList": this.data.datas.componentData.filterBrand && this.data.datas.componentData.filterBrand.length>0?JSON.parse(JSON.stringify(this.data.datas.componentData.filterBrand)) : [],
})
this.init();
},
......
......@@ -77,7 +77,7 @@ image{
border-radius: 6px;
position: sticky;
top: 0;
z-index: 999;
z-index: 887;
box-shadow: 0px 5px 10px 0px #0000001c;
}
.filterComponents input{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment