Commit aa54c53a authored by IvyXia123's avatar IvyXia123

授权后置4

parent d6ae5a91
......@@ -480,7 +480,7 @@ export default {
if (this.$route.query.invite_code) {
this.invite_code = this.$route.query.invite_code;
}
this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id;
if (window.location.href.indexOf("shopId") > -1) {
this.shopId = this.$route.query.shopId;
getGoodsDetailApi(this.shopId).then(res => {
......@@ -594,6 +594,8 @@ export default {
});
}
let userCourse = JSON.parse(localStorage.getItem("userCourse"));
// console.log(localStorage.getItem("userDesc"))
// this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id;
if (userCourse && !userCourse.periods_list) {
// 优惠券
......@@ -623,7 +625,21 @@ export default {
this.groupSuc = status;
// console.log(status)
}
if (!JSON.parse(localStorage.getItem("userDesc")).mobile || JSON.parse(localStorage.getItem("userDesc")).mobile === "") {
getUserDetailApi().then(res => {
// debugger
localStorage.setItem('userDesc', JSON.stringify(res));
if (!JSON.parse(localStorage.getItem("userDesc")).mobile || JSON.parse(localStorage.getItem("userDesc")).mobile === "") {
this.bindMobile.flag = type;
this.bindMobile.show = true;
setTimeout(() => {
this.$sa.track("ViewRegisterpage", {});
}, 1000);
} else {
this.goToBuyPage();
}
}).catch((res) => {
});
/*if (!JSON.parse(localStorage.getItem("userDesc")).mobile || JSON.parse(localStorage.getItem("userDesc")).mobile === "") {
this.bindMobile.flag = type;
this.bindMobile.show = true;
setTimeout(() => {
......@@ -631,7 +647,7 @@ export default {
}, 1000);
} else {
this.goToBuyPage(type);
}
}*/
}
}
};
......
......@@ -331,13 +331,12 @@
},
},
mounted() {
getNotifyApi(this.$route.query.periods_id).then(res => {
if(res.time) {
if(localStorage.getItem('promp') == '1') {
this.promp = false
}else {
this.promp = true
}
})
}else {
localStorage.setItem('promp', 1)
this.promp = true
}
},
methods:{
// 页面初始化
......@@ -906,7 +905,7 @@
height: 100%;
position: absolute;
top: 0;
right: 0;
right: 10 * @toVw;
.zhongbian {
width: 22 * @toVw;
height: 22 * @toVw;
......
......@@ -91,6 +91,7 @@ axios.interceptors.request.use(
axios.interceptors.response.use(
response => {
if (response.data.code === 501) {
console.log(9898989898)
// 登录验证
router.push({
name: 'author',//从哪个页面跳转
......
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