|
|
|
@ -21,6 +21,8 @@ export default { |
|
|
|
|
pass: null, |
|
|
|
|
//0 考试 1 练习 2 不计分 |
|
|
|
|
reqType: null, |
|
|
|
|
//用户类型:0学生,1老师,2管理员 |
|
|
|
|
userType: null, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -29,6 +31,7 @@ export default { |
|
|
|
|
this.startLoading(); |
|
|
|
|
let params = this.parseUrl(); |
|
|
|
|
this.reqType = params.reqType; |
|
|
|
|
this.userType = params.userType; |
|
|
|
|
//判断是否来自以渔有方 |
|
|
|
|
if ( |
|
|
|
|
!$.isEmptyObject(params) && |
|
|
|
@ -144,6 +147,8 @@ export default { |
|
|
|
|
|
|
|
|
|
//0 考试 1 练习 2 不计分 |
|
|
|
|
localStorage.setItem('reqType', self.reqType); |
|
|
|
|
//用户类型 |
|
|
|
|
localStorage.setItem('userType', self.userType); |
|
|
|
|
if (self.reqType == 0) { |
|
|
|
|
//考试 保留考试剩余 |
|
|
|
|
localStorage.setItem('remainingTime', res.data.data.remainingTime); |
|
|
|
|