@conecli/cone-render 0.9.1-shop2.7 → 0.9.1-shop2.8

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 (40) hide show
  1. package/dist/common/const.ts +1 -1
  2. package/dist/common/index.h5.ts +1 -1
  3. package/dist/common/index.ts +1 -1
  4. package/dist/common/token/token.ts +1 -1
  5. package/dist/components/base/CountDown/index.tsx +1 -1
  6. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  7. package/dist/components/base/Dialog/index.module.scss +5 -0
  8. package/dist/components/base/Dialog/index.tsx +1 -1
  9. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  10. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  11. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  12. package/dist/components/remoteFloorItem.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/jumpEventReport/base.ts +1 -1
  17. package/dist/jumpEventReport/const.ts +1 -1
  18. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  19. package/dist/jumpEventReport/index.weapp.ts +1 -1
  20. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  21. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  22. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  23. package/dist/jumpEventReport/web/report.ts +1 -1
  24. package/dist/jumpEventReport/web.base.ts +1 -1
  25. package/dist/jumpEventReport/web.jd.ts +1 -1
  26. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  27. package/dist/open/api/jump copy.ts +1 -1
  28. package/dist/open/api/shopMember.ts +1 -1
  29. package/dist/open/api/track.ts +1 -1
  30. package/dist/open/api/util.ts +1 -1
  31. package/dist/sass/app.h5.scss +39 -3
  32. package/dist/service/requestServer.ts +1 -1
  33. package/dist/utils/connectNativeJsBridge.ts +1 -1
  34. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  35. package/dist/utils/h5Utils.ts +1 -1
  36. package/dist/utils/index.h5.ts +1 -1
  37. package/dist/utils/index.ts +1 -1
  38. package/dist/utils/index.weapp.ts +1 -1
  39. package/dist/utils/utils.ts +1 -1
  40. package/package.json +1 -1
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  isIosDevice,
3
2
  isJdApp,
4
3
  isChartH5,
5
4
  pxTransformFromData,
6
5
  isH5AndJdShopView
7
6
  NETWORK_DATA_TYPE,
8
7
  M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
9
8
  APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
10
9
  containerFloorListData: ComponentInterFace.ContainerItemData[]
11
10
  className?: string
12
11
  containerItemClass?: object
13
12
  style?: object
14
13
  hasGoodsFeeds?: boolean
15
14
  builtInComponents?: Object
16
15
  loadingEndComponentFn?: Function
17
16
  sectionType?: string
18
17
  updateShopFloorDataFn?: Function
19
18
  updateContainerFloorListDataFn?: Function
20
19
  customErrorIsvFloorModule?: React.ReactElement
21
20
  componentExtend?: React.ReactElement
22
21
  const { windowHeight } = taroJdBaseInfo.info.sysInfo
23
22
  const {
24
23
  className,
25
24
  style,
26
25
  containerItemClass = null,
27
26
  containerFloorListData,
28
27
  builtInComponents,
29
28
  loadingEndComponentFn,
30
29
  sectionType,
31
30
  updateShopFloorDataFn,
32
31
  updateContainerFloorListDataFn,
33
32
  customErrorIsvFloorModule,
34
33
  } = props
35
34
 
