@conecli/cone-render 0.9.1-shop2.0 → 0.9.1-shop2.10

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