@conecli/cone-render 0.8.20 → 0.8.21-shop-beta.3

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 (117) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/index.h5.ts +1 -1
  4. package/dist/common/index.jd.ts +1 -1
  5. package/dist/common/index.ts +1 -1
  6. package/dist/common/index.weapp.ts +1 -1
  7. package/dist/common/isvStorage/index.h5.ts +1 -0
  8. package/dist/common/isvStorage/index.ts +1 -0
  9. package/dist/common/token/const.ts +1 -0
  10. package/dist/common/token/index.h5.ts +1 -0
  11. package/dist/common/token/index.ts +1 -0
  12. package/dist/common/token/token.jd.ts +1 -0
  13. package/dist/common/token/token.ts +1 -0
  14. package/dist/common/token/token.wxapp.ts +1 -0
  15. package/dist/components/ErrorBoundary.tsx +1 -1
  16. package/dist/components/base/CommonFloorHead/index.module.scss +1 -1
  17. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  18. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  19. package/dist/components/base/CustomVideo/const.ts +1 -0
  20. package/dist/components/base/CustomVideo/index.module.scss +40 -64
  21. package/dist/components/base/CustomVideo/index.tsx +1 -1
  22. package/dist/components/base/Dialog/index.module.scss +6 -2
  23. package/dist/components/base/Dialog/index.tsx +1 -1
  24. package/dist/components/base/ExposureSmart/const.ts +1 -0
  25. package/dist/components/base/ExposureSmart/index.h5.module.scss +18 -4
  26. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  27. package/dist/components/base/ExposureSmart/index.module.scss +20 -9
  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/InViewRender/index.weapp.tsx +1 -1
  33. package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
  34. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
  35. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  36. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  37. package/dist/components/base/NetworkDataError/const.ts +1 -1
  38. package/dist/components/base/NetworkDataError/index.module.scss +7 -1
  39. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  40. package/dist/components/base/Price/{const.ts → Base/const.ts} +0 -0
  41. package/dist/components/base/Price/Base/index.module.scss +136 -0
  42. package/dist/components/base/Price/Base/index.tsx +1 -0
  43. package/dist/components/base/Price/Double/index.module.scss +158 -0
  44. package/dist/components/base/Price/Double/index.tsx +1 -0
  45. package/dist/components/base/Price/index.tsx +1 -1
  46. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  47. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  48. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  49. package/dist/components/floorItem.jd.tsx +1 -0
  50. package/dist/components/floorItem.tsx +1 -1
  51. package/dist/components/isv/Floor/index.tsx +1 -1
  52. package/dist/components/remoteFloorItem.tsx +1 -0
  53. package/dist/interface/common.ts +1 -1
  54. package/dist/interface/component.ts +1 -1
  55. package/dist/interface/jumpEventReport.ts +1 -1
  56. package/dist/interface/service.ts +1 -1
  57. package/dist/jumpEventReport/base.ts +1 -1
  58. package/dist/jumpEventReport/const.ts +1 -1
  59. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  60. package/dist/jumpEventReport/index.h5.ts +1 -1
  61. package/dist/jumpEventReport/index.ts +1 -1
  62. package/dist/jumpEventReport/index.weapp.ts +1 -1
  63. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  64. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  65. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  66. package/dist/jumpEventReport/web/report.ts +1 -1
  67. package/dist/jumpEventReport/web.base.ts +1 -1
  68. package/dist/jumpEventReport/web.jd.ts +1 -1
  69. package/dist/jumpEventReport/web.jdb.ts +1 -0
  70. package/dist/jumpEventReport/web.jdjch.ts +1 -0
  71. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  72. package/dist/libs/taroAppReport.js +2 -2
  73. package/dist/modules/ContainerFloorList/index.h5.module.scss +10 -1
  74. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  75. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  76. package/dist/open/api/device.ts +1 -1
  77. package/dist/open/api/index.ts +1 -1
  78. package/dist/open/api/jump/business.ts +1 -0
  79. package/dist/open/api/jump/index.ts +1 -0
  80. package/dist/open/api/jump/minPath.ts +1 -0
  81. package/dist/open/api/jump/side.ts +1 -0
  82. package/dist/open/api/jump/webUrl.ts +1 -0
  83. package/dist/open/api/jump copy.ts +1 -0
  84. package/dist/open/api/moduleUtil.ts +1 -1
  85. package/dist/open/api/request.ts +1 -0
  86. package/dist/open/api/shopMember.ts +1 -0
  87. package/dist/open/api/track.ts +1 -1
  88. package/dist/open/api/userToken.ts +1 -0
  89. package/dist/open/api/util.ts +1 -1
  90. package/dist/open/components/index.ts +1 -1
  91. package/dist/service/bMallConst.ts +1 -0
  92. package/dist/service/bMallConst.weapp.ts +1 -0
  93. package/dist/service/fetchGateway.ts +1 -0
  94. package/dist/service/fetchJsonp.ts +1 -0
  95. package/dist/service/http/colorSign.ts +1 -0
  96. package/dist/service/http/colorSign.weapp.ts +1 -0
  97. package/dist/service/http/const.ts +1 -0
  98. package/dist/service/http/http.ts +1 -0
  99. package/dist/service/http/httpInterceptors.jd.ts +1 -0
  100. package/dist/service/http/httpInterceptors.ts +1 -0
  101. package/dist/service/http/index.ts +1 -0
  102. package/dist/service/requestServer.ts +1 -0
  103. package/dist/utils/connectNativeJsBridge.ts +1 -1
  104. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  105. package/dist/utils/h5Utils.ts +1 -1
  106. package/dist/utils/index.h5.ts +1 -1
  107. package/dist/utils/index.ts +1 -1
  108. package/dist/utils/index.weapp.ts +1 -1
  109. package/dist/utils/intersectionObserver.ts +1 -1
  110. package/dist/utils/jm-common.js +1 -1
  111. package/dist/utils/memberFormatUtils.js +1 -0
  112. package/dist/utils/priceUtils.js +1 -0
  113. package/dist/utils/ready.ts +1 -0
  114. package/dist/utils/utils.ts +1 -1
  115. package/package.json +9 -5
  116. package/dist/components/base/Price/index.module.scss +0 -136
  117. package/dist/open/api/jump.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
  <FloorListItem
