Browse Source

Merge branch 'master' of hyq/kmall-pt into master

黄亚琴 6 years ago
parent
commit
12661e5c48
1 changed files with 6 additions and 4 deletions
  1. 6 4
      wx-mall/pages/shopping/checkout/checkout.js

+ 6 - 4
wx-mall/pages/shopping/checkout/checkout.js

@@ -118,9 +118,11 @@ Page({
             addressVo: res.data.addressVo
           });
         } 
-        that.setData({
-          idNoM: that.formatidcard(that.data.idNo)
-        });
+        if (that.data.idNo) {
+          that.setData({
+            idNoM: that.formatidcard(that.data.idNo)
+          });
+        }
         if(that.data.idNo){
           that.setData({
             idNoDisabled: true
@@ -321,7 +323,7 @@ Page({
           checkStore: true
         });
       } else{
-        console.log(res.errmsg);
+        // console.log(res.errmsg);
         // util.showErrorToast(res.errmsg);
         that.setData({
           checkStore: false