@conecli/cone-render 0.10.1-shop3.8 → 0.10.1-shop3.80

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 (109) hide show
  1. package/README.md +1 -1
  2. package/dist/api/index.ts +1 -1
  3. package/dist/common/accessibility.h5.ts +1 -0
  4. package/dist/common/accessibility.ts +0 -0
  5. package/dist/common/const.ts +1 -1
  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.weapp.tsx +1 -0
  11. package/dist/common/jssdk.ts +1 -1
  12. package/dist/common/jssdk.weapp.ts +1 -0
  13. package/dist/common/pageType.ts +1 -1
  14. package/dist/common/token/index.h5.ts +1 -1
  15. package/dist/common/token/token.jd.ts +1 -1
  16. package/dist/common/wxappApi.ts +1 -1
  17. package/dist/components/ErrorBoundary.tsx +1 -1
  18. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  19. package/dist/components/base/CountDown/index.tsx +1 -1
  20. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  21. package/dist/components/base/CustomVideo/index.tsx +1 -1
  22. package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
  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/InOrOutViewObserver/index.weapp.tsx +1 -0
  26. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  27. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  28. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  29. package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
  30. package/dist/components/base/NetworkDataError/const.ts +1 -1
  31. package/dist/components/base/NetworkDataError/index.module.scss +118 -72
  32. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  33. package/dist/components/base/Price/Base/index.module.scss +12 -0
  34. package/dist/components/base/Price/Base/index.tsx +1 -1
  35. package/dist/components/base/Price/Double/index.module.scss +24 -0
  36. package/dist/components/base/Price/Double/index.tsx +1 -1
  37. package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
  38. package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
  39. package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
  40. package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
  41. package/dist/components/debug/DebugLayout/index.module.scss +2 -2
  42. package/dist/components/floorItem.tsx +1 -1
  43. package/dist/components/isv/Floor/index.tsx +1 -1
  44. package/dist/components/remoteFloorItem.tsx +1 -1
  45. package/dist/interface/common.ts +1 -1
  46. package/dist/interface/component.ts +1 -1
  47. package/dist/interface/jumpEventReport.ts +1 -1
  48. package/dist/interface/service.ts +1 -1
  49. package/dist/jumpEventReport/base.ts +1 -1
  50. package/dist/jumpEventReport/const.ts +1 -1
  51. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  52. package/dist/jumpEventReport/index.h5.ts +1 -1
  53. package/dist/jumpEventReport/index.jd.ts +1 -1
  54. package/dist/jumpEventReport/index.weapp.ts +1 -1
  55. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  56. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  57. package/dist/jumpEventReport/logEventConfig.h5.ts +1 -0
  58. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  59. package/dist/jumpEventReport/web/report.ts +1 -1
  60. package/dist/jumpEventReport/web.base.ts +1 -1
  61. package/dist/jumpEventReport/web.jd.ts +1 -1
  62. package/dist/jumpEventReport/web.pc.ts +1 -1
  63. package/dist/jumpEventReport/web.tjm.ts +1 -1
  64. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  65. package/dist/language/en_US.json +274 -0
  66. package/dist/language/zh_CN.json +274 -0
  67. package/dist/language/zh_HK.json +274 -0
  68. package/dist/libs/openShopBridge.js +161 -0
  69. package/dist/libs/openShopBridge.min.js +1 -0
  70. package/dist/libs/taroAppReport.js +2 -2
  71. package/dist/modules/ContainerFloorList/index.h5.module.scss +16 -2
  72. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  73. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  74. package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
  75. package/dist/open/api/environment.ts +1 -1
  76. package/dist/open/api/shopMember.ts +1 -1
  77. package/dist/open/api/shopMember.weapp.ts +1 -0
  78. package/dist/open/api/track.ts +1 -1
  79. package/dist/open/api/util.ts +1 -1
  80. package/dist/open/components/index.ts +1 -1
  81. package/dist/open/index.ts +1 -1
  82. package/dist/sass/app.h5.scss +27 -1
  83. package/dist/service/fetchGateway.ts +1 -1
  84. package/dist/service/fetchGateway.weapp.ts +1 -1
  85. package/dist/service/fetchJsonp.weapp.ts +1 -0
  86. package/dist/service/http/const.ts +1 -1
  87. package/dist/service/http/h5Http.ts +1 -1
  88. package/dist/service/http/httpInterceptors.weapp.ts +1 -0
  89. package/dist/service/requestServer.h5.ts +1 -1
  90. package/dist/service/requestServer.ts +1 -1
  91. package/dist/service/requestServer.weapp.ts +1 -1
  92. package/dist/utils/connectNativeJsBridge.ts +1 -1
  93. package/dist/utils/h5Utils.ts +1 -1
  94. package/dist/utils/harmonyCallRouter.h5.ts +1 -0
  95. package/dist/utils/harmonyCallRouter.ts +0 -0
  96. package/dist/utils/index.h5.ts +1 -1
  97. package/dist/utils/index.ts +1 -1
  98. package/dist/utils/index.weapp.ts +1 -1
  99. package/dist/utils/jumpExtMapUtil.ts +1 -0
  100. package/dist/utils/log.ts +1 -0
  101. package/dist/utils/{sColor.js → sColor.ts} +1 -1
  102. package/dist/utils/sColor.weapp.ts +1 -0
  103. package/dist/utils/utils.ts +1 -1
  104. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  105. package/dist/wxapp/common/user_info.js +1 -1
  106. package/package.json +162 -141
  107. package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
  108. package/dist/utils/priceUtils.js +0 -1
  109. /package/dist/utils/{jumpExtMapUtil.js → jumpExtMapUtil.h5.ts} +0 -0
