xujing před 5 roky
rodič
revize
24b2b2f5f8
1 změnil soubory, kde provedl 12 přidání a 2 odebrání
  1. 12
    2
      src/pages/project/h5Page.js

+ 12
- 2
src/pages/project/h5Page.js Zobrazit soubor

311
   }
311
   }
312
   // 授权手机号
312
   // 授权手机号
313
   getPhoneNumber(e) {
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
       if (!phoneNumber) {
326
       if (!phoneNumber) {
317
         Taro.showToast({
327
         Taro.showToast({
318
           title: '获取手机号失败',
328
           title: '获取手机号失败',