Commit 44e1e34f by 李嘉林

新人有礼

parent b6f89e7a
......@@ -121,12 +121,10 @@ export default {
}, 1000);
},
toEnvPage() {
let backUrl = `/home/main`;
let backUrl = `/pages/home/main`;
const url = `/pages/login/main?back=${encodeURIComponent(
backUrl
)}&params=${JSON.stringify({
fromType: "mini"
})}`;
)}`;
wx.navigateTo({
url: url
});
......
......@@ -569,15 +569,15 @@ export default {
this.timer = setInterval(() => {
// 查询我领取的新客礼品
promote.query_my_new_customer_gift().then((res) => {
if (res.code == 200) {
if (res.data.code == 200) {
// data为null就是没有查询到我领取的优惠券,就再调一次领取优惠券接口手动领取下
if (res.data == null) {
if (res.data.data == null) {
console.log("没领到");
} else {
clearInterval(this.timer);
}
} else {
Toast(res.msg);
Toast(res.data.msg);
clearInterval(this.timer);
}
});
......@@ -597,11 +597,11 @@ export default {
if (wx.getStorageSync("sessionid")) {
index.cancelNewCustome(this.newCustomerGiftActivityId).then((res) => {
// console.log(res,'ooooooooo123');
if (res.code == 200) {
if (res.data.code == 200) {
// 接口调成功之后,就关闭弹框
this.showgiftBag = false;
} else {
Toast(res.msg);
Toast(res.data.msg);
this.showgiftBag = false;
}
});
......
......@@ -321,9 +321,11 @@ export default {
}
})
if(this.backPath.includes('/pages/')){
let parseLink=decodeURIComponent(this.backPath);
console.log(this.backPath,parseLink,'---------------------------325')
if(parseLink.includes('/pages/')){
wx.reLaunch({
url: this.backPath
url: parseLink
});
}else if(this.fromType=='mini'){
wx.navigateBack({
......
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