36
35
  const renderFloorItem = (
37
36
  item,
38
37
  floorItem,
39
38
  floorIndex,
40
39
  containerLayoutLeftRightMargin,
41
40
  lazyLoadState = false,
42
41
  ) => {
43
42
  return (
44
43
  <View
45
44
  className={classNames(shopContainerListStyle['d-floor-item'])}
46
45
  data-floor-uid={floorItem?.uid}
47
46
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
48
47
  data-lazy-load={lazyLoadState}
49
48
  key={floorItem.uid}
50
49
  id={`J_floor_${floorItem.uid}`}
51
50
  style={{
52
51
  borderRadius: `${item?.borderRadius || 0}px`,
53
52
  }}
54
53
  >
55
54
  {isChartH5 && (
56
55
  <View
57
56
  className={shopContainerListStyle['d-floor-chart-item']}
58
57
  id={`J_chart_floor_${floorItem?.uid}`}
59
58
  data-floor-uid={floorItem?.uid}
60
59
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
61
60
  />
62
61
  )}
63
62
  <FloorListItem
64
63
  floorIndex={floorIndex}
65
64
  floorData={floorItem}
66
65
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
67
66
  containerBorderRadius={item?.borderRadius || 0}
68
67
  updateShopFloorDataFn={updateShopFloorDataFn}
69
68
  loadingEndComponentFn={loadingEndComponentFn}
70
69
  key={floorItem.uid}
71
70
  builtInComponents={builtInComponents}
72
71
  updateContainerFloorListDataFn={updateContainerFloorListDataFn}
73
72
  customErrorIsvFloorModule={customErrorIsvFloorModule}
74
73
  />
75
74
  </View>
76
75
  )
77
76
  }
78
77
 
79
78
  const getFloorSetHeight = (item) => {
80
79
  const getHeight = item?.floorExtInfo?.floorHeight
81
80
  ? Number(item?.floorExtInfo?.floorHeight)
82
81
  : 200
83
82
  return getHeight > 0 ? getHeight : 200
84
83
  }
85
84
  return (
86
85
  <View
87
86
  className={classNames(
88
87
  className,
89
88
  shopContainerListStyle['d-shop-container-list'],
90
89
  )}
91
90
  style={style}
92
91
  >
93
92
  <View id='J_shopContainerFloorList'>
94
93
  {containerFloorListData.length > 0 ? (
95
94
  containerFloorListData.map((item, index) => {
96
95
  const containerLayoutLeftRightMargin =
97
96
  (item.marginLeft || 0) + (item.marginRight || 0)
98
97
  const getContainerId = `J_container_${item.containerId}`
99
98
  return (
100
99
  <React.Fragment key={item.containerId + index}>
101
100
  {
102
101
  item.addLuxuryStyle ?
103
102
  <View
104
103
  className={
105
104
  shopContainerListStyle['d-luxury-header']
106
105
  }
107
106
  />
108
107
  : null
109
108
  }
110
109
  {
111
110
  item.addLuxuryBackupStyle ?
112
111
  <View
113
112
  style={{ height: taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight + 'px' }}
114
113
  className={
115
114
  shopContainerListStyle['d-luxury-header-black']
116
115
  }
117
116
  />
118
117
  : null
119
118
  }
120
119
  {typeof item?.renderExtendComponent === 'function' ? item?.renderExtendComponent(item?.floorExtendData) : null}
121
120
  <View
122
121
  className={classNames(
123
122
  shopContainerListStyle['d-container-item'],
124
123
  containerItemClass,
125
124
  )}
126
125
  id={getContainerId}
127
126
  key={item.containerId}
128
127
  data-container-id={item?.containerId}
129
128
  data-container-type={item?.typeCode}
130
129
  style={{
131
130
  marginBottom: item.marginBottom
132
131
  ? `${item.marginBottom}px`
133
132
  : 0,
134
133
  marginTop: item.marginTop
135
134
  ? `${item.marginTop}px`
136
135
  : 0,
137
136
  marginLeft: item.marginLeft
138
137
  ? `${item.marginLeft}px`
139
138
  : 0,
140
139
  marginRight: item.marginRight
141
140
  ? `${item.marginRight}px`
142
141
  : 0,
143
142
  borderRadius: item.borderRadius
144
143
  ? `${item.borderRadius}px`
145
144
  : 0,
146
145
  }}
147
146
  >
148
147
  {item.floors &&
149
148
  item.floors.length > 0 &&
150
149
  item.floors?.map(
151
150
  (floorItem, floorIndex) => {
152
151
  return index > lazyLoadStartIndex ? (
153
152
  <LazyLayoutLoad
154
153
  key={item.containerId}
155
154
  sectionType={sectionType}
156
155
  containerId={getContainerId}
157
156
  height={getFloorSetHeight(
158
157
  floorItem,
159
158
  )}
160
159
  floorData={floorItem}
161
160
  >
162
161
  {renderFloorItem(
163
162
  item,
164
163
  floorItem,
165
164
  floorIndex,
166
165
  containerLayoutLeftRightMargin,
167
166
  true,
168
167
  )}
169
168
  </LazyLayoutLoad>
170
169
  ) : (
171
170
  renderFloorItem(
172
171
  item,
173
172
  floorItem,
174
173
  floorIndex,
175
174
  containerLayoutLeftRightMargin,
176
175
  )
177
176
  )
178
177
  },
179
178
  )}
180
179
  </View>
181
180
  </React.Fragment>
182
181
  )
183
182
  })
184
183
  ) : (
185
184
  <View
186
185
  className={
187
186
  shopContainerListStyle['d-container-list-no-data']
188
187
  }
189
188
  style={{
190
189
  height: `${
191
190
  windowHeight -
192
191
  (isJdApp
193
192
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
194
193
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT)
195
194
  }px`,
196
195
  }}
197
196
  >
198
197
  <NetworkDataError
199
198
  netWorkShowType={NetWorkShowType.PART}
200
199
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
201
200
  />
202
201
  </View>
203
202
  )}
204
203
  </View>
205
204
  </View>
206
205
  )
