xiaoe_mp_npm 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,13 +20,13 @@ Component(
20
20
  return data.resultInfo.is_win
21
21
  }
22
22
  },
23
- observers: {
24
- visible(val) {
25
- if (val && this.data.isWin) {
26
- this.reportData()
27
- }
28
- }
29
- },
23
+ // observers: {
24
+ // visible(val) {
25
+ // if (val && this.data.isWin) {
26
+ // this.reportData()
27
+ // }
28
+ // }
29
+ // },
30
30
  lifetimes: {
31
31
  attached() {}
32
32
  },
@@ -36,21 +36,21 @@ Component(
36
36
  type: visible ? 'show_lottery_result' : 'hide_lottery_result'
37
37
  })
38
38
  },
39
- reportData() {
40
- const data = {
41
- page_id: 'e_alive#mini#first#alive_room',
42
- page_name: this.data.baseInfo.title,
43
- page_module: '中奖页面',
44
- l_program: '鹅直播',
45
- current_role: this.data.baseInfo.user_type === 0 ? 'C端用户' : '讲师',
46
- type: this.data.baseInfo.alive_mode === 0 ? '横屏' : '竖屏',
47
- h_live_state: this.data.baseInfo.alive_state,
48
- c_user_id: this.data.baseInfo.user_id,
49
- app_id: this.data.baseInfo.app_id
50
- }
51
- sensorLog.sensors.track('view_page', data)
52
- console.log('reportData:', data)
53
- }
39
+ // reportData() {
40
+ // const data = {
41
+ // page_id: 'e_alive#mini#first#alive_room',
42
+ // page_name: this.data.baseInfo.title,
43
+ // page_module: '中奖页面',
44
+ // l_program: '鹅直播',
45
+ // current_role: this.data.baseInfo.user_type === 0 ? 'C端用户' : '讲师',
46
+ // type: this.data.baseInfo.alive_mode === 0 ? '横屏' : '竖屏',
47
+ // h_live_state: this.data.baseInfo.alive_state,
48
+ // c_user_id: this.data.baseInfo.user_id,
49
+ // app_id: this.data.baseInfo.app_id
50
+ // }
51
+ // sensorLog.sensors.track('view_page', data)
52
+ // console.log('reportData:', data)
53
+ // }
54
54
  }
55
55
  })
56
56
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaoe_mp_npm",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -20,13 +20,13 @@ Component(
20
20
  return data.resultInfo.is_win
21
21
  }
22
22
  },
23
- observers: {
24
- visible(val) {
25
- if (val && this.data.isWin) {
26
- this.reportData()
27
- }
28
- }
29
- },
23
+ // observers: {
24
+ // visible(val) {
25
+ // if (val && this.data.isWin) {
26
+ // this.reportData()
27
+ // }
28
+ // }
29
+ // },
30
30
  lifetimes: {
31
31
  attached() {}
32
32
  },
@@ -36,21 +36,21 @@ Component(
36
36
  type: visible ? 'show_lottery_result' : 'hide_lottery_result'
37
37
  })
38
38
  },
39
- reportData() {
40
- const data = {
41
- page_id: 'e_alive#mini#first#alive_room',
42
- page_name: this.data.baseInfo.title,
43
- page_module: '中奖页面',
44
- l_program: '鹅直播',
45
- current_role: this.data.baseInfo.user_type === 0 ? 'C端用户' : '讲师',
46
- type: this.data.baseInfo.alive_mode === 0 ? '横屏' : '竖屏',
47
- h_live_state: this.data.baseInfo.alive_state,
48
- c_user_id: this.data.baseInfo.user_id,
49
- app_id: this.data.baseInfo.app_id
50
- }
51
- sensorLog.sensors.track('view_page', data)
52
- console.log('reportData:', data)
53
- }
39
+ // reportData() {
40
+ // const data = {
41
+ // page_id: 'e_alive#mini#first#alive_room',
42
+ // page_name: this.data.baseInfo.title,
43
+ // page_module: '中奖页面',
44
+ // l_program: '鹅直播',
45
+ // current_role: this.data.baseInfo.user_type === 0 ? 'C端用户' : '讲师',
46
+ // type: this.data.baseInfo.alive_mode === 0 ? '横屏' : '竖屏',
47
+ // h_live_state: this.data.baseInfo.alive_state,
48
+ // c_user_id: this.data.baseInfo.user_id,
49
+ // app_id: this.data.baseInfo.app_id
50
+ // }
51
+ // sensorLog.sensors.track('view_page', data)
52
+ // console.log('reportData:', data)
53
+ // }
54
54
  }
55
55
  })
56
56
  )