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