207
206
  updateShopDataFn: null,
207
+ import React from 'react'
208
208
  isJdApp,
209
209
  isChartH5,
210
210
  NETWORK_DATA_TYPE,
211
211
  M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
212
212
  APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
213
213
  containerFloorListData: ComponentInterFace.ContainerItemData[]
214
214
  className?: string
215
215
  containerItemClass?: object
216
216
  style?: object
217
217
  hasGoodsFeeds?: boolean
218
218
  builtInComponents?: Object
219
219
  loadingEndComponentFn?: Function
220
220
  sectionType?: string
221
221
  updateShopFloorDataFn?: Function
222
222
  updateContainerFloorListDataFn?: Function
223
223
  customErrorIsvFloorModule?: React.ReactElement
224
224
  componentExtend?: React.ReactElement
225
225
  const { windowHeight } = taroJdBaseInfo.info.sysInfo
226
226
  const {
227
227
  className,
228
228
  style,
229
229
  containerItemClass = null,
230
230
  containerFloorListData,
231
231
  builtInComponents,
232
232
  loadingEndComponentFn,
233
233
  sectionType,
234
234
  updateShopFloorDataFn,
235
235
  updateContainerFloorListDataFn,
236
236
  customErrorIsvFloorModule,
237
237
  } = props
238
238
 
239
239
  const renderFloorItem = (
240
240
  item,
241
241
  floorItem,
242
242
  floorIndex,
243
243
  containerLayoutLeftRightMargin,
244
244
  lazyLoadState = false,
245
245
  ) => {
246
246
  return (
247
247
  <View
248
248
  className={classNames(shopContainerListStyle['d-floor-item'])}
249
249
  data-floor-uid={floorItem?.uid}
250
250
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
251
251
  data-lazy-load={lazyLoadState}
252
252
  key={floorItem.uid}
253
253
  id={`J_floor_${floorItem.uid}`}
254
254
  style={{
255
255
  borderRadius: `${item?.borderRadius || 0}px`,
256
256
  }}
257
257
  >
258
258
  {isChartH5 && (
259
259
  <View
260
260
  className={shopContainerListStyle['d-floor-chart-item']}
261
261
  id={`J_chart_floor_${floorItem?.uid}`}
262
262
  data-floor-uid={floorItem?.uid}
263
263
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
264
264
  />
265
265
  )}
266
266
  <FloorListItem
267
267
  floorIndex={floorIndex}
268
268
  floorData={floorItem}
269
269
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
270
270
  containerBorderRadius={item?.borderRadius || 0}
271
271
  updateShopFloorDataFn={updateShopFloorDataFn}
272
272
  loadingEndComponentFn={loadingEndComponentFn}
273
273
  key={floorItem.uid}
274
274
  builtInComponents={builtInComponents}
275
275
  updateContainerFloorListDataFn={updateContainerFloorListDataFn}
276
276
  customErrorIsvFloorModule={customErrorIsvFloorModule}
277
277
  />
278
278
  </View>
279
279
  )
280
280
  }
