Browse Source

1 if(this.formData.gender == 0){
uni.showToast({
title: 请选择性别,
icon: 'none',
duration: 2000
})
return false
}

wangguoyu 4 days ago
parent
commit
533d0647d0
1 changed files with 8 additions and 0 deletions
  1. 8 0
      pages/admin/Jiazheng/gerenZiliao.vue

+ 8 - 0
pages/admin/Jiazheng/gerenZiliao.vue

@@ -692,6 +692,14 @@
 				if (!this.checkAllFields()) {
 					return false
 				}
+				if(this.formData.gender == 0){
+					uni.showToast({
+						title: "请选择性别",
+						icon: 'none',
+						duration: 2000
+					})
+					return false
+				}
 				if (!this.formData.agree) {
 					uni.showToast({
 						title: "请勾选本人同意!",