Kaynağa Gözat

小程序管理确认订单页面修改

hyq 6 yıl önce
ebeveyn
işleme
77aa4de994
1 değiştirilmiş dosya ile 6 ekleme ve 4 silme
  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