|
@@ -42,13 +42,15 @@
|
|
|
},
|
|
|
data() {
|
|
|
localStorage.removeItem("Authorization")
|
|
|
+ let accountInfo = localStorage.getItem('accountInfo')
|
|
|
+ localStorage.removeItem('accountInfo')
|
|
|
const query = this.$route.query
|
|
|
return {
|
|
|
examId: query.examId,
|
|
|
organId: query.organId,
|
|
|
patternPhone: patternPhone,
|
|
|
agreeStatus: false,
|
|
|
- form: {
|
|
|
+ form: accountInfo ? JSON.parse(accountInfo) : {
|
|
|
phone: null,
|
|
|
code: null,
|
|
|
},
|
|
@@ -63,16 +65,6 @@
|
|
|
// localStorage.setItem('Authorization', decodeURI(params.Authorization))
|
|
|
// localStorage.setItem('userInfo', decodeURI(params.Authorization))
|
|
|
// }
|
|
|
- // window.onbeforeunload = onbeforeunload_handler;
|
|
|
- // window.onunload = onunload_handler;
|
|
|
- // function onbeforeunload_handler(){
|
|
|
- // var warning="确认退出?";
|
|
|
- // return warning;
|
|
|
- // }
|
|
|
- // function onunload_handler(){
|
|
|
- // var warning="谢谢光临";
|
|
|
- // alert(warning);
|
|
|
- // }
|
|
|
},
|
|
|
methods: {
|
|
|
async onGetCode() { // 获取验证码
|
|
@@ -165,6 +157,7 @@
|
|
|
this.onCheckPhone()
|
|
|
},
|
|
|
onToProtocol() { // 跳转协议
|
|
|
+ localStorage.setItem('accountInfo', JSON.stringify(this.form))
|
|
|
this.$router.push({
|
|
|
path: '/smallProtocol'
|
|
|
})
|