@conecli/cone-render 0.10.1-shop-beta.5 → 0.10.1-shop-beta.6

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 (80) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/index.h5.ts +1 -1
  4. package/dist/common/index.jd.ts +1 -1
  5. package/dist/common/index.ts +1 -1
  6. package/dist/common/index.weapp.ts +1 -1
  7. package/dist/common/pageType.ts +1 -1
  8. package/dist/common/sgmCustomCode.ts +1 -1
  9. package/dist/common/token/token.jd.ts +1 -1
  10. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  11. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  12. package/dist/components/base/CountDown/index.module.scss +49 -44
  13. package/dist/components/base/CountDown/index.tsx +1 -1
  14. package/dist/components/base/CustomScrollView/index-back.tsx +1 -0
  15. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  16. package/dist/components/base/CustomVideo/common.ts +1 -0
  17. package/dist/components/base/CustomVideo/index.tsx +1 -1
  18. package/dist/components/base/Dialog/index.module.scss +11 -0
  19. package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
  20. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  21. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  22. package/dist/components/base/InViewRender/index.tsx +1 -1
  23. package/dist/components/base/ItemViewExposureSmart/index.module.scss +2 -2
  24. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  25. package/dist/components/base/LazyLoadImage/index.h5.module.scss +8 -4
  26. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  27. package/dist/components/base/Price/Base/index.tsx +1 -1
  28. package/dist/components/base/Price/Double/index.module.scss +8 -0
  29. package/dist/components/base/Price/Double/index.tsx +1 -1
  30. package/dist/components/floorItem.tsx +1 -1
  31. package/dist/components/floorItem.weapp.tsx +1 -1
  32. package/dist/components/isv/Floor/index.tsx +1 -1
  33. package/dist/interface/common.ts +1 -1
  34. package/dist/interface/component.ts +1 -1
  35. package/dist/interface/jumpEventReport.ts +1 -1
  36. package/dist/interface/service.ts +1 -1
  37. package/dist/jumpEventReport/base.ts +1 -1
  38. package/dist/jumpEventReport/const.ts +1 -1
  39. package/dist/jumpEventReport/index.jd.ts +1 -1
  40. package/dist/jumpEventReport/index.weapp.ts +1 -1
  41. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  42. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  43. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  44. package/dist/jumpEventReport/web/report.ts +1 -1
  45. package/dist/jumpEventReport/web.base.ts +1 -1
  46. package/dist/jumpEventReport/web.jd.ts +1 -1
  47. package/dist/jumpEventReport/web.jdb.ts +1 -1
  48. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  49. package/dist/jumpEventReport/web.jxwxapp.ts +1 -1
  50. package/dist/jumpEventReport/web.pc.ts +1 -1
  51. package/dist/jumpEventReport/web.tjapp.ts +1 -1
  52. package/dist/jumpEventReport/web.tjm.ts +1 -1
  53. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  54. package/dist/libs/taroAppReport.js +2 -2
  55. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -53
  56. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  57. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  58. package/dist/open/api/shopMember.ts +1 -1
  59. package/dist/open/api/util.ts +1 -1
  60. package/dist/sass/app.h5.scss +273 -224
  61. package/dist/sass/base.scss +142 -141
  62. package/dist/service/fetchGateway.ts +1 -1
  63. package/dist/service/fetchGateway.weapp.ts +1 -0
  64. package/dist/service/http/colorSign.ts +1 -1
  65. package/dist/service/http/const.ts +1 -1
  66. package/dist/service/http/h5Http.ts +1 -0
  67. package/dist/service/http/index.h5.ts +1 -0
  68. package/dist/service/requestServer.h5.ts +1 -0
  69. package/dist/service/requestServer.ts +1 -1
  70. package/dist/service/requestServer.weapp.ts +1 -0
  71. package/dist/utils/connectNativeJsBridge.ts +1 -1
  72. package/dist/utils/h5Utils.ts +1 -1
  73. package/dist/utils/index.h5.ts +1 -1
  74. package/dist/utils/index.ts +1 -1
  75. package/dist/utils/index.weapp.ts +1 -1
  76. package/dist/utils/jumpExtMapUtil.js +1 -0
  77. package/dist/utils/sColor.js +1 -0
  78. package/dist/utils/utils.ts +1 -1
  79. package/package.json +53 -29
  80. package/dist/utils/memberFormatUtils.js +0 -1
