@conecli/cone-render 0.8.20-shop.21 → 0.8.20-shop.211

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 (163) hide show
  1. package/README.md +7 -1
  2. package/dist/api/index.ts +1 -1
  3. package/dist/assets/icon_blue_info.svg +1 -0
  4. package/dist/common/const.ts +1 -1
  5. package/dist/common/environmentType.ts +1 -0
  6. package/dist/common/index.h5.ts +1 -1
  7. package/dist/common/index.jd.ts +1 -1
  8. package/dist/common/index.ts +1 -1
  9. package/dist/common/index.weapp.ts +1 -1
  10. package/dist/common/jdplayerSdk.ts +1 -0
  11. package/dist/common/jssdk.ts +1 -0
  12. package/dist/common/pageType.ts +1 -0
  13. package/dist/common/sgmCustomCode.ts +1 -0
  14. package/dist/common/token/index.h5.ts +1 -1
  15. package/dist/common/token/token.jd.ts +1 -1
  16. package/dist/common/token/token.ts +1 -1
  17. package/dist/common/wxappApi.jd.ts +1 -0
  18. package/dist/common/wxappApi.ts +1 -1
  19. package/dist/components/ErrorBoundary.tsx +1 -1
  20. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  21. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  22. package/dist/components/base/CountDown/index.module.scss +49 -44
  23. package/dist/components/base/CountDown/index.tsx +1 -1
  24. package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
  25. package/dist/components/base/CustomScrollView/index.module.scss +7 -0
  26. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  27. package/dist/components/base/CustomVideo/common.ts +1 -0
  28. package/dist/components/base/CustomVideo/index.module.scss +1 -1
  29. package/dist/components/base/CustomVideo/index.tsx +1 -1
  30. package/dist/components/base/Dialog/index.module.scss +16 -0
  31. package/dist/components/base/Dialog/index.tsx +1 -1
  32. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  33. package/dist/components/base/ExposureSmart/const.ts +1 -0
  34. package/dist/components/base/ExposureSmart/index.h5.module.scss +30 -6
  35. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  36. package/dist/components/base/ExposureSmart/index.module.scss +20 -9
  37. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  38. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  39. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  40. package/dist/components/base/InViewRender/index.tsx +1 -1
  41. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  42. package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
  43. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
  44. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  45. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  46. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  47. package/dist/components/base/LazyLoadImage/index.h5.module.scss +24 -20
  48. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  49. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  50. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  51. package/dist/components/base/NetworkDataError/const.ts +1 -1
  52. package/dist/components/base/NetworkDataError/index.module.scss +125 -69
  53. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  54. package/dist/components/base/Price/Base/index.module.scss +12 -0
  55. package/dist/components/base/Price/Base/index.tsx +1 -1
  56. package/dist/components/base/Price/Double/index.module.scss +32 -0
  57. package/dist/components/base/Price/Double/index.tsx +1 -1
  58. package/dist/components/base/Price/index.tsx +1 -1
  59. package/dist/components/base/Skeleton/index.tsx +1 -1
  60. package/dist/components/debug/DebugLayout/index.module.scss +67 -0
  61. package/dist/components/debug/DebugLayout/index.tsx +1 -0
  62. package/dist/components/debug/DebugLayout/utils.ts +1 -0
  63. package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
  64. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  65. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  66. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  67. package/dist/components/floorItem.jd.tsx +1 -1
  68. package/dist/components/floorItem.tsx +1 -1
  69. package/dist/components/floorItem.weapp.tsx +1 -1
  70. package/dist/components/isv/Floor/index.tsx +1 -1
  71. package/dist/components/remoteFloorItem.tsx +1 -0
  72. package/dist/interface/common.ts +1 -1
  73. package/dist/interface/component.ts +1 -1
  74. package/dist/interface/jumpEventReport.ts +1 -1
  75. package/dist/interface/service.ts +1 -1
  76. package/dist/interface/utils.ts +1 -1
  77. package/dist/jumpEventReport/base.ts +1 -1
  78. package/dist/jumpEventReport/const.ts +1 -1
  79. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  80. package/dist/jumpEventReport/index.h5.ts +1 -1
  81. package/dist/jumpEventReport/index.jd.ts +1 -1
  82. package/dist/jumpEventReport/index.ts +1 -1
  83. package/dist/jumpEventReport/index.weapp.ts +1 -1
  84. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  85. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  86. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  87. package/dist/jumpEventReport/web/report.ts +1 -1
  88. package/dist/jumpEventReport/web.base.ts +1 -1
  89. package/dist/jumpEventReport/web.jd.ts +1 -1
  90. package/dist/jumpEventReport/web.jdb.ts +1 -1
  91. package/dist/jumpEventReport/web.jdjch.ts +1 -0
  92. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  93. package/dist/jumpEventReport/web.pc.ts +1 -0
  94. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  95. package/dist/jumpEventReport/web.tjm.ts +1 -0
  96. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  97. package/dist/language/en_US.json +178 -0
  98. package/dist/language/zh_CN.json +178 -0
  99. package/dist/language/zh_HK.json +178 -0
  100. package/dist/libs/taroAppReport.js +2 -2
  101. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -27
  102. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  103. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  104. package/dist/open/api/device.ts +1 -1
  105. package/dist/open/api/environment.ts +1 -1
  106. package/dist/open/api/index.ts +1 -1
  107. package/dist/open/api/jump/business.ts +1 -0
  108. package/dist/open/api/jump/index.ts +1 -0
  109. package/dist/open/api/jump/minPath.ts +1 -0
  110. package/dist/open/api/jump/side.ts +1 -0
  111. package/dist/open/api/jump/webUrl.ts +1 -0
  112. package/dist/open/api/jump copy.ts +1 -0
  113. package/dist/open/api/request.ts +1 -1
  114. package/dist/open/api/shopMember.ts +1 -1
  115. package/dist/open/api/track.ts +1 -1
  116. package/dist/open/api/util.ts +1 -1
  117. package/dist/open/components/index.ts +1 -1
  118. package/dist/sass/app.h5.scss +289 -212
  119. package/dist/sass/base.scss +195 -137
  120. package/dist/service/bMallConst.ts +1 -1
  121. package/dist/service/fetchGateway.ts +1 -1
  122. package/dist/service/fetchGateway.weapp.ts +1 -0
  123. package/dist/service/http/colorSign.ts +1 -1
  124. package/dist/service/http/const.ts +1 -1
  125. package/dist/service/http/h5Http.ts +1 -0
  126. package/dist/service/http/index.h5.ts +1 -0
  127. package/dist/service/requestServer.h5.ts +1 -0
  128. package/dist/service/requestServer.ts +1 -1
  129. package/dist/service/requestServer.weapp.ts +1 -0
  130. package/dist/utils/connectNativeJsBridge.ts +1 -1
  131. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  132. package/dist/utils/draExceptionAndProfile.ts +1 -1
  133. package/dist/utils/h5Utils.ts +1 -1
  134. package/dist/utils/index.h5.ts +1 -1
  135. package/dist/utils/index.ts +1 -1
  136. package/dist/utils/index.weapp.ts +1 -1
  137. package/dist/utils/intersectionObserver.ts +1 -1
  138. package/dist/utils/jm-common.js +1 -1
  139. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  140. package/dist/utils/jumpExtMapUtil.ts +1 -0
  141. package/dist/utils/sColor.js +1 -0
  142. package/dist/utils/sgmCodeUtils.ts +1 -0
  143. package/dist/utils/taroRenderUtil.ts +1 -0
  144. package/dist/utils/utils.ts +1 -1
  145. package/dist/wxapp/api/helper.js +1 -0
  146. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  147. package/dist/wxapp/common/user_info.js +1 -1
  148. package/dist/wxapp/components/launch-app/index.js +1 -0
  149. package/dist/wxapp/components/launch-app/index.json +5 -0
  150. package/dist/wxapp/components/launch-app/index.wxml +0 -0
  151. package/dist/wxapp/components/launch-app/index.wxss +0 -0
  152. package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
  153. package/dist/wxapp/components/subscribe-guider/index.js +1 -0
  154. package/dist/wxapp/components/subscribe-guider/index.json +5 -0
  155. package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
  156. package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
  157. package/package.json +148 -115
  158. package/dist/components/base/Skeleton/old.tsx +0 -1
  159. package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
  160. package/dist/open/api/jump.ts +0 -1
  161. package/dist/utils/memberFormatUtils.js +0 -1
  162. /package/dist/service/{bMallConst.wxapp.ts → bMallConst.weapp.ts} +0 -0
  163. /package/dist/service/http/{colorSign.wxapp.ts → colorSign.weapp.ts} +0 -0
