@conecli/cone-render 0.10.1-shop-beta.23 → 0.10.1-shop-beta.26

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 (128) 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/index.h5.ts +1 -1
  13. package/dist/common/token/token.jd.ts +1 -1
  14. package/dist/common/wxappApi.ascf.ts +1 -0
  15. package/dist/components/ErrorBoundary.tsx +1 -1
  16. package/dist/components/base/CountDown/index.tsx +1 -1
  17. package/dist/components/base/CustomVideo/index.tsx +1 -1
  18. package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
  19. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  20. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  21. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  22. package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
  23. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  24. package/dist/components/base/JdLoading/index.module.scss +0 -2
  25. package/dist/components/base/JdLoading/index.tsx +1 -1
  26. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  27. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  28. package/dist/components/base/LazyLoadImage/index.tsx +1 -1
  29. package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
  30. package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
  31. package/dist/components/base/NetworkDataError/const.ts +1 -1
  32. package/dist/components/base/NetworkDataError/index.module.scss +1 -1
  33. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  34. package/dist/components/base/Price/Base/index.tsx +1 -1
  35. package/dist/components/base/Price/Double/index.module.scss +1 -1
  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/floorItem.tsx +1 -1
  42. package/dist/components/isv/Floor/index.tsx +1 -1
  43. package/dist/components/remoteFloorItem.tsx +1 -1
  44. package/dist/config/env.ts +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.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.wxapp.ts +1 -1
  64. package/dist/language/en_US.json +233 -83
  65. package/dist/language/zh_CN.json +232 -82
  66. package/dist/language/zh_HK.json +232 -82
  67. package/dist/libs/openShopBridge.js +161 -0
  68. package/dist/libs/openShopBridge.min.js +1 -0
  69. package/dist/libs/taroAppReport.js +2 -2
  70. package/dist/modules/ContainerFloorList/index.h5.module.scss +16 -2
  71. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  72. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  73. package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
  74. package/dist/open/api/index.ts +1 -1
  75. package/dist/open/api/shopMember.ts +1 -1
  76. package/dist/open/api/shopMember.weapp.ts +1 -0
  77. package/dist/open/api/track.ts +1 -1
  78. package/dist/open/api/util.ts +1 -1
  79. package/dist/open/components/index.ts +1 -1
  80. package/dist/open/index.ts +1 -1
  81. package/dist/sass/app.h5.scss +6 -1
  82. package/dist/sass/base.scss +8 -4
  83. package/dist/service/fetchGateway.ts +1 -1
  84. package/dist/service/fetchGateway.weapp.ts +1 -1
  85. package/dist/service/fetchJsonp.ts +1 -1
  86. package/dist/service/fetchJsonp.weapp.ts +1 -0
  87. package/dist/service/http/h5Http.ts +1 -1
  88. package/dist/service/http/http.ts +1 -1
  89. package/dist/service/http/httpInterceptors.weapp.ts +1 -0
  90. package/dist/service/requestServer.h5.ts +1 -1
  91. package/dist/service/requestServer.ts +1 -1
  92. package/dist/service/requestServer.weapp.ts +1 -1
  93. package/dist/utils/connectNativeJsBridge.ts +1 -1
  94. package/dist/utils/h5Utils.ts +1 -1
  95. package/dist/utils/harmonyCallRouter.h5.ts +1 -0
  96. package/dist/utils/harmonyCallRouter.ts +0 -0
  97. package/dist/utils/index.h5.ts +1 -1
  98. package/dist/utils/index.ts +1 -1
  99. package/dist/utils/index.weapp.ts +1 -1
  100. package/dist/utils/intersectionObserver.ts +1 -1
  101. package/dist/utils/sColor.weapp.ts +1 -0
  102. package/dist/utils/utils.ts +1 -1
  103. package/package.json +36 -38
  104. package/dist/common/index.dynamic.ts +0 -1
  105. package/dist/components/base/Dialog/index.dynamic.module.scss +0 -126
  106. package/dist/components/base/Dialog/index.dynamic.tsx +0 -1
  107. package/dist/components/base/DynamicTest/index.dynamic.module.scss +0 -15
  108. package/dist/components/base/DynamicTest/index.module.scss +0 -16
  109. package/dist/components/base/DynamicTest/index.tsx +0 -1
  110. package/dist/components/base/LazyLoadImage/index.dynamic.module.scss +0 -40
  111. package/dist/components/base/LazyLoadImage/index.dynamic.tsx +0 -1
  112. package/dist/components/base/NetworkDataError/index.dynamic.module.scss +0 -95
  113. package/dist/components/base/NetworkDataError/index.dynamic.tsx +0 -1
  114. package/dist/components/base/Price/Base/index.dynamic.module.scss +0 -63
  115. package/dist/components/base/Price/Base/index.dynamic.tsx +0 -1
  116. package/dist/components/base/Price/Double/index.dynamic.module.scss +0 -172
  117. package/dist/components/base/Price/Double/index.dynamic.tsx +0 -1
  118. package/dist/jumpEventReport/index.dynamic.ts +0 -1
  119. package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
  120. package/dist/open/api/shopMember.dynamic.ts +0 -1
  121. package/dist/open/components/index.dynamic.ts +0 -1
  122. package/dist/sass/app.dynamic.scss +0 -306
  123. package/dist/service/fetchGateway.h5.ts +0 -1
  124. package/dist/service/fetchJsonp.h5.ts +0 -1
  125. package/dist/service/http/colorSign.dynamic.ts +0 -1
  126. package/dist/utils/connectNativeJsBridge.dynamic.ts +0 -1
  127. package/dist/utils/priceUtils.js +0 -1
  128. /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
  memberBaseInfo?: {
244
244
  shopId?: string;
245
245
  venderId?: string;
246
246
  channel?: string;
247
247
  venderType?: string;
248
248
  showDefaultModule?: boolean;
249
249
  customerLevel?: string;
250
250
  isUserForMember?: boolean;
251
251
  isLv0?: boolean;
252
252
  levelZeroMenuUrl?: string;
253
253
  totalRefresh?: functionType;
254
254
  callOpenCardPopPage?: functionType;
255
255
  };
