Browse Source

推广者信息传值

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

+ 2 - 1
src/projects/home/views/Register/Business/Step1.vue

@@ -91,7 +91,8 @@
 					selectCompanyStructureList: [],
 					address: '',
 					idCard: '',
-					faceImageUrl: ''
+					faceImageUrl: '',
+					popularizePersonId: ''
 				},
 
 				isLoading: false,

+ 2 - 1
src/projects/home/views/Register/Business/Step2.vue

@@ -100,7 +100,8 @@
 					selectCompanyStructureList: [],
 					address: '',
 					idCard: '',
-					faceImageUrl: ''
+					faceImageUrl: '',
+					popularizePersonId: ''
 				},
 
 				isLoading: false,

+ 2 - 1
src/projects/home/views/Register/Business/Step3.vue

@@ -76,7 +76,8 @@
 					selectCompanyStructureList: [],
 					address: '',
 					idCard: '',
-					faceImageUrl: ''
+					faceImageUrl: '',
+					popularizePersonId: ''
 				},
 
 				isLoading: false,

+ 16 - 2
src/projects/home/views/Register/Business/Step4.vue

@@ -43,6 +43,14 @@
 					</div>
 				</form>
 			</div>
+			<div class="mui-content-padded vongi-qingjiadt vongi-editme marginbo">
+				<form class="mui-input-group">
+					<div class="mui-input-row">
+						<label>推广者id</label>
+						<input v-model="subForm.popularizePersonId" type="text" class="mui-input-clear" placeholder="请输入推广者id">
+					</div>
+				</form>
+			</div>
 			<form class="mui-input-group vongi-xieyi">
 				<div class="mui-input-row mui-radio mui-left">
 					<label class="mui-h6">我已阅读并同意<span class="color4fc5f7">《用户使用协议》</span></label>
@@ -106,7 +114,8 @@
 					selectCompanyStructureList: [],
 					address: '',
 					idCard: '',
-					faceImageUrl: ''
+					faceImageUrl: '',
+					popularizePersonId: ''
 				},
 
 				isLoading: false,
@@ -143,6 +152,10 @@
 				this.subForm.idCard = this.subForm.idCard ? this.subForm.idCard : this.person_data.idCard;
 				this.subForm.faceImageUrl = this.subForm.faceImageUrl ? this.subForm.faceImageUrl : this.person_data.faceImageUrl;
 			}
+
+			if (this.invitation_code) {
+				this.subForm.popularizePersonId = this.invitation_code;
+			}
 		},
 		methods: {
 			//微信选择图片
@@ -279,7 +292,8 @@
 				token: 'token',
 				person_data: 'person_data',
 				person_popedom: 'person_popedom',
-				register_form_data: 'register_form_data'
+				register_form_data: 'register_form_data',
+				invitation_code: 'invitation_code',
 			})
 		}
 	}

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

@@ -81,7 +81,8 @@
 					selectCompanyStructureList: [],
 					address: '',
 					idCard: '',
-					faceImageUrl: ''
+					faceImageUrl: '',
+					popularizePersonId: ''
 				},
 
 				isLoading: false,

+ 2 - 1
src/projects/home/views/Register/Pension/Step1.vue

@@ -111,7 +111,8 @@
 					selectCompanyStructureList: [],
 					address: '',
 					idCard: '',
-					faceImageUrl: ''
+					faceImageUrl: '',
+					popularizePersonId: ''
 				},
 
 				isLoading: false,

+ 2 - 1
src/projects/home/views/Register/Pension/Step3_4.vue

@@ -57,7 +57,8 @@
 					selectCompanyStructureList: [],
 					address: '',
 					idCard: '',
-					faceImageUrl: ''
+					faceImageUrl: '',
+					popularizePersonId: ''
 				},
 
 				isLoading: false,

+ 16 - 2
src/projects/home/views/Register/Pension/Step4.vue

@@ -51,6 +51,14 @@
 					</div>
 				</form>
 			</div>
