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