@conecli/cone-render 0.8.44 → 0.8.46-beta.0

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.
Files changed (94) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/assets/icon_blue_info.svg +1 -0
  3. package/dist/common/const.ts +1 -1
  4. package/dist/common/environmentType.ts +1 -1
  5. package/dist/common/index.h5.ts +1 -1
  6. package/dist/common/index.jd.ts +1 -1
  7. package/dist/common/index.ts +1 -1
  8. package/dist/common/index.weapp.ts +1 -1
  9. package/dist/common/pageType.ts +1 -1
  10. package/dist/common/sgmCustomCode.ts +1 -1
  11. package/dist/common/token/index.h5.ts +1 -1
  12. package/dist/common/token/token.jd.ts +1 -1
  13. package/dist/common/wxappApi.ts +1 -1
  14. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  15. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  16. package/dist/components/base/CountDown/index.module.scss +49 -44
  17. package/dist/components/base/CountDown/index.tsx +1 -1
  18. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  19. package/dist/components/base/CustomVideo/common.ts +1 -0
  20. package/dist/components/base/CustomVideo/index.tsx +1 -1
  21. package/dist/components/base/Dialog/index.module.scss +11 -0
  22. package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
  23. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  24. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  25. package/dist/components/base/ItemViewExposureSmart/index.module.scss +2 -2
  26. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  27. package/dist/components/base/LazyLoadImage/index.h5.module.scss +4 -0
  28. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  29. package/dist/components/base/Price/Base/index.tsx +1 -1
  30. package/dist/components/base/Price/Double/index.module.scss +8 -0
  31. package/dist/components/base/Price/Double/index.tsx +1 -1
  32. package/dist/components/debug/DebugLayout/index.module.scss +67 -0
  33. package/dist/components/debug/DebugLayout/index.tsx +1 -0
  34. package/dist/components/debug/DebugLayout/utils.ts +1 -0
  35. package/dist/components/decorate/DecorateFloorModule/index.module.scss +11 -0
  36. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  37. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  38. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  39. package/dist/components/floorItem.tsx +1 -1
  40. package/dist/components/floorItem.weapp.tsx +1 -1
  41. package/dist/components/isv/Floor/index.tsx +1 -1
  42. package/dist/interface/common.ts +1 -1
  43. package/dist/interface/component.ts +1 -1
  44. package/dist/interface/jumpEventReport.ts +1 -1
  45. package/dist/interface/service.ts +1 -1
  46. package/dist/jumpEventReport/base.ts +1 -1
  47. package/dist/jumpEventReport/const.ts +1 -1
  48. package/dist/jumpEventReport/index.jd.ts +1 -1
  49. package/dist/jumpEventReport/index.weapp.ts +1 -1
  50. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  51. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  52. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  53. package/dist/jumpEventReport/web/report.ts +1 -1
  54. package/dist/jumpEventReport/web.base.ts +1 -1
  55. package/dist/jumpEventReport/web.jd.ts +1 -1
  56. package/dist/jumpEventReport/web.jdb.ts +1 -1
  57. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  58. package/dist/jumpEventReport/web.jxwxapp.ts +1 -1
  59. package/dist/jumpEventReport/web.pc.ts +1 -1
  60. package/dist/jumpEventReport/web.tjapp.ts +1 -1
  61. package/dist/jumpEventReport/web.tjm.ts +1 -1
  62. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  63. package/dist/libs/taroAppReport.js +2 -2
  64. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -53
  65. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  66. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  67. package/dist/open/api/environment.ts +1 -1
  68. package/dist/open/api/shopMember.ts +1 -1
  69. package/dist/open/api/util.ts +1 -1
  70. package/dist/sass/app.h5.scss +255 -224
  71. package/dist/sass/base.scss +183 -137
  72. package/dist/service/fetchGateway.ts +1 -1
  73. package/dist/service/fetchGateway.weapp.ts +1 -0
  74. package/dist/service/http/colorSign.ts +1 -1
  75. package/dist/service/http/const.ts +1 -1
  76. package/dist/service/http/h5Http.ts +1 -0
  77. package/dist/service/http/index.h5.ts +1 -0
  78. package/dist/service/requestServer.h5.ts +1 -0
  79. package/dist/service/requestServer.ts +1 -1
  80. package/dist/service/requestServer.weapp.ts +1 -0
  81. package/dist/utils/connectNativeJsBridge.ts +1 -1
  82. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  83. package/dist/utils/h5Utils.ts +1 -1
  84. package/dist/utils/index.h5.ts +1 -1
  85. package/dist/utils/index.ts +1 -1
  86. package/dist/utils/index.weapp.ts +1 -1
  87. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  88. package/dist/utils/jumpExtMapUtil.ts +1 -0
  89. package/dist/utils/sColor.js +1 -0
  90. package/dist/utils/utils.ts +1 -1
  91. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  92. package/dist/wxapp/common/user_info.js +1 -1
  93. package/package.json +147 -123
  94. package/dist/utils/memberFormatUtils.js +0 -1
