Explorar o código

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

wangguoyu hai 5 días
pai
achega
533d0647d0
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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: "请勾选本人同意!",