@@ -1 +1 @@
1
- import { isH5 } from '../utils'
2
1
  ? 'Terminator_New_Mobile_Shop'
3
2
  : 'W_jdgwxcx_shop'
4
3
  CONFIG_TYPE_NO_LINK = 0,
5
4
  CONFIG_TYPE_SKU_LIST = 1,
6
5
  CONFIG_TYPE_COUPON_LIST = 2,
7
6
  CONFIG_TYPE_CATEGORY = 3,
8
7
  CONFIG_TYPE_JSHOP_MOBILE = 4,
9
8
  CONFIG_TYPE_JSHOP_PC = 5,
10
9
  CONFIG_TYPE_JSHOP_DETAIL = 6,
11
10
  CONFIG_TYPE_CUSTOM_LINK = 7,
12
11
  CONFIG_TYPE_MEMBER = 9,
13
12
  CONFIG_TYPE_SHOP_ACTIVITY = 10,
14
13
  CONFIG_TYPE_SHOP_HOME = 12,
15
14
  CONFIG_TYPE_ANCHOR_POINT = 13,
16
15
  CONFIG_TYPE_SHOPPING_GUIDE = 17,
17
16
  CONFIG_TYPE_MINI_PROGRAM = 18,
18
17
  CONFIG_TYPE_FINANCE_COUPON = 22,
