@conecli/cone-render 0.10.1-isv2.2 → 0.10.1-isv3.1

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 (123) 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 +1 -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.ascf.ts +1 -0
  17. package/dist/common/wxappApi.ts +1 -1
  18. package/dist/components/ErrorBoundary.tsx +1 -1
  19. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  20. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  21. package/dist/components/base/CountDown/index.tsx +1 -1
  22. package/dist/components/base/CustomScrollView/index-back.tsx +1 -0
  23. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  24. package/dist/components/base/CustomVideo/index.tsx +1 -1
  25. package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
  26. package/dist/components/base/Dialog/index.module.scss +11 -0
  27. package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
  28. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  29. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  30. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  31. package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
  32. package/dist/components/base/InViewRender/index.tsx +1 -1
  33. package/dist/components/base/ItemViewExposureSmart/index.module.scss +2 -2
  34. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  35. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  36. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  37. package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
  38. package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
  39. package/dist/components/base/NetworkDataError/const.ts +1 -1
  40. package/dist/components/base/NetworkDataError/index.module.scss +118 -72
  41. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  42. package/dist/components/base/Price/Base/index.module.scss +12 -0
  43. package/dist/components/base/Price/Base/index.tsx +1 -1
  44. package/dist/components/base/Price/Double/index.module.scss +25 -1
  45. package/dist/components/base/Price/Double/index.tsx +1 -1
  46. package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
  47. package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
  48. package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
  49. package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
  50. package/dist/components/debug/DebugLayout/index.module.scss +2 -2
  51. package/dist/components/floorItem.tsx +1 -1
  52. package/dist/components/floorItem.weapp.tsx +1 -1
  53. package/dist/components/isv/Floor/index.tsx +1 -1
  54. package/dist/components/remoteFloorItem.tsx +1 -1
  55. package/dist/config/env.ts +1 -1
  56. package/dist/interface/common.ts +1 -1
  57. package/dist/interface/component.ts +1 -1
  58. package/dist/interface/jumpEventReport.ts +1 -1
  59. package/dist/interface/service.ts +1 -1
  60. package/dist/jumpEventReport/base.ts +1 -1
  61. package/dist/jumpEventReport/const.ts +1 -1
  62. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  63. package/dist/jumpEventReport/index.h5.ts +1 -1
  64. package/dist/jumpEventReport/index.jd.ts +1 -1
  65. package/dist/jumpEventReport/index.weapp.ts +1 -1
  66. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  67. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  68. package/dist/jumpEventReport/logEventConfig.h5.ts +1 -0
  69. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  70. package/dist/jumpEventReport/web/report.ts +1 -1
  71. package/dist/jumpEventReport/web.base.ts +1 -1
  72. package/dist/jumpEventReport/web.jd.ts +1 -1
  73. package/dist/jumpEventReport/web.pc.ts +1 -1
  74. package/dist/jumpEventReport/web.tjm.ts +1 -1
  75. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  76. package/dist/language/en_US.json +395 -0
  77. package/dist/language/zh_CN.json +395 -0
  78. package/dist/language/zh_HK.json +395 -0
  79. package/dist/libs/openShopBridge.js +161 -0
  80. package/dist/libs/openShopBridge.min.js +1 -0
  81. package/dist/libs/taroAppReport.js +2 -2
  82. package/dist/modules/ContainerFloorList/index.h5.module.scss +80 -53
  83. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  84. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  85. package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
  86. package/dist/open/api/environment.ts +1 -1
  87. package/dist/open/api/shopMember.ts +1 -1
  88. package/dist/open/api/shopMember.weapp.ts +1 -0
  89. package/dist/open/api/track.ts +1 -1
  90. package/dist/open/api/util.ts +1 -1
  91. package/dist/open/components/index.ts +1 -1
  92. package/dist/open/index.ts +1 -1
  93. package/dist/sass/app.h5.scss +278 -224
  94. package/dist/sass/base.scss +8 -4
  95. package/dist/service/fetchGateway.ts +1 -1
  96. package/dist/service/fetchGateway.weapp.ts +1 -0
  97. package/dist/service/fetchJsonp.weapp.ts +1 -0
  98. package/dist/service/http/colorSign.ts +1 -1
  99. package/dist/service/http/const.ts +1 -1
  100. package/dist/service/http/h5Http.ts +1 -1
  101. package/dist/service/http/httpInterceptors.weapp.ts +1 -0
  102. package/dist/service/requestServer.h5.ts +1 -1
  103. package/dist/service/requestServer.ts +1 -1
  104. package/dist/service/requestServer.weapp.ts +1 -0
  105. package/dist/utils/connectNativeJsBridge.ts +1 -1
  106. package/dist/utils/h5Utils.ts +1 -1
  107. package/dist/utils/harmonyCallRouter.h5.ts +1 -0
  108. package/dist/utils/harmonyCallRouter.ts +0 -0
  109. package/dist/utils/index.h5.ts +1 -1
  110. package/dist/utils/index.ts +1 -1
  111. package/dist/utils/index.weapp.ts +1 -1
  112. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  113. package/dist/utils/jumpExtMapUtil.ts +1 -0
  114. package/dist/utils/jumpExtMapUtil.weapp.ts +1 -0
  115. package/dist/utils/log.ts +1 -0
  116. package/dist/utils/sColor.ts +1 -0
  117. package/dist/utils/sColor.weapp.ts +1 -0
  118. package/dist/utils/utils.ts +1 -1
  119. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  120. package/dist/wxapp/common/user_info.js +1 -1
  121. package/package.json +164 -141
  122. package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
  123. package/dist/utils/priceUtils.js +0 -1
