反馈修改完成
parent
410abe0f2b
commit
b0c57fc407
|
@ -19,8 +19,8 @@
|
||||||
用第一感觉作答,勿做太多的思考!
|
用第一感觉作答,勿做太多的思考!
|
||||||
</div>
|
</div>
|
||||||
<div class="entrance-btns">
|
<div class="entrance-btns">
|
||||||
<span @click="goPage('/evaluation/question', 'student')">考生本人测评入口</span>
|
<span @click="toEvaluation('/evaluation/question', 'student')">考生本人测评入口</span>
|
||||||
<span @click="goPage('/evaluation/question', 'parents')">家长/亲属测评入口</span>
|
<span @click="toEvaluation('/evaluation/question', 'parents')">家长/亲属测评入口</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -36,7 +36,6 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
this.isScroll = true;
|
this.isScroll = true;
|
||||||
window.addEventListener("scroll", this.eventScrollTop);
|
window.addEventListener("scroll", this.eventScrollTop);
|
||||||
if(this.$route.query.source !== ''){
|
if(this.$route.query.source !== ''){
|
||||||
|
@ -44,21 +43,23 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if(!localStorage.token){
|
|
||||||
this.$router.replace('/login');
|
|
||||||
return config
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
methods: {
|
methods: {
|
||||||
// 页面跳转
|
// 页面跳转
|
||||||
goPage(path, state) {
|
toEvaluation(path, state) {
|
||||||
this.$router.push({
|
if(!localStorage.token){
|
||||||
path: path,
|
this.$router.replace('/login');
|
||||||
query: {
|
return false;
|
||||||
state,
|
}else{
|
||||||
},
|
this.$router.push({
|
||||||
});
|
path: path,
|
||||||
|
query: {
|
||||||
|
state,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 滚动改变样式
|
// 滚动改变样式
|
||||||
eventScrollTop() {
|
eventScrollTop() {
|
||||||
|
|
Loading…
Reference in New Issue