@conecli/cone-render 0.10.1-shop-beta.22 → 0.10.1-shop-beta.24

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