281
281
 
282
282
  const getFloorSetHeight = (item) => {
283
283
  const getHeight = item?.floorExtInfo?.floorHeight
284
284
  ? Number(item?.floorExtInfo?.floorHeight)
285
285
  : 200
286
286
  return getHeight > 0 ? getHeight : 200
287
287
  }
288
288
  return (
289
289
  <View
290
290
  className={classNames(
291
291
  className,
292
292
  shopContainerListStyle['d-shop-container-list'],
293
293
  )}
294
294
  style={style}
295
295
  >
296
296
  <View id='J_shopContainerFloorList'>
297
297
  {containerFloorListData.length > 0 ? (
298
298
  containerFloorListData.map((item, index) => {
299
299
  const containerLayoutLeftRightMargin =
300
300
  (item.marginLeft || 0) + (item.marginRight || 0)
301
301
  const getContainerId = `J_container_${item.containerId}`
302
302
  return (
303
303
  <React.Fragment key={item.containerId + index}>
304
304
  {
305
305
  item.addLuxuryStyle ?
306
306
  <View
307
307
  className={
308
308
  shopContainerListStyle['d-luxury-header']
309
309
  }
310
310
  />
311
311
  : null
312
312
  }
313
313
  {
314
314
  item.addLuxuryBackupStyle ?
315
315
  <View
316
316
  style={{ height: taroJdBaseInfo?.info?.sysInfo?.jdNativeHeaderHeight + 'px' }}
317
317
  className={
318
318
  shopContainerListStyle['d-luxury-header-black']
319
319
  }
320
320
  />
321
321
  : null
322
322
  }
323
323
  {typeof item?.renderExtendComponent === 'function' ? item?.renderExtendComponent(item?.floorExtendData) : null}
324
324
  <View
325
325
  className={classNames(
326
326
  shopContainerListStyle['d-container-item'],
327
327
  containerItemClass,
328
328
  )}
329
329
  id={getContainerId}
330
330
  key={item.containerId}
331
331
  data-container-id={item?.containerId}
332
332
  data-container-type={item?.typeCode}
333
333
  style={{
334
334
  marginBottom: item.marginBottom
335
335
  ? `${item.marginBottom}px`
336
336
  : 0,
337
337
  marginTop: item.marginTop
338
338
  ? `${item.marginTop}px`
339
339
  : 0,
340
340
  marginLeft: item.marginLeft
341
341
  ? `${item.marginLeft}px`
342
342
  : 0,
343
343
  marginRight: item.marginRight
344
344
  ? `${item.marginRight}px`
345
345
  : 0,
346
346
  borderRadius: item.borderRadius
347
347
  ? `${item.borderRadius}px`
348
348
  : 0,
349
349
  }}
350
350
  >
351
351
  {item.floors &&
352
352
  item.floors.length > 0 &&
353
353
  item.floors?.map(
354
354
  (floorItem, floorIndex) => {
355
355
  return index > lazyLoadStartIndex ? (
356
356
  <LazyLayoutLoad
357
357
  key={item.containerId}
358
358
  sectionType={sectionType}
359
359
  containerId={getContainerId}
360
360
  height={getFloorSetHeight(
361
361
  floorItem,
362
362
  )}
363
363
  floorData={floorItem}
364
364
  >
365
365
  {renderFloorItem(
366
366
  item,
367
367
  floorItem,
368
368
  floorIndex,
369
369
  containerLayoutLeftRightMargin,
370
370
  true,
371
371
  )}
372
372
  </LazyLayoutLoad>
373
373
  ) : (
374
374
  renderFloorItem(
375
375
  item,
376
376
  floorItem,
377
377
  floorIndex,
378
378
  containerLayoutLeftRightMargin,
379
379
  )
380
380
  )
381
381
  },
382
382
  )}
383
383
  </View>
384
384
  </React.Fragment>
385
385
  )
386
386
  })
387
387
  ) : (
388
388
  <View
389
389
  className={
390
390
  shopContainerListStyle['d-container-list-no-data']
391
391
  }
392
392
  style={{
393
393
  height: `${
394
394
  windowHeight -
395
395
  (isJdApp
396
396
  ? APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT
397
397
  : M_SHOP_DOWNLOAD_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT)
398
398
  }px`,
399
399
  }}
400
400
  >
401
401
  <NetworkDataError
402
402
  netWorkShowType={NetWorkShowType.PART}
403
403
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
404
404
  />
405
405
  </View>
406
406
  )}
407
407
  </View>
408
408
  </View>
409
409
  )