256
256
  source?: string;
257
257
  containerFloorListData: ComponentInterFace.ContainerItemData[];
258
258
  extendInfoData?: object;
259
259
  className?: string;
260
260
  containerItemClass?: object;
261
261
  style?: object;
262
262
  hasGoodsFeeds?: boolean;
263
263
  builtInComponents?: object;
264
264
  loadingEndComponentFn?: functionType;
265
265
  sectionType?: string;
266
266
  updateShopFloorDataFn?: functionType;
267
267
  updateContainerFloorListDataFn?: functionType;
268
268
  refreshFloorListDataFn?: functionType;
269
269
  refreshFloorListDataBtnLabel?: string;
270
270
  customErrorIsvFloorModule?: React.ReactElement;
271
271
  componentExtend?: React.ReactElement;
272
272
  luxuryFixedIndex?: number;
273
273
  isContainerListHasMarginBottom?: boolean;
274
274
  switchConfig?: {
275
275
  [key: string]: any;
276
276
  };
277
277
  const { windowHeight, screenHeight } = taroJdBaseInfo.info.sysInfo;
278
278
  const {
279
279
  source,
280
280
  className,
281
281
  style,
282
282
  memberBaseInfo,
283
283
  containerItemClass = null,
284
284
  containerFloorListData,
285
285
  extendInfoData,
286
286
  builtInComponents,
287
287
  loadingEndComponentFn,
288
288
  sectionType,
289
289
  updateShopFloorDataFn,
290
290
  updateContainerFloorListDataFn,
291
291
  refreshFloorListDataFn,
292
292
  refreshFloorListDataBtnLabel,
293
293
  customErrorIsvFloorModule,
294
294
  luxuryFixedIndex = -1,
295
295
  isContainerListHasMarginBottom,
296
296
  switchConfig,
297
297
  } = props;
298
298
  const emptyFloorListHidden = switchConfig?.emptyFloorListHidden || false;
299
299
  const isSageShop = taroJdBaseInfo.info?.pageInfo?.isSageShop;
300
300
  const isHasMarginBottom = isContainerListHasMarginBottom ?? !isSageShop;
301
301
 
302
302
  const hasLiveForSageShop =
