@conecli/cone-render 0.10.1-beta.5 → 0.10.1-beta.7

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 (57) 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/base/CountDown/index.module.scss +49 -44
  11. package/dist/components/base/CountDown/index.tsx +1 -1
  12. package/dist/components/base/CustomVideo/common.ts +1 -0
  13. package/dist/components/base/CustomVideo/index.tsx +1 -1
  14. package/dist/components/base/LazyLoadImage/index.h5.module.scss +11 -6
  15. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  16. package/dist/components/base/Price/Base/index.tsx +1 -1
  17. package/dist/components/base/Price/Double/index.module.scss +8 -0
  18. package/dist/components/base/Price/Double/index.tsx +1 -1
  19. package/dist/components/floorItem.tsx +1 -1
  20. package/dist/components/isv/Floor/index.tsx +1 -1
  21. package/dist/interface/component.ts +1 -1
  22. package/dist/interface/jumpEventReport.ts +1 -1
  23. package/dist/interface/service.ts +1 -1
  24. package/dist/jumpEventReport/base.ts +1 -1
  25. package/dist/jumpEventReport/index.jd.ts +1 -1
  26. package/dist/jumpEventReport/index.weapp.ts +1 -1
  27. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  28. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  29. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  30. package/dist/jumpEventReport/web.base.ts +1 -1
  31. package/dist/jumpEventReport/web.jd.ts +1 -1
  32. package/dist/jumpEventReport/web.jdb.ts +1 -1
  33. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  34. package/dist/jumpEventReport/web.jxwxapp.ts +1 -1
  35. package/dist/jumpEventReport/web.pc.ts +1 -1
  36. package/dist/jumpEventReport/web.tjapp.ts +1 -1
  37. package/dist/jumpEventReport/web.tjm.ts +1 -1
  38. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  39. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  40. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  41. package/dist/open/api/util.ts +1 -1
  42. package/dist/sass/base.scss +142 -141
  43. package/dist/service/fetchGateway.ts +1 -1
  44. package/dist/service/http/colorSign.ts +1 -1
  45. package/dist/service/http/h5Http.ts +1 -0
  46. package/dist/service/http/index.h5.ts +1 -0
  47. package/dist/service/requestServer.h5.ts +1 -0
  48. package/dist/service/requestServer.ts +1 -1
  49. package/dist/utils/connectNativeJsBridge.ts +1 -1
  50. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  51. package/dist/utils/h5Utils.ts +1 -1
  52. package/dist/utils/index.h5.ts +1 -1
  53. package/dist/utils/index.ts +1 -1
  54. package/dist/utils/index.weapp.ts +1 -1
  55. package/dist/utils/utils.ts +1 -1
  56. package/package.json +35 -29
  57. package/dist/utils/memberFormatUtils.js +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
  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(
147
146
  (floorItem, floorIndex) => {
148
147
  return index > lazyLoadStartIndex ? (
149
148
  <LazyLayoutLoad
150
149
  key={item.containerId}
151
150
  sectionType={sectionType}
152
151
  containerId={getContainerId}
153
152
  height={getFloorSetHeight(
154
153
  floorItem,
155
154
  )}
156
155
  floorData={floorItem}
157
156
  >
158
157
  {renderFloorItem(
159
158
  item,
160
159
  floorItem,
161
160
  floorIndex,
162
161
  containerLayoutLeftRightMargin,
163
162
  true,
164
163
  index
165
164
  )}
166
165
  </LazyLayoutLoad>
167
166
  ) : (
168
167
  renderFloorItem(
169
168
  item,
170
169
  floorItem,
171
170
  floorIndex,
172
171
  containerLayoutLeftRightMargin,
173
172
  false,
174
173
  index
175
174
  )
176
175
  )
177
176
  })}
178
177
  </View>
179
178
  </React.Fragment>
180
179
  )
181
180
  })
182
181
  ) : (
183
182
  <View
184
183
  className={shopContainerListStyle['d-container-list-no-data']}
185
184
  style={{
186
185
  height: `${
187
186
  windowHeight -
188
187
  (isJdApp
189
188
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
190
189
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT)
191
190
  }px`,
192
191
  }}
193
192
  >
194
193
  <NetworkDataError
195
194
  netWorkShowType={NetWorkShowType.PART}
196
195
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
197
196
  refreshCallBackFn={
198
197
  refreshFloorListDataFn ? refreshFloorListDataFn : null
199
198
  }
200
199
  btnLabel={refreshFloorListDataBtnLabel || ''}
201
200
  />
202
201
  </View>
203
202
  )}