49
48
  floorIndex={floorIndex}
50
49
  floorData={floorItem}
51
50
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
52
51
  containerBorderRadius={item?.borderRadius || 0}
53
52
  updateShopFloorDataFn={updateShopFloorDataFn}
54
53
  loadingEndComponentFn={loadingEndComponentFn}
55
54
  key={floorItem.uid}
56
55
  builtInComponents={builtInComponents}
57
56
  updateContainerFloorListDataFn={
58
57
  updateContainerFloorListDataFn
59
58
  }
60
59
  customErrorIsvFloorModule={customErrorIsvFloorModule}
61
60
  />
62
61
  </View>
63
62
  )
64
63
  }
65
64
 
66
65
  const getFloorSetHeight = (item) => {
67
66
  const getHeight = item?.floorExtInfo?.floorHeight
68
67
  ? Number(item?.floorExtInfo?.floorHeight)
69
68
  : 200
70
69
  return getHeight > 0 ? getHeight : 200
71
70
  }
72
71
  return (
73
72
  <View
74
73
  className={classNames(
75
74
  className,
76
75
  shopContainerListStyle['d-shop-container-list'],
77
76
  )}
78
77
  style={style}
79
78
  >
80
79
  <View id='J_shopContainerFloorList'>
81
80
  {containerFloorListData.length > 0 ? (
82
81
  containerFloorListData.map((item, index) => {
83
82
  const containerLayoutLeftRightMargin =
84
83
  (item.marginLeft || 0) + (item.marginRight || 0)
85
84
  const getContainerId = `J_container_${item.containerId}`
86
85
  return (
87
86
  <View
88
87
  className={classNames(
89
88
  shopContainerListStyle['d-container-item'],
90
89
  containerItemClass,
91
90
  )}
92
91
  id={getContainerId}
93
92
  key={item.containerId}
94
93
  data-container-id={item?.containerId}
95
94
  data-container-type={item?.typeCode}
96
95
  style={{
97
96
  marginBottom: item.marginBottom
98
97
  ? `${item.marginBottom}px`
99
98
  : 0,
100
99
  marginTop: item.marginTop
101
100
  ? `${item.marginTop}px`
102
101
  : 0,
103
102
  marginLeft: item.marginLeft
104
103
  ? `${item.marginLeft}px`
105
104
  : 0,
106
105
  marginRight: item.marginRight
107
106
  ? `${item.marginRight}px`
108
107
  : 0,
109
108
  borderRadius: item.borderRadius
110
109
  ? `${item.borderRadius}px`
111
110
  : 0,
112
111
  }}
113
112
  >
114
113
  {item.floors &&
115
114
  item.floors.length > 0 &&
116
115
  item.floors?.map(
117
116
  (floorItem, floorIndex) => {
118
117
  return index > 4 ? (
119
118
  <LazyLayoutLoad
120
119
  key={item.containerId}
121
120
  sectionType={sectionType}
122
121
  containerId={getContainerId}
123
122
  height={getFloorSetHeight(
124
123
  floorItem,
125
124
  )}
126
125
  floorData={floorItem}
127
126
  >
128
127
  {renderFloorItem(
129
128
  item,
130
129
  floorItem,
131
130
  floorIndex,
132
131
  containerLayoutLeftRightMargin,
133
132
  true,
134
133
  )}
135
134
  </LazyLayoutLoad>
136
135
  ) : (
137
136
  renderFloorItem(
138
137
  item,
139
138
  floorItem,
140
139
  floorIndex,
141
140
  containerLayoutLeftRightMargin,
142
141
  )
143
142
  )
144
143
  },
145
144
  )}
146
145
  </View>
147
146
  )
148
147
  })
149
148
  ) : (
150
149
  <View
151
150
  className={
152
151
  shopContainerListStyle['d-container-list-no-data']
153
152
  }
154
153
  style={{
155
154
  height: `${
156
155
  windowHeight -
157
156
  (isJdApp
158
157
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
159
158
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT)
160
159
  }px`,
161
160
  }}
162
161
  >
163
162
  <NetworkDataError
164
163
  netWorkShowType={NetWorkShowType.PART}
165
164
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
166
165
  />
167
166
  </View>
168
167
  )}
169
168
  </View>
170
169
  </View>
171
170
  )
