Browse Source

去除客服电话的输入

wzy 4 months ago
parent
commit
c42a6fca0d
3 changed files with 31 additions and 20 deletions
  1. 2 0
      .gitignore
  2. 14 10
      src/views/moblie/mEnterprise.vue
  3. 15 10
      src/views/moblie/mUinitBusiness.vue

+ 2 - 0
.gitignore

@@ -1,5 +1,7 @@
 .DS_Store
 node_modules/
+# Ignore node_modules folder  
+node_modules/
 dist/
 .vscode/
 

+ 14 - 10
src/views/moblie/mEnterprise.vue

@@ -17,10 +17,11 @@
               <div class="labelTit"><label><i>*</i>店铺名称:</label></div>
               <input type="text" v-model="personalForm.shopName" placeholder="请输入店铺名称">
             </div>
-            <div class="inputItem">
+            <!-- 去除客服电话,但是在提交信息的时候对客服电话赋值为负责人电话 -->
+            <!-- <div class="inputItem">
               <div class="labelTit"><label><i>*</i>客服电话:</label></div>
               <input type="text" v-model="personalForm.servicePhone" placeholder="请输入客服电话">
-            </div>
+            </div> -->
             <div class="inputItem">
               <div class="labelTit"><label><i>*</i>店铺负责人:</label></div>
               <input type="text" v-model="personalForm.chargePersonName" placeholder="请输入店铺负责人">
@@ -685,19 +686,20 @@ export default {
       subData.shopAdress = ''
       let reg = /^1[13456789]\d{9}$/
       var idReg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
-      subData.shopPhone = subData.servicePhone
+      //  赋值为负责人电话
+      subData.shopPhone = subData.chargePersonPhone
       subData.shopAdress = `${self.shopAdress},${subData.storeAddressDetail}`
       if (subData.shopName === '') {
         Toast.fail('请输入店铺名称')
         return false
       }
-      if (subData.servicePhone === '') {
-        Toast.fail('请输入客服电话')
-        return false
-      } else if (!reg.test(subData.servicePhone)) {
-        Toast.fail('客服电话号格式错误')
-        return false
-      }
+      // if (subData.servicePhone === '') {
+      //   Toast.fail('请输入客服电话')
+      //   return false
+      // } else if (!reg.test(subData.servicePhone)) {
+      //   Toast.fail('客服电话号格式错误')
+      //   return false
+      // }
       if (subData.shopType === '1') {
 				if (!subData.classificationIdMall) {
 					Toast.fail('请选择商城店铺所属分类')
@@ -746,6 +748,8 @@ export default {
         Toast.fail('请输入店铺负责人')
         return false
       }
+      // 客服电话和负责人电话一致
+      subData.servicePhone = subData.chargePersonPhone
       if (subData.chargePersonPhone === '') {
         Toast.fail('请输入负责人电话')
         return false

+ 15 - 10
src/views/moblie/mUinitBusiness.vue

@@ -17,10 +17,11 @@
               <div class="labelTit"><label><i>*</i>店铺名称:</label></div>
               <input type="text" v-model="personalForm.shopName" placeholder="请输入店铺名称">
             </div>
-            <div class="inputItem">
+            <!--  去除客服电话,但是在提交信息的时候对客服电话赋值为负责人电话 -->
+            <!-- <div class="inputItem">
               <div class="labelTit"><label><i>*</i>客服电话:</label></div>
               <input type="text" v-model="personalForm.servicePhone" placeholder="请输入客服电话">
-            </div>
+            </div> -->
             <div class="inputItem">
               <div class="labelTit"><label><i>*</i>店铺负责人:</label></div>
               <input type="text" v-model="personalForm.chargePersonName" placeholder="请输入店铺负责人">
@@ -741,23 +742,27 @@ export default {
       subData.shopAdress = ''
       let reg = /^1[13456789]\d{9}$/
       var idReg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
-      subData.shopPhone = subData.servicePhone
+      //  赋值为负责人电话
+      subData.shopPhone = subData.chargePersonPhone
       subData.shopAdress = `${self.shopAdress},${subData.storeAddressDetail}`
       if (subData.shopName === '') {
         Toast.fail('请输入店铺名称')
         return false
       }
-      if (subData.servicePhone === '') {
-        Toast.fail('请输入客服电话')
-        return false
-      } else if (!reg.test(subData.servicePhone)) {
-        Toast.fail('客服电话号格式错误')
-        return false
-      }
+      
+      // if (subData.servicePhone === '') {
+      //   Toast.fail('请输入客服电话')
+      //   return false
+      // } else if (!reg.test(subData.servicePhone)) {
+      //   Toast.fail('客服电话号格式错误')
+      //   return false
+      // }
       if (subData.chargePersonName === '') {
         Toast.fail('请输入店铺负责人')
         return false
       }
+      // 客服电话和负责人电话一致
+      subData.servicePhone = subData.chargePersonPhone
       if (subData.chargePersonPhone === '') {
         Toast.fail('请输入负责人电话')
         return false