瀏覽代碼

h5buildingId

xujing 5 年之前
父節點
當前提交
9401443256
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/pages/project/h5Page.js

+ 1
- 1
src/pages/project/h5Page.js 查看文件

@@ -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: '获取手机号失败',