@@ -1,63 +1,76 @@
1
1
 
2
2
  .d-shop-container-list {
3
- position: relative;
4
- overflow: hidden;
5
- z-index: 2;
3
+ position: relative;
4
+ overflow: hidden;
5
+ z-index: 2;
6
6
 
7
- .d-container-item,
8
- .d-floor-item {
9
- position: relative;
10
- // 不能加overflow 防止IntersectionObserver监听异常
11
- //overflow: hidden;
12
- }
7
+ // 容器列表底部间距,不做适配转换,固定8px
8
+ .d-container-list-with-margin-bottom {
9
+ margin-bottom: 8px;
10
+ }
13
11
 
14
-
15
- .d-floor-item {
16
- overflow: hidden;
17
- display: block; // 由于taro的View属于一种自定义标签,虽然taro自己会给View设置display为block,但是这个是一个异步过程,而自定义标签的默认display是inline,inline状态下即使设置了overflow:hidden,也会由于内容过大导致宽度被撑大而超出容器实际宽度。所以为了保证楼层容器节点在加载过程中不被撑大,需要显示设置display:block
18
- }
19
- .d-floor-chart-item{
20
- position: absolute;
21
- top: 0;
22
- left: 0;
23
- right: 0;
24
- bottom: 0;
25
- pointer-events: auto;
26
- z-index: 99;
27
- }
28
- .d-container-item {
29
- //opacity: 0;
30
- //animation: containerShowToOpacity 500ms;
31
- //animation-fill-mode: forwards;
32
- :global {
33
- .lazyload-placeholder {
34
- background: url('https://img13.360buyimg.com/imagetools/jfs/t1/151010/32/14284/30214/5ff66791Ea1bc6cc6/698c0772b377aef5.png')
35
- center center / 40px 40px no-repeat;
36
- }
37
- }
38
- }
39
- .d-luxury-header {
40
- border-top-left-radius: 40px;
41
- border-top-right-radius: 40px;
42
- width: 100%;
43
- height: 8PX;
44
- margin-top: -8PX;
45
- background-clip: padding-box;
46
- position: relative;
47
- z-index: 999;
48
- background: #F2F2F2;
49
- box-shadow: 0 0 1px rgba(0, 0, 0, 0);
50
- }
51
- .d-luxury-header-black {
52
- width: 100%;
53
- z-index: 999;
54
- background: black;
55
- margin-bottom: 16px;
12
+ .d-container-list-no-margin-bottom {
13
+ margin-bottom: 0;
14
+ }
15
+
16
+ .d-container-item,
17
+ .d-floor-item {
18
+ position: relative;
19
+ // 不能加overflow 防止IntersectionObserver监听异常
20
+ //overflow: hidden;
21
+ }
22
+
23
+
24
+ .d-floor-item {
25
+ overflow: hidden;
26
+ display: block; // 由于taro的View属于一种自定义标签,虽然taro自己会给View设置display为block,但是这个是一个异步过程,而自定义标签的默认display是inline,inline状态下即使设置了overflow:hidden,也会由于内容过大导致宽度被撑大而超出容器实际宽度。所以为了保证楼层容器节点在加载过程中不被撑大,需要显示设置display:block
27
+ }
28
+ .d-floor-chart-item {
29
+ position: absolute;
30
+ top: 0;
31
+ left: 0;
32
+ right: 0;
33
+ bottom: 0;
34
+ pointer-events: auto;
35
+ z-index: 99;
36
+ }
37
+ .d-container-item {
38
+ //opacity: 0;
39
+ //animation: containerShowToOpacity 500ms;
40
+ //animation-fill-mode: forwards;
41
+ :global {
42
+ .lazyload-placeholder {
43
+ background: url('https://img13.360buyimg.com/imagetools/jfs/t1/151010/32/14284/30214/5ff66791Ea1bc6cc6/698c0772b377aef5.png')
44
+ center center / 40px 40px no-repeat;
45
+ }
56
46
  }
57
- .d-container-list-no-data {
58
- min-height: 400px;
47
+ }
48
+ .d-luxury-header {
49
+ border-top-left-radius: 40px;
50
+ border-top-right-radius: 40px;
51
+ width: 100%;
52
+ height: 8px;
53
+ margin-top: -8px;
54
+ background-clip: padding-box;
55
+ position: relative;
56
+ z-index: 999;
57
+ background: #f2f2f2;
58
+ box-shadow: 0 0 1px rgba(0, 0, 0, 0);
59
+ }
60
+ .d-luxury-header-black {
61
+ width: 100%;
62
+ z-index: 999;
63
+ background: black;
64
+ margin-bottom: 16px;
65
+ }
66
+ .d-container-list-no-data {
67
+ min-height: 400px;
68
+ &.d-sage-shop-no-data {
69
+ background: #fff;
59
70
  }
71
+ }
60
72
  }
73
+
61
74
  //@keyframes containerShowToOpacity {
62
75
  // from {
63
76
  // opacity: 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
  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
  ) => {
45
44
  return (
46
45
  <View
47
46
  className={classNames(shopContainerListStyle["d-floor-item"])}
48
47
  data-floor-uid={floorItem?.uid}
49
48
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ""}
50
49
  data-lazy-load={lazyLoadState}
51
50
  key={floorItem.uid}
52
51
  id={`J_floor_${floorItem.uid}`}
53
52
  style={{
54
53
  borderRadius: `${item?.borderRadius || 0}px`,
55
54
  }}
56
55
  >
57
56
  {isChartH5 && (
58
57
  <View
59
58
  className={shopContainerListStyle["d-floor-chart-item"]}
60
59
  id={`J_chart_floor_${floorItem?.uid}`}
61
60
  data-floor-uid={floorItem?.uid}
62
61
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ""}
63
62
  />
64
63
  )}
65
64
  <FloorListItem
66
65
  floorIndex={floorIndex}
67
66
  floorData={floorItem}
68
67
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
69
68
  containerBorderRadius={item?.borderRadius || 0}
70
69
  updateShopFloorDataFn={updateShopFloorDataFn}
71
70
  loadingEndComponentFn={loadingEndComponentFn}
72
71
  key={floorItem.uid}
73
72
  builtInComponents={builtInComponents}
74
73
  updateContainerFloorListDataFn={updateContainerFloorListDataFn}
75
74
  customErrorIsvFloorModule={customErrorIsvFloorModule}
76
75
  />
77
76
  {index === luxuryFixedIndex ? props.children : null}
78
77
  </View>
79
78
  );