410
410
  updateShopDataFn: null,
@@ -1 +1 @@
1
- import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
2
1
  jdJumpToShopHome: (info: object) => void
3
2
  jdJumpToProduct: (skuId: string | null, logEventInfo: object) => void
4
3
  jdJumpConfigUrl: (detail: object, logEventInfo: object) => void
5
4
  jdJumpToShopMemberInfo: (logEventInfo: object) => void
6
5
  jdJumpToShopMemberPointDetail: (logEventInfo: object) => void
7
6
  jdJumpToShopMemberBenefit: (logEventInfo: object) => void
8
7
  jdJumpToShopMemberRule: (logEventInfo: object) => void
9
8
  jdJumpToShopMemberCloseAccount: (
10
9
  venderType: number,
11
10
  logEventInfo: object,
12
11
  ) => void
13
12
  jdJumpToShopMemberPointExchange: (
14
13
  venderType: number,
15
14
  channel: number,
16
15
  levelZeroMenuUrl: string,
17
16
  logEventInfo: object,
18
17
  ) => void
19
18
  jdJumpToShopMemberBonusPurchase: (
20
19
  customerLevel: number,
21
20
  logEventInfo: object,
22
21
  ) => void
23
22
  jdJumpToShopMemberGood: (customerLevel: number, logEventInfo: object) => void
24
23
  jdJumpToBeanDetail: (logEventInfo: object) => void
25
24
  jdJumpToMyRedEnvelope: (logEventInfo: object) => void
26
25
  jdJumpToMyCoupon: (logEventInfo: object) => void
27
26
  jdJumpToTabAllProduct: (
28
27
  shopId: string | number,
29
28
  venderId: string | number,
30
29
  logEventInfo: object,
31
30
  ) => void
32
31
  jdJumpToTabAllProductInner: (
33
32
  shopId: string | number,
34
33
  venderId: string | number,
35
34
  logEventInfo: object,
36
35
  ) => void
37
36
  jdJumpToShopHome: () => {},
38
37
  jdJumpToProduct: () => {},
39
38
  jdJumpConfigUrl: () => {},
40
39
  jdJumpToShopMemberInfo: () => {},
41
40
  jdJumpToShopMemberPointDetail: () => {},
42
41
  jdJumpToShopMemberBenefit: () => {},
43
42
  jdJumpToShopMemberRule: () => {},
44
43
  jdJumpToShopMemberCloseAccount: () => {},
45
44
  jdJumpToShopMemberPointExchange: () => {},
46
45
  jdJumpToShopMemberBonusPurchase: () => {},
47
46
  jdJumpToShopMemberGood: () => {},
48
47
  jdJumpToBeanDetail: () => {},
49
48
  jdJumpToMyRedEnvelope: () => {},
