Commit 7452c138 authored by IvyXia123's avatar IvyXia123

授权后置

parent e2346e69
......@@ -104,6 +104,11 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
bindMobileApi(json).then(data=>{
getUserDetailApi().then(res=>{
localStorage.setItem('userDesc',JSON.stringify(res));
this.$sa.track('buttonClick',{
tabTitle:'商品',
moduleTitle:'商品领取',
buttonName:'立即免费领取'
});
this.$router.push({
name: "buy",
query: query
......
......@@ -337,7 +337,6 @@
age: this.nowLesson.age
};
}
console.log(this.nowLesson, 87654)
break;
case 3:
this.$sa.track("learnPart", {
......
......@@ -37,6 +37,7 @@ export default {
// debugger
let userCourse2 = JSON.parse(localStorage.getItem("userCourse"));
this.ownDetail = JSON.parse(localStorage.getItem("userDesc"));
if(userCourse2){
this.userCourse2 = userCourse2
}
......
......@@ -620,7 +620,8 @@ router.beforeEach((to, from, next) => {
}
// extensionV1Shop
// extensionV1
if (to.name === 'author' || to.name === 'bindMobile' || to.name === 'noWechat' || to.name === 'inspectorActivit' || to.name === 'passShop'|| to.name === 'ybIndex' ) {
// mpShop
if (to.name === 'spcShop' || to.name === 'mpShop' || to.name === 'extensionV1' || to.name === 'extensionV1Shop' || to.name === 'author' || to.name === 'bindMobile' || to.name === 'noWechat' || to.name === 'inspectorActivit' || to.name === 'passShop'|| to.name === 'ybIndex' ) {
// 无需登录的页面
console.log(488)
next()
......
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