+			<div class="mui-content-padded vongi-qingjiadt vongi-editme marginbo">
+				<form class="mui-input-group">
+					<div class="mui-input-row">
+						<label>推广者id</label>
+						<input v-model="subForm.popularizePersonId" type="text" class="mui-input-clear" placeholder="请输入推广者id">
+					</div>
+				</form>
+			</div>
 			<form class="mui-input-group vongi-xieyi">
 				<div class="mui-input-row mui-radio mui-left">
 					<label class="mui-h6">我已阅读并同意<span class="color4fc5f7">《用户使用协议》</span></label>
@@ -116,7 +124,8 @@
 					selectCompanyStructureList: [],
 					address: '',
 					idCard: '',
-					faceImageUrl: ''
+					faceImageUrl: '',
+					popularizePersonId: ''
 				},
 
 				isLoading: false,
@@ -153,6 +162,10 @@
 				this.subForm.idCard = this.subForm.idCard ? this.subForm.idCard : this.person_data.idCard;
 				this.subForm.faceImageUrl = this.subForm.faceImageUrl ? this.subForm.faceImageUrl : this.person_data.faceImageUrl;
 			}
+
+			if (this.invitation_code) {
+				this.subForm.popularizePersonId = this.invitation_code;
+			}
 		},
 		methods: {
 			//微信选择图片
@@ -306,7 +319,8 @@
 				token: 'token',
 				person_data: 'person_data',
 				person_popedom: 'person_popedom',
-				register_form_data: 'register_form_data'
+				register_form_data: 'register_form_data',
+				invitation_code: 'invitation_code'
 			})
 		}
 	}

+ 2 - 1
src/projects/home/views/Register/Residence/Step1.vue

@@ -92,7 +92,8 @@
 					selectCompanyStructureList: [],
 					address: '',
 					idCard: '',
-					faceImageUrl: ''
+					faceImageUrl: '',
+					popularizePersonId: ''
 				},
 
 				isLoading: false,

+ 2 - 1
src/projects/home/views/Register/Residence/Step2.vue

@@ -102,7 +102,8 @@
 					selectCompanyStructureList: [],
 					address: '',
 					idCard: '',
-					faceImageUrl: ''
+					faceImageUrl: '',
+					popularizePersonId: ''
 				},
 
 				isLoading: false,

+ 2 - 1
src/projects/home/views/Register/Residence/Step3.vue

@@ -74,7 +74,8 @@
 					selectCompanyStructureList: [],
 					address: '',
 					idCard: '',
-					faceImageUrl: ''
+					faceImageUrl: '',
+					popularizePersonId: ''
 				},
 
 				isLoading: false,

+ 16 - 2
src/projects/home/views/Register/Residence/Step4.vue

@@ -43,6 +43,14 @@
 					</div>
 				</form>
 			</div>
+			<div class="mui-content-padded vongi-qingjiadt vongi-editme marginbo">
+				<form class="mui-input-group">
+					<div class="mui-input-row">
+						<label>推广者id</label>
+						<input v-model="subForm.popularizePersonId" type="text" class="mui-input-clear" placeholder="请输入推广者id">
+					</div>
+				</form>
+			</div>
 			<form class="mui-input-group vongi-xieyi">
 				<div class="mui-input-row mui-radio mui-left">
 					<label class="mui-h6">我已阅读并同意<span class="color4fc5f7">《用户使用协议》</span></label>
@@ -101,7 +109,8 @@
 					selectCompanyStructureList: [],
 					address: '',
 					idCard: '',
-					faceImageUrl: ''
+					faceImageUrl: '',
+					popularizePersonId: ''
 				},
 
 				isLoading: false,
@@ -138,6 +147,10 @@
 				this.subForm.idCard = this.subForm.idCard ? this.subForm.idCard : this.person_data.idCard;
 				this.subForm.faceImageUrl = this.subForm.faceImageUrl ? this.subForm.faceImageUrl : this.person_data.faceImageUrl;
 			}
+
+			if (this.invitation_code) {
+				this.subForm.popularizePersonId = this.invitation_code;
+			}
 		},
 		methods: {
 			//微信选择图片
@@ -273,7 +286,8 @@
 				token: 'token',
 				person_data: 'person_data',
 				person_popedom: 'person_popedom',
-				register_form_data: 'register_form_data'
+				register_form_data: 'register_form_data',
+				invitation_code: 'invitation_code'
 			})
 		}
 	}