50
49
  jdJumpToMyCoupon: () => {},
51
50
  jdJumpToTabAllProduct: () => {},
52
51
  jdJumpToTabAllProductInner: () => {},
53
52
  jdJumpToWeb: (url: string, logEventInfo: object) => void
54
53
  jdJumpToAppMiniProgram: (path: string, logEventInfo: object) => void
55
54
  jdJumpToShopLight: (detail: object) => void
56
55
  jdJumpToAppMiniProgram: () => {},
57
56
  jdJumpToShopLight: () => {},
58
57
  jdJumpToWeb: () => {},
59
58
  [key: string]: any
60
59
  [key: string]: any
61
60
  const {
62
61
  jdJumpToShopHome,
63
62
  jdJumpToProduct,
64
63
  jdJumpConfigUrl,
65
64
  jdJumpToShopMemberInfo,
66
65
  jdJumpToShopMemberPointDetail,
67
66
  jdJumpToShopMemberBenefit,
68
67
  jdJumpToShopMemberRule,
69
68
  jdJumpToShopMemberCloseAccount,
70
69
  jdJumpToShopMemberPointExchange,
71
70
  jdJumpToShopMemberBonusPurchase,
72
71
  jdJumpToShopMemberGood,
73
72
  jdJumpToBeanDetail,
74
73
  jdJumpToMyRedEnvelope,
75
74
  jdJumpToMyCoupon,
76
75
  jdJumpToTabAllProduct,
77
76
  jdJumpToTabAllProductInner,
78
77
  } = JumpEventReport
79
78
  const {
80
79
  jdJumpToAppMiniProgram,
81
80
  jdJumpToShopLight,
82
81
  jdJumpToWeb,
83
82
  jumpWebUrl,
84
83
  jumpMiniPath,
85
84
  } = JumpEventReport
86
85
  Object.assign(business, {
87
86
  jdJumpToShopHome: jdJumpToShopHome.bind(JumpEventReport),
88
87
  jdJumpToProduct: jdJumpToProduct.bind(JumpEventReport),
89
88
  jdJumpConfigUrl: jdJumpConfigUrl.bind(JumpEventReport),
90
89
  jdJumpToShopMemberInfo: jdJumpToShopMemberInfo.bind(JumpEventReport),
91
90
  jdJumpToShopMemberPointDetail:
92
91
  jdJumpToShopMemberPointDetail.bind(JumpEventReport),
93
92
  jdJumpToShopMemberBenefit: jdJumpToShopMemberBenefit.bind(JumpEventReport),
94
93
  jdJumpToShopMemberRule: jdJumpToShopMemberRule.bind(JumpEventReport),
95
94
  jdJumpToShopMemberCloseAccount:
96
95
  jdJumpToShopMemberCloseAccount.bind(JumpEventReport),
97
96
  jdJumpToShopMemberPointExchange:
98
97
  jdJumpToShopMemberPointExchange.bind(JumpEventReport),
99
98
  jdJumpToShopMemberBonusPurchase:
100
99
  jdJumpToShopMemberBonusPurchase.bind(JumpEventReport),
101
100
  jdJumpToShopMemberGood: jdJumpToShopMemberGood.bind(JumpEventReport),
102
101
  jdJumpToBeanDetail: jdJumpToBeanDetail.bind(JumpEventReport),
103
102
  jdJumpToMyRedEnvelope: jdJumpToMyRedEnvelope.bind(JumpEventReport),
104
103
  jdJumpToMyCoupon: jdJumpToMyCoupon.bind(JumpEventReport),
105
104
  jdJumpToTabAllProduct: jdJumpToTabAllProduct.bind(JumpEventReport),
106
105
  jdJumpToTabAllProductInner:
107
106
  jdJumpToTabAllProductInner.bind(JumpEventReport),
108
107
  })