80
79
  };
81
80
 
82
81
  const getFloorSetHeight = (item) => {
83
82
  const getHeight = item?.floorExtInfo?.floorHeight
84
83
  ? Number(item?.floorExtInfo?.floorHeight)
85
84
  : 200;
86
85
  return getHeight > 0 ? getHeight : 200;
87
86
  };
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
  {containerFloorListData.length > 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
  return (
103
102
  <React.Fragment key={item.containerId + index}>
104
103
  {item.addLuxuryStyle ? (
105
104
  <View className={shopContainerListStyle["d-luxury-header"]} />
106
105
  ) : null}
107
106
  {item.addLuxuryBackupStyle ? (
108
107
  <View
109
108
  style={{
110
109
  height:
111
110
  taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight +
112
111
  "px",
113
112
  }}
114
113
  className={shopContainerListStyle["d-luxury-header-black"]}
115
114
  />
116
115
  ) : null}
117
116
  {typeof item?.renderExtendComponent === "function"
118
117
  ? item?.renderExtendComponent(item?.floorExtendData)
119
118
  : null}
120
119
  <View
121
120
  className={classNames(
122
121
  shopContainerListStyle["d-container-item"],
123
122
  containerItemClass
124
123
  )}
125
124
  id={getContainerId}
126
125
  key={item.containerId}
127
126
  data-container-id={item?.containerId}
128
127
  data-container-type={item?.typeCode}
129
128
  style={{
130
129
  marginBottom: item.marginBottom
131
130
  ? `${item.marginBottom}px`
132
131
  : 0,
133
132
  marginTop: item.marginTop ? `${item.marginTop}px` : 0,
134
133
  marginLeft: item.marginLeft ? `${item.marginLeft}px` : 0,
135
134
  marginRight: item.marginRight ? `${item.marginRight}px` : 0,
136
135
  borderRadius: item.borderRadius
137
136
  ? `${item.borderRadius}px`
138
137
  : 0,
139
138
  }}
140
139
  >
141
140
  {typeof item?.insertContainerStartComponent === "function"
142
141
  ? item?.insertContainerStartComponent(item)
143
142
  : null}
144
143
  {item.floors &&
145
144
  item.floors.length > 0 &&
146
145
  item.floors?.map((floorItem, floorIndex) => {
147
146
  return index > lazyLoadStartIndex ? (
148
147
  <LazyLayoutLoad
149
148
  key={item.containerId}
150
149
  sectionType={sectionType}
151
150
  containerId={getContainerId}
152
151
  height={getFloorSetHeight(floorItem)}
153
152
  floorData={floorItem}
154
153
  >
155
154
  {renderFloorItem(
156
155
  item,
157
156
  floorItem,
158
157
  floorIndex,
159
158
  containerLayoutLeftRightMargin,
160
159
  true,
161
160
  index
162
161
  )}
163
162
  </LazyLayoutLoad>
164
163
  ) : (
165
164
  renderFloorItem(
166
165
  item,
167
166
  floorItem,
168
167
  floorIndex,
169
168
  containerLayoutLeftRightMargin,
170
169
  false,
171
170
  index
172
171
  )
173
172
  );
174
173
  })}
175
174
  </View>
176
175
  </React.Fragment>
177
176
  );
178
177
  })
