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