@conecli/cone-render 0.8.19 → 0.8.20-beta.2

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