109
108
  Object.assign(side, {
110
109
  jdJumpToAppMiniProgram: jdJumpToAppMiniProgram.bind(JumpEventReport),
111
110
  jdJumpToShopLight: jdJumpToShopLight.bind(JumpEventReport),
112
111
  jdJumpToWeb: jdJumpToWeb.bind(JumpEventReport),
113
112
  jumpWebUrl,
114
113
  jumpMiniPath,
115
114
  })
116
115
  Object.assign(webUrl, jumpWebUrl)
117
116
  Object.assign(minPath, jumpMiniPath)
117
+ import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
118
118
  jdJumpToShopHome: (info: object) => void
119
119
  jdJumpToProduct: (skuId: string | null, logEventInfo: object) => void
120
120
  jdJumpToCouponSearchProductList: (souponId: string | null, logEventInfo: object) => void
121
121
  jdJumpConfigUrl: (detail: object, logEventInfo: object) => void
122
122
  jdJumpToShopMemberInfo: (logEventInfo: object) => void
123
123
  jdJumpToShopMemberPointDetail: (logEventInfo: object) => void
124
124
  jdJumpToShopMemberBenefit: (logEventInfo: object) => void
125
125
  jdJumpToShopMemberRule: (logEventInfo: object) => void
126
126
  jdJumpToShopMemberCloseAccount: (
127
127
  venderType: number,
128
128
  logEventInfo: object,
129
129
  ) => void
130
130
  jdJumpToShopMemberPointExchange: (
131
131
  venderType: number,
132
132
  channel: number,
133
133
  levelZeroMenuUrl: string,
134
134
  logEventInfo: object,
135
135
  ) => void
136
136
  jdJumpToShopMemberBonusPurchase: (
137
137
  customerLevel: number,
138
138
  logEventInfo: object,
139
139
  ) => void
140
140
  jdJumpToShopMemberGood: (customerLevel: number, logEventInfo: object) => void
141
141
  jdJumpToBeanDetail: (logEventInfo: object) => void
142
142
  jdJumpToMyRedEnvelope: (logEventInfo: object) => void
143
143
  jdJumpToMyCoupon: (logEventInfo: object) => void
144
144
  jdJumpToTabAllProduct: (
145
145
  shopId: string | number,
146
146
  venderId: string | number,
147
147
  logEventInfo: object,
148
148
  ) => void
149
149
  jdJumpToTabAllProductInner: (
150
150
  shopId: string | number,
151
151
  venderId: string | number,
152
152
  logEventInfo: object,
153
153
  ) => void
154
154
  jdJumpToShopHome: () => {},
155
155
  jdJumpToProduct: () => {},
156
156
  jdJumpToCouponSearchProductList: () => {},
157
157
  jdJumpConfigUrl: () => {},
158
158
  jdJumpToShopMemberInfo: () => {},
159
159
  jdJumpToShopMemberPointDetail: () => {},
160
160
  jdJumpToShopMemberBenefit: () => {},
161
161
  jdJumpToShopMemberRule: () => {},
162
162
  jdJumpToShopMemberCloseAccount: () => {},
163
163
  jdJumpToShopMemberPointExchange: () => {},
164
164
  jdJumpToShopMemberBonusPurchase: () => {},
165
165
  jdJumpToShopMemberGood: () => {},
166
166
  jdJumpToBeanDetail: () => {},
167
167
  jdJumpToMyRedEnvelope: () => {},
168
168
  jdJumpToMyCoupon: () => {},
169
169
  jdJumpToTabAllProduct: () => {},
170
170
  jdJumpToTabAllProductInner: () => {},
171
171
  jdJumpToWeb: (url: string, logEventInfo: object) => void
172
172
  jdJumpToAppMiniProgram: (path: string, logEventInfo: object) => void
173
173
  jdJumpToShopLight: (detail: object) => void
174
174
  jdJumpToAppMiniProgram: () => {},
175
175
  jdJumpToShopLight: () => {},
176
176
  jdJumpToWeb: () => {},
177
177
  [key: string]: any