@@ -119,3 +119,14 @@
119
119
  transform: scale3d(1, 1, 1);
120
120
  }
121
121
  }
122
+ :global{
123
+ .d-shop-pad{
124
+ :local{
125
+
126
+ .d-dialog-content{
127
+ max-width: 520PX;
128
+ }
129
+ }
130
+ }
131
+
132
+ }
@@ -6,8 +6,8 @@
6
6
  left: 0;
7
7
  right: 0;
8
8
  bottom: 0;
9
- opacity: 0;
10
- pointer-events: none;
9
+ opacity: 0;
10
+ pointer-events: none;
11
11
  z-index: -1;
12
12
  }
13
13
  //楼层曝光
@@ -20,3 +20,13 @@
20
20
  pointer-events: none;
21
21
  z-index: -1;
22
22
  }
23
+
24
+ :global{
25
+ .d-report-exposure-jd-point{
26
+ &:not(:empty){
27
+ opacity: 1;
28
+ z-index: 20;
29
+ }
30
+ }
31
+ }
32
+
@@ -1 +1 @@
1
- import React, { useMemo } from 'react'
2
1
  const { type, className, reportData, customReportDataKey, customReportDataFn, trackCallback, markPoint } = props
3
2
  const isCustomReport = customReportDataKey && customReportDataFn
4
3
  const isViewOnlineState =
5
4
  taroJdBaseInfo.info.pageInfo.dataType === BUSINESS_TYPE.ONLINE
6
5
  const showRenderState = isCustomReport ? true : reportData
7
6
  const inViewCallback = () => {
8
7
  console.log('埋点收到进入可视区域的回调啦!', reportData)
9
8
  if(!isCustomReport){
10
9
  addReportData(reportData)
11
10
  typeof trackCallback === 'function' && trackCallback(reportData)
12
11
  }else {
13
12
  typeof customReportDataFn === 'function' && customReportDataFn(customReportDataKey)
14
13
  }
15
14
  }
16
15
  let chartPointClassName = ""
17
16
 
18
17
  if(isChartH5 && markPoint && Array.isArray(reportData)){
19
18
  const [floorData, mInfo] = reportData
20
19
  if(floorData && mInfo && mInfo.hasOwnProperty('pos') ){
21
20
  chartPointClassName = track.getFloorPointIndexClassName(floorData, mInfo.pos)
22
21
  }
23
22
  }else if(isCustomReport){
24
23
  chartPointClassName = `J_custom_${customReportDataKey}`
25
24
  }
26
25
  return isViewOnlineState && showRenderState
27
26
  ? <InViewRender className={classNames(
28
27
  {
29
28
  [exposureStyle['d-report-point']]: type === TrackType.point,
30
29
  },
31
30
  {
32
31
  [exposureStyle['d-report-floor']]: type === TrackType.floor,
33
32
  },
34
33
  className,
35
34
  chartPointClassName
36
35
  )} height={'100%'} inViewCallback={inViewCallback}></InViewRender>
37
36
  : null
38
37
  return useMemo(() => {
39
38
  return <Exposure {...props} />
40
39
  }, [])
41
40
  reportData: null,
42
41
  trackCallback: null,
43
42
  type: TrackType.point,
44
43
  markPoint: false
44
+ import React, { useMemo } from 'react';
45
45
  const {
46
46
  type,
47
47
  className,
48
48
  reportData,
49
49
  customReportDataKey,
50
50
  customReportDataFn,
51
51
  trackCallback,
52
52
  markPoint,
53
53
  innerRef,
54
54
  } = props;
