|
@@ -311,8 +311,18 @@ export default class Index extends Component {
|
311
|
311
|
}
|
312
|
312
|
// 授权手机号
|
313
|
313
|
getPhoneNumber(e) {
|
314
|
|
- const { buildingId } = this.state
|
315
|
|
- getUserPhone(e, { buildingId: buildingId || '' }, (phoneNumber) => {
|
|
314
|
+ const { buildingId, pageInfo } = this.state
|
|
315
|
+ const loadOptions = wx.getLaunchOptionsSync()
|
|
316
|
+ const achieveParams = {
|
|
317
|
+ buildingId: buildingId || '',
|
|
318
|
+ targetName: pageInfo.name || '',
|
|
319
|
+ targetType: 'h5',
|
|
320
|
+ targetId: pageInfo.drainageId || '',
|
|
321
|
+ promoter: Taro.getStorageSync('recommender'),
|
|
322
|
+ sceneId: loadOptions.scene
|
|
323
|
+ }
|
|
324
|
+ console.log(achieveParams, "achieveParamsachieveParamsachieveParamsachieveParams")
|
|
325
|
+ getUserPhone(e, achieveParams, (phoneNumber) => {
|
316
|
326
|
if (!phoneNumber) {
|
317
|
327
|
Taro.showToast({
|
318
|
328
|
title: '获取手机号失败',
|