@conecli/cone-render 0.8.22-beta.0 → 0.8.22-beta.2

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.
@@ -1 +1 @@
1
- import track from '../../../open/api/track'
2
1
  const {arr : arrTask, startWaitTime} = floorTask
3
2
  const isTimeout = startWaitTime != 0 && (Date.now() - startWaitTime >= 1000)
4
3
  const isOverMax = arrTask.length >= 10
5
4
  const hasData = arrTask.length > 0
6
5
  if(hasData && (isTimeout || isOverMax)){
7
6
  const reduceData = connactData(arrTask)
8
7
  track.reportExposureEventLog(reduceData)
9
8
  floorTask.arr = []
10
9
  floorTask.startWaitTime = 0
11
10
  clearTimeout(floorTask.timer)
12
11
  }
13
12
  const initData = JSON.parse(JSON.stringify(arr[0]))
14
13
  initData.jsonParam.logBaseInfo = []
15
14
  initData.jsonParam.etModelInfo.lstms = []
16
15
  return arr.reduce((acc, cur) => {
17
16
  cur.jsonParam.etModelInfo.lstms[0].la_p = cur.jsonParam.logBaseInfo.mInfo.pos
18
17
  acc.jsonParam.logBaseInfo.push(cur.jsonParam.logBaseInfo)
19
18
  acc.jsonParam.etModelInfo.lstms.push(cur.jsonParam.etModelInfo.lstms)
20
19
  return acc
21
20
  }, initData)
22
21
  if(!Array.isArray(data)){
23
22
  console.log('坑位曝光埋点原始数据参类型错误,期望是数组,实际是:', data)
24
23
  return
25
24
  }
26
25
  const [floorData, mInfo, etModelInfo] = data
27
26
  if(floorData && mInfo && etModelInfo){
28
27
  const reportJson = track.getIsvExposureInfo(floorData, mInfo, etModelInfo)
29
28
  const { floorIdx } = floorData
30
29
  if(!task[floorIdx]){
31
30
  task[floorIdx] = {
32
31
  arr: [],
33
32
  startWaitTime: 0,
34
33
  timer : 0
35
34
  }
36
35
  }
37
36
  const floorTask = task[floorIdx]
38
37
  if(floorTask.arr.length === 0){
39
38
  floorTask.startWaitTime = Date.now()
40
39
  }
41
40
  if(reportJson){
42
41
  floorTask.arr.push(reportJson)
43
42
  clearTimeout(floorTask.timer)
44
43
  floorTask.timer = setTimeout(() => {
45
44
  check(floorTask)
46
45
  }, 1000)
47
46
  check(floorTask)
48
47
  }
49
48
  }else{
50
49
  console.log('坑位曝光埋点原始数据参数缺失,期望是[floorData, mInfo, etModelInfo],实际是:', data)
51
50
  }
51
+ import track from '../../../open/api/track'
52
52
  const {arr : arrTask, startWaitTime} = floorTask
53
53
  const isTimeout = startWaitTime != 0 && (Date.now() - startWaitTime >= 1000)
54
54
  const isOverMax = arrTask.length >= 10
55
55
  const hasData = arrTask.length > 0
56
56
  if(hasData && (isTimeout || isOverMax)){
57
57
  const reduceData = connactData(arrTask)
58
58
  track.reportExposureEventLog(reduceData)
59
59
  floorTask.arr = []
60
60
  floorTask.startWaitTime = 0
61
61
  clearTimeout(floorTask.timer)
62
62
  }
63
63
  const initData = JSON.parse(JSON.stringify(arr[0]))
64
64
  initData.jsonParam.logBaseInfo = []
65
65
  initData.jsonParam.etModelInfo.lstms = []
66
66
  return arr.reduce((acc, cur) => {
67
67
  cur.jsonParam.etModelInfo.lstms[0].la_p = cur.jsonParam.logBaseInfo.mInfo?.pos
68
68
  acc.jsonParam.logBaseInfo.push(cur.jsonParam.logBaseInfo)
69
69
  acc.jsonParam.etModelInfo.lstms.push(cur.jsonParam.etModelInfo.lstms)
70
70
  return acc
71
71
  }, initData)
72
72
  if(!Array.isArray(data)){
73
73
  console.log('坑位曝光埋点原始数据参类型错误,期望是数组,实际是:', data)
74
74
  return
75
75
  }
76
76
  const [floorData, mInfo, etModelInfo] = data
77
77
  if(floorData && mInfo && etModelInfo){
78
78
  const reportJson = track.getIsvExposureInfo(floorData, mInfo, etModelInfo)
79
79
  const { floorIdx } = floorData
80
80
  if(!task[floorIdx]){
81
81
  task[floorIdx] = {
82
82
  arr: [],
83
83
  startWaitTime: 0,
84
84
  timer : 0
85
85
  }
86
86
  }
87
87
  const floorTask = task[floorIdx]
88
88
  if(floorTask.arr.length === 0){
89
89
  floorTask.startWaitTime = Date.now()
90
90
  }
91
91
  if(reportJson){
92
92
  floorTask.arr.push(reportJson)
93
93
  clearTimeout(floorTask.timer)
94
94
  floorTask.timer = setTimeout(() => {
95
95
  check(floorTask)
96
96
  }, 1000)
97
97
  check(floorTask)
98
98
  }
99
99
  }else{
100
100
  console.log('坑位曝光埋点原始数据参数缺失,期望是[floorData, mInfo, etModelInfo],实际是:', data)
101
101
  }
@@ -1 +1 @@
1
- import { View, Text } from '@tarojs/components'
2
1
  '//img11.360buyimg.com/imagetools/jfs/t1/141506/22/31698/7923/637b6db9E2af80265/10e76e2c31e0e356.png'
2
+ import { View, Text } from '@tarojs/components'
3
3
  '//img11.360buyimg.com/imagetools/jfs/t1/141506/22/31698/7923/637b6db9E2af80265/10e76e2c31e0e356.png'
4
4
  const newModuleFloorTypeList = [100, 101, 100000, 99999]
5
5
  const isNewFloorState = newModuleFloorTypeList.includes(moduleType)
6
6
  if ((moduleType == 99999 || moduleType == 101) && !previewUri) {
@@ -1 +1 @@
1
- import React, { useCallback } from 'react'
1
+ import React, { useCallback } from 'react'
2
2
  {floorData?.showCommonFloorHead === false ? null : (
3
3
  <CommonFloorHead dataDefines={dataDefines} floorData={floorData} />
4
4
  )}
@@ -1 +1 @@
1
- import React from 'react'
2
1
  subMessage?: string
3
2
  customErrorIsvFloorModule?: React.ReactElement | undefined
4
3
  containerIndex?: number
5
4
  containerData?: any
6
5
  shopTotalInfo?: any
7
6
  selectContainerFn?: Function
8
7
  selectContainerId?: string
9
8
  placeHolderPreContainerId?: string
10
9
  children?: any
11
10
  style?: {
12
11
  [key: string]: any
13
12
  };
14
13
  layoutLeftRightMargin?: number
15
14
  }
15
+ import React from 'react'
16
16
  subMessage?: string
17
17
  showCommonFloorHead?: boolean
18
18
  customErrorIsvFloorModule?: React.ReactElement | undefined
19
19
  containerIndex?: number
20
20
  containerData?: any
21
21
  shopTotalInfo?: any
22
22
  selectContainerFn?: Function
23
23
  selectContainerId?: string
24
24
  placeHolderPreContainerId?: string
25
25
  children?: any
26
26
  style?: {
27
27
  [key: string]: any
28
28
  };
29
29
  layoutLeftRightMargin?: number
30
30
  }