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

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 (60) hide show
  1. package/dist/common/const.ts +1 -1
  2. package/dist/common/index.h5.ts +1 -1
  3. package/dist/common/index.jd.ts +1 -1
  4. package/dist/common/index.ts +1 -1
  5. package/dist/common/index.weapp.ts +1 -1
  6. package/dist/common/jssdk.ts +1 -0
  7. package/dist/common/pageType.ts +1 -0
  8. package/dist/common/token/index.h5.ts +1 -1
  9. package/dist/common/token/token.jd.ts +1 -1
  10. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  11. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  12. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  13. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  14. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  15. package/dist/components/base/InViewRender/index.tsx +1 -1
  16. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  17. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  18. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  19. package/dist/components/base/MobileCommonHeader/index.module.scss +9 -0
  20. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  21. package/dist/components/base/NetworkDataError/const.ts +1 -1
  22. package/dist/components/base/NetworkDataError/index.module.scss +4 -0
  23. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  24. package/dist/components/base/Price/Double/index.tsx +1 -1
  25. package/dist/components/base/Price/index.tsx +1 -1
  26. package/dist/components/decorate/DecorateFloorModule/index.module.scss +21 -2
  27. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  28. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  29. package/dist/components/isv/Floor/index.tsx +1 -1
  30. package/dist/components/remoteFloorItem.tsx +1 -1
  31. package/dist/interface/common.ts +1 -1
  32. package/dist/interface/component.ts +1 -1
  33. package/dist/jumpEventReport/const.ts +1 -1
  34. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  35. package/dist/jumpEventReport/index.weapp.ts +1 -1
  36. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  37. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  38. package/dist/jumpEventReport/web/report.ts +1 -1
  39. package/dist/jumpEventReport/web.base.ts +1 -1
  40. package/dist/jumpEventReport/web.jd.ts +1 -1
  41. package/dist/jumpEventReport/web.jdb.ts +1 -1
  42. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  43. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  44. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  45. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  46. package/dist/open/api/environment.ts +1 -1
  47. package/dist/open/api/index.ts +1 -1
  48. package/dist/open/api/track.ts +1 -1
  49. package/dist/open/components/index.ts +1 -1
  50. package/dist/service/fetchGateway.ts +1 -1
  51. package/dist/service/http/const.ts +1 -1
  52. package/dist/service/requestServer.ts +1 -1
  53. package/dist/utils/connectNativeJsBridge.ts +1 -1
  54. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  55. package/dist/utils/h5Utils.ts +1 -1
  56. package/dist/utils/index.h5.ts +1 -1
  57. package/dist/utils/index.ts +1 -1
  58. package/dist/utils/index.weapp.ts +1 -1
  59. package/dist/utils/utils.ts +1 -1
  60. 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
  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
  customErrorIsvFloorModule?: React.ReactElement
193
193
  const { windowHeight } = taroJdBaseInfo.info.sysInfo
194
194
  const {
195
195
  className,
196
196
  style,
197
197
  containerItemClass = null,
198
198
  containerFloorListData,
199
199
  builtInComponents,
200
200
  loadingEndComponentFn,
201
201
  sectionType,
202
202
  updateShopFloorDataFn,
203
203
  updateContainerFloorListDataFn,
204
204
  customErrorIsvFloorModule,
205
205
  } = props
206
206
 
207
207
  const renderFloorItem = (
208
208
  item,
209
209
  floorItem,
210
210
  floorIndex,
211
211
  containerLayoutLeftRightMargin,
212
212
  lazyLoadState = false,
213
213
  ) => {
214
214
  return (
215
215
  <View
216
216
  className={classNames(shopContainerListStyle['d-floor-item'])}
217
217
  data-floor-uid={floorItem?.uid}
218
218
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
219
219
  data-lazy-load={lazyLoadState}
220
220
  key={floorItem.uid}
221
221
  id={`J_floor_${floorItem.uid}`}
222
222
  style={{
223
223
  borderRadius: `${item?.borderRadius || 0}px`,
224
224
  }}
225
225
  >
226
226
  {
227
227
  isChartH5 &&
228
228
  <View className={shopContainerListStyle['d-floor-chart-item']} id={`J_chart_floor_${floorItem?.uid}`}
229
229
  data-floor-uid={floorItem?.uid}
230
230
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''} />
231
231
  }
232
232
  <FloorListItem
233
233
  floorIndex={floorIndex}
234
234
  floorData={floorItem}
235
235
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
236
236
  containerBorderRadius={item?.borderRadius || 0}
237
237
  updateShopFloorDataFn={updateShopFloorDataFn}
238
238
  loadingEndComponentFn={loadingEndComponentFn}
239
239
  key={floorItem.uid}
240
240
  builtInComponents={builtInComponents}
241
241
  updateContainerFloorListDataFn={
242
242
  updateContainerFloorListDataFn
243
243
  }
244
244
  customErrorIsvFloorModule={customErrorIsvFloorModule}
245
245
  />
246
246
  </View>
247
247
  )
