|  | @@ -34,17 +34,20 @@ import {sendSms, smsLogin, queryUserByPhone } from '@/api/app'
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |      name: 'login',
 | 
	
		
			
				|  |  |      data() {
 | 
	
		
			
				|  |  | +        let query = localStorage.getItem('getRegister')
 | 
	
		
			
				|  |  | +        query = query ? JSON.parse(query) : {}
 | 
	
		
			
				|  |  | +        localStorage.removeItem('getRegister')
 | 
	
		
			
				|  |  |          return {
 | 
	
		
			
				|  |  |              groupId: this.$route.query.groupId,
 | 
	
		
			
				|  |  |              // codeDisable: true, // 验证码登录按钮状态
 | 
	
		
			
				|  |  |              countDownStatus: true, // 到计时状态
 | 
	
		
			
				|  |  | -            phoneNumber: null,
 | 
	
		
			
				|  |  | +            phoneNumber: query.phoneNumber ? query.phoneNumber : null,
 | 
	
		
			
				|  |  |              isRegister: 0, // 默认没有注册
 | 
	
		
			
				|  |  | -            code: null,
 | 
	
		
			
				|  |  | +            code: query.code ? query.code : null,
 | 
	
		
			
				|  |  |              codeText: '获取验证码',
 | 
	
		
			
				|  |  |              countDownTime: 1000 * 120, // 倒计时时间
 | 
	
		
			
				|  |  |              isClick: false,
 | 
	
		
			
				|  |  | -            agreeStatus: false
 | 
	
		
			
				|  |  | +            agreeStatus: query.agreeStatus ? query.agreeStatus : false
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      mounted() {
 | 
	
	
		
			
				|  | @@ -60,10 +63,15 @@ export default {
 | 
	
		
			
				|  |  |              }, 100);
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          onToProtocol() {
 | 
	
		
			
				|  |  | +            localStorage.setItem('getRegister', JSON.stringify({
 | 
	
		
			
				|  |  | +                phoneNumber: this.phoneNumber,
 | 
	
		
			
				|  |  | +                code: this.code,
 | 
	
		
			
				|  |  | +                agreeStatus: this.agreeStatus
 | 
	
		
			
				|  |  | +            }))
 | 
	
		
			
				|  |  |              this.$router.push({
 | 
	
		
			
				|  |  |                  path: '/userProtocol',
 | 
	
		
			
				|  |  |                  query: {
 | 
	
		
			
				|  |  | -                    groupId: this.groupId
 | 
	
		
			
				|  |  | +                    groupId: this.groupId,
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |          },
 |