diff --git a/src/view/month-card.vue b/src/view/month-card.vue index 9f4e6eb..a758b9f 100644 --- a/src/view/month-card.vue +++ b/src/view/month-card.vue @@ -156,13 +156,11 @@ // window.history.go(0); // hide_layer(1); } else if (result.code === 666) { - alert("您还没登录,请先登录!"); - - document.cookie = '1hjz_mall_coupon_url=' + encodeURI(window.location.href); + alert("您还没登录,请先登录!"); setTimeout(function () { - window.location.href = locationUrl + '/mall/web/user/login'; - }, 2000); + window.location.href = locationUrl + '/mall/web/user/login?callback=' + encodeURIComponent(window.location.href); + }, 5000); } else { if (result.msg === '' || result.msg === undefined || result.msg == null) { result.msg = '操作失败,请刷新重试';