@conecli/cone-render 0.9.1-shop2.3 → 0.9.1-shop2.31

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