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