Commit 382fe51e by 李嘉林

修改

parent 12cf0abb
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
.getUserAddressList() .getUserAddressList()
.then(res => { .then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
let list = res.data.data.list; let list = res.data.data.list || [];
if (!list.length > 0) { if (!list.length > 0) {
this.userAddressReq.isDefaultShipping = 1; this.userAddressReq.isDefaultShipping = 1;
} else { } else {
...@@ -216,27 +216,37 @@ export default { ...@@ -216,27 +216,37 @@ export default {
addres addres
.addOrEditAddress(this.userAddressReq) .addOrEditAddress(this.userAddressReq)
.then(res => { .then(res => {
let TimeOut = 0;
if (res.data.code == 200) { if (res.data.code == 200) {
console.log("!!!!!!!!!!!!!", this.options.back); console.log("!!!!!!!!!!!!!", this.options.back);
console.log("微信地址", this.userAddressReq); console.log("微信地址", this.userAddressReq);
} else { } else {
TimeOut = 1500;
} }
console.log(res.data.msg,'-------------------224')
wx.showToast({ title: res.data.msg, icon: "none" }); wx.showToast({ title: res.data.msg, icon: "none" });
wx.navigateBack(); setTimeout(() => {
wx.navigateBack();
}, TimeOut);
}) })
.catch(err => { .catch(err => {
wx.showToast({ title: err, icon: "none" }); wx.showToast({ title: err, icon: "none" });
wx.navigateBack(); setTimeout(() => {
wx.navigateBack();
}, 1500);
}); });
} else { } else {
wx.showToast({ title: res.data.msg, icon: "none" }); wx.showToast({ title: res.data.msg, icon: "none" });
wx.navigateBack(); setTimeout(() => {
wx.navigateBack();
}, 1500);
} }
}) })
.catch(err => { .catch(err => {
wx.showToast({ title: err, icon: "none" }); wx.showToast({ title: err, icon: "none" });
wx.navigateBack(); setTimeout(() => {
wx.navigateBack();
}, 1500);
}); });
} }
} }
......
...@@ -90,8 +90,9 @@ const componentOptions = { ...@@ -90,8 +90,9 @@ const componentOptions = {
console.log(_this.data.submitFliterVal, '----------submitFliterVal') console.log(_this.data.submitFliterVal, '----------submitFliterVal')
_this.init(); _this.init();
} }
console.log(this.data.datas.componentData.filterBrand,'---this.data.datas.componentData.filterBrand')
this.setData({ 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(); this.init();
}, },
......
...@@ -77,7 +77,7 @@ image{ ...@@ -77,7 +77,7 @@ image{
border-radius: 6px; border-radius: 6px;
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 999; z-index: 887;
box-shadow: 0px 5px 10px 0px #0000001c; box-shadow: 0px 5px 10px 0px #0000001c;
} }
.filterComponents input{ .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