张延森 4 年 前
コミット
2c7a33ac52
共有1 個のファイルを変更した4 個の追加0 個の削除を含む
  1. 4
    0
      src/components/MainPage/index.vue

+ 4
- 0
src/components/MainPage/index.vue ファイルの表示

@@ -141,6 +141,10 @@ export default {
141 141
       }
142 142
     },
143 143
     GetUserPhone (e) {
144
+      if (e.detail.errMsg !== 'getPhoneNumber:ok') {
145
+        return
146
+      }
147
+
144 148
       for (let key in this.WxInfoData) {
145 149
         this.WxInfoData[key] = e.detail[key]
146 150
       }