@@ -1 +1 @@
1
- import React from 'react'
2
1
  NETWORK_DATA_TYPE,
3
2
  M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
4
3
  APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
5
4
  containerFloorListData: ComponentInterFace.ContainerItemData[]
6
5
  className?: string
7
6
  containerItemClass?: object
8
7
  style?: object
9
8
  hasGoodsFeeds?: boolean
10
9
  builtInComponents?: Object
11
10
  loadingEndComponentFn?: Function
12
11
  sectionType?: string
13
12
  updateShopFloorDataFn?: Function
14
13
  updateContainerFloorListDataFn?: Function
15
14
  refreshFloorListDataFn?: Function
16
15
  refreshFloorListDataBtnLabel?: string
17
16
  customErrorIsvFloorModule?: React.ReactElement
18
17
  componentExtend?: React.ReactElement
19
18
  luxuryFixedIndex?: number
20
19
  const { windowHeight } = taroJdBaseInfo.info.sysInfo
21
20
  const {
22
21
  className,
23
22
  style,
24
23
  containerItemClass = null,
25
24
  containerFloorListData,
26
25
  builtInComponents,
27
26
  loadingEndComponentFn,
28
27
  sectionType,
29
28
  updateShopFloorDataFn,
30
29
  updateContainerFloorListDataFn,
31
30
  refreshFloorListDataFn,
32
31
  refreshFloorListDataBtnLabel,
33
32
  customErrorIsvFloorModule,
34
33
  luxuryFixedIndex = -1,
35
34
  } = props
36
35
 
37
36
  const renderFloorItem = (
38
37
  item,
39
38
  floorItem,
40
39
  floorIndex,
41
40
  containerLayoutLeftRightMargin,
42
41
  lazyLoadState = false,
43
42
  index,
44
43
  borderStyle,
45
44
  ) => {
46
45
  return (
47
46
  <View
48
47
  className={classNames(shopContainerListStyle['d-floor-item'])}
49
48
  data-floor-uid={floorItem?.uid}
50
49
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
51
50
  data-lazy-load={lazyLoadState}
52
51
  key={floorItem.uid}
53
52
  id={`J_floor_${floorItem.uid}`}
54
53
  style={borderStyle}
55
54
  >
56
55
  {isChartH5 && (
57
56
  <View
58
57
  className={shopContainerListStyle['d-floor-chart-item']}
59
58
  id={`J_chart_floor_${floorItem?.uid}`}
60
59
  data-floor-uid={floorItem?.uid}
61
60
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
62
61
  />
63
62
  )}
64
63
  <FloorListItem
65
64
  floorIndex={floorIndex}
66
65
  floorData={floorItem}
67
66
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
68
67
  containerBorderRadius={borderStyle}
69
68
  updateShopFloorDataFn={updateShopFloorDataFn}
70
69
  loadingEndComponentFn={loadingEndComponentFn}
71
70
  key={floorItem.uid}
72
71
  builtInComponents={builtInComponents}
73
72
  updateContainerFloorListDataFn={updateContainerFloorListDataFn}
74
73
  customErrorIsvFloorModule={customErrorIsvFloorModule}
75
74
  />
76
75
  {index === luxuryFixedIndex ? props.children : null}
77
76
  </View>
78
77
  )
79
78
  }