55
55
  const isCustomReport = customReportDataKey && customReportDataFn;
56
56
  const isViewOnlineState = taroJdBaseInfo.info.pageInfo.dataType === BUSINESS_TYPE.ONLINE;
57
57
  const showRenderState = isCustomReport ? true : reportData;
58
58
  const inViewCallback = () => {
59
59
  const getInsertFlowMapEle =
60
60
  innerRef?.current?.querySelector('.d-report-exposure-point') || createDefaultFlowMapEle;
61
61
  if (!isCustomReport) {
62
62
  addReportData(reportData, getInsertFlowMapEle);
63
63
  typeof trackCallback === 'function' && trackCallback(reportData);
64
64
  } else {
65
65
  if (typeof customReportDataFn === 'function') {
66
66
  const getReportData = customReportDataFn(customReportDataKey);
67
67
  getReportData &&
68
68
  getReportData?.eventId &&
69
69
  getReportData?.jsonParam &&
70
70
  track.reportExposureEventLog({
71
71
  ...getReportData,
72
72
  target: getInsertFlowMapEle,
73
73
  });
74
74
  }
75
75
  }
76
76
  };
77
77
  let chartPointClassName = '';
78
78
 
79
79
  if (isChartH5 && markPoint && Array.isArray(reportData)) {
80
80
  const [floorData, mInfo] = reportData;
81
81
  if (floorData && mInfo && mInfo.hasOwnProperty('pos')) {
82
82
  chartPointClassName = track.getFloorPointIndexClassName(floorData, mInfo.pos);
83
83
  }
84
84
  } else if (isCustomReport) {
85
85
  chartPointClassName = `J_custom_${customReportDataKey}`;
86
86
  }
87
87
  return isViewOnlineState && showRenderState ? (
88
88
  <InViewRender
89
89
  className={classNames(
90
90
  'd-report-exposure-point',
91
91
  {
92
92
  [exposureStyle['d-report-point']]: type === TrackType.point,
93
93
  },
94
94
  {
95
95
  [exposureStyle['d-report-floor']]: type === TrackType.floor,
96
96
  },
97
97
  {
98
98
  'd-report-exposure-jd-point': isJdApp,
99
99
  },
100
100
  className,
101
101
  chartPointClassName,
102
102
  )}
103
103
  height={'100%'}
104
104
  inViewCallback={inViewCallback}
105
105
  ></InViewRender>
106
106
  ) : null;
107
107
  return useMemo(() => {
108
108
  return <Exposure {...props} />;
109
109
  }, []);
110
110
  reportData: null,
111
111
  trackCallback: null,
112
112
  type: TrackType.point,
113
113
  markPoint: false,
@@ -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 arrTaskNum = arrTask.length;
5
4
  const isOverMax = arrTaskNum >= 10
6
5
  const hasData = arrTaskNum > 0
7
6
  if(hasData && (isTimeout || isOverMax)){
8
7
  const reduceData = connactData(arrTask)
9
8
  track.reportExposureEventLog(reduceData)
10
9
  floorTask.arr = []
11
10
  floorTask.startWaitTime = 0
12
11
  clearTimeout(floorTask.timer)
13
12
  }
14
13
  const initData = JSON.parse(JSON.stringify(arr[0]))
15
14
  if(initData.jsonParam.etModelInfo) {
16
15
  initData.jsonParam.logBaseInfo = []
17
16
  initData.jsonParam.etModelInfo.lstms = []
18
17
  return arr.reduce((acc, cur) => {
19
18
  acc.jsonParam.logBaseInfo.push(cur.jsonParam.logBaseInfo)
20
19
  return acc
21
20
  }, initData)
22
21
  } else {
23
22
  return arr.reduce((acc) => {
24
23
  return acc
25
24
  })
26
25
  }
27
26
  if(!Array.isArray(data)){
28
27
  console.log('坑位曝光埋点原始数据参类型错误,期望是数组,实际是:', data)
29
28
  return
30
29
  }
31
30
  const [floorData, mInfo, etModelInfo] = data
