Commit 7452c138 authored by IvyXia123's avatar IvyXia123

授权后置

parent e2346e69
...@@ -104,6 +104,11 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from ...@@ -104,6 +104,11 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
bindMobileApi(json).then(data=>{ bindMobileApi(json).then(data=>{
getUserDetailApi().then(res=>{ getUserDetailApi().then(res=>{
localStorage.setItem('userDesc',JSON.stringify(res)); localStorage.setItem('userDesc',JSON.stringify(res));
this.$sa.track('buttonClick',{
tabTitle:'商品',
moduleTitle:'商品领取',
buttonName:'立即免费领取'
});
this.$router.push({ this.$router.push({
name: "buy", name: "buy",
query: query query: query
...@@ -180,7 +185,7 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from ...@@ -180,7 +185,7 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
background: white; background: white;
// top: -42*@toVw; // top: -42*@toVw;
padding: 20 * @toVw; padding: 20 * @toVw;
border-radius:20*@toVw; border-radius:20*@toVw;
.tip{font-size: 12*@toVw;color: #FF7875;position: absolute;top: 74 * @toVw;left: 47 * @toVw;} .tip{font-size: 12*@toVw;color: #FF7875;position: absolute;top: 74 * @toVw;left: 47 * @toVw;}
.input-block{ .input-block{
width: 273*@toVw;height: 47*@toVw; width: 273*@toVw;height: 47*@toVw;
...@@ -205,7 +210,7 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from ...@@ -205,7 +210,7 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
height: 25*@toVw; height: 25*@toVw;
line-height: 25*@toVw; line-height: 25*@toVw;
font-size: 12*@toVw; font-size: 12*@toVw;
} }
input{ input{
padding: 10 * @toVw 0; padding: 10 * @toVw 0;
...@@ -250,7 +255,7 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from ...@@ -250,7 +255,7 @@ import {sendMobileCodeApi,getUserDetailApi,bindMobileApi,getGoodsDetailApi} from
.btn-block{ .btn-block{
text-align: center;margin-top: 27*@toVw; text-align: center;margin-top: 27*@toVw;
.btn{ .btn{
width: 273*@toVw;height: 47*@toVw;background:#FE6C3D;color: white;line-height:47*@toVw; border-radius: 23*@toVw; width: 273*@toVw;height: 47*@toVw;background:#FE6C3D;color: white;line-height:47*@toVw; border-radius: 23*@toVw;
} }
} }
} }
......
...@@ -337,7 +337,6 @@ ...@@ -337,7 +337,6 @@
age: this.nowLesson.age age: this.nowLesson.age
}; };
} }
console.log(this.nowLesson, 87654)
break; break;
case 3: case 3:
this.$sa.track("learnPart", { this.$sa.track("learnPart", {
......
...@@ -37,6 +37,7 @@ export default { ...@@ -37,6 +37,7 @@ export default {
// debugger // debugger
let userCourse2 = JSON.parse(localStorage.getItem("userCourse")); let userCourse2 = JSON.parse(localStorage.getItem("userCourse"));
this.ownDetail = JSON.parse(localStorage.getItem("userDesc")); this.ownDetail = JSON.parse(localStorage.getItem("userDesc"));
if(userCourse2){ if(userCourse2){
this.userCourse2 = userCourse2 this.userCourse2 = userCourse2
} }
......
...@@ -620,7 +620,8 @@ router.beforeEach((to, from, next) => { ...@@ -620,7 +620,8 @@ router.beforeEach((to, from, next) => {
} }
// extensionV1Shop // extensionV1Shop
// extensionV1 // 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) console.log(488)
next() 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