wgl 4 年之前
父节点
当前提交
7657ef6f6e

+ 6 - 1
src/projects/home/views/Register/Business/Step4.vue

@@ -52,7 +52,7 @@
 				</form>
 			</div>
 			<div class="vongi-xieyii mui-radio">
-				<input name="radio1" type="radio">
+				<input name="radio1" v-model="agreement" type="radio" value="1">
 				我已阅读并同意<router-link :to="{name:'RegisterAgreement'}" class="color4fc5f7">《用户使用协议》</router-link>
 			</div>
 			<div class="vongi-btn vongi-login-btn">
@@ -139,6 +139,8 @@
 					infoTrue: true,
 					fixedNumber: [5, 7]
 				},
+
+				agreement: 0,
 			}
 		},
 		created() {
@@ -215,6 +217,9 @@
 				} else if (!this.subForm.faceImageUrl) {
 					mui.toast('请上传人脸照片');
 					return false;
+				} else if (!this.agreement) {
+					mui.toast('请同意协议');
+					return false;
 				} else {
 					return true;
 				}

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

@@ -60,7 +60,7 @@
 				</form>
 			</div>
 			<div class="vongi-xieyii mui-radio">
-				<input name="radio1" type="radio">
+				<input name="radio1" v-model="agreement" type="radio" value="1">
 				我已阅读并同意<router-link :to="{name:'RegisterAgreement'}" class="color4fc5f7">《用户使用协议》</router-link>
 			</div>
 			<div class="vongi-btn vongi-login-btn">
@@ -149,6 +149,8 @@
 					infoTrue: true,
 					fixedNumber: [5, 7]
 				},
+				
+				agreement: 0,
 			}
 		},
 		created() {
@@ -225,7 +227,10 @@
 				} else if (!this.subForm.faceImageUrl) {
 					mui.toast('请上传人脸照片');
 					return false;
-				} else {
+				} else if (!this.agreement) {
+					mui.toast('请同意协议');
+					return false;
+				}  else {
 					return true;
 				}
 			},

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

@@ -52,7 +52,7 @@
 				</form>
 			</div>
 			<div class="vongi-xieyii mui-radio">
-				<input name="radio1" type="radio">
+				<input name="radio1" v-model="agreement" type="radio" value="1">
 				我已阅读并同意<router-link :to="{name:'RegisterAgreement'}" class="color4fc5f7">《用户使用协议》</router-link>
 			</div>
 			<div class="vongi-btn vongi-login-btn">
@@ -134,6 +134,8 @@
 					infoTrue: true,
 					fixedNumber: [5, 7]
 				},
+
+				agreement: 0,
 			}
 		},
 		created() {
@@ -210,6 +212,9 @@
 				} else if (!this.subForm.faceImageUrl) {
 					mui.toast('请上传人脸照片');
 					return false;
+				} else if (!this.agreement) {
+					mui.toast('请同意协议');
+					return false;
 				} else {
 					return true;
 				}