32
31
  if(floorData && mInfo && etModelInfo){
33
32
  const isIsvReportModule = isvReportModuleTypeList.includes(floorData?.floorExtInfo?.moduleFlag)
34
33
  try {
35
34
  const reportJson = track.getExposureInfo(floorData, mInfo, etModelInfo,true, isIsvReportModule)
36
35
  console.log(`${floorData?.floorExtInfo?.moduleFlag}===reportJson===`,reportJson)
37
36
  const { floorIdx } = floorData
38
37
  if(!task[floorIdx]){
39
38
  task[floorIdx] = {
40
39
  arr: [],
41
40
  startWaitTime: 0,
42
41
  timer : 0
43
42
  }
44
43
  }
45
44
  const floorTask = task[floorIdx]
46
45
  if(floorTask.arr.length === 0){
47
46
  floorTask.startWaitTime = Date.now()
48
47
  }
49
48
  if(reportJson){
50
49
  floorTask.arr.push(reportJson)
51
50
  clearTimeout(floorTask.timer)
52
51
  floorTask.timer = setTimeout(() => {
53
52
  check(floorTask)
54
53
  }, 1000)
55
54
  check(floorTask)
56
55
  }
57
56
  }catch (e) {
58
57
  {
59
58
  console.log('坑位曝光埋点出错啦',e)
60
59
  }
61
60
  }
62
61
  }else{
63
62
  console.log('坑位曝光埋点原始数据参数缺失,期望是[floorData, mInfo, etModelInfo],实际是:', data)
64
63
  }
64
+ import track from '../../../open/api/track';
65
65
  const { arr: arrTask, startWaitTime } = floorTask;
66
66
  const isTimeout = startWaitTime != 0 && Date.now() - startWaitTime >= 1000;
67
67
  const arrTaskNum = arrTask.length;
68
68
  const isOverMax = arrTaskNum >= 10;
69
69
  const hasData = arrTaskNum > 0;
70
70
  if (hasData && (isTimeout || isOverMax)) {
71
71
  const reduceData = connactData(arrTask);
72
72
  track.reportExposureEventLog(reduceData);
73
73
  floorTask.arr = [];
74
74
  floorTask.startWaitTime = 0;
75
75
  clearTimeout(floorTask.timer);
76
76
  }
77
77
  const initData = JSON.parse(JSON.stringify(arr[0]));
78
78
  if (initData.jsonParam.etModelInfo) {
79
79
  initData.jsonParam.logBaseInfo = [];
80
80
  initData.jsonParam.etModelInfo.lstms = [];
81
81
  return arr.reduce((acc, cur) => {
82
82
  acc.jsonParam.logBaseInfo.push(cur.jsonParam.logBaseInfo);
83
83
  return acc;
84
84
  }, initData);
85
85
  } else {
86
86
  return arr.reduce((acc) => {
87
87
  return acc;
88
88
  });
89
89
  }
90
90
  if (!Array.isArray(data)) {
91
91
  console.log('坑位曝光埋点原始数据参类型错误,期望是数组,实际是:', data);
92
92
  return;
93
93
  }
94
94
  const [floorData, mInfo, etModelInfo] = data;
95
95
  if (floorData && mInfo && etModelInfo) {
96
96
  const isIsvReportModule = isvReportModuleTypeList.includes(floorData?.floorExtInfo?.moduleFlag);
97
97
  try {
98
98
  const reportJson = track.getExposureInfo(
99
99
  floorData,
100
100
  mInfo,
101
101
  etModelInfo,
102
102
  true,
103
103
  isIsvReportModule,
104
104
  );
105
105
  console.log(`${floorData?.floorExtInfo?.moduleFlag}===reportJson===`, reportJson);
106
106
  const { floorIdx } = floorData;
107
107
  if (!task[floorIdx]) {
108
108
  task[floorIdx] = {
109
109
  arr: [],
110
110
  startWaitTime: 0,
111
111
  timer: 0,
112
112
  };
113
113
  }
114
114
  const floorTask = task[floorIdx];
115
115
  if (floorTask.arr.length === 0) {
116
116
  floorTask.startWaitTime = Date.now();
117
117
  }
118
118
  if (reportJson) {
119
119
  floorTask.arr.push(reportJson);
120
120
  clearTimeout(floorTask.timer);
121
121
  floorTask.timer = setTimeout(() => {
122
122
  check(floorTask);
123
123
  }, 1000);
124
124
  check(floorTask);
125
125
  }
126
126
  } catch (e) {
127
127
  {
128
128
  console.log('坑位曝光埋点出错啦', e);
129
129
  }
130
130
  }
131
131
  } else {
132
132
  console.log(
133
133
  '坑位曝光埋点原始数据参数缺失,期望是[floorData, mInfo, etModelInfo],实际是:',
134
134
  data,
135
135
  );
136
136
  }