19
18
  CONFIG_TYPE_CATEGORY_PAGE = 25,
19
+ import { isH5, isWxMinAndWxapp } from '../utils'
20
20
  ? 'Terminator_New_Mobile_Shop'
21
21
  : 'W_jdgwxcx_shop'
22
22
  CONFIG_TYPE_NO_LINK = 0,
23
23
  CONFIG_TYPE_SKU_LIST = 1,
24
24
  CONFIG_TYPE_COUPON_LIST = 2,
25
25
  CONFIG_TYPE_CATEGORY = 3,
26
26
  CONFIG_TYPE_JSHOP_MOBILE = 4,
27
27
  CONFIG_TYPE_JSHOP_PC = 5,
28
28
  CONFIG_TYPE_JSHOP_DETAIL = 6,
29
29
  CONFIG_TYPE_CUSTOM_LINK = 7,
30
30
  CONFIG_TYPE_MEMBER = 9,
31
31
  CONFIG_TYPE_SHOP_ACTIVITY = 10,
32
32
  CONFIG_TYPE_SHOP_HOME = 12,
33
33
  CONFIG_TYPE_ANCHOR_POINT = 13,
34
34
  CONFIG_TYPE_SHOPPING_GUIDE = 17,
35
35
  CONFIG_TYPE_MINI_PROGRAM = 18,
36
36
  CONFIG_TYPE_FINANCE_COUPON = 22,
37
37
  CONFIG_TYPE_CATEGORY_PAGE = 25,
38
38
  CONFIG_TYPE_SHOP_SEARCH = 31,
@@ -1 +1 @@
1
- import global from '../common'
1
+ import global from '../common';
2
2
  a_id: string;
3
3
  a_p: string;
4
4
  p_id: string;
5
5
  la_id: string;
6
6
  la_p: string;
7
7
  area: EtModulelstmAreaItem[];
8
8
  JD_APP: 'app',
9
9
  Mobile: 'h5',
10
10
  PC: 'pc',
11
11
  JD_MINI: 'j_x',
12
12
  WX_MINI: 'x',
13
13
  terminalType: TerminalType.Mobile,
14
14
  sectionTabType: SECTION_HOME_TAB_TYPE.HOME_WELL_CHOSEN,
15
15
  sectionTabData: {},
16
16
  baseInfo: {},
17
17
  posInfo: {},
