Переглянути джерело

fix:手机号必填提示

Signed-off-by: tsz <2417024719@qq.com>
tsz 1 рік тому
батько
коміт
b962cdfd82

+ 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