@@ -1 +1 @@
1
- import { isH5, isWxMinAndWxapp } 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,
20
19
  CONFIG_TYPE_SHOP_SEARCH = 31,
20
+ import { isH5, isWxMinAndWxapp } from '../utils'
21
21
  ? 'Terminator_New_Mobile_Shop'
22
22
  : 'W_jdgwxcx_shop'
23
23
  CONFIG_TYPE_NO_LINK = 0,
24
24
  CONFIG_TYPE_SKU_LIST = 1,
25
25
  CONFIG_TYPE_COUPON_LIST = 2,
26
26
  CONFIG_TYPE_CATEGORY = 3,
27
27
  CONFIG_TYPE_JSHOP_MOBILE = 4,
28
28
  CONFIG_TYPE_JSHOP_PC = 5,
29
29
  CONFIG_TYPE_JSHOP_DETAIL = 6,
30
30
  CONFIG_TYPE_CUSTOM_LINK = 7,
31
31
  CONFIG_TYPE_MEMBER = 9,
32
32
  CONFIG_TYPE_SHOP_ACTIVITY = 10,
33
33
  CONFIG_TYPE_SHOP_HOME = 12,
34
34
  CONFIG_TYPE_ANCHOR_POINT = 13,
35
35
  CONFIG_TYPE_SHOPPING_GUIDE = 17,
36
36
  CONFIG_TYPE_MINI_PROGRAM = 18,
37
37
  CONFIG_TYPE_FINANCE_COUPON = 22,
38
38
  CONFIG_TYPE_CATEGORY_PAGE = 25,
39
39
  CONFIG_TYPE_SHOP_SEARCH = 31,
@@ -1 +1 @@
1
- import global from '../common'
2
1
  mdExtInfo = {}
3
2
  const getReportEntrance = isJdApp ? global.info?.openAppData?.sourceInfo?.entrance ?? entrance : entrance
4
3
  const getReportModuleId = isJdApp ? global.info?.openAppData?.sourceInfo?.moduleId ?? moduleId : moduleId
5
4
  pageCrowdId: mdExtInfo?.userGroupStr || '',
6
5
  updateRecInfo(floorData, _dataDefines) {
7
6
  const { algoId = '', userGroupStr = '' } = floorData
8
7
  const changeRecInfo =
9
8
  this.sectionTabData[this.sectionTabType]?.recInfo || {}
10
9
  return Object.assign({}, this.recInfo, changeRecInfo, {
11
10
  algoId,
12
11
  moduleCrowdId: userGroupStr
13
12
  })
14
13
  }