80
79
 
81
80
  const getFloorSetHeight = (item) => {
82
81
  const getHeight = item?.floorExtInfo?.floorHeight
83
82
  ? Number(item?.floorExtInfo?.floorHeight)
84
83
  : 200
85
84
  return getHeight > 0 ? getHeight : 200
86
85
  }
87
86
  const containerFloorListDataLen = containerFloorListData.length
88
87
  return (
89
88
  <View
90
89
  className={classNames(
91
90
  className,
92
91
  shopContainerListStyle['d-shop-container-list'],
93
92
  )}
94
93
  style={style}
95
94
  >
96
95
  <View id="J_shopContainerFloorList">
97
96
  {containerFloorListDataLen > 0 ? (
98
97
  containerFloorListData.map((item, index) => {
99
98
  const containerLayoutLeftRightMargin =
100
99
  (item.marginLeft || 0) + (item.marginRight || 0)
101
100
  const getContainerId = `J_container_${item.containerId}`
102
101
  const borderStyle = getBorderStyle(
103
102
  item,
104
103
  index,
105
104
  containerFloorListData,
106
105
  containerFloorListDataLen,
107
106
  )
108
107
  if (index === containerFloorListDataLen - 1) item.marginBottom = 8
109
108
  return (
110
109
  <React.Fragment key={item.containerId + index}>
111
110
  {item.addLuxuryStyle ? (
112
111
  <View className={shopContainerListStyle['d-luxury-header']} />
113
112
  ) : null}
114
113
  {item.addLuxuryBackupStyle ? (
115
114
  <View
116
115
  style={{
117
116
  height:
118
117
  taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight +
119
118
  'px',
120
119
  }}
121
120
  className={shopContainerListStyle['d-luxury-header-black']}
122
121
  />
123
122
  ) : null}
124
123
  {typeof item?.renderExtendComponent === 'function'
125
124
  ? item?.renderExtendComponent(item?.floorExtendData)
126
125
  : null}
127
126
  <View
128
127
  className={classNames(
129
128
  shopContainerListStyle['d-container-item'],
130
129
  containerItemClass,
131
130
  )}
132
131
  id={getContainerId}
133
132
  key={item.containerId}
134
133
  data-container-id={item?.containerId}
135
134
  data-container-type={item?.typeCode}
136
135
  style={{
137
136
  marginBottom: item.marginBottom
138
137
  ? `${item.marginBottom}px`
139
138
  : 0,
140
139
  marginTop: item.marginTop ? `${item.marginTop}px` : 0,
141
140
  marginLeft: item.marginLeft ? `${item.marginLeft}px` : 0,
142
141
  marginRight: item.marginRight ? `${item.marginRight}px` : 0,
143
142
  borderTopLeftRadius:
144
143
  borderStyle?.borderTopLeftRadius || `0px`,
145
144
  borderTopRightRadius:
146
145
  borderStyle?.borderTopRightRadiu || `0px`,
147
146
  borderBottomLeftRadius:
148
147
  borderStyle?.borderBottomLeftRadius || `0px`,
149
148
  borderBottomRightRadius:
150
149
  borderStyle?.borderBottomRightRadius || `0px`,
151
150
  }}
152
151
  >
153
152
  {typeof item?.insertContainerStartComponent === 'function'
154
153
  ? item?.insertContainerStartComponent(item)
155
154
  : null}
156
155
  {item.floors &&
157
156
  item.floors.length > 0 &&
158
157
  item.floors?.map((floorItem, floorIndex) => {
159
158
  return index > lazyLoadStartIndex ? (
160
159
  <LazyLayoutLoad
161
160
  key={item.containerId}
162
161
  sectionType={sectionType}
163
162
  containerId={getContainerId}
164
163
  height={getFloorSetHeight(floorItem)}
165
164
  floorData={floorItem}
166
165
  >
167
166
  {renderFloorItem(
168
167
  item,
169
168
  floorItem,
170
169
  floorIndex,
171
170
  containerLayoutLeftRightMargin,
172
171
  true,
173
172
  index,
174
173
  borderStyle,
175
174
  )}
176
175
  </LazyLayoutLoad>
177
176
  ) : (
178
177
  renderFloorItem(
179
178
  item,
180
179
  floorItem,
181
180
  floorIndex,
182
181
  containerLayoutLeftRightMargin,
183
182
  false,
184
183
  index,
185
184
  borderStyle,
186
185
  )
187
186
  )
188
187
  })}
189
188
  </View>
190
189
  </React.Fragment>
191
190
  )
192
191
  })
193
192
  ) : (
194
193
  <View
195
194
  className={shopContainerListStyle['d-container-list-no-data']}
196
195
  style={{
197
196
  height: `${
198
197
  windowHeight -
199
198
  (isJdApp
200
199
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
201
200
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT)
202
201
  }px`,
203
202
  }}
204
203
  >
205
204
  <NetworkDataError
206
205
  netWorkShowType={NetWorkShowType.PART}
207
206
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
208
207
  refreshCallBackFn={
209
208
  refreshFloorListDataFn ? refreshFloorListDataFn : null
210
209
  }
211
210
  btnLabel={refreshFloorListDataBtnLabel || ''}
212
211
  />
213
212
  </View>
214
213
  )}
215
214
  </View>
216
215
  </View>
217
216
  )