18
18
  recInfo: {},
19
19
  etModuleExposureInfo: {
20
20
  lstms: [
21
21
  {
22
22
  p_id: 'TerminatorNew_All',
23
23
  area: [],
24
24
  la_id: '',
25
25
  la_p: '',
26
26
  },
27
27
  ],
28
28
  },
29
29
  etModuleClickInfo: {
30
30
  lstm: {
31
31
  p_id: 'TerminatorNew_All',
32
32
  area: [],
33
33
  la_id: '',
34
34
  la_p: '',
35
35
  },
36
36
  },
37
37
  mInfo: {},
38
38
  pageData: {},
39
39
  shopId: '',
40
40
  private shopId: string;
41
41
  private terminalType: string;
42
42
  private sectionTabType: number;
43
43
  private baseInfo: object;
44
44
  private posInfo: object;
45
45
  private recInfo: object;
46
46
  private mInfo: object;
47
47
  private pageData: object;
48
48
  private sectionTabData: object;
49
49
  private etModuleExposureInfo: {
50
50
  lstms: EtModulelstmItem[];
51
51
  };
52
52
  private etModuleClickInfo: {
53
53
  lstm: EtModulelstmItem;
54
54
  };
55
55
  constructor(opt = {}) {
56
56
  this.getConfig(opt);
57
57
  }
58
58
  getConfig(opt, isUpdate = false) {
59
59
  return isUpdate ? Object.assign(this, {}, opt) : Object.assign(this, {}, DefaultConfig, opt);
60
60
  }
61
61
 
62
62
  resetConfigParamsInit() {
63
63
  const getDefaultOpt = Object.assign({}, DefaultConfig);
64
64
  Object.keys(getDefaultOpt).forEach((key) => {
65
65
  this[key] && (this[key] = getDefaultOpt[key]);
66
66
  });
67
67
  }
68
68
 
69
69
  initReportBaseData(
70
70
  initData,
71
71
  terminalType = TerminalType.Mobile,
72
72
  sectionTabType = SECTION_HOME_TAB_TYPE.HOME_WELL_CHOSEN,
73
73
  ) {
74
74
  initData && this.resetConfigParamsInit();
75
75
  this.updateTerminalAndSectionType(terminalType, sectionTabType);
76
76
  initData && this.updateAllInfo(initData);
77
77
  }
78
78
  updateTerminalAndSectionType(
79
79
  terminalType = TerminalType.Mobile,
80
80
  sectionTabType = SECTION_HOME_TAB_TYPE.HOME_WELL_CHOSEN,
81
81
  ) {
82
82
  this.terminalType = terminalType;
83
83
  this.sectionTabType = sectionTabType;
84
84
  }
85
85
 
86
86
  updateSectionTabDataInfo(pageData) {
87
87
  const { shopId, projectId = '', templateId = '', templateVer = '' } = pageData;
88
88
  const getEtModuleInfo = this.updateEtModuleInfo(pageData);
89
89
  this.sectionTabData[this.sectionTabType] = {
90
90
  baseInfo: {
91
91
  shopId: `${shopId}`,
92
92
  projectId: `${projectId}`,
93
93
  templateId: `${templateId}`,
94
94
  templateVer: `${templateVer}`,
95
95
  },
96
96
  ...getEtModuleInfo,
97
97
  };
98
98
  }
99
99
 
100
100
  updateEtModuleInfo(pageData) {
101
101
  const { shopId, projectId = '' } = pageData;
102
102
  const etModuleExposureInfo = {
103
103
  lstms: [
104
104
  {
105
105
  p_id: 'TerminatorNew_All',
106
106
  area: [
107
107
  {
108
108
  a_id: `${shopId}`,
109
109
  a_p: '0',
110
110
  },
111
111
  {
112
112
  a_id: `${projectId}`,
113
113
  a_p: '0',
114
114
  },
115
115
  ],
116
116
  la_id: '',
117
117
  la_p: '',
118
118
  },
119
119
  ],
120
120
  };
121
121
  const etModuleClickInfo = {
122
122
  lstm: {
123
123
  p_id: 'TerminatorNew_All',
124
124
  area: [
125
125
  {
126
126
  a_id: `${shopId}`,
127
127
  a_p: '0',
128
128
  },
129
129
  {
130
130
  a_id: `${projectId}`,
131
131
  a_p: '0',
132
132
  },
133
133
  ],
134
134
  la_id: '',
135
135
  la_p: '',
136
136
  },
137
137
  };
138
138
  return {
139
139
  etModuleExposureInfo,
140
140
  etModuleClickInfo,
141
141
  };
142
142
  }