204
203
  </View>
205
204
  </View>
206
205
  )
206
+ import React from 'react'
207
207
  NETWORK_DATA_TYPE,
208
208
  M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
209
209
  APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
210
210
  containerFloorListData: ComponentInterFace.ContainerItemData[]
211
211
  className?: string
212
212
  containerItemClass?: object
213
213
  style?: object
214
214
  hasGoodsFeeds?: boolean
215
215
  builtInComponents?: Object
216
216
  loadingEndComponentFn?: Function
217
217
  sectionType?: string
218
218
  updateShopFloorDataFn?: Function
219
219
  updateContainerFloorListDataFn?: Function
220
220
  refreshFloorListDataFn?: Function
221
221
  refreshFloorListDataBtnLabel?: string
222
222
  customErrorIsvFloorModule?: React.ReactElement
223
223
  componentExtend?: React.ReactElement
224
224
  luxuryFixedIndex?: number
225
225
  const { windowHeight } = taroJdBaseInfo.info.sysInfo
226
226
  const {
227
227
  className,
228
228
  style,
229
229
  containerItemClass = null,
230
230
  containerFloorListData,
231
231
  builtInComponents,
232
232
  loadingEndComponentFn,
233
233
  sectionType,
234
234
  updateShopFloorDataFn,
235
235
  updateContainerFloorListDataFn,
236
236
  refreshFloorListDataFn,
237
237
  refreshFloorListDataBtnLabel,
238
238
  customErrorIsvFloorModule,
239
239
  luxuryFixedIndex = -1,
240
240
  } = props
241
241
 
242
242
  const renderFloorItem = (
243
243
  item,
244
244
  floorItem,
245
245
  floorIndex,
246
246
  containerLayoutLeftRightMargin,
247
247
  lazyLoadState = false,
248
248
  index,
249
249
  borderStyle,
250
250
  ) => {
251
251
  return (
252
252
  <View
253
253
  className={classNames(shopContainerListStyle['d-floor-item'])}
254
254
  data-floor-uid={floorItem?.uid}
255
255
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
256
256
  data-lazy-load={lazyLoadState}
257
257
  key={floorItem.uid}
258
258
  id={`J_floor_${floorItem.uid}`}
259
259
  style={borderStyle}
260
260
  >
261
261
  {isChartH5 && (
262
262
  <View
263
263
  className={shopContainerListStyle['d-floor-chart-item']}
264
264
  id={`J_chart_floor_${floorItem?.uid}`}
265
265
  data-floor-uid={floorItem?.uid}
266
266
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
267
267
  />
268
268
  )}
269
269
  <FloorListItem
270
270
  floorIndex={floorIndex}
271
271
  floorData={floorItem}
272
272
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
273
273
  containerBorderRadius={borderStyle}
274
274
  updateShopFloorDataFn={updateShopFloorDataFn}
275
275
  loadingEndComponentFn={loadingEndComponentFn}
276
276
  key={floorItem.uid}
277
277
  builtInComponents={builtInComponents}
278
278
  updateContainerFloorListDataFn={updateContainerFloorListDataFn}
279
279
  customErrorIsvFloorModule={customErrorIsvFloorModule}
280
280
  />
281
281
  {index === luxuryFixedIndex ? props.children : null}
282
282
  </View>
283
283
  )
284
284
  }
285
285
 
286
286
  const getFloorSetHeight = (item) => {
287
287
  const getHeight = item?.floorExtInfo?.floorHeight
288
288
  ? Number(item?.floorExtInfo?.floorHeight)
289
289
  : 200
290
290
  return getHeight > 0 ? getHeight : 200
291
291
  }
292
292
  const containerFloorListDataLen = containerFloorListData.length