172
171
  updateShopDataFn: null,
172
+ import React from 'react'
173
173
  NETWORK_DATA_TYPE,
174
174
  M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
175
175
  APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
176
176
  containerFloorListData: ComponentInterFace.ContainerItemData[]
177
177
  className?: string
178
178
  containerItemClass?: object
179
179
  style?: object
180
180
  hasGoodsFeeds?: boolean
181
181
  builtInComponents?: Object
182
182
  loadingEndComponentFn?: Function
183
183
  sectionType?: string
184
184
  updateShopFloorDataFn?: Function
185
185
  updateContainerFloorListDataFn?: Function
186
186
  customErrorIsvFloorModule?: React.ReactElement
187
187
  const {
188
188
  className,
189
189
  style,
190
190
  containerItemClass = null,
191
191
  containerFloorListData,
192
192
  builtInComponents,
193
193
  loadingEndComponentFn,
194
194
  sectionType,
195
195
  updateShopFloorDataFn,
196
196
  updateContainerFloorListDataFn,
197
197
  customErrorIsvFloorModule,
198
198
  } = props
199
199
 
200
200
  const renderFloorItem = (
201
201
  item,
202
202
  floorItem,
203
203
  floorIndex,
204
204
  containerLayoutLeftRightMargin,
205
205
  lazyLoadState = false,
206
206
  ) => {
207
207
  return (
208
208
  <View
209
209
  className={classNames(shopContainerListStyle['d-floor-item'])}
210
210
  data-floor-uid={floorItem?.uid}
211
211
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
212
212
  data-lazy-load={lazyLoadState}
213
213
  key={floorItem.uid}
214
214
  id={`J_floor_${floorItem.uid}`}
215
215
  style={{
216
216
  borderRadius: `${item?.borderRadius || 0}px`,
217
217
  }}
218
218
  >
219
219
  {
220
220
  isChartH5 &&
221
221
  <View className={shopContainerListStyle['d-floor-chart-item']} id={`J_chart_floor_${floorItem?.uid}`}
222
222
  data-floor-uid={floorItem?.uid}
223
223
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''} />
224
224
  }
225
225
  <FloorListItem
226
226
  floorIndex={floorIndex}
227
227
  floorData={floorItem}
228
228
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
229
229
  containerBorderRadius={item?.borderRadius || 0}
230
230
  updateShopFloorDataFn={updateShopFloorDataFn}
231
231
  loadingEndComponentFn={loadingEndComponentFn}
232
232
  key={floorItem.uid}
233
233
  builtInComponents={builtInComponents}
234
234
  updateContainerFloorListDataFn={
235
235
  updateContainerFloorListDataFn
236
236
  }
237
237
  customErrorIsvFloorModule={customErrorIsvFloorModule}
238
238
  />
239
239
  </View>
240
240
  )
