@conecli/cone-render 0.9.1-shop2.2 → 0.9.1-shop2.20

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 (103) 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 -0
  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/jdplayerSdk.ts +1 -0
  9. package/dist/common/jssdk.ts +1 -0
  10. package/dist/common/pageType.ts +1 -0
  11. package/dist/common/sgmCustomCode.ts +1 -0
  12. package/dist/common/token/index.h5.ts +1 -1
  13. package/dist/common/token/token.jd.ts +1 -1
  14. package/dist/common/token/token.ts +1 -1
  15. package/dist/common/wxappApi.jd.ts +1 -0
  16. package/dist/components/ErrorBoundary.tsx +1 -1
  17. package/dist/components/base/CountDown/index.tsx +1 -1
  18. package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
  19. package/dist/components/base/CustomScrollView/index.module.scss +7 -0
  20. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  21. package/dist/components/base/CustomVideo/index.tsx +1 -1
  22. package/dist/components/base/Dialog/index.module.scss +5 -0
  23. package/dist/components/base/Dialog/index.tsx +1 -1
  24. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  25. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  26. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  27. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  28. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  29. package/dist/components/base/InViewRender/index.tsx +1 -1
  30. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  31. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  32. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  33. package/dist/components/base/LazyLoadImage/index.h5.module.scss +23 -20
  34. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  35. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  36. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  37. package/dist/components/base/NetworkDataError/const.ts +1 -1
  38. package/dist/components/base/NetworkDataError/index.module.scss +7 -0
  39. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  40. package/dist/components/base/Price/Double/index.tsx +1 -1
  41. package/dist/components/base/Price/index.tsx +1 -1
  42. package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
  43. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  44. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  45. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  46. package/dist/components/floorItem.jd.tsx +1 -1
  47. package/dist/components/floorItem.tsx +1 -1
  48. package/dist/components/floorItem.weapp.tsx +1 -1
  49. package/dist/components/isv/Floor/index.tsx +1 -1
  50. package/dist/components/remoteFloorItem.tsx +1 -1
  51. package/dist/interface/common.ts +1 -1
  52. package/dist/interface/component.ts +1 -1
  53. package/dist/interface/jumpEventReport.ts +1 -1
  54. package/dist/interface/service.ts +1 -1
  55. package/dist/interface/utils.ts +1 -1
  56. package/dist/jumpEventReport/base.ts +1 -1
  57. package/dist/jumpEventReport/const.ts +1 -1
  58. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  59. package/dist/jumpEventReport/index.h5.ts +1 -1
  60. package/dist/jumpEventReport/index.jd.ts +1 -1
  61. package/dist/jumpEventReport/index.weapp.ts +1 -1
  62. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  63. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  64. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  65. package/dist/jumpEventReport/web/report.ts +1 -1
  66. package/dist/jumpEventReport/web.base.ts +1 -1
  67. package/dist/jumpEventReport/web.jd.ts +1 -1
  68. package/dist/jumpEventReport/web.jdb.ts +1 -1
  69. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  70. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  71. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  72. package/dist/jumpEventReport/web.tjm.ts +1 -0
  73. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  74. package/dist/modules/ContainerFloorList/index.h5.module.scss +18 -1
  75. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  76. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  77. package/dist/open/api/device.ts +1 -1
  78. package/dist/open/api/environment.ts +1 -1
  79. package/dist/open/api/index.ts +1 -1
  80. package/dist/open/api/jump copy.ts +1 -1
  81. package/dist/open/api/request.ts +1 -1
  82. package/dist/open/api/shopMember.ts +1 -1
  83. package/dist/open/api/track.ts +1 -1
  84. package/dist/open/api/util.ts +1 -1
  85. package/dist/open/components/index.ts +1 -1
  86. package/dist/sass/app.h5.scss +49 -3
  87. package/dist/sass/base.scss +57 -0
  88. package/dist/service/fetchGateway.ts +1 -1
  89. package/dist/service/http/const.ts +1 -1
  90. package/dist/service/requestServer.ts +1 -1
  91. package/dist/utils/connectNativeJsBridge.ts +1 -1
  92. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  93. package/dist/utils/draExceptionAndProfile.ts +1 -1
  94. package/dist/utils/h5Utils.ts +1 -1
  95. package/dist/utils/index.h5.ts +1 -1
  96. package/dist/utils/index.ts +1 -1
  97. package/dist/utils/index.weapp.ts +1 -1
  98. package/dist/utils/jm-common.js +1 -1
  99. package/dist/utils/sgmCodeUtils.ts +1 -0
  100. package/dist/utils/taroRenderUtil.ts +1 -1
  101. package/dist/utils/utils.ts +1 -1
  102. package/package.json +1 -1
  103. package/dist/customHooks/useDocumentVisibilitychange.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
  {
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
  isJdApp,
180
180
  isChartH5,
181
181
  NETWORK_DATA_TYPE,
182
182
  M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
183
183
  APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
184
184
  containerFloorListData: ComponentInterFace.ContainerItemData[]
185
185
  className?: string
186
186
  containerItemClass?: object
187
187
  style?: object
188
188
  hasGoodsFeeds?: boolean
189
189
  builtInComponents?: Object
190
190
  loadingEndComponentFn?: Function
191
191
  sectionType?: string
192
192
  updateShopFloorDataFn?: Function
193
193
  updateContainerFloorListDataFn?: Function
194
194
  refreshFloorListDataFn?: Function
195
195
  refreshFloorListDataBtnLabel?: string
196
196
  customErrorIsvFloorModule?: React.ReactElement
197
197
  componentExtend?: React.ReactElement
198
198
  luxuryFixedIndex ?: number
199
199
  const { windowHeight } = taroJdBaseInfo.info.sysInfo
200
200
  const {
201
201
  className,
202
202
  style,
203
203
  containerItemClass = null,
204
204
  containerFloorListData,
205
205
  builtInComponents,
206
206
  loadingEndComponentFn,
207
207
  sectionType,
208
208
  updateShopFloorDataFn,
209
209
  updateContainerFloorListDataFn,
210
210
  refreshFloorListDataFn,
211
211
  refreshFloorListDataBtnLabel,
212
212
  customErrorIsvFloorModule,
213
213
  luxuryFixedIndex = -1
214
214
  } = props
215
215
 
216
216
  const renderFloorItem = (
217
217
  item,
218
218
  floorItem,
219
219
  floorIndex,
220
220
  containerLayoutLeftRightMargin,
221
221
  lazyLoadState = false,
222
222
  index
223
223
  ) => {
224
224
  return (
225
225
  <View
226
226
  className={classNames(shopContainerListStyle['d-floor-item'])}
227
227
  data-floor-uid={floorItem?.uid}
228
228
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
229
229
  data-lazy-load={lazyLoadState}
230
230
  key={floorItem.uid}
231
231
  id={`J_floor_${floorItem.uid}`}
232
232
  style={{
233
233
  borderRadius: `${item?.borderRadius || 0}px`,
234
234
  }}
235
235
  >
236
236
  {isChartH5 && (
237
237
  <View
238
238
  className={shopContainerListStyle['d-floor-chart-item']}
239
239
  id={`J_chart_floor_${floorItem?.uid}`}
240
240
  data-floor-uid={floorItem?.uid}
241
241
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
242
242
  />
243
243
  )}
244
244
  <FloorListItem
245
245
  floorIndex={floorIndex}
246
246
  floorData={floorItem}
247
247
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
248
248
  containerBorderRadius={item?.borderRadius || 0}
249
249
  updateShopFloorDataFn={updateShopFloorDataFn}
250
250
  loadingEndComponentFn={loadingEndComponentFn}
251
251
  key={floorItem.uid}
252
252
  builtInComponents={builtInComponents}
253
253
  updateContainerFloorListDataFn={updateContainerFloorListDataFn}
254
254
  customErrorIsvFloorModule={customErrorIsvFloorModule}
255
255
  />
256
256
  {index === luxuryFixedIndex ? props.children : null}
257
257
  </View>
258
258
  )
259
259
  }
260
260
 
261
261
  const getFloorSetHeight = (item) => {
262
262
  const getHeight = item?.floorExtInfo?.floorHeight
263
263
  ? Number(item?.floorExtInfo?.floorHeight)
264
264
  : 200
265
265
  return getHeight > 0 ? getHeight : 200
266
266
  }
267
267
  return (
268
268
  <View
269
269
  className={classNames(
270
270
  className,
271
271
  shopContainerListStyle['d-shop-container-list'],
272
272
  )}
273
273
  style={style}
274
274
  >
275
275
  <View id='J_shopContainerFloorList'>
276
276
  {containerFloorListData.length > 0 ? (
277
277
  containerFloorListData.map((item, index) => {
278
278
  const containerLayoutLeftRightMargin =
279
279
  (item.marginLeft || 0) + (item.marginRight || 0)
280
280
  const getContainerId = `J_container_${item.containerId}`
281
281
  return (
282
282
  <React.Fragment key={item.containerId + index}>
283
283
  {
284
284
  item.addLuxuryStyle ?
285
285
  <View
286
286
  className={
287
287
  shopContainerListStyle['d-luxury-header']
288
288
  }
289
289
  />
290
290
  : null
291
291
  }
292
292
  {
293
293
  item.addLuxuryBackupStyle ?
294
294
  <View
295
295
  style={{ height: taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight + 'px' }}
296
296
  className={
297
297
  shopContainerListStyle['d-luxury-header-black']
298
298
  }
299
299
  />
300
300
  : null
301
301
  }
302
302
  {typeof item?.renderExtendComponent === 'function' ? item?.renderExtendComponent(item?.floorExtendData) : null}
303
303
  <View
304
304
  className={classNames(
305
305
  shopContainerListStyle['d-container-item'],
306
306
  containerItemClass,
307
307
  )}
308
308
  id={getContainerId}
309
309
  key={item.containerId}
310
310
  data-container-id={item?.containerId}
311
311
  data-container-type={item?.typeCode}
312
312
  style={{
313
313
  marginBottom: item.marginBottom
314
314
  ? `${item.marginBottom}px`
315
315
  : 0,
316
316
  marginTop: item.marginTop
317
317
  ? `${item.marginTop}px`
318
318
  : 0,
319
319
  marginLeft: item.marginLeft
320
320
  ? `${item.marginLeft}px`
321
321
  : 0,
322
322
  marginRight: item.marginRight
323
323
  ? `${item.marginRight}px`
324
324
  : 0,
325
325
  borderRadius: item.borderRadius
326
326
  ? `${item.borderRadius}px`
327
327
  : 0,
328
328
  }}
329
329
  >
330
330
  {typeof item?.insertContainerStartComponent === 'function' ? item?.insertContainerStartComponent(item) : null}
331
331
  {item.floors &&
332
332
  item.floors.length > 0 &&
333
333
  item.floors?.map(
334
334
  (floorItem, floorIndex) => {
335
335
  return index > lazyLoadStartIndex ? (
336
336
  <LazyLayoutLoad
337
337
  key={item.containerId}
338
338
  sectionType={sectionType}
339
339
  containerId={getContainerId}
340
340
  height={getFloorSetHeight(
341
341
  floorItem,
342
342
  )}
343
343
  floorData={floorItem}
344
344
  >
345
345
  {renderFloorItem(
346
346
  item,
347
347
  floorItem,
348
348
  floorIndex,
349
349
  containerLayoutLeftRightMargin,
350
350
  true,
351
351
  index
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
  )
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={
373
373
  shopContainerListStyle['d-container-list-no-data']
374
374
  }
375
375
  style={{
376
376
  height: `${
377
377
  windowHeight -
378
378
  (isJdApp
379
379
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
380
380
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT)
381
381
  }px`,
382
382
  }}
383
383
  >
384
384
  <NetworkDataError
385
385
  netWorkShowType={NetWorkShowType.PART}
386
386
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
387
387
  refreshCallBackFn={refreshFloorListDataFn ? refreshFloorListDataFn : null}
388
388
  btnLabel={refreshFloorListDataBtnLabel || ""}
389
389
  />
390
390
  </View>
391
391
  )}
392
392
  </View>
393
393
  </View>
394
394
  )
395
395
  updateShopDataFn: null,