217
+ import React from 'react';
218
218
  NETWORK_DATA_TYPE,
219
219
  M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
220
220
  APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
221
221
  (window.navigator.userAgent.includes('jdappPuppeteer') && window?.loadPuppeteerPageLocalData) ||
222
222
  window.location.href.includes('loadMasterJsType=xingyun');
223
223
  memberBaseInfo?: {
224
224
  shopId?: string;
225
225
  venderId?: string;
226
226
  channel?: string;
227
227
  venderType?: string;
228
228
  showDefaultModule?: boolean;
229
229
  customerLevel?: string;
230
230
  isUserForMember?: boolean;
231
231
  isLv0?: boolean;
232
232
  levelZeroMenuUrl?: string;
233
233
  totalRefresh?: functionType;
234
234
  callOpenCardPopPage?: functionType;
235
235
  };
236
236
  source?: string;
237
237
  containerFloorListData: ComponentInterFace.ContainerItemData[];
238
238
  extendInfoData?: object;
239
239
  className?: string;
240
240
  containerItemClass?: object;
241
241
  style?: object;
242
242
  hasGoodsFeeds?: boolean;
243
243
  builtInComponents?: object;
244
244
  loadingEndComponentFn?: functionType;
245
245
  sectionType?: string;
246
246
  updateShopFloorDataFn?: functionType;
247
247
  updateContainerFloorListDataFn?: functionType;
248
248
  refreshFloorListDataFn?: functionType;
249
249
  refreshFloorListDataBtnLabel?: string;
250
250
  customErrorIsvFloorModule?: React.ReactElement;
251
251
  componentExtend?: React.ReactElement;
252
252
  luxuryFixedIndex?: number;
253
253
  isContainerListHasMarginBottom?: boolean;
254
254
  switchConfig?: {
255
255
  [key: string]: any;
256
256
  };
257
257
  containerFloorListPageInfo?: {
258
258
  hasNextPage: boolean;
259
259
  isByPage: boolean;
260
260
  };
261
261
  const { windowHeight, screenHeight } = taroJdBaseInfo.info.sysInfo;
262
262
  const {
263
263
  source,
264
264
  className,
265
265
  style,
266
266
  memberBaseInfo,
267
267
  containerItemClass = null,
268
268
  containerFloorListData,
269
269
  extendInfoData,
270
270
  builtInComponents,
271
271
  loadingEndComponentFn,
272
272
  sectionType,
273
273
  updateShopFloorDataFn,
274
274
  updateContainerFloorListDataFn,
275
275
  refreshFloorListDataFn,
276
276
  refreshFloorListDataBtnLabel,
277
277
  customErrorIsvFloorModule,
278
278
  luxuryFixedIndex = -1,
279
279
  isContainerListHasMarginBottom,
280
280
  switchConfig,
281
281
  containerFloorListPageInfo = {
282
282
  hasNextPage: false,
283
283
  isByPage: false,
284
284
  },
285
285
  } = props;
286
286
  const { hasNextPage, isByPage } = containerFloorListPageInfo;
287
287
  const isContainerListHasMore = isCheckFloorListByPage && hasNextPage && isByPage;
288
288
  const emptyFloorListHidden = switchConfig?.emptyFloorListHidden || false;
289
289
  const isSageShop = taroJdBaseInfo.info?.pageInfo?.isSageShop;