293
293
  return (
294
294
  <View
295
295
  className={classNames(
296
296
  className,
297
297
  shopContainerListStyle['d-shop-container-list'],
298
298
  )}
299
299
  style={style}
300
300
  >
301
301
  <View id="J_shopContainerFloorList">
302
302
  {containerFloorListDataLen > 0 ? (
303
303
  containerFloorListData.map((item, index) => {
304
304
  const containerLayoutLeftRightMargin =
305
305
  (item.marginLeft || 0) + (item.marginRight || 0)
306
306
  const getContainerId = `J_container_${item.containerId}`
307
307
  const borderStyle = getBorderStyle(
308
308
  item,
309
309
  index,
310
310
  containerFloorListData,
311
311
  containerFloorListDataLen,
312
312
  )
313
313
  if (index === containerFloorListDataLen - 1) item.marginBottom = 8
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:
323
323
  taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight +
324
324
  'px',
325
325
  }}
326
326
  className={shopContainerListStyle['d-luxury-header-black']}
327
327
  />
328
328
  ) : null}
329
329
  {typeof item?.renderExtendComponent === 'function'
330
330
  ? item?.renderExtendComponent(item?.floorExtendData)
331
331
  : null}
332
332
  <View
333
333
  className={classNames(
334
334
  shopContainerListStyle['d-container-item'],
335
335
  containerItemClass,
336
336
  )}
337
337
  id={getContainerId}
338
338
  key={item.containerId}
339
339
  data-container-id={item?.containerId}
340
340
  data-container-type={item?.typeCode}
341
341
  style={{
342
342
  marginBottom: item.marginBottom
343
343
  ? `${item.marginBottom}px`
344
344
  : 0,
345
345
  marginTop: item.marginTop ? `${item.marginTop}px` : 0,
346
346
  marginLeft: item.marginLeft ? `${item.marginLeft}px` : 0,
347
347
  marginRight: item.marginRight ? `${item.marginRight}px` : 0,
348
348
  borderTopLeftRadius:
349
349
  borderStyle?.borderTopLeftRadius || `0px`,
350
350
  borderTopRightRadius:
351
351
  borderStyle?.borderTopRightRadiu || `0px`,
352
352
  borderBottomLeftRadius:
353
353
  borderStyle?.borderBottomLeftRadius || `0px`,
354
354
  borderBottomRightRadius:
355
355
  borderStyle?.borderBottomRightRadius || `0px`,
356
356
  }}
357
357
  >
358
358
  {typeof item?.insertContainerStartComponent === 'function'
359
359
  ? item?.insertContainerStartComponent(item)
360
360
  : null}
361
361
  {item.floors &&
362
362
  item.floors.length > 0 &&
363
363
  item.floors?.map((floorItem, floorIndex) => {
364
364
  return index > lazyLoadStartIndex ? (
365
365
  <LazyLayoutLoad
366
366
  key={item.containerId}
367
367
  sectionType={sectionType}
368
368
  containerId={getContainerId}
369
369
  height={getFloorSetHeight(floorItem)}
370
370
  floorData={floorItem}
371
371
  >
372
372
  {renderFloorItem(
373
373
  item,
374
374
  floorItem,
375
375
  floorIndex,
376
376
  containerLayoutLeftRightMargin,
377
377
  true,
378
378
  index,
379
379
  borderStyle,
380
380
  )}
381
381
  </LazyLayoutLoad>
382
382
  ) : (
383
383
  renderFloorItem(
384
384
  item,
385
385
  floorItem,
386
386
  floorIndex,
387
387
  containerLayoutLeftRightMargin,
388
388
  false,
389
389
  index,
390
390
  borderStyle,
391
391
  )
392
392
  )
393
393
  })}
394
394
  </View>
395
395
  </React.Fragment>
396
396
  )
397
397
  })
398
398
  ) : (
399
399
  <View
400
400
  className={shopContainerListStyle['d-container-list-no-data']}
401
401
  style={{
402
402
  height: `${
403
403
  windowHeight -
404
404
  (isJdApp
405
405
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
406
406
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT)
407
407
  }px`,
408
408
  }}
409
409
  >
410
410
  <NetworkDataError
411
411
  netWorkShowType={NetWorkShowType.PART}
412
412
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
413
413
  refreshCallBackFn={
414
414
  refreshFloorListDataFn ? refreshFloorListDataFn : null
415
415
  }
416
416
  btnLabel={refreshFloorListDataBtnLabel || ''}
417
417
  />
418
418
  </View>
419
419
  )}
420
420
  </View>
421
421
  </View>
422
422
  )