15
14
 
16
15
  updateMInfo(mInfo: any = [], floorData) {
17
16
  const { floorExtInfo, moduleId } = floorData
18
17
  const hasFloorInfo = floorExtInfo && moduleId
19
18
  if(Array.isArray(mInfo)){
20
19
  return mInfo.map((item: any) => {
21
20
  if(item?.jumpUrl){
22
21
  item.jumpUrl = /openApp\.jdMobile/i.test(item.jumpUrl) ? 'openApp' : encodeURIComponent(item.jumpUrl)
23
22
  }
24
23
  hasFloorInfo && (item.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
25
24
  return item
26
25
  })
27
26
  }else {
28
27
  if(mInfo?.jumpUrl){
29
28
  mInfo.jumpUrl = /openApp\.jdMobile/i.test(mInfo.jumpUrl) ? 'openApp' : encodeURIComponent(mInfo.jumpUrl)
30
29
  }
31
30
  hasFloorInfo && (mInfo.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
32
31
  !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0)
33
32
  return Object.assign({}, this.mInfo, mInfo)
34
33
  }
35
34
  }
36
35
 
37
36
  updateEtModelExposureInfo(floorData,_dataDefines,etModleArr,mInfoArr) {
38
37
  return {
39
38
  lstms: []
40
39
  }
41
40
  }
42
41
 
43
42
  updateEtModelClickInfo(floorData, _dataDefines, etModleInfo = {}, mInfo) {
44
43
  return {
45
44
  lstm: [],
46
45
  }
47
46
  }
48
47
  return mInfo === 'custom' ? etModelInfo : this.getClickEventInfo(floorData,mInfo,etModelInfo,true,true)
49
48
  return mInfo === 'custom' ? etModelInfo : this.getExposureInfo(floorData,mInfo,etModelInfo,true,true)
50
49
 
51
50
  getCustomClickEventInfo(mInfo = {},floorData = {}, etModelInfo = {}){
52
51
  return this.getClickEventInfo(floorData,mInfo,etModelInfo,false,false)
53
52
  }
54
53
 
55
54
  getCustomExposureInfo(mInfo = {}, floorData = {}, etModelInfo = {}){
56
55
  return this.getExposureInfo(floorData,mInfo,etModelInfo,false,false)
57
56
  }
58
57
 
59
58
  getFloorPointIndexClassName(floorData, index = 0, otherTip = '') {
60
59
  return isChartH5 ? (floorData && floorData?.uid ? `J_chart_floor_${floorData.uid}_point_${otherTip ? otherTip + '_' : ''}${index}` : '') : ''
61
60
  }
61
+ import global from '../common';
62
62
  JD_APP: 'app',
63
63
  Mobile: 'h5',
64
64
  PC: 'pc',
65
65
  JD_MINI: 'j_x',
66
66
  WX_MINI: 'x',
67
67
  terminalType: TerminalType.Mobile,
68
68
  sectionTabType: SECTION_HOME_TAB_TYPE.HOME_WELL_CHOSEN,
69
69
  sectionTabData: {},
70
70
  baseInfo: {},
71
71
  posInfo: {},
72
72
  recInfo: {},
73
73
  mInfo: {},
74
74
  pageData: {},
75
75
  shopId: '',
76
76
  'mModularCoupon',
77
77
  'newSeries',
78
78
  'unlimitedDropDown',
79
79
  'modularNewComer',
80
80
  'posterSwiper',
81
81
  'storeShelf',
82
82
  'storeBrand',
83
83
  'blockbusterNewProduct',
84
84
  'seriesNewProductsTable',
85
85
  'seriesNewProducts',
86
86
  'brandHotWare',
87
87
  'GoodsAI',
88
88
  'BannerAI',
89
89
  private terminalType: string;
90
90
  private sectionTabType: number;
91
91
  private baseInfo: object;
92
92
  private posInfo: object;
93
93
  private recInfo: object;
94
94
  private mInfo: object;
95
95
  private sectionTabData: object;
96
96
  private shopId: object
97
97
  private pageData: object
98
98
  #floorModuleFlagForOldReportList: any[]
99
99
  #floorModuleFlagForNewReportList: any[]
100
100
  constructor(opt = {}) {
101
101
  this.pageData = {}
102
102
  this.#floorModuleFlagForOldReportList = [
103
103
  ...FloorUseableModuleTypeList,
104
104
  ...RemoteLoadFloorList,
105
105
  ...remoteLoadFloorModuleTypeList
106
106
  ].concat(window?.shopGlobalSwitch?.floorModuleFlagForOldReportList || []);
107
107
  this.#floorModuleFlagForNewReportList = window?.shopGlobalSwitch?.floorModuleFlagForNewReportList || []
108
108
  this.getConfig(opt);
109
109
  }
