瀏覽代碼

fix:手机号必填提示

Signed-off-by: tsz <2417024719@qq.com>
tsz 1 年之前
父節點
當前提交
b962cdfd82
共有 1 個文件被更改,包括 14 次插入10 次删除
  1. 14 10
      src/web/templates/frontRouter/wx/bigmember/free/perfect_info_market.html

+ 14 - 10
src/web/templates/frontRouter/wx/bigmember/free/perfect_info_market.html

@@ -1124,11 +1124,13 @@
                   this.infoCheckMap.phone = '该手机号已报名'
                   this.haveSamePhone = true
                 } else {
-                  this.infoCheckMap.phone = ''
-                  this.infoOtherCheckMap.forEach(v => {
-                    v.phone = ''
-                  });
-                  this.haveSamePhone = false
+                  if(!this.infoCheckMap.phone) {
+                    this.infoCheckMap.phone = ''
+                    this.infoOtherCheckMap.forEach(v => {
+                      v.phone = ''
+                    });
+                    this.haveSamePhone = false
+                  }
                 }
               }
               break
@@ -1191,11 +1193,13 @@
                   this.infoOtherCheckMap[sameIndex - 1].phone = '该手机号已报名'
                   this.haveSamePhone = true
                 } else {
-                  this.infoCheckMap.phone = ''
-                  this.infoOtherCheckMap.forEach(v => {
-                    v.phone = ''
-                  });
-                  this.haveSamePhone = false
+                  if(!this.infoOtherCheckMap[index].phone) {
+                    this.infoCheckMap.phone = ''
+                    this.infoOtherCheckMap.forEach(v => {
+                      v.phone = ''
+                    });
+                    this.haveSamePhone = false
+                  }
                 }
               }
               break