Browse Source

注册新身份页面跳转

wgl 4 năm trước cách đây
mục cha
commit
3a39c0fc01

+ 11 - 5
src/projects/home/views/Register/Business/Step4.vue

@@ -209,11 +209,17 @@
 					API_Person.register(this.subForm).then(response => {
 						this.isLoading = false;
 
-						mui.toast('提交成功,等待审核中');
-						this.$router.push({
-							name: 'UserLogin',
-							project: 'business'
-						})
+						if (this.person_data) {
+							mui.toast('提交成功');
+							//跳转到项目主页上去
+							window.location.href = '../business/#/master';
+						} else {
+							mui.toast('提交成功,等待审核中');
+							this.$router.push({
+								name: 'UserLogin',
+								project: 'business'
+							})
+						}
 
 					}).catch(error => {
 						this.isLoading = false;

+ 14 - 7
src/projects/home/views/Register/Pension/Step4.vue

@@ -138,7 +138,7 @@
 		},
 		created() {
 			this.subForm = this.register_form_data;
-			
+
 			if (this.person_data) {
 				this.subForm.name = this.subForm.name ? this.subForm.name : this.person_data.name;
 				this.subForm.telephone = this.subForm.telephone ? this.subForm.telephone : this.person_data.phone;
@@ -217,11 +217,18 @@
 					API_Person.register(this.subForm).then(response => {
 						this.isLoading = false;
 
-						mui.toast('提交成功,等待审核中');
-						this.$router.push({
-							name: 'UserLogin',
-							project: 'pension'
-						})
+						if (this.person_data) {
+							mui.toast('提交成功');
+							//跳转到项目主页上去
+							window.location.href = '../pension/#/master';
+						} else {
+							mui.toast('提交成功,等待审核中');
+							this.$router.push({
+								name: 'UserLogin',
+								project: 'pension'
+							})
+						}
+
 
 					}).catch(error => {
 						this.isLoading = false;
@@ -232,7 +239,7 @@
 			//弹出提示
 			alertTips() {
 				mui.alert('照片将用于人脸识别设备,请上传清晰的免冠登记照或肩部以上近照。', ' ', function() {
-			
+
 				});
 			},
 			asynCallBack() {

+ 12 - 6
src/projects/home/views/Register/Residence/Step4.vue

@@ -125,7 +125,7 @@
 		},
 		created() {
 			this.subForm = this.register_form_data;
-			
+
 			if (this.person_data) {
 				this.subForm.name = this.subForm.name ? this.subForm.name : this.person_data.name;
 				this.subForm.telephone = this.subForm.telephone ? this.subForm.telephone : this.person_data.phone;
@@ -204,11 +204,17 @@
 					API_Person.register(this.subForm).then(response => {
 						this.isLoading = false;
 
-						mui.toast('提交成功,等待审核中');
-						this.$router.push({
-							name: 'UserLogin',
-							project: 'business'
-						})
+						if (this.person_data) {
+							mui.toast('提交成功');
+							//跳转到项目主页上去
+							window.location.href = '../business/#/master';
+						} else {
+							mui.toast('提交成功,等待审核中');
+							this.$router.push({
+								name: 'UserLogin',
+								project: 'business'
+							})
+						}
 
 					}).catch(error => {
 						this.isLoading = false;