@conecli/cone-render 0.8.20-shop.21 → 0.8.20-shop.211

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