@conecli/cone-render 0.9.1-shop2.16 → 0.9.1-shop2.18

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