110
110
  getConfig(opt, isUpdate = false) {
111
111
  return isUpdate ? Object.assign(this, {}, opt) : Object.assign(this, {}, DefaultConfig, opt);
112
112
  }
113
113
 
114
114
  resetConfigParamsInit() {
115
115
  const getDefaultOpt = Object.assign({}, DefaultConfig);
116
116
  Object.keys(getDefaultOpt).forEach((key) => {
117
117
  this[key] && (this[key] = getDefaultOpt[key]);
118
118
  });
119
119
  }
120
120
 
121
121
  initReportBaseData(
122
122
  initData,
123
123
  terminalType = TerminalType.Mobile,
124
124
  sectionTabType = SECTION_HOME_TAB_TYPE.HOME_WELL_CHOSEN,
125
125
  ) {
126
126
  initData && this.resetConfigParamsInit();
127
127
  this.updateTerminalAndSectionType(terminalType, sectionTabType);
128
128
  initData && this.updateAllInfo(initData);
129
129
  }
130
130
  updateTerminalAndSectionType(
131
131
  terminalType = TerminalType.Mobile,
132
132
  sectionTabType = SECTION_HOME_TAB_TYPE.HOME_WELL_CHOSEN,
133
133
  ) {
134
134
  this.terminalType = terminalType;
135
135
  this.sectionTabType = sectionTabType;
136
136
  }
137
137
 
138
138
  updateSectionTabDataInfo(pageData) {
139
139
  const { shopId, projectId = '', templateId = '', templateVer = '' } = pageData;
140
140
  this.sectionTabData[this.sectionTabType] = {
141
141
  baseInfo: {
142
142
  shopId: `${shopId}`,
143
143
  shopid: `${shopId}`,
144
144
  projectId: `${projectId}`,
145
145
  templateId: `${templateId}`,
146
146
  templateVer: `${templateVer}`,
147
147
  }
148
148
  };
149
149
  }
150
150
  updateAllInfo(pageData) {
151
151
  const {
152
152
  shopId,
153
153
  projectId = '',
154
154
  pageId = '',
155
155
  templateId = '',
156
156
  templateVer = '',
157
157
  mdExtInfo = {},
158
158
  } = pageData;
159
159
  const {
160
160
  recBroker = '',
161
161
  tabSpm = '',
162
162
  moduleId = '-100',
163
163
  entrance = '-100',
164
164
  } = global.info.queryInfo;
165
165
  const getReportEntrance = isJdApp
166
166
  ? (global.info?.openAppData?.sourceInfo?.entrance ?? entrance)
167
167
  : entrance;
168
168
  const getReportModuleId = isJdApp
169
169
  ? (global.info?.openAppData?.sourceInfo?.moduleId ?? moduleId)
170
170
  : moduleId;
171
171
  const baseInfo = {
172
172
  shopid: `${shopId}`,
173
173
  shopId: `${shopId}`,
174
174
  dataType: '2',
175
175
  projectId: `${projectId}`,
176
176
  pageId: `${pageId}`,
177
177
  templateId: `${templateId}`,
178
178
  templateVer: `${templateVer}`,
179
179
  };
180
180
  const posInfo = {
181
181
  p_id: SectionReportTabNameType[this.sectionTabType],
182
182
  pageSource: `${getReportModuleId}#${getReportEntrance}`,
183
183
  tabSpm,
184
184
  floorIndex: '0',
185
185
  term: this.terminalType,
186
186
  };
187
187
  const recInfo = {
188
188
  rec_broker: recBroker,
189
189
  broker_info: '',
190
190
  source: '',
191
191
  algoId: '',
192
192
  pageCrowdId: mdExtInfo?.userGroupStr || '',
193
193
  };
194
194
  this.pageData = pageData;
195
195
  this.shopId = shopId;
196
196
  return this.getConfig(
197
197
  {
198
198
  baseInfo,
199
199
  posInfo,
200
200
  recInfo,
201
201
  },
202
202
  true,
203
203
  );
204
204
  }