303
303
  isSageShop && taroJdBaseInfo.info?.pageInfo?.isJdShowNativeImmersivePlayer;
304
304
 
305
305
  const renderFloorItem = (
306
306
  item,
307
307
  floorItem,
308
308
  floorIndex,
309
309
  containerLayoutLeftRightMargin,
310
310
  lazyLoadState = false,
311
311
  index,
312
312
  borderStyle,
313
313
  ) => {
314
314
  return (
315
315
  <View
316
316
  className={classNames(shopContainerListStyle['d-floor-item'])}
317
317
  data-floor-uid={floorItem?.uid}
318
318
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
319
319
  data-lazy-load={lazyLoadState}
320
320
  key={floorItem.uid}
321
321
  id={`J_floor_${floorItem.uid}`}
322
322
  style={borderStyle}
323
323
  >
324
324
  {isChartH5 && (
325
325
  <View
326
326
  className={shopContainerListStyle['d-floor-chart-item']}
327
327
  id={`J_chart_floor_${floorItem?.uid}`}
328
328
  data-floor-uid={floorItem?.uid}
329
329
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
330
330
  />
331
331
  )}
332
332
  <FloorListItem
333
333
  memberBaseInfo={memberBaseInfo}
334
334
  source={source}
335
335
  floorIndex={floorIndex}
336
336
  floorData={floorItem}
337
337
  containerIndex={index}
338
338
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
339
339
  containerBorderRadius={borderStyle}
340
340
  updateShopFloorDataFn={updateShopFloorDataFn}
341
341
  loadingEndComponentFn={loadingEndComponentFn}
342
342
  extendInfoData={
343
343
  passExtendInfoModuleWhiteList.includes(floorItem?.floorExtInfo?.moduleFlag)
344
344
  ? extendInfoData
345
345
  : undefined
346
346
  }
347
347
  key={floorItem.uid}
348
348
  builtInComponents={builtInComponents}
349
349
  updateContainerFloorListDataFn={updateContainerFloorListDataFn}
350
350
  customErrorIsvFloorModule={customErrorIsvFloorModule}
351
351
  />
352
352
  {index === luxuryFixedIndex ? props.children : null}
353
353
  {floorItem?.inspectResult === '1' && (
354
354
  <View className={shopContainerListStyle['d-floor-inspect-mask']} />
355
355
  )}
356
356
  </View>
357
357
  );
358
358
  };
359
359
 
360
360
  const getFloorSetHeight = (item) => {
361
361
  const getHeight = item?.floorExtInfo?.floorHeight
362
362
  ? Number(item?.floorExtInfo?.floorHeight)
363
363
  : 200;
364
364
  return getHeight > 0 ? getHeight : 200;
365
365
  };
366
366
  const containerFloorListDataLen = containerFloorListData.length;
367
367
 
368
368
  const getNoDataContainerHeight = () => {
369
369
  const getWindowHeight = windowHeight > 10 ? windowHeight : screenHeight;
370
370
  const changeHeight = hasLiveForSageShop
371
371
  ? getWindowHeight
372
372
  : getWindowHeight -
373
373
  (isJdApp
374
374
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
375
375
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT);
376
376
  return {
377
377
  height: `${changeHeight}px`,
378
378
  };
379
379
  };
