Commit aa54c53a authored by IvyXia123's avatar IvyXia123

授权后置4

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