205
205
  updateBaseInfo(floorData, dataDefines = []) {
206
206
  const { middleTemplateId = '', moduleId = '', moduleInstanceId = '', uid = '' } = floorData;
207
207
  const nodeText = dataDefines[0]?.nodeText || {
208
208
  materialType: '',
209
209
  materialId: '',
210
210
  };
211
211
  const { materialType = '', materialId = '' } = nodeText;
212
212
  const baseInfo = {
213
213
  dataType: `${nodeText['autoPull'] == 1 ? 1 : 2}`,
214
214
  moduleId: `${moduleId}`,
215
215
  moduleInstanceId: `${moduleInstanceId}`,
216
216
  middleTemplateId: `${middleTemplateId}`,
217
217
  uid: `${uid}`,
218
218
  materialType: `${materialType}`,
219
219
  materialId,
220
220
  };
221
221
  const changeBaseInfo = this.sectionTabData[this.sectionTabType]?.baseInfo || {};
222
222
  return Object.assign({}, this.baseInfo, changeBaseInfo, baseInfo);
223
223
  }
224
224
 
225
225
  updatePosInfo(floorData, _dataDefines = []) {
226
226
  const { floorIdx = '' } = floorData;
227
227
  const changePosInfo = this.sectionTabData[this.sectionTabType]?.posInfo || {};
228
228
  return Object.assign({}, this.posInfo, changePosInfo, {
229
229
  p_id: SectionReportTabNameType[this.sectionTabType],
230
230
  floorIndex: `${floorIdx}`,
231
231
  term:
232
232
  isH5 && (global.info.isJingGouMiniViewState || global.info.isJingxiMiniViewState)
233
233
  ? `${TerminalType.WX_MINI}-m`
234
234
  : this.terminalType,
235
235
  });
236
236
  }
237
237
  updateRecInfo(floorData, _dataDefines) {
238
238
  const { algoId = '', userGroupStr = '' } = floorData;
239
239
  const changeRecInfo = this.sectionTabData[this.sectionTabType]?.recInfo || {};
240
240
  return Object.assign({}, this.recInfo, changeRecInfo, {
241
241
  algoId,
242
242
  moduleCrowdId: userGroupStr,
243
243
  });
244
244
  }
245
245
 
