wgl il y a 4 ans
Parent
commit
c1dbb0f89c

+ 1 - 1
src/projects/home/views/Register/Home.vue

@@ -51,7 +51,7 @@
 					personRoleId: '',
 					roleName: '',
 					name: '',
-					telephone: '',
+					telephone: this.$route.query.telephone,
 					personId: '',
 					companyId: '',
 					companyName: '请选择',

+ 5 - 2
src/projects/home/views/User/Login.vue

@@ -180,12 +180,15 @@
 			},
 			//注册
 			confirmRegister() {
+				var _this = this;
 				var btnArray = ['否', '是'];
 				mui.confirm('当前用户不存在,是否立即注册?', '提示', btnArray, function(e) {
 					if (e.index == 1) {
-						this.$router.push({
+						_this.$router.push({
 							name: 'RegisterHome',
-							query: {}
+							query: {
+								telephone: _this.subForm.phone
+							}
 						})
 					}
 				})