浏览代码

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

wangguoyu 4 周之前
父节点
当前提交
a8d39d36ab
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      pages/admin/Jiazheng/gerenZiliao.vue

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

@@ -676,6 +676,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: "请勾选本人同意!",