290
290
  const isHasMarginBottom = isContainerListHasMarginBottom ?? !isSageShop;
291
291
 
292
292
  const hasLiveForSageShop =
293
293
  isSageShop && taroJdBaseInfo.info?.pageInfo?.isJdShowNativeImmersivePlayer;
294
294
 
295
295
  const renderFloorItem = (
296
296
  item,
297
297
  floorItem,
298
298
  floorIndex,
299
299
  containerLayoutLeftRightMargin,
300
300
  lazyLoadState = false,
301
301
  index,
302
302
  borderStyle,
303
303
  ) => {
304
304
  return (
305
305
  <View
306
306
  className={classNames(shopContainerListStyle['d-floor-item'])}
307
307
  data-floor-uid={floorItem?.uid}
308
308
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
309
309
  data-lazy-load={lazyLoadState}
310
310
  key={floorItem.uid}
311
311
  id={`J_floor_${floorItem.uid}`}
312
312
  style={borderStyle}
313
313
  >
314
314
  {isChartH5 && (
315
315
  <View
316
316
  className={shopContainerListStyle['d-floor-chart-item']}
317
317
  id={`J_chart_floor_${floorItem?.uid}`}
318
318
  data-floor-uid={floorItem?.uid}
319
319
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
320
320
  />
321
321
  )}
322
322
  <FloorListItem
323
323
  memberBaseInfo={memberBaseInfo}
324
324
  source={source}
325
325
  floorIndex={floorIndex}
326
326
  floorData={floorItem}
327
327
  containerIndex={index}
328
328
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
329
329
  containerBorderRadius={borderStyle}
330
330
  updateShopFloorDataFn={updateShopFloorDataFn}
331
331
  loadingEndComponentFn={loadingEndComponentFn}
332
332
  extendInfoData={
333
333
  passExtendInfoModuleWhiteList.includes(floorItem?.floorExtInfo?.moduleFlag)
334
334
  ? extendInfoData
335
335
  : undefined
336
336
  }
337
337
  key={floorItem.uid}
338
338
  builtInComponents={builtInComponents}
339
339
  updateContainerFloorListDataFn={updateContainerFloorListDataFn}
340
340
  customErrorIsvFloorModule={customErrorIsvFloorModule}
341
341
  />
342
342
  {index === luxuryFixedIndex ? props.children : null}
343
343
  {floorItem?.inspectResult === '1' && (
344
344
  <View className={shopContainerListStyle['d-floor-inspect-mask']} />
345
345
  )}
346
346
  </View>
347
347
  );
348
348
  };
349
349
 
350
350
  const getFloorSetHeight = (item) => {
351
351
  const getHeight = item?.floorExtInfo?.floorHeight
352
352
  ? Number(item?.floorExtInfo?.floorHeight)
353
353
  : 200;
354
354
  return getHeight > 0 ? getHeight : 200;
355
355
  };
356
356
  const containerFloorListDataLen = containerFloorListData.length;
357
357
 
358
358
  const getNoDataContainerHeight = () => {
359
359
  const getWindowHeight = windowHeight > 10 ? windowHeight : screenHeight;
360
360
  const changeHeight = hasLiveForSageShop
361
361
  ? getWindowHeight
362
362
  : getWindowHeight -
363
363
  (isJdApp
364
364
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
365
365
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT);
366
366
  return {
367
367
  height: `${changeHeight}px`,
368
368
  };
369
369
  };
