Bladeren bron

提交订单自动带出手机号优化

lhm 3 jaren geleden
bovenliggende
commit
c46252b2fd
1 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. 5 1
      kmall-admin/src/main/webapp/js/sale/sale.js

+ 5 - 1
kmall-admin/src/main/webapp/js/sale/sale.js

@@ -965,7 +965,11 @@ let vm = new Vue({
             // 每次点击提交订单的时候清空姓名和身份证信息和手机号
             vm.$refs.customName.value = "";
             vm.$refs.customIDCard.value = "";
-            vm.$refs.customPhone.value = vm.userInfo.customPhone;
+            let customPhone = vm.userInfo.customPhone;
+            if (customPhone === null || typeof customPhone === 'undefined') {
+                customPhone = '';
+            }
+            vm.$refs.customPhone.value = customPhone;
             vm.$refs.couponBarCode.value = "";
             if(vm.$refs.couponSn)
                 vm.$refs.couponSn.value = "";