143
143
  updateAllInfo(pageData) {
144
144
  const {
145
145
  shopId,
146
146
  projectId = '',
147
147
  pageId = '',
148
148
  templateId = '',
149
149
  templateVer = '',
150
150
  mdExtInfo = {},
151
151
  } = pageData;
152
152
  const {
153
153
  recBroker = '',
154
154
  tabSpm = '',
155
155
  moduleId = '-100',
156
156
  entrance = '-100',
157
157
  } = global.info.queryInfo;
158
158
  const getReportEntrance = isJdApp
159
159
  ? (global.info?.openAppData?.sourceInfo?.entrance ?? entrance)
160
160
  : entrance;
161
161
  const getReportModuleId = isJdApp
162
162
  ? (global.info?.openAppData?.sourceInfo?.moduleId ?? moduleId)
163
163
  : moduleId;
164
164
  const baseInfo = {
165
165
  shopId: `${shopId}`,
166
166
  dataType: '2',
167
167
  projectId: `${projectId}`,
168
168
  pageId,
169
169
  templateId: `${templateId}`,
170
170
  templateVer: `${templateVer}`,
171
171
  };
172
172
  const posInfo = {
173
173
  p_id: SectionReportTabNameType[this.sectionTabType],
174
174
  pageSource: `${getReportModuleId}#${getReportEntrance}`,
175
175
  tabSpm,
176
176
  floorIndex: '0',
177
177
  term: this.terminalType,
178
178
  };
179
179
  const recInfo = {
180
180
  rec_broker: recBroker,
181
181
  broker_info: '',
182
182
  source: '',
183
183
  algoId: '',
184
184
  pageCrowdId: mdExtInfo?.userGroupStr || '',
185
185
  };
186
186
  const getEtModuleInfo = this.updateEtModuleInfo(pageData);
187
187
  this.pageData = pageData;
188
188
  this.shopId = shopId;
189
189
  return this.getConfig(
190
190
  {
191
191
  baseInfo,
192
192
  posInfo,
193
193
  recInfo,
194
194
  ...getEtModuleInfo,
195
195
  },
196
196
  true,
197
197
  );
198
198
  }
199
199
  updateBaseInfo(floorData, dataDefines = []) {
200
200
  const { middleTemplateId = '', moduleId = '', moduleInstanceId = '', uid = '' } = floorData;
201
201
  const nodeText = dataDefines[0]?.nodeText || {
202
202
  materialType: '',
203
203
  materialId: '',
204
204
  };
205
205
  const { materialType = '', materialId = '' } = nodeText;
206
206
  const baseInfo = {
207
207
  dataType: `${nodeText['autoPull'] == 1 ? 1 : 2}`,
208
208
  moduleId,
209
209
  moduleInstanceId,
210
210
  middleTemplateId,
211
211
  uid,
212
212
  materialType,
213
213
  materialId,
214
214
  };
215
215
  const changeBaseInfo = this.sectionTabData[this.sectionTabType]?.baseInfo || {};
216
216
  return Object.assign({}, this.baseInfo, changeBaseInfo, baseInfo);
217
217
  }
218
218
 
219
219
  updatePosInfo(floorData, _dataDefines = []) {
220
220
  const { floorIdx = '' } = floorData;
221
221
  const changePosInfo = this.sectionTabData[this.sectionTabType]?.posInfo || {};
222
222
  return Object.assign({}, this.posInfo, changePosInfo, {
223
223
  p_id: SectionReportTabNameType[this.sectionTabType],
224
224
  floorIndex: `${floorIdx}`,
225
225
  term:
226
226
  isH5 && (global.info.isJingGouMiniViewState || global.info.isJingxiMiniViewState)
227
227
  ? `${TerminalType.WX_MINI}-m`
228
228
  : this.terminalType,
229
229
  });
230
230
  }