248
248
  }
249
249
 
250
250
  const getFloorSetHeight = (item) => {
251
251
  const getHeight = item?.floorExtInfo?.floorHeight
252
252
  ? Number(item?.floorExtInfo?.floorHeight)
253
253
  : 200
254
254
  return getHeight > 0 ? getHeight : 200
255
255
  }
256
256
  return (
257
257
  <View
258
258
  className={classNames(
259
259
  className,
260
260
  shopContainerListStyle['d-shop-container-list'],
261
261
  )}
262
262
  style={style}
263
263
  >
264
264
  <View id='J_shopContainerFloorList'>
265
265
  {containerFloorListData.length > 0 ? (
266
266
  containerFloorListData.map((item, index) => {
267
267
  const containerLayoutLeftRightMargin =
268
268
  (item.marginLeft || 0) + (item.marginRight || 0)
269
269
  const getContainerId = `J_container_${item.containerId}`
270
270
  return (
271
271
  <View
272
272
  className={classNames(
273
273
  shopContainerListStyle['d-container-item'],
274
274
  containerItemClass,
275
275
  )}
276
276
  id={getContainerId}
277
277
  key={item.containerId}
278
278
  data-container-id={item?.containerId}
279
279
  data-container-type={item?.typeCode}
280
280
  style={{
281
281
  marginBottom: item.marginBottom
282
282
  ? `${item.marginBottom}px`
283
283
  : 0,
284
284
  marginTop: item.marginTop
285
285
  ? `${item.marginTop}px`
286
286
  : 0,
287
287
  marginLeft: item.marginLeft
288
288
  ? `${item.marginLeft}px`
289
289
  : 0,
290
290
  marginRight: item.marginRight
291
291
  ? `${item.marginRight}px`
292
292
  : 0,
293
293
  borderRadius: item.borderRadius
294
294
  ? `${item.borderRadius}px`
295
295
  : 0,
296
296
  }}
297
297
  >
298
298
  {item.floors &&
299
299
  item.floors.length > 0 &&
300
300
  item.floors?.map(
301
301
  (floorItem, floorIndex) => {
302
302
  return index > lazyLoadStartIndex ? (
303
303
  <LazyLayoutLoad
304
304
  key={item.containerId}
305
305
  sectionType={sectionType}
306
306
  containerId={getContainerId}
307
307
  height={getFloorSetHeight(
308
308
  floorItem,
309
309
  )}
310
310
  floorData={floorItem}
311
311
  >
312
312
  {renderFloorItem(
313
313
  item,
314
314
  floorItem,
315
315
  floorIndex,
316
316
  containerLayoutLeftRightMargin,
317
317
  true,
318
318
  )}
319
319
  </LazyLayoutLoad>
320
320
  ) : (
321
321
  renderFloorItem(
322
322
  item,
323
323
  floorItem,
324
324
  floorIndex,
325
325
  containerLayoutLeftRightMargin,
326
326
  )
327
327
  )
328
328
  },
329
329
  )}
330
330
  </View>
331
331
  )
332
332
  })
333
333
  ) : (
334
334
  <View
335
335
  className={
336
336
  shopContainerListStyle['d-container-list-no-data']
337
337
  }
338
338
  style={{
339
339
  height: `${
340
340
  windowHeight -
341
341
  (isJdApp
342
342
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
343
343
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT)
344
344
  }px`,
345
345
  }}
346
346
  >
347
347
  <NetworkDataError
348
348
  netWorkShowType={NetWorkShowType.PART}
349
349
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
350
350
  />
351
351
  </View>
352
352
  )}
353
353
  </View>
354
354
  </View>
355
355
  )
356
356
  updateShopDataFn: null,