Commit 6a629ff1 authored by IvyXia123's avatar IvyXia123

dd

parent 122e0753
......@@ -124,7 +124,6 @@
},
},
mounted() {
this.introduce = '拥有财富、名声、权力,这世界上的一切的男人--哥尔·D·罗杰,在被行刑受死之前说了一句话,让全世界的人都涌向了大海。“想要我的宝藏吗?如果想要的话,那就到海上去找吧,我全部都放在那里。”,世界开始迎接“大海贼时代”的来临。拥有财富、名声、权力,这世界上的一切的男人 “海贼王”哥尔·D·罗杰,在被行刑受死之前说了一句话,让全世界的人都涌向了大海。“想要我的宝藏吗?如果想要的话,那就到海上去找吧,我全部都放在那里。”,世界开始迎接“大海贼时代”的来临。';
window.addEventListener('scroll', this.scrollEvent, false)
this.userGrowthRecordList()
......
......@@ -347,7 +347,7 @@
localStorage.setItem('promp', 1)
this.promp = true
}
this.judgeActivity(this.secActions.id) // 判断活动
// this.judgeActivity(this.secActions.id) // 判断活动
},
methods:{
/**
......@@ -798,6 +798,7 @@
}
})
// 加载课程
this.judgeActivity(this.secActions.id) // 判断活动
// console.log(this.secActions)
this.shopType = this.secActions.course_type
if(this.secActions.is_start_course){
......
......@@ -517,7 +517,7 @@
.rule {
width: 54 * @toVw;
height: 30 * @toVw;
line-height: 30 * @toVw;
line-height: 7.666667vw;
background: rgba(0, 0, 0, .5);
border-radius: 50px 0 0 50px;
position: fixed;
......
......@@ -634,7 +634,7 @@ router.beforeEach((to, from, next) => {
// extensionV1Shop
// extensionV1
if (to.name === 'guidelines' || to.name === 'spcShop' || to.name === 'mpShop' || to.name === 'extensionV1Shop' || to.name === 'extensionV1' || to.name === 'author' || to.name === 'bindMobile' || to.name === 'noWechat' || to.name === 'inspectorActivit' || to.name === 'buyDetail'|| to.name === 'passShop'|| to.name === 'ybIndex' ) {
if (to.name === 'order' || to.name === 'guidelines' || to.name === 'spcShop' || to.name === 'mpShop' || to.name === 'extensionV1Shop' || to.name === 'extensionV1' || to.name === 'author' || to.name === 'bindMobile' || to.name === 'noWechat' || to.name === 'inspectorActivit' || to.name === 'buyDetail'|| to.name === 'passShop'|| to.name === 'ybIndex' ) {
// 无需登录的页面
console.log(488)
next()
......
......@@ -16,6 +16,7 @@ axios.interceptors.request.use(
// 获取token
// process.env.versionTime
let versiontime = '09021400'
console.log(common.getParamByName('token'))
const token = localStorage.getItem('cc_token');
// 设置参数格式
if (!config.headers['Content-Type']) {
......@@ -31,6 +32,7 @@ axios.interceptors.request.use(
if (config.method === 'get' && config.url !== '/api/admin/login') {
config.params = config.params || {};
config.params.v = versiontime;
let json = JSON.parse(JSON.stringify(config.params));
for (let k in json) {
if (json[k] === null) {
......
......@@ -129,5 +129,10 @@ export default {
ui = 1
}
return ui;
},
getParamByName(name, url) {
url = url || window.location;
var match = RegExp('[?&]' + name + '=([^&]*)').exec(url);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '))
}
}
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