231
231
  updateRecInfo(floorData, _dataDefines) {
232
232
  const { algoId = '', userGroupStr = '' } = floorData;
233
233
  const changeRecInfo = this.sectionTabData[this.sectionTabType]?.recInfo || {};
234
234
  return Object.assign({}, this.recInfo, changeRecInfo, {
235
235
  algoId,
236
236
  moduleCrowdId: userGroupStr,
237
237
  });
238
238
  }
239
239
 
240
240
  updateMInfo(mInfo: any = [], floorData) {
241
241
  const { floorExtInfo, moduleId } = floorData;
242
242
  const hasFloorInfo = floorExtInfo && moduleId;
243
243
  if (Array.isArray(mInfo)) {
244
244
  return mInfo.map((item: any) => {
245
245
  if (item?.jumpUrl) {
246
246
  item.jumpUrl = /openApp\.jdMobile/i.test(item.jumpUrl)
247
247
  ? 'openApp'
248
248
  : encodeURIComponent(item.jumpUrl);
249
249
  }
250
250
  hasFloorInfo && (item.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`);
251
251
  return item;
252
252
  });
253
253
  } else {
254
254
  if (mInfo?.jumpUrl) {
255
255
  mInfo.jumpUrl = /openApp\.jdMobile/i.test(mInfo.jumpUrl)
256
256
  ? 'openApp'
257
257
  : encodeURIComponent(mInfo.jumpUrl);
258
258
  }
259
259
  hasFloorInfo && (mInfo.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`);
260
260
  !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0);
261
261
  return Object.assign({}, this.mInfo, mInfo);
262
262
  }
263
263
  }
264
264
 
265
265
  updateEtModelExposureInfo(floorData, _dataDefines, etModleArr, mInfoArr) {
266
266
  return {
267
267
  lstms: [],
268
268
  };
269
269
  }
270
270
 
271
271
  updateEtModelClickInfo(floorData, _dataDefines, etModleInfo = {}, mInfo) {
272
272
  return {
273
273
  lstm: [],
274
274
  };
275
275
  }
276
276
  getReportExposureFloorInfo(floorData, dataDefines, mInfoArr, etModelArr) {
277
277
  if (Array.isArray(mInfoArr)) {
278
278
  const getExposureLogArr = mInfoArr.map((item) => {
279
279
  return Object.assign(
280
280
  {},
281
281
  {
282
282
  baseInfo: this.updateBaseInfo(floorData, dataDefines),
283
283
  posInfo: this.updatePosInfo(floorData, dataDefines),
284
284
  recInfo: this.updateRecInfo(floorData, dataDefines),
285
285
  mInfo: this.updateMInfo(item, floorData),
286
286
  },
287
287
  );
288
288
  });
289
289
  return {
290
290
  logBaseInfo: getExposureLogArr,
291
291
  etModelInfo: this.updateEtModelExposureInfo(floorData, dataDefines, etModelArr, mInfoArr),
292
292
  };
293
293
  } else {
294
294
  return {
295
295
  logBaseInfo: Object.assign(
296
296
  {},
297
297
  {
298
298
  baseInfo: this.updateBaseInfo(floorData, dataDefines),
299
299
  posInfo: this.updatePosInfo(floorData, dataDefines),
300
300
  recInfo: this.updateRecInfo(floorData, dataDefines),
301
301
  mInfo: this.updateMInfo(mInfoArr, floorData),
302
302
  },
303
303
  ),
304
304
  etModelInfo: this.updateEtModelExposureInfo(floorData, dataDefines, etModelArr, mInfoArr),
305
305
  };
306
306
  }
307
307
  }
308
308
  getReportClickFloorInfo(floorData, dataDefines, mInfo, etModelInfo) {
309
309
  return {
310
310
  logBaseInfo: Object.assign(
311
311
  {},
312
312
  {
313
313
  baseInfo: this.updateBaseInfo(floorData, dataDefines),
314
314
  posInfo: this.updatePosInfo(floorData, dataDefines),
315
315
  recInfo: this.updateRecInfo(floorData, dataDefines),
316
316
  mInfo: this.updateMInfo(mInfo, floorData),
317
317
  },
318
318
  ),
319
319
  etModelInfo: this.updateEtModelClickInfo(floorData, dataDefines, etModelInfo, mInfo),
320
320
  };
321
321
  }
322
322
  getClickEventInfo(
323
323
  floorData,
324
324
  mInfo = {},
325
325
  etModelInfo = {},
326
326
  groupState = true,
327
327
  isIsvModule = false,
328
328
  ) {
329
329
  const dataDefines = getFloorDataToDataDefines(floorData);
330
330
  const getLogInfo = this.getReportClickFloorInfo(floorData, dataDefines, mInfo, etModelInfo);
331
331
  return groupState
332
332
  ? {
333
333
  eventId: `TerminatorNew_${!isIsvModule ? floorData?.floorExtInfo?.moduleFlag || floorData?.moduleFlag : 'IsvModule'}_Click`,
334
334
  jsonParam: getLogInfo,
335
335
  }
336
336
  : getLogInfo;
337
337
  }
338
338
  getExposureInfo(floorData, mInfo = {}, etModelInfo = {}, groupState = true, isIsvModule = false) {
339
339
  const dataDefines = getFloorDataToDataDefines(floorData);
340
340
  const getLogInfo = this.getReportExposureFloorInfo(floorData, dataDefines, mInfo, etModelInfo);
341
341
  return groupState
342
342
  ? {
343
343
  eventId: `TerminatorNew_${!isIsvModule ? floorData?.floorExtInfo?.moduleFlag || floorData?.moduleFlag : 'IsvModule'}_Expo`,
344
344
  jsonParam: getLogInfo,
345
345
  }
346
346
  : getLogInfo;
347
347
  }
348
348
  getIsvClickEventInfo(floorData, mInfo = {}, etModelInfo = {}) {
349
349
  return mInfo === 'custom'
350
350
  ? etModelInfo
351
351
  : this.getClickEventInfo(floorData, mInfo, etModelInfo, true, true);
352
352
  }
353
353
  getIsvExposureInfo(floorData, mInfo = {}, etModelInfo = {}) {
354
354
  return mInfo === 'custom'
355
355
  ? etModelInfo
356
356
  : this.getExposureInfo(floorData, mInfo, etModelInfo, true, true);
357
357
  }
358
358
 
359
359
  getCustomClickEventInfo(mInfo = {}, floorData = {}, etModelInfo = {}) {
360
360
  return this.getClickEventInfo(floorData, mInfo, etModelInfo, false, false);
361
361
  }
362
362
 
363
363
  getCustomExposureInfo(mInfo = {}, floorData = {}, etModelInfo = {}) {
364
364
  return this.getExposureInfo(floorData, mInfo, etModelInfo, false, false);
365
365
  }
366
366
 
367
367
  getFloorPointIndexClassName(floorData, index = 0, otherTip = '') {
368
368
  return isChartH5
369
369
  ? floorData && floorData?.uid
370
370
  ? `J_chart_floor_${floorData.uid}_point_${otherTip ? otherTip + '_' : ''}${index}`
371
371
  : ''
372
372
  : '';
373
373
  }
@@ -1 +1 @@
1
- import { isApp, getUrlQuery } from '../utils/jm-common'
1
+ import { isApp, getUrlQuery } from '../utils/jm-common'
2
2
  console.log('h5', isReflexToH5, getUrlQuery(window.location.href, 'reflex'))
3
3
  return new Promise((resolve, reject) => {
4
4
  if (isReflexToH5) {
5
5
  import('./web.base')
6
6
  .then(({ JumpEventWebReport }) => {
7
7
  if (JumpEventWebReport) {
8
8
  console.log('加载普通浏览器h5相关跳转事件js')
9
9
  JumpEventReport = new JumpEventWebReport({})
10
10
  resolve(JumpEventReport)
11
11
  }
12
12
  })
13
13
  .catch((err) => {
14
14
  reject(err)
15
15
  })
16
16
  } else {
17
17
  if (isApp('wx') && isApp('mp') && isH5AdnJxMini) {
18
18
  import('./web.jxwxapp')
19
19
  .then(({ JdJumpWebToJxWxapp }) => {
20
20
  if (JdJumpWebToJxWxapp) {
21
21
  JumpEventReport = new JdJumpWebToJxWxapp({})
22
22
  resolve(JumpEventReport)
23
23
  }
24
24
  })
25
25
  .catch((err) => {
26
26
  reject(err)
27
27
  })
28
28
  } else if (isApp('wx') && isApp('mp')) {
29
29
  import('./web.wxapp')
30
30
  .then(({ JdJumpWebToWxapp }) => {
31
31
  if (JdJumpWebToWxapp) {
32
32
  JumpEventReport = new JdJumpWebToWxapp({})
33
33
  resolve(JumpEventReport)
34
34
  }
35
35
  })
36
36
  .catch((err) => {
37
37
  reject(err)
38
38
  })
39
39
  } else if (isApp('jd') && !isApp('jdharmony')) {
40
40
  import('./web.jd')
41
41
  .then(({ JdJumpWebToJdApp }) => {
42
42
  if (JdJumpWebToJdApp) {
43
43
  JumpEventReport = new JdJumpWebToJdApp({})
44
44
  resolve(JumpEventReport)
45
45
  }
46
46
  })
47
47
  .catch((err) => {
48
48
  reject(err)
49
49
  })
50
50
  } else if (isApp('jdb')) {
51
51
  import('./web.jdb')
52
52
  .then(({ JdbJumpWebToJdbApp }) => {
53
53
  if (JdbJumpWebToJdbApp) {
54
54
  JumpEventReport = new JdbJumpWebToJdbApp({})
55
55
  resolve(JumpEventReport)
56
56
  }
57
57
  })
58
58
  .catch((err) => {
59
59
  reject(err)
60
60
  })
61
61
  } else if (isApp('jdjch')) {
62
62
  import('./web.jdjch')
63
63
  .then(({ JdbJumpWebToJdbApp }) => {
64
64
  if (JdbJumpWebToJdbApp) {
65
65
  JumpEventReport = new JdbJumpWebToJdbApp({})
66
66
  resolve(JumpEventReport)
67
67
  }
68
68
  })
69
69
  .catch((err) => {
70
70
  reject(err)
71
71
  })
72
72
  } else if (isApp('tjapp')) {
73
73
  import('./web.tjapp')
74
74
  .then(({ tjJumpWebTotjApp }) => {
75
75
  if (tjJumpWebTotjApp) {
76
76
  console.log('加载特价app内h5相关跳转事件js')
77
77
  JumpEventReport = new tjJumpWebTotjApp({})
78
78
  resolve(JumpEventReport)
79
79
  }
80
80
  })
81
81
  .catch((err) => {
82
82
  reject(err)
83
83
  })
84
84
  } else if (isPc) {
85
85
  import('./web.pc')
86
86
  .then(({ JumpEventWebReport }) => {
87
87
  if (JumpEventWebReport) {
88
88
  JumpEventReport = new JumpEventWebReport({})
89
89
  resolve(JumpEventReport)
90
90
  }
91
91
  })
92
92
  .catch((err) => {
93
93
  reject(err)
94
94
  })
95
95
  } else if (isTjJxM || isTjM) {
96
96
  import('./web.tjm')
97
97
  .then(({ JumpEventTJWebReport }) => {
98
98
  if (JumpEventTJWebReport) {
99
99
  JumpEventReport = new JumpEventTJWebReport({})
100
100
  resolve(JumpEventReport)
101
101
  }
102
102
  })
103
103
  .catch((err) => {
104
104
  reject(err)
105
105
  })
106
106
  } else {
107
107
  import('./web.base')
108
108
  .then(({ JumpEventWebReport }) => {
109
109
  if (JumpEventWebReport) {
110
110
  JumpEventReport = new JumpEventWebReport({})
111
111
  resolve(JumpEventReport)
112
112
  }
113
113
  })
114
114
  .catch((err) => {
115
115
  reject(err)
116
116
  })
117
117
  }
118
118
  }
119
119
  })