179
178
  ) : (
180
179
  <View
181
180
  className={shopContainerListStyle["d-container-list-no-data"]}
182
181
  style={{
183
182
  height: `${
184
183
  windowHeight -
185
184
  (isJdApp
186
185
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
187
186
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT)
188
187
  }px`,
189
188
  }}
190
189
  >
191
190
  <NetworkDataError
192
191
  netWorkShowType={NetWorkShowType.PART}
193
192
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
194
193
  refreshCallBackFn={
195
194
  refreshFloorListDataFn ? refreshFloorListDataFn : null
196
195
  }
197
196
  btnLabel={refreshFloorListDataBtnLabel || ""}
198
197
  />
199
198
  </View>
200
199
  )}
201
200
  </View>
202
201
  </View>
203
202
  );
203
+ import React from 'react';
204
204
  NETWORK_DATA_TYPE,
205
205
  M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
206
206
  APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
207
207
  containerFloorListData: ComponentInterFace.ContainerItemData[];
208
208
  className?: string;
209
209
  containerItemClass?: object;
210
210
  style?: object;
211
211
  hasGoodsFeeds?: boolean;
212
212
  builtInComponents?: object;
213
213
  loadingEndComponentFn?: functionType;
214
214
  sectionType?: string;
215
215
  updateShopFloorDataFn?: functionType;
216
216
  updateContainerFloorListDataFn?: functionType;
217
217
  refreshFloorListDataFn?: functionType;
218
218
  refreshFloorListDataBtnLabel?: string;
219
219
  customErrorIsvFloorModule?: React.ReactElement;
220
220
  componentExtend?: React.ReactElement;
221
221
  luxuryFixedIndex?: number;
222
222
  isContainerListHasMarginBottom?: boolean;
223
223
  switchConfig?: {
224
224
  [key: string]: any;
225
225
  };
226
226
  const { windowHeight } = taroJdBaseInfo.info.sysInfo;
227
227
  const {
228
228
  className,
229
229
  style,
230
230
  containerItemClass = null,
231
231
  containerFloorListData,
232
232
  builtInComponents,
233
233
  loadingEndComponentFn,
234
234
  sectionType,
235
235
  updateShopFloorDataFn,
236
236
  updateContainerFloorListDataFn,
237
237
  refreshFloorListDataFn,
238
238
  refreshFloorListDataBtnLabel,
239
239
  customErrorIsvFloorModule,
240
240
  luxuryFixedIndex = -1,
241
241
  isContainerListHasMarginBottom,
242
242
  switchConfig,
243
243
  } = props;