370
370
  return (
371
371
  <View
372
372
  id="J_shopContainerFloorList"
373
373
  className={classNames(
374
374
  className,
375
375
  shopContainerListStyle['d-shop-container-list'],
376
376
  isHasMarginBottom
377
377
  ? shopContainerListStyle['d-container-list-with-margin-bottom']
378
378
  : shopContainerListStyle['d-container-list-no-margin-bottom'],
379
379
  )}
380
380
  style={style}
381
381
  >
382
382
  {containerFloorListDataLen > 0 ? (
383
383
  <>
384
384
  {containerFloorListData.map((item, index) => {
385
385
  const containerLayoutLeftRightMargin = (item.marginLeft || 0) + (item.marginRight || 0);
386
386
  const getContainerId = `J_container_${item.containerId}`;
387
387
  const getDealContainerFloorListLen = isContainerListHasMore
388
388
  ? 1000
389
389
  : containerFloorListDataLen;
390
390
  const borderStyle = getBorderStyle(
391
391
  item,
392
392
  index,
393
393
  containerFloorListData,
394
394
  getDealContainerFloorListLen,
395
395
  );
396
396
  return (
397
397
  <React.Fragment key={item.containerId + index}>
398
398
  {item.addLuxuryStyle ? (
399
399
  <View className={shopContainerListStyle['d-luxury-header']} />
400
400
  ) : null}
401
401
  {item.addLuxuryBackupStyle ? (
402
402
  <View
403
403
  style={{
404
404
  height: taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight + 'px',
405
405
  }}
406
406
  className={shopContainerListStyle['d-luxury-header-black']}
407
407
  />
408
408
  ) : null}
409
409
  {typeof item?.renderExtendComponent === 'function'
410
410
  ? item?.renderExtendComponent(item?.floorExtendData)
411
411
  : null}
412
412
  <View
413
413
  className={classNames(
414
414
  shopContainerListStyle['d-container-item'],
415
415
  containerItemClass,
416
416
  )}
417
417
  id={getContainerId}
418
418
  key={item.containerId}
419
419
  data-container-id={item?.containerId}
420
420
  data-container-type={item?.typeCode}
421
421
  data-container-index={index}
422
422
  style={{
423
423
  marginBottom: item.marginBottom ? `${item.marginBottom}px` : 0,
424
424
  marginTop: item.marginTop ? `${item.marginTop}px` : 0,
425
425
  marginLeft: item.marginLeft ? `${item.marginLeft}px` : 0,
426
426
  marginRight: item.marginRight ? `${item.marginRight}px` : 0,
427
427
  borderTopLeftRadius: borderStyle?.borderTopLeftRadius || `0px`,
428
428
  borderTopRightRadius: borderStyle?.borderTopRightRadiu || `0px`,
429
429
  borderBottomLeftRadius: borderStyle?.borderBottomLeftRadius || `0px`,
430
430
  borderBottomRightRadius: borderStyle?.borderBottomRightRadius || `0px`,
431
431
  '--container-layout-left-right-margin': `${containerLayoutLeftRightMargin}px`,
432
432
  }}
433
433
  >
434
434
  {typeof item?.insertContainerStartComponent === 'function'
435
435
  ? item?.insertContainerStartComponent(item)
436
436
  : null}
437
437
  {item.floors &&
438
438
  item.floors.length > 0 &&
439
439
  item.floors?.map((floorItem, floorIndex) => {
440
440
  return index > lazyLoadStartIndex ? (
441
441
  <LazyLayoutLoad
442
442
  key={item.containerId}
443
443
  sectionType={sectionType}
444
444
  containerId={getContainerId}
445
445
  height={getFloorSetHeight(floorItem)}
446
446
  floorData={floorItem}
447
447
  >
448
448
  {renderFloorItem(
449
449
  item,
450
450
  floorItem,
451
451
  floorIndex,
452
452
  containerLayoutLeftRightMargin,
453
453
  true,
454
454
  index,
455
455
  borderStyle,
456
456
  )}
457
457
  </LazyLayoutLoad>
458
458
  ) : (
459
459
  renderFloorItem(
460
460
  item,
461
461
  floorItem,
462
462
  floorIndex,
463
463
  containerLayoutLeftRightMargin,
464
464
  false,
465
465
  index,
466
466
  borderStyle,
467
467
  )
468
468
  );
469
469
  })}
470
470
  </View>
471
471
  </React.Fragment>
472
472
  );
473
473
  })}
474
474
  </>
475
475
  ) : !emptyFloorListHidden ? (
476
476
  <View
477
477
  className={classNames(shopContainerListStyle['d-container-list-no-data'], {
478
478
  [shopContainerListStyle['d-sage-shop-no-data']]: hasLiveForSageShop,
479
479
  })}
480
480
  style={getNoDataContainerHeight()}
481
481
  >
482
482
  <NetworkDataError
483
483
  netWorkShowType={NetWorkShowType.PART}
484
484
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
485
485
  backgroundColorWhite={hasLiveForSageShop}
486
486
  refreshCallBackFn={refreshFloorListDataFn ? refreshFloorListDataFn : null}
487
487
  btnLabel={refreshFloorListDataBtnLabel || ''}
488
488
  />
489
489
  </View>
490
490
  ) : null}
491
491
  </View>
492
492
  );
493
493
  updateShopDataFn: null,