380
380
  return (
381
381
  <View
382
382
  id="J_shopContainerFloorList"
383
383
  className={classNames(
384
384
  className,
385
385
  shopContainerListStyle['d-shop-container-list'],
386
386
  isHasMarginBottom
387
387
  ? shopContainerListStyle['d-container-list-with-margin-bottom']
388
388
  : shopContainerListStyle['d-container-list-no-margin-bottom'],
389
389
  )}
390
390
  style={style}
391
391
  >
392
392
  {containerFloorListDataLen > 0 ? (
393
393
  <>
394
394
  {containerFloorListData.map((item, index) => {
395
395
  const containerLayoutLeftRightMargin = (item.marginLeft || 0) + (item.marginRight || 0);
396
396
  const getContainerId = `J_container_${item.containerId}`;
397
397
  const borderStyle = getBorderStyle(
398
398
  item,
399
399
  index,
400
400
  containerFloorListData,
401
401
  containerFloorListDataLen,
402
402
  );
403
403
  return (
404
404
  <React.Fragment key={item.containerId + index}>
405
405
  {item.addLuxuryStyle ? (
406
406
  <View className={shopContainerListStyle['d-luxury-header']} />
407
407
  ) : null}
408
408
  {item.addLuxuryBackupStyle ? (
409
409
  <View
410
410
  style={{
411
411
  height: taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight + 'px',
412
412
  }}
413
413
  className={shopContainerListStyle['d-luxury-header-black']}
414
414
  />
415
415
  ) : null}
416
416
  {typeof item?.renderExtendComponent === 'function'
417
417
  ? item?.renderExtendComponent(item?.floorExtendData)
418
418
  : null}
419
419
  <View
420
420
  className={classNames(
421
421
  shopContainerListStyle['d-container-item'],
422
422
  containerItemClass,
423
423
  )}
424
424
  id={getContainerId}
425
425
  key={item.containerId}
426
426
  data-container-id={item?.containerId}
427
427
  data-container-type={item?.typeCode}
428
428
  data-container-index={index}
429
429
  style={{
430
430
  marginBottom: item.marginBottom ? `${item.marginBottom}px` : 0,
431
431
  marginTop: item.marginTop ? `${item.marginTop}px` : 0,
432
432
  marginLeft: item.marginLeft ? `${item.marginLeft}px` : 0,
433
433
  marginRight: item.marginRight ? `${item.marginRight}px` : 0,
434
434
  borderTopLeftRadius: borderStyle?.borderTopLeftRadius || `0px`,
435
435
  borderTopRightRadius: borderStyle?.borderTopRightRadiu || `0px`,
436
436
  borderBottomLeftRadius: borderStyle?.borderBottomLeftRadius || `0px`,
437
437
  borderBottomRightRadius: borderStyle?.borderBottomRightRadius || `0px`,
438
438
  '--container-layout-left-right-margin': `${containerLayoutLeftRightMargin}px`,
439
439
  }}
440
440
  >
441
441
  {typeof item?.insertContainerStartComponent === 'function'
442
442
  ? item?.insertContainerStartComponent(item)
443
443
  : null}
444
444
  {item.floors &&
445
445
  item.floors.length > 0 &&
446
446
  item.floors?.map((floorItem, floorIndex) => {
447
447
  return index > lazyLoadStartIndex ? (
448
448
  <LazyLayoutLoad
449
449
  key={item.containerId}
450
450
  sectionType={sectionType}
451
451
  containerId={getContainerId}
452
452
  height={getFloorSetHeight(floorItem)}
453
453
  floorData={floorItem}
454
454
  >
455
455
  {renderFloorItem(
456
456
  item,
457
457
  floorItem,
458
458
  floorIndex,
459
459
  containerLayoutLeftRightMargin,
460
460
  true,
461
461
  index,
462
462
  borderStyle,
463
463
  )}
464
464
  </LazyLayoutLoad>
465
465
  ) : (
466
466
  renderFloorItem(
467
467
  item,
468
468
  floorItem,
469
469
  floorIndex,
470
470
  containerLayoutLeftRightMargin,
471
471
  false,
472
472
  index,
473
473
  borderStyle,
474
474
  )
475
475
  );
476
476
  })}
477
477
  </View>
478
478
  </React.Fragment>
479
479
  );
480
480
  })}
481
481
  </>
482
482
  ) : !emptyFloorListHidden ? (
483
483
  <View
484
484
  className={classNames(shopContainerListStyle['d-container-list-no-data'], {
485
485
  [shopContainerListStyle['d-sage-shop-no-data']]: hasLiveForSageShop,
486
486
  })}
487
487
  style={getNoDataContainerHeight()}
488
488
  >
489
489
  <NetworkDataError
490
490
  netWorkShowType={NetWorkShowType.PART}
491
491
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
492
492
  backgroundColorWhite={hasLiveForSageShop}
493
493
  refreshCallBackFn={refreshFloorListDataFn ? refreshFloorListDataFn : null}
494
494
  btnLabel={refreshFloorListDataBtnLabel || ''}
495
495
  />
496
496
  </View>
497
497
  ) : null}
498
498
  </View>
499
499
  );
500
500
  updateShopDataFn: null,