178
178
  [key: string]: any
179
179
  const {
180
180
  jdJumpToShopHome,
181
181
  jdJumpToProduct,
182
182
  jdJumpToCouponSearchProductList,
183
183
  jdJumpConfigUrl,
184
184
  jdJumpToShopMemberInfo,
185
185
  jdJumpToShopMemberPointDetail,
186
186
  jdJumpToShopMemberBenefit,
187
187
  jdJumpToShopMemberRule,
188
188
  jdJumpToShopMemberCloseAccount,
189
189
  jdJumpToShopMemberPointExchange,
190
190
  jdJumpToShopMemberBonusPurchase,
191
191
  jdJumpToShopMemberGood,
192
192
  jdJumpToBeanDetail,
193
193
  jdJumpToMyRedEnvelope,
194
194
  jdJumpToMyCoupon,
195
195
  jdJumpToTabAllProduct,
196
196
  jdJumpToTabAllProductInner,
197
197
  } = JumpEventReport
198
198
  const {
199
199
  jdJumpToAppMiniProgram,
200
200
  jdJumpToShopLight,
201
201
  jdJumpToWeb,
202
202
  jumpWebUrl,
203
203
  jumpMiniPath,
204
204
  } = JumpEventReport
205
205
  Object.assign(business, {
206
206
  jdJumpToShopHome: jdJumpToShopHome.bind(JumpEventReport),
207
207
  jdJumpToProduct: jdJumpToProduct.bind(JumpEventReport),
208
208
  jdJumpToCouponSearchProductList: jdJumpToCouponSearchProductList.bind(JumpEventReport),
209
209
  jdJumpConfigUrl: jdJumpConfigUrl.bind(JumpEventReport),
210
210
  jdJumpToShopMemberInfo: jdJumpToShopMemberInfo.bind(JumpEventReport),
211
211
  jdJumpToShopMemberPointDetail:
212
212
  jdJumpToShopMemberPointDetail.bind(JumpEventReport),
213
213
  jdJumpToShopMemberBenefit: jdJumpToShopMemberBenefit.bind(JumpEventReport),
214
214
  jdJumpToShopMemberRule: jdJumpToShopMemberRule.bind(JumpEventReport),
215
215
  jdJumpToShopMemberCloseAccount:
216
216
  jdJumpToShopMemberCloseAccount.bind(JumpEventReport),
217
217
  jdJumpToShopMemberPointExchange:
218
218
  jdJumpToShopMemberPointExchange.bind(JumpEventReport),
219
219
  jdJumpToShopMemberBonusPurchase:
220
220
  jdJumpToShopMemberBonusPurchase.bind(JumpEventReport),
221
221
  jdJumpToShopMemberGood: jdJumpToShopMemberGood.bind(JumpEventReport),
222
222
  jdJumpToBeanDetail: jdJumpToBeanDetail.bind(JumpEventReport),
223
223
  jdJumpToMyRedEnvelope: jdJumpToMyRedEnvelope.bind(JumpEventReport),
224
224
  jdJumpToMyCoupon: jdJumpToMyCoupon.bind(JumpEventReport),
225
225
  jdJumpToTabAllProduct: jdJumpToTabAllProduct.bind(JumpEventReport),
226
226
  jdJumpToTabAllProductInner:
227
227
  jdJumpToTabAllProductInner.bind(JumpEventReport),
228
228
  })
229
229
  Object.assign(side, {
230
230
  jdJumpToAppMiniProgram: jdJumpToAppMiniProgram.bind(JumpEventReport),
231
231
  jdJumpToShopLight: jdJumpToShopLight.bind(JumpEventReport),
232
232
  jdJumpToWeb: jdJumpToWeb.bind(JumpEventReport),
233
233
  jumpWebUrl,
234
234
  jumpMiniPath,
235
235
  })
236
236
  Object.assign(webUrl, jumpWebUrl)
237
237
  Object.assign(minPath, jumpMiniPath)