244
244
  const emptyFloorListHidden = switchConfig?.emptyFloorListHidden || false;
245
245
  const isSageShop = taroJdBaseInfo.info?.pageInfo?.isSageShop;
246
246
  const isHasMarginBottom = isContainerListHasMarginBottom ?? !isSageShop;
247
247
 
248
248
  const hasLiveForSageShop =
249
249
  isSageShop && taroJdBaseInfo.info?.pageInfo?.isJdShowNativeImmersivePlayer;
250
250
 
251
251
  const renderFloorItem = (
252
252
  item,
253
253
  floorItem,
254
254
  floorIndex,
255
255
  containerLayoutLeftRightMargin,
256
256
  lazyLoadState = false,
257
257
  index,
258
258
  borderStyle,
259
259
  ) => {
260
260
  return (
261
261
  <View
262
262
  className={classNames(shopContainerListStyle['d-floor-item'])}
263
263
  data-floor-uid={floorItem?.uid}
264
264
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
265
265
  data-lazy-load={lazyLoadState}
266
266
  key={floorItem.uid}
267
267
  id={`J_floor_${floorItem.uid}`}
268
268
  style={borderStyle}
269
269
  >
270
270
  {isChartH5 && (
271
271
  <View
272
272
  className={shopContainerListStyle['d-floor-chart-item']}
273
273
  id={`J_chart_floor_${floorItem?.uid}`}
274
274
  data-floor-uid={floorItem?.uid}
275
275
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
276
276
  />
277
277
  )}
278
278
  <FloorListItem
279
279
  floorIndex={floorIndex}
280
280
  floorData={floorItem}
281
281
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
282
282
  containerBorderRadius={borderStyle}
283
283
  updateShopFloorDataFn={updateShopFloorDataFn}
284
284
  loadingEndComponentFn={loadingEndComponentFn}
285
285
  key={floorItem.uid}
286
286
  builtInComponents={builtInComponents}
287
287
  updateContainerFloorListDataFn={updateContainerFloorListDataFn}
288
288
  customErrorIsvFloorModule={customErrorIsvFloorModule}
289
289
  />
290
290
  {index === luxuryFixedIndex ? props.children : null}
291
291
  </View>
292
292
  );
293
293
  };
294
294
 
295
295
  const getFloorSetHeight = (item) => {
296
296
  const getHeight = item?.floorExtInfo?.floorHeight
297
297
  ? Number(item?.floorExtInfo?.floorHeight)
298
298
  : 200;
299
299
  return getHeight > 0 ? getHeight : 200;
300
300
  };
301
301
  const containerFloorListDataLen = containerFloorListData.length;
302
302
 
303
303
  const getNoDataContainerHeight = () => {
304
304
  const changeHeight = hasLiveForSageShop
305
305
  ? windowHeight
306
306
  : windowHeight -
307
307
  (isJdApp
308
308
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
309
309
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT);
310
310
  return {
311
311
  height: `${changeHeight}px`,
312
312
  };
313
313
  };
