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