@conecli/cone-render 0.10.1-shop3.9 → 0.10.1-shop3.90

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