@@ -1,7 +1,7 @@
1
1
 
2
- .d-item-point-layout{
2
+ .d-item-point-layout {
3
3
  position: relative;
4
- .d-item-chart-point{
4
+ .d-item-chart-point {
5
5
  opacity: 1;
6
6
  z-index: 100;
7
7
  }
@@ -1 +1 @@
1
- import React from 'react'
2
1
  const { className, pointClassName, children, reportData, customReportDataKey,customReportDataFn, trackCallback, ...otherProps } =
3
2
  props
4
3
  const isCustomReport = customReportDataKey && customReportDataFn
5
4
  const checkReportData = Array.isArray(reportData)
6
5
  const [floorData, mInfo] = checkReportData ? reportData : []
7
6
  const checkReportDataState = isCustomReport ? true : floorData && mInfo
8
7
 
9
8
  floorData && mInfo && !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0)
10
9
  return (
11
10
  <View
12
11
  ref={ref}
13
12
  className={classNames(
14
13
  itemViewExposureSmartStyle['d-item-point-layout'],
15
14
  className,
16
15
  )}
17
16
  {...otherProps}
18
17
  >
19
18
  {children ? children : null}
20
19
  {checkReportDataState && (
21
20
  <ExposureSmart
22
21
  className={classNames(pointClassName,{
23
22
  [itemViewExposureSmartStyle['d-item-chart-point']]: isChartH5,
24
23
  })}
25
24
  reportData={reportData}
26
25
  trackCallback={trackCallback}
27
26
  customReportDataFn={customReportDataFn}
28
27
  customReportDataKey={customReportDataKey}
29
28
  markPoint
30
29
  />
31
30
  )}
32
31
  </View>
33
32
  )
34
33
  reportData: [],
35
34
  customReportDataKey: null,
36
35
  customReportDataFn: null
36
+ import React, { useRef } from 'react';
37
37
  const {
38
38
  className,
39
39
  pointClassName,
40
40
  children,
41
41
  reportData,
42
42
  customReportDataKey,
43
43
  customReportDataFn,
44
44
  trackCallback,
45
45
  ...otherProps
46
46
  } = props;
47
47
  const itemViewExposureRef = useRef(null);
48
48
  const isCustomReport = customReportDataKey && customReportDataFn;
49
49
  const checkReportData = Array.isArray(reportData);
50
50
  const [floorData, mInfo] = checkReportData ? reportData : [];
51
51
  const checkReportDataState = isCustomReport ? true : floorData && mInfo;
52
52
 
53
53
  floorData && mInfo && !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0);
54
54
  return (
55
55
  <View
56
56
  ref={itemViewExposureRef}
57
57
  className={classNames(itemViewExposureSmartStyle['d-item-point-layout'], className)}
58
58
  {...otherProps}
59
59
  >
60
60
  {children ? children : null}
61
61
  {checkReportDataState && (
62
62
  <ExposureSmart
63
63
  className={classNames(pointClassName, {
64
64
  [itemViewExposureSmartStyle['d-item-chart-point']]: isChartH5,
65
65
  })}
66
66
  innerRef={itemViewExposureRef}
67
67
  reportData={reportData}
68
68
  trackCallback={trackCallback}
69
69
  customReportDataFn={customReportDataFn}
70
70
  customReportDataKey={customReportDataKey}
71
71
  markPoint
72
72
  />
73
73
  )}
74
74
  </View>
75
75
  );
76
76
  reportData: [],
77
77
  customReportDataKey: null,
78
78
  customReportDataFn: null,
79
79
  customReportDataForMapFn: null,
@@ -12,6 +12,10 @@
12
12
  &.d-load-completed {
13
13
  background: none;
14
14
  }
15
+ // 暂时注释修复taro中Image组件已高度为准,宽度需要自适应的样式处理,需要调研和埋点上报看下有没有这种使用场景 20241122
16
+ //&[mode="heightFix"] > img{
17
+ // width: auto;
18
+ //}
15
19
  img {
16
20
  display: block;
17
21
  width: 100%;