@conecli/cone-render 0.9.1-shop2.26 → 0.9.1-shop2.28

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