246
246
  updateMInfo(mInfo: any = [], floorData) {
247
247
  const { floorExtInfo, moduleId } = floorData;
248
248
  const hasFloorInfo = floorExtInfo && moduleId;
249
249
  if (Array.isArray(mInfo)) {
250
250
  return mInfo.map((item: any) => {
251
251
  if (item?.jumpUrl) {
252
252
  item.jumpUrl = /openApp\.jdMobile/i.test(item.jumpUrl)
253
253
  ? 'openApp'
254
254
  : encodeURIComponent(item.jumpUrl);
255
255
  }
256
256
  hasFloorInfo && (item.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`);
257
257
  return item;
258
258
  });
259
259
  } else {
260
260
  if (mInfo?.jumpUrl) {
261
261
  mInfo.jumpUrl = /openApp\.jdMobile/i.test(mInfo.jumpUrl)
262
262
  ? 'openApp'
263
263
  : encodeURIComponent(mInfo.jumpUrl);
264
264
  }
265
265
  hasFloorInfo && (mInfo.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`);
266
266
  !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0);
267
267
  return Object.assign({}, this.mInfo, mInfo);
268
268
  }
269
269
  }
270
270
 
271
271
  getReportExposureFloorInfo(floorData, dataDefines, mInfoArr, etModelInfo,groupState,isNewReport = false) {
272
272
  const getModuleFlag = floorData?.floorExtInfo?.moduleFlag || floorData?.moduleFlag;
273
273
  const mInfoIsArr = Array.isArray(mInfoArr)
274
274
  if((groupState && !this.#floorModuleFlagForNewReportList.includes(getModuleFlag) && this.#floorModuleFlagForOldReportList.includes(getModuleFlag) || (!isNewReport && !groupState))){
275
275
  const getBaseChangeInfo = {
276
276
  baseInfo: this.updateBaseInfo(floorData, dataDefines),
277
277
  posInfo: this.updatePosInfo(floorData, dataDefines),
278
278
  recInfo: this.updateRecInfo(floorData, dataDefines),
279
279
  }
280
280
  if (mInfoIsArr) {
281
281
  const getExposureLogArr = mInfoArr.map((item) => {
282
282
  return Object.assign(
283
283
  {},
284
284
  {
285
285
  ...getBaseChangeInfo,
286
286
  mInfo: this.updateMInfo(item, floorData),
287
287
  },
288
288
  );
289
289
  });
290
290
  return {
291
291
  logBaseInfo: getExposureLogArr,
292
292
  etModelInfo
293
293
  };
294
294
  } else {
295
295
  return {
296
296
  logBaseInfo: Object.assign(
297
297
  {},
298
298
  {
299
299
  ...getBaseChangeInfo,
300
300
  mInfo: this.updateMInfo(mInfoArr, floorData),
301
301
  },
302
302
  ),
303
303
  etModelInfo
304
304
  };
305
305
  }
306
306
  }else {
307
307
  const getBaseChangeInfo = {
308
308
  ...this.updateBaseInfo(floorData, dataDefines),
309
309
  ...this.updatePosInfo(floorData, dataDefines),
310
310
  ...this.updateRecInfo(floorData, dataDefines),
311
311
  }
312
312
  if (mInfoIsArr) {
313
313
  const getExposureLogArr = mInfoArr.map((item) => {
314
314
  return Object.assign(
315
315
  {},
316
316
  {
317
317
  ...getBaseChangeInfo,
318
318
  ...this.updateMInfo(item, floorData),
319
319
  },
320
320
  );
321
321
  });
322
322
  return {
323
323
  logBaseInfo: getExposureLogArr,
324
324
  etModelInfo
325
325
  };
326
326
  } else {
327
327
  return {
328
328
  logBaseInfo: Object.assign(
329
329
  {},
330
330
  {
331
331
  ...getBaseChangeInfo,
332
332
  ...this.updateMInfo(mInfoArr, floorData),
333
333
  },
334
334
  ),
335
335
  etModelInfo
336
336
  };
337
337
  }
338
338
  }
339
339
  }
340
340
 
341
341
  getReportClickFloorInfo(floorData, dataDefines, mInfo, etModelInfo,groupState,isNewReport = false) {
342
342
  const getModuleFlag = floorData?.floorExtInfo?.moduleFlag || floorData?.moduleFlag;
343
343
  if((groupState && !this.#floorModuleFlagForNewReportList.includes(getModuleFlag) && this.#floorModuleFlagForOldReportList.includes(getModuleFlag) || (!isNewReport && !groupState))){
344
344
  return {
345
345
  logBaseInfo: Object.assign(
346
346
  {},
347
347
  {
348
348
  baseInfo: this.updateBaseInfo(floorData, dataDefines),
349
349
  posInfo: this.updatePosInfo(floorData, dataDefines),
350
350
  recInfo: this.updateRecInfo(floorData, dataDefines),
351
351
  mInfo: this.updateMInfo(mInfo, floorData),
352
352
  },
353
353
  ),
354
354
  etModelInfo
355
355
  };
356
356
  }else {
357
357
  return {
358
358
  logBaseInfo: Object.assign(
359
359
  {},
360
360
  {
361
361
  ...this.updateBaseInfo(floorData, dataDefines),
362
362
  ...this.updatePosInfo(floorData, dataDefines),
363
363
  ...this.updateRecInfo(floorData, dataDefines),
364
364
  ...this.updateMInfo(mInfo, floorData),
365
365
  },
366
366
  ),
367
367
  etModelInfo
368
368
  };
369
369
  }
370
370
  }
371
371
  getClickEventInfo(
372
372
  floorData,
373
373
  mInfo = {},
374
374
  etModelInfo = {},
375
375
  groupState = true,
376
376
  isIsvModule = false,
377
377
  isNewReport = false
378
378
  ) {
379
379
  const dataDefines = getFloorDataToDataDefines(floorData);
380
380
  const getLogInfo = this.getReportClickFloorInfo(floorData, dataDefines, mInfo, etModelInfo, groupState,isNewReport);
381
381
  return groupState
382
382
  ? {
383
383
  eventId: `TerminatorNew_${!isIsvModule ? floorData?.floorExtInfo?.moduleFlag || floorData?.moduleFlag : 'IsvModule'}_Click`,
384
384
  jsonParam: getLogInfo,
385
385
  }
386
386
  : getLogInfo;
387
387
  }
388
388
  getExposureInfo(floorData, mInfo = {}, etModelInfo = {}, groupState = true, isIsvModule = false, isNewReport = false) {
389
389
  const dataDefines = getFloorDataToDataDefines(floorData);
390
390
  const getLogInfo = this.getReportExposureFloorInfo(floorData, dataDefines, mInfo, etModelInfo, groupState, isNewReport);
391
391
  return groupState
392
392
  ? {
393
393
  eventId: `TerminatorNew_${!isIsvModule ? floorData?.floorExtInfo?.moduleFlag || floorData?.moduleFlag : 'IsvModule'}_Expo`,
394
394
  jsonParam: getLogInfo,
395
395
  }
396
396
  : getLogInfo;
397
397
  }
398
398
  getIsvClickEventInfo(floorData, mInfo = {}, etModelInfo = {}) {
399
399
  return mInfo === 'custom'
400
400
  ? etModelInfo
401
401
  : this.getClickEventInfo(floorData, mInfo, etModelInfo, true, true);
402
402
  }
403
403
  getIsvExposureInfo(floorData, mInfo = {}, etModelInfo = {}) {
404
404
  return mInfo === 'custom'
405
405
  ? etModelInfo
406
406
  : this.getExposureInfo(floorData, mInfo, etModelInfo, true, true);
407
407
  }
408
408
 
409
409
  getCustomClickEventInfo(mInfo = {}, floorData = {}, etModelInfo = {}) {
410
410
  return this.getClickEventInfo(floorData, mInfo, etModelInfo, false, false);
411
411
  }
412
412
 
413
413
  getCustomNewClickEventInfo(mInfo = {}, floorData = {}, etModelInfo = {}) {
414
414
  return this.getClickEventInfo(floorData, mInfo, etModelInfo, false, false, true);
415
415
  }
416
416
 
417
417
  getCustomExposureInfo(mInfo = {}, floorData = {}, etModelInfo = {}) {
418
418
  return this.getExposureInfo(floorData, mInfo, etModelInfo, false, false);
419
419
  }
420
420
 
421
421
  getCustomNewExposureInfo(mInfo = {}, floorData = {}, etModelInfo = {}) {
422
422
  return this.getExposureInfo(floorData, mInfo, etModelInfo, false, false, true);
423
423
  }
424
424
 
425
425
  getFloorPointIndexClassName(floorData, index = 0, otherTip = '') {
426
426
  return isChartH5
427
427
  ? floorData && floorData?.uid
428
428
  ? `J_chart_floor_${floorData.uid}_point_${otherTip ? otherTip + '_' : ''}${index}`
429
429
  : ''
430
430
  : '';
431
431
  }