Browse Source

h5buildingId

xujing 5 years ago
parent
commit
9401443256
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/pages/project/h5Page.js

+ 1
- 1
src/pages/project/h5Page.js View File

@@ -311,7 +311,7 @@ export default class Index extends Component {
311 311
   // 授权手机号
312 312
   getPhoneNumber(e) {
313 313
     const { buildingId } = this.state
314
-    getUserPhone(e, { buildingId: buildingId }, (phoneNumber) => {
314
+    getUserPhone(e, { buildingId: buildingId || '' }, (phoneNumber) => {
315 315
       if (!phoneNumber) {
316 316
         Taro.showToast({
317 317
           title: '获取手机号失败',