Commit 6a629ff1 authored by IvyXia123's avatar IvyXia123

dd

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