张延森 4 anos atrás
pai
commit
2c7a33ac52
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      src/components/MainPage/index.vue

+ 4
- 0
src/components/MainPage/index.vue Ver arquivo

@@ -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
       }