314
314
  return (
315
315
  <View
316
316
  className={classNames(className, shopContainerListStyle['d-shop-container-list'])}
317
317
  style={style}
318
318
  >
319
319
  <View
320
320
  id="J_shopContainerFloorList"
321
321
  className={
322
322
  isHasMarginBottom
323
323
  ? shopContainerListStyle['d-container-list-with-margin-bottom']
324
324
  : shopContainerListStyle['d-container-list-no-margin-bottom']
325
325
  }
326
326
  >
327
327
  {containerFloorListDataLen > 0 ? (
328
328
  containerFloorListData.map((item, index) => {
329
329
  const containerLayoutLeftRightMargin = (item.marginLeft || 0) + (item.marginRight || 0);
330
330
  const getContainerId = `J_container_${item.containerId}`;
331
331
  const borderStyle = getBorderStyle(
332
332
  item,
333
333
  index,
334
334
  containerFloorListData,
335
335
  containerFloorListDataLen,
336
336
  );
337
337
  return (
338
338
  <React.Fragment key={item.containerId + index}>
339
339
  {item.addLuxuryStyle ? (
340
340
  <View className={shopContainerListStyle['d-luxury-header']} />
341
341
  ) : null}
342
342
  {item.addLuxuryBackupStyle ? (
343
343
  <View
344
344
  style={{
345
345
  height: taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight + 'px',
346
346
  }}
347
347
  className={shopContainerListStyle['d-luxury-header-black']}
348
348
  />
349
349
  ) : null}
350
350
  {typeof item?.renderExtendComponent === 'function'
351
351
  ? item?.renderExtendComponent(item?.floorExtendData)
352
352
  : null}
353
353
  <View
354
354
  className={classNames(
355
355
  shopContainerListStyle['d-container-item'],
356
356
  containerItemClass,
357
357
  )}
358
358
  id={getContainerId}
359
359
  key={item.containerId}
360
360
  data-container-id={item?.containerId}
361
361
  data-container-type={item?.typeCode}
362
362
  style={{
363
363
  marginBottom: item.marginBottom ? `${item.marginBottom}px` : 0,
364
364
  marginTop: item.marginTop ? `${item.marginTop}px` : 0,
365
365
  marginLeft: item.marginLeft ? `${item.marginLeft}px` : 0,
366
366
  marginRight: item.marginRight ? `${item.marginRight}px` : 0,
367
367
  borderTopLeftRadius: borderStyle?.borderTopLeftRadius || `0px`,
368
368
  borderTopRightRadius: borderStyle?.borderTopRightRadiu || `0px`,
369
369
  borderBottomLeftRadius: borderStyle?.borderBottomLeftRadius || `0px`,
370
370
  borderBottomRightRadius: borderStyle?.borderBottomRightRadius || `0px`,
371
371
  '--container-layout-left-right-margin': `${containerLayoutLeftRightMargin}px`,
372
372
  }}
373
373
  >
374
374
  {typeof item?.insertContainerStartComponent === 'function'
375
375
  ? item?.insertContainerStartComponent(item)
376
376
  : null}
377
377
  {item.floors &&
378
378
  item.floors.length > 0 &&
379
379
  item.floors?.map((floorItem, floorIndex) => {
380
380
  return index > lazyLoadStartIndex ? (
381
381
  <LazyLayoutLoad
382
382
  key={item.containerId}
383
383
  sectionType={sectionType}
384
384
  containerId={getContainerId}
385
385
  height={getFloorSetHeight(floorItem)}
386
386
  floorData={floorItem}
387
387
  >
388
388
  {renderFloorItem(
389
389
  item,
390
390
  floorItem,
391
391
  floorIndex,
392
392
  containerLayoutLeftRightMargin,
393
393
  true,
394
394
  index,
395
395
  borderStyle,
396
396
  )}
397
397
  </LazyLayoutLoad>
398
398
  ) : (
399
399
  renderFloorItem(
400
400
  item,
401
401
  floorItem,
402
402
  floorIndex,
403
403
  containerLayoutLeftRightMargin,
404
404
  false,
405
405
  index,
406
406
  borderStyle,
407
407
  )
408
408
  );
409
409
  })}
410
410
  </View>
411
411
  </React.Fragment>
412
412
  );
413
413
  })
414
414
  ) : !emptyFloorListHidden ? (
415
415
  <View
416
416
  className={classNames(shopContainerListStyle['d-container-list-no-data'], {
417
417
  [shopContainerListStyle['d-sage-shop-no-data']]: hasLiveForSageShop,
418
418
  })}
419
419
  style={getNoDataContainerHeight()}
420
420
  >
421
421
  <NetworkDataError
422
422
  netWorkShowType={NetWorkShowType.PART}
423
423
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
424
424
  backgroundColorWhite={hasLiveForSageShop}
425
425
  refreshCallBackFn={refreshFloorListDataFn ? refreshFloorListDataFn : null}
426
426
  btnLabel={refreshFloorListDataBtnLabel || ''}
427
427
  />
428
428
  </View>
429
429
  ) : null}
430
430
  </View>
431
431
  </View>
432
432
  );
433
433
  updateShopDataFn: null,