xujing 5 lat temu
rodzic
commit
8743b539dd
4 zmienionych plików z 34 dodań i 16 usunięć
  1. 5
    5
      config/prod.js
  2. 1
    1
      ext.json
  3. 1
    1
      project.config.json
  4. 27
    9
      src/onlineSelling/pages/live/index.js

+ 5
- 5
config/prod.js Wyświetl plik

@@ -7,15 +7,15 @@ module.exports = {
7 7
     // WSS_HOST: '"ws://192.168.2.52:8080"',
8 8
     // HOST: '"https://dev.pawoma.cn"',// 新测试
9 9
     // WSS_HOST: '"wss://dev.pawoma.cn"',
10
-    // HOST: '"https://dev.fangdeal.cn"',//测试
11
-    // WSS_HOST: '"wss://dev.fangdeal.cn"',
12
-    HOST: '"https://wx.fangdeal.cn"',//正式
13
-    WSS_HOST: '"wss://wx.fangdeal.cn"',
10
+    HOST: '"https://dev.fangdeal.cn"',//测试
11
+    WSS_HOST: '"wss://dev.fangdeal.cn"',
12
+    // HOST: '"https://wx.fangdeal.cn"',//正式
13
+    // WSS_HOST: '"wss://wx.fangdeal.cn"',
14 14
     // HOST: '"https://lt.pawoma.cn"',
15 15
     // WSS_HOST: '"wss://lt.pawoma.cn"',
16 16
     OSS_PATH: 'https://njcj.oss-cn-shanghai.aliyuncs.com/',
17 17
     OSS_FAST_PATH: 'https://njcj.oss-accelerate.aliyuncs.com/',
18
-    Version: 'V3.5.19'
18
+    Version: 'V3.5.22'
19 19
   },
20 20
   weapp: {},
21 21
   h5: {}

+ 1
- 1
ext.json Wyświetl plik

@@ -1,5 +1,5 @@
1 1
 {
2 2
   "extEnable": true,
3
-  "extAppid": "wxda1f84b79b3edeb3",
3
+  "extAppid": "wxbbb069a341055ef0",
4 4
   "ext": {}
5 5
 }

+ 1
- 1
project.config.json Wyświetl plik

@@ -2,7 +2,7 @@
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "mini-chengjiao",
4 4
 	"description": "知与行互动",
5
-	"appid": "wxd9ee3a9480a4e544",
5
+	"appid": "wxbbb069a341055ef0",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8 8
 		"es6": false,

+ 27
- 9
src/onlineSelling/pages/live/index.js Wyświetl plik

@@ -21,15 +21,15 @@ import './index.scss'
21 21
 const bgImg = "https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/images/helpgroup/bg.png"
22 22
 
23 23
 @connect(s => s.user)
24
-@withDetail({
25
-  track: {
26
-    event: 'detail',
27
-    eventType: 'activity',
28
-    targetType: 'live',
29
-    propertyName: '查看直播详情页',
30
-    data: '{}',
31
-  }
32
-})
24
+// @withDetail({
25
+//   track: {
26
+//     event: 'detail',
27
+//     eventType: 'activity',
28
+//     targetType: 'live',
29
+//     propertyName: '查看直播详情页',
30
+//     data: '{}',
31
+//   }
32
+// })
33 33
 export default class livePage extends Component {
34 34
   config = {
35 35
     navigationBarTitleText: '直播活动详情',
@@ -46,6 +46,7 @@ export default class livePage extends Component {
46 46
     consultData: {}, // 分享的置业顾问信息
47 47
     consultShow: false,  // 置业顾问悬浮框显示隐藏
48 48
     noRecord: false,
49
+    recordId: undefined, // 埋点ID
49 50
   }
50 51
 
51 52
 
@@ -102,6 +103,10 @@ export default class livePage extends Component {
102 103
     this._$_dataReady()
103 104
   }
104 105
 
106
+  componentWillUnmount() {
107
+    const { recordId } = this.state
108
+    recordId && updatePoint(recordId)
109
+  }
105 110
 
106 111
   anotherInfo(id) {
107 112
 
@@ -124,6 +129,19 @@ export default class livePage extends Component {
124 129
         liveDetail: res || {},
125 130
         noRecord: res.status == '1' ? false : true
126 131
       })
132
+      savePoint({
133
+        event: 'detail',
134
+        eventType: 'activity',
135
+        targetType: 'live',
136
+        targetId:res.liveActivityId,
137
+        propertyName: '查看直播详情页',
138
+        data: '{}',
139
+      }).then(res => {
140
+        this.setState({
141
+          recordId: res.recordId
142
+        })
143
+        console.log('直播详情页')
144
+      })
127 145
       Taro.hideToast()
128 146
       const { templates = [], posterImg = '' } = (res.posters || [])[0]
129 147