241
241
  }
242
242
 
243
243
  const getFloorSetHeight = (item) => {
244
244
  const getHeight = item?.floorExtInfo?.floorHeight
245
245
  ? Number(item?.floorExtInfo?.floorHeight)
246
246
  : 200
247
247
  return getHeight > 0 ? getHeight : 200
248
248
  }
249
249
  return (
250
250
  <View
251
251
  className={classNames(
252
252
  className,
253
253
  shopContainerListStyle['d-shop-container-list'],
254
254
  )}
255
255
  style={style}
256
256
  >
257
257
  <View id='J_shopContainerFloorList'>
258
258
  {containerFloorListData.length > 0 ? (
259
259
  containerFloorListData.map((item, index) => {
260
260
  const containerLayoutLeftRightMargin =
261
261
  (item.marginLeft || 0) + (item.marginRight || 0)
262
262
  const getContainerId = `J_container_${item.containerId}`
263
263
  return (
264
264
  <View
265
265
  className={classNames(
266
266
  shopContainerListStyle['d-container-item'],
267
267
  containerItemClass,
268
268
  )}
269
269
  id={getContainerId}
270
270
  key={item.containerId}
271
271
  data-container-id={item?.containerId}
272
272
  data-container-type={item?.typeCode}
273
273
  style={{
274
274
  marginBottom: item.marginBottom
275
275
  ? `${item.marginBottom}px`
276
276
  : 0,
277
277
  marginTop: item.marginTop
278
278
  ? `${item.marginTop}px`
279
279
  : 0,
280
280
  marginLeft: item.marginLeft
281
281
  ? `${item.marginLeft}px`
282
282
  : 0,
283
283
  marginRight: item.marginRight
284
284
  ? `${item.marginRight}px`
285
285
  : 0,
286
286
  borderRadius: item.borderRadius
287
287
  ? `${item.borderRadius}px`
288
288
  : 0,
289
289
  }}
290
290
  >
291
291
  {item.floors &&
292
292
  item.floors.length > 0 &&
293
293
  item.floors?.map(
294
294
  (floorItem, floorIndex) => {
295
295
  return index > lazyLoadStartIndex ? (
296
296
  <LazyLayoutLoad
297
297
  key={item.containerId}
298
298
  sectionType={sectionType}
299
299
  containerId={getContainerId}
300
300
  height={getFloorSetHeight(
301
301
  floorItem,
302
302
  )}
303
303
  floorData={floorItem}
304
304
  >
305
305
  {renderFloorItem(
306
306
  item,
307
307
  floorItem,
308
308
  floorIndex,
309
309
  containerLayoutLeftRightMargin,
310
310
  true,
311
311
  )}
312
312
  </LazyLayoutLoad>
313
313
  ) : (
314
314
  renderFloorItem(
315
315
  item,
316
316
  floorItem,
317
317
  floorIndex,
318
318
  containerLayoutLeftRightMargin,
319
319
  )
320
320
  )
321
321
  },
322
322
  )}
323
323
  </View>
324
324
  )
325
325
  })
326
326
  ) : (
327
327
  <View
328
328
  className={
329
329
  shopContainerListStyle['d-container-list-no-data']
330
330
  }
331
331
  style={{
332
332
  height: `${
333
333
  windowHeight -
334
334
  (isJdApp
335
335
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
336
336
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT)
337
337
  }px`,
338
338
  }}
339
339
  >
340
340
  <NetworkDataError
341
341
  netWorkShowType={NetWorkShowType.PART}
342
342
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
343
343
  />
344
344
  </View>
345
345
  )}
346
346
  </View>
347
347
  </View>
348
348
  )
349
349
  updateShopDataFn: null,