@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
  entrance: 'shop-page-tab',
3
2
  moduleId: 'shop-modular-floor'
4
3
 
5
4
  jdJumpToProduct(skuIds, logEventInfo, otherParams = {}) {
6
5
  skuIds = skuIds.toString().trim()
7
6
  const getSkuId = skuIds.indexOf(',') !== -1 ? skuIds.split(',')[0] : skuIds
8
7
  this.jdNavigateToNative({
9
8
  category: 'jump',
10
9
  des: 'productDetail',
11
10
  skuId: getSkuId,
12
11
  logEventInfo,
13
12
  ...otherParams,
14
13
  })
15
14
  }
16
15
 
17
16
  jdJumpToShopCategory(shopInfo = {}) {
18
17
  console.log(
19
18
  '🚀 ~ file: jdJumpJdApp.ts:40 ~ JdJumpJdApp ~ jdJumpToShopCategory ~ shopInfo:',
20
19
  shopInfo,
21
20
  )
22
21
  console.log('[降级H5] jdJumpToShopCategory jdJumpJdApp')
23
22
  this.jdNavigateToNative(
24
23
  Object.assign(
25
24
  {},
26
25
  {
27
26
  category: 'jump',
28
27
  des: 'jshopMain',
29
28
  jumpBottomTab: 'category',
30
29
  },
31
30
  shopInfo,
32
31
  {
33
32
  shopId: String(shopInfo.shopId ?? ''),
34
33
  venderId: String(shopInfo.venderId ?? ''),
35
34
  },
36
35
  ),
37
36
  )
38
37
  }
39
38
 
40
39
  jdJumpToOrderInfoView(wareId, wareNum = 1, logEventInfo) {
41
40
  this.jdNavigateToNative({
42
41
  category: 'jump',
43
42
  des: 'orderInfoView',
44
43
  wareId: `${wareId}`,
45
44
  wareNum: global.info.sysInfo.isIOS ? `${wareNum}` : wareNum,
46
45
  skuSource: 25,
47
46
  sourceType: 6,
48
47
  extFlag: '{}',
49
48
  logEventInfo,
50
49
  })
51
50
  }
52
51
 
53
52
  jdJumpToTryDetail(tryId) {
54
53
  this.jdNavigateToNative({
55
54
  category: 'jump',
56
55
  des: 'jdreactcommon',
57
56
  appname: 'JDReactNewProduct',
58
57
  modulename: 'JDReactNewProduct',
59
58
  param: {
60
59
  activityId: tryId,
61
60
  isNative: true,
62
61
  nativePage: 'jdtry_detail',
63
62
  transparentenable: true,
64
63
  },
65
64
  })
66
65
  }
67
66
 
68
67
  jdJumpToShopHome(shopInfo = {}) {
69
68
  console.log('[降级H5] jdJumpToShopHome jdJumpJdApp')
70
69
  const getInfo = Object.assign(
71
70
  {},
72
71
  {
73
72
  shopId: global.info.queryInfo.shopId,
74
73
  venderId: global.info.queryInfo.venderId,
75
74
  },
76
75
  shopInfo,
77
76
  )
78
77
  const getShopParams = this.getShopIdsInfo(getInfo)
79
78
  this.jdJumpToShopBase(getShopParams)
80
79
  }
81
80
 
82
81
  jdJumpToShopHomeInner(shopInfo: JumpEventReportInterFace.ShopIdsInfo = {}) {
83
82
  const getParam = Object.assign(
84
83
  {},
85
84
  {
86
85
  jumpTab: HOME_TOP_TAB_TYPE_APP.HOME,
87
86
  operation: 'jumpTabInner',
88
87
  },
89
88
  shopInfo,
90
89
  )
91
90
  this.jdJumpToShopBase(getParam)
92
91
  }
93
92
 
94
93
  jdJumpToUnifieddetail(sourceInfo) {
95
94
  this.jdNavigateToNative(
96
95
  Object.assign(
97
96
  {},
98
97
  {
99
98
  category: 'jump',
100
99
  des: 'unifieddetail',
101
100
  },
102
101
  sourceInfo,
103
102
  ),
104
103
  )
105
104
  }
106
105
 
107
106
  jdJumpToVideoImmersion(sourceInfo) {
108
107
  this.jdNavigateToNative(
109
108
  Object.assign(
110
109
  {},
111
110
  {
112
111
  category: 'jump',
113
112
  des: 'VideoImmersion',
114
113
  },
115
114
  sourceInfo,
116
115
  ),
117
116
  )
118
117
  }
119
118
 
120
119
  jdJumpToShopMember(shopInfo) {
121
120
  this.jdNavigateToNative(
122
121
  Object.assign(
123
122
  {},
124
123
  {
125
124
  category: 'jump',
126
125
  des: 'jshopMember',
127
126
  followAward: '-1',
128
127
  },
129
128
  shopInfo,
130
129
  ),
131
130
  )
132
131
  }
133
132
 
134
133
  jdJumpToMemberTab(shopInfo?) {
135
134
  this.jdNavigateToNative(
136
135
  Object.assign(
137
136
  {},
138
137
  {
139
138
  category: 'jump',
140
139
  des: 'jshopMain',
141
140
  shopId: global.info.queryInfo.shopId,
142
141
  venderId: global.info.queryInfo.venderId,
143
142
  operation: 'jumpBottomTabMember',
144
143
  sourceInfo: APP_SOURCE_INFO,
145
144
  },
146
145
  shopInfo,
147
146
  ),
148
147
  )
149
148
  }
150
149
 
151
150
  jdJumpToDongDongChatGroup(groupId, source = 'jdmini') {
152
151
  this.jdNavigateToNative({
153
152
  category: 'jump',
154
153
  des: 'dongdong_group_chat',
155
154
  source: source,
156
155
  groupId: `${groupId}`,
157
156
  })
158
157
  }
159
158
 
160
159
  jdJumpToDongDongChat(paramInfo = {}) {
161
160
  this.jdNavigateToNative(
162
161
  Object.assign(
163
162
  {},
164
163
  {
165
164
  category: 'jump',
166
165
  des: 'jd_dongdong_chat',
167
166
  venderId: global.info.queryInfo.venderId,
168
167
  entry: 'm_shop',
169
168
  },
170
169
  paramInfo,
171
170
  ),
172
171
  )
173
172
  }
174
173
 
175
174
  jdJumpToShopActivity(shopInfo) {
176
175
  const getParams = Object.assign(
177
176
  {},
178
177
  {
179
178
  category: 'jump',
180
179
  des: 'jshopActivity',
181
180
  shopId: global.info.queryInfo.shopId,
182
181
  venderId: global.info.queryInfo.venderId,
183
182
  },
184
183
  shopInfo,
185
184
  )
186
185
  getParams['projectId'] &&
187
186
  (getParams['projectId'] = `${getParams['projectId']}`)
188
187
  this.jdNavigateToNative(getParams)
189
188
  }
190
189
 
191
190
  jdJumpToShopActivityPage(shopInfo) {
192
191
  this.jdNavigateToNative(
193
192
  Object.assign(
194
193
  {},
195
194
  {
196
195
  category: 'jump',
197
196
  des: 'jshopActivityPage',
198
197
  shopId: global.info.queryInfo.shopId,
199
198
  title: global.info.queryInfo?.shopName,
200
199
  },
201
200
  shopInfo,
202
201
  ),
203
202
  )
204
203
  }
205
204
 
206
205
  jdJumpToShopDetail(shopInfo) {
207
206
  this.jdNavigateToNative(
208
207
  Object.assign(
209
208
  {},
210
209
  {
211
210
  category: 'jump',
212
211
  des: 'jshopDetail',
213
212
  shopId: global.info.queryInfo.shopId,
214
213
  venderId: global.info.queryInfo.venderId,
215
214
  sourceInfo: APP_SOURCE_INFO,
216
215
  },
217
216
  shopInfo,
218
217
  ),
219
218
  )
220
219
  }
221
220
 
222
221
  jdJumpToShopMemberCard(shopInfo) {
223
222
  const { url, logEventInfo } = shopInfo
224
223
  if (this.isOpenJdAppUrl(url)) {
225
224
  const getOpenAppParams = this.jdOpenAppParams(url)
226
225
  console.log(
227
226
  'jd web 获取自定义openApp链接解析后的参数结果',
228
227
  getOpenAppParams,
229
228
  )
230
229
  if (getOpenAppParams) {
231
230
  this.jdNavigateToNative(
232
231
  Object.assign({}, getOpenAppParams, { logEventInfo }),
233
232
  )
234
233
  }
235
234
  } else {
236
235
  super.jdJumpToWeb(url, {
237
236
  ...logEventInfo,
238
237
  })
239
238
  }
240
239
  }
241
240
 
242
241
  jdJumpToTotalPromotion(shopInfo) {
243
242
  const { url, logEventInfo } = shopInfo
244
243
  if (this.isOpenJdAppUrl(url)) {
245
244
  const getOpenAppParams = this.jdOpenAppParams(url)
246
245
  console.log(
247
246
  'jd web 获取自定义openApp链接解析后的参数结果',
248
247
  getOpenAppParams,
249
248
  )
250
249
  if (getOpenAppParams) {
251
250
  this.jdNavigateToNative(
252
251
  Object.assign({}, getOpenAppParams, { logEventInfo }),
253
252
  )
254
253
  }
255
254
  } else {
256
255
  super.jdJumpToWeb(url, {
257
256
  ...logEventInfo,
258
257
  })
259
258
  }
260
259
  }
261
260
 
262
261
  jdJumpToShopSearch(pageInfo = {}) {
263
262
  const getInfo = Object.assign(
264
263
  {},
265
264
  {
266
265
  shopId: global.info.queryInfo.shopId,
267
266
  venderId: global.info.queryInfo.venderId,
268
267
  sourceInfo: APP_SOURCE_INFO
269
268
  },
270
269
  pageInfo,
271
270
  )
272
271
  const { keyword = '', categoryId = '', ...otherPageInfo }: any = getInfo
273
272
  const searchInfo = {}
274
273
  if (categoryId != '') {
275
274
  searchInfo['categoryId'] = typeof categoryId === 'string' ? categoryId?.trim() : categoryId
276
275
  searchInfo['searchType'] = '5'
277
276
  } else if (keyword != '') {
278
277
  searchInfo['keyWord'] = keyword
279
278
  searchInfo['searchType'] = '4'
280
279
  }
281
280
  this.jdNavigateToNative(
282
281
  Object.assign(
283
282
  {},
284
283
  {
285
284
  category: 'jump',
286
285
  des: 'jshopProductList',
287
286
  pageId: '1',
288
287
  ...searchInfo,
289
288
  },
290
289
  otherPageInfo,
291
290
  ),
292
291
  )
293
292
  }
294
293
 
295
294
  jdJumpToOrderList(logEventInfo = {}) {
296
295
  this.jdNavigateToNative(
297
296
  Object.assign(
298
297
  {},
299
298
  {
300
299
  category: 'jump',
301
300
  des: 'orderlist',
302
301
  from: 'dphycc',
303
302
  },
304
303
  logEventInfo,
305
304
  ),
306
305
  )
307
306
  }
308
307
 
309
308
  jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
310
309
  this.jdNavigateToNative(
311
310
  Object.assign(
312
311
  {},
313
312
  {
314
313
  category: 'jump',
315
314
  des: 'productList',
316
315
  from: 'couponBatch',
317
316
  couponId: `${couponId}`,
318
317
  },
319
318
  logEventInfo,
320
319
  ),
321
320
  )
322
321
  }
323
322
 
324
323
  jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
325
324
  console.log('jdJumpJdApp - jdJumpToTabAllProduct')
326
325
  if(typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId
327
326
  if(typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId
328
327
  this.jdNavigateToNative(
329
328
  Object.assign(
330
329
  {},
331
330
  {
332
331
  category: 'jump',
333
332
  des: 'jshopMain',
334
333
  jumpTab: 'allProduct',
335
334
  shopId: `${shopId}`,
336
335
  venderId: `${venderId}`,
337
336
  },
338
337
  logEventInfo,
339
338
  ),
340
339
  )
341
340
  }
342
341
 
343
342
  jdJumpToTabAllProductInner(shopId, venderId, logEventInfo = {}) {
344
343
  if(typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId
345
344
  if(typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId
346
345
  this.jdNavigateToNative(
347
346
  Object.assign(
348
347
  {},
349
348
  {
350
349
  category: 'jump',
351
350
  des: 'jshopMain',
352
351
  jumpTab: 'allProduct',
353
352
  shopId: `${shopId}`,
354
353
  venderId: `${venderId}`,
355
354
  operation: 'jumpTabInner',
356
355
  },
357
356
  logEventInfo,
358
357
  ),
359
358
  )
360
359
  }
361
360
 
362
361
  jdJumpToShopBase(shopInfo) {
363
362
  console.log('[降级H5] jdJumpToShopBase jdJumpJdApp')
364
363
  const getParam = Object.assign(
365
364
  {},
366
365
  {
367
366
  category: 'jump',
368
367
  des: 'jshopMain',
369
368
  jumpTab: HOME_TOP_TAB_TYPE_APP.HOME,
370
369
  shopId: global.info.queryInfo.shopId,
371
370
  venderId: global.info.queryInfo.venderId,
372
371
  sourceInfo: APP_SOURCE_INFO,
373
372
  },
374
373
  shopInfo,
375
374
  )
376
375
  this.jdNavigateToNative(getParam)
377
376
  }
378
377
 
379
378
  jdJumpToTabNew(shopInfo = {}) {
380
379
  const getParam = Object.assign(
381
380
  {},
382
381
  {
383
382
  jumpTab: HOME_TOP_TAB_TYPE_APP.NEW,
384
383
  },
385
384
  shopInfo,
386
385
  )
387
386
  this.jdJumpToShopBase(getParam)
388
387
  }
389
388
 
390
389
  jdJumpToTabNewInner(shopInfo = {}) {
391
390
  const getParam = Object.assign(
392
391
  {},
393
392
  {
394
393
  jumpTab: HOME_TOP_TAB_TYPE_APP.NEW,
395
394
  operation: 'jumpTabInner',
396
395
  },
397
396
  shopInfo,
398
397
  )
399
398
  this.jdJumpToShopBase(getParam)
400
399
  }
401
400
  jdJumpToTabRank(shopInfo = {}) {
402
401
  const getParam = Object.assign(
403
402
  {},
404
403
  {
405
404
  jumpTab: HOME_TOP_TAB_TYPE_APP.RANK,
406
405
  },
407
406
  shopInfo,
408
407
  )
409
408
  this.jdJumpToShopBase(getParam)
410
409
  }
411
410
  jdJumpToTabRankInner(shopInfo = {}) {
412
411
  const getParam = Object.assign(
413
412
  {},
414
413
  {
415
414
  jumpTab: HOME_TOP_TAB_TYPE_APP.RANK,
416
415
  operation: 'jumpTabInner',
417
416
  },
418
417
  shopInfo,
419
418
  )
420
419
  this.jdJumpToShopBase(getParam)
421
420
  }
422
421
  jdJumpToTabBuyerShow(shopInfo = {}) {
423
422
  const getParam = Object.assign(
424
423
  {},
425
424
  {
426
425
  jumpTab: HOME_TOP_TAB_TYPE_APP.BUYERSHOW,
427
426
  },
428
427
  shopInfo,
429
428
  )
430
429
  this.jdJumpToShopBase(getParam)
431
430
  }
432
431
  jdJumpToTabBuyerShowInner(shopInfo = {}) {
433
432
  const getParam = Object.assign(
434
433
  {},
435
434
  {
436
435
  jumpTab: HOME_TOP_TAB_TYPE_APP.BUYERSHOW,
437
436
  operation: 'jumpTabInner',
438
437
  },
439
438
  shopInfo,
440
439
  )
441
440
  this.jdJumpToShopBase(getParam)
442
441
  }
443
442
  jdJumpToTabActivity(shopInfo = {}) {
444
443
  const getParam = Object.assign(
445
444
  {},
446
445
  {
447
446
  jumpTab: HOME_TOP_TAB_TYPE_APP.ACTIVITY,
448
447
  },
449
448
  shopInfo,
450
449
  )
451
450
  this.jdJumpToShopBase(getParam)
452
451
  }
453
452
  jdJumpToTabActivityInner(shopInfo = {}) {
454
453
  const getParam = Object.assign(
455
454
  {},
456
455
  {
457
456
  jumpTab: HOME_TOP_TAB_TYPE_APP.ACTIVITY,
458
457
  operation: 'jumpTabInner',
459
458
  },
460
459
  shopInfo,
461
460
  )
462
461
  this.jdJumpToShopBase(getParam)
463
462
  }
464
463
  jdJumpToTabSecKill(shopInfo = {}) {
465
464
  const getParam = Object.assign(
466
465
  {},
467
466
  {
468
467
  jumpTab: HOME_TOP_TAB_TYPE_APP.SECKILL,
469
468
  },
470
469
  shopInfo,
471
470
  )
472
471
  this.jdJumpToShopBase(getParam)
473
472
  }
474
473
  jdJumpToTabSecKillInner(shopInfo = {}) {
475
474
  const getParam = Object.assign(
476
475
  {},
477
476
  {
478
477
  jumpTab: HOME_TOP_TAB_TYPE_APP.SECKILL,
479
478
  operation: 'jumpTabInner',
480
479
  },
481
480
  shopInfo,
482
481
  )
483
482
  this.jdJumpToShopBase(getParam)
484
483
  }
485
484
 
486
485
  jdJumpToBottomTabBase(type, shopInfo = {}) {
487
486
  this.jdNavigateToNative(
488
487
  Object.assign(
489
488
  {},
490
489
  {
491
490
  category: 'jump',
492
491
  des: 'jshopMain',
493
492
  shopId: global.info.queryInfo.shopId,
494
493
  venderId: global.info.queryInfo.venderId,
495
494
  jumpBottomTab: type,
496
495
  sourceInfo: APP_SOURCE_INFO,
497
496
  },
498
497
  shopInfo,
499
498
  ),
500
499
  )
501
500
  }
502
501
 
503
502
  jdJumpToBottomTabProduct(shopInfo = {}) {
504
503
  this.jdJumpToBottomTabBase(BOTTOM_TAB_TYPE_APP.PRODUCT, shopInfo)
505
504
  }
506
505
 
507
506
  jdJumpToBottomTabCategory(shopInfo = {}) {
508
507
  this.jdJumpToBottomTabBase(BOTTOM_TAB_TYPE_APP.CATEGORY, shopInfo)
509
508
  }
510
509
 
511
510
  jdJumpToBottomTabFind(shopInfo = {}) {
512
511
  this.jdJumpToBottomTabBase(BOTTOM_TAB_TYPE_APP.FIND, shopInfo)
513
512
  }
514
513
 
515
514
  jdJumpToBottomTabBrandMember(shopInfo = {}) {
516
515
  this.jdJumpToBottomTabBase(BOTTOM_TAB_TYPE_APP.BRANDMEMBER, shopInfo)
517
516
  }
518
517
 
519
518
  jdJumpToBottomTabBrandMemberInner(shopInfo = {}) {
520
519
  this.jdJumpToMemberTab(shopInfo)
521
520
  }
522
521
 
523
522
  jdJumpToWeb(
524
523
  url,
525
524
  logEventInfo,
526
525
  successBack?: Function | undefined,
527
526
  failBack?: Function | undefined,
528
527
  ) {
529
528
  const changeUrl = /^\/\//.test(url) ? `https:${url}` : url
530
529
  this.jdNavigateToNative(
531
530
  {
532
531
  category: 'jump',
533
532
  des: 'm',
534
533
  url: encodeURIComponent(changeUrl),
535
534
  logEventInfo,
536
535
  },
537
536
  OpenAppHost,
538
537
  successBack,
539
538
  failBack,
540
539
  )
541
540
  }
542
541
 
543
542
  jdJumpToLive(clickUrlOrObj, logEventInfo) {
544
543
  if (typeof clickUrlOrObj === 'object') {
545
544
  this.jdNavigateToNative({
546
545
  category: 'jump',
547
546
  des: 'LivePlayerRoom',
548
547
  liveOrigin: '1',
549
548
  needLogin: '0',
550
549
  isNeedVideo: true,
551
550
  logEventInfo,
552
551
  ...clickUrlOrObj,
553
552
  })
554
553
  } else {
555
554
  const getShopLiveParams = this.jdOpenAppParams(clickUrlOrObj)
556
555
  console.log('getShopLiveParams=====', getShopLiveParams)
557
556
  if (typeof getShopLiveParams === 'object') {
558
557
  this.jdNavigateToNative({
559
558
  ...getShopLiveParams,
560
559
  logEventInfo,
561
560
  })
562
561
  }
563
562
  }
564
563
  }
565
564
 
566
565
  jdJumpToUgcContent(urlObj,logEventInfo = {}) {
567
566
  if (typeof urlObj === 'object') {
568
567
  this.jdNavigateToNative({
569
568
  category: 'jump',
570
569
  des: 'shareOrderUgcContent',
571
570
  channel: 'shopshangxin',
572
571
  cmtType: '10',
573
572
  isNeedVideo: true,
574
573
  ...urlObj,
575
574
  logEventInfo
576
575
  })
577
576
  } else {
578
577
  const getShopUgcParams = this.jdOpenAppParams(urlObj)
579
578
  if(getShopUgcParams){
580
579
  getShopUgcParams['logEventInfo'] = logEventInfo
581
580
  console.log('getShopUgcParams=====', getShopUgcParams)
582
581
  getShopUgcParams && this.jdNavigateToNative(getShopUgcParams as String)
583
582
  }
584
583
  }
585
584
  }
586
585
 
587
586
  jdJumpToSeckillNewBrand(brandId) {
588
587
  this.jdNavigateToNative({
589
588
  category: 'jump',
590
589
  des: 'seckillnewbrand',
591
590
  brandId: `${brandId}`,
592
591
  })
593
592
  }
594
593
 
595
594
  jdJumpToJshopDynamicDetail(info) {
596
595
  this.jdNavigateToNative({
597
596
  category: 'jump',
598
597
  des: 'jshopDynamicDetail',
599
598
  shopId: global.info.queryInfo.shopId,
600
599
  venderId: global.info.queryInfo.venderId,
601
600
  ...info,
602
601
  })
603
602
  }
604
603
 
605
604
  jdJumpToRankList(rankingId, rankType, logEventInfo) {
606
605
  this.jdNavigateToNative(
607
606
  Object.assign(
608
607
  {},
609
608
  {
610
609
  category: 'jump',
611
610
  des: 'jdreactcommon',
612
611
  modulename: 'JDReactRankingList',
613
612
  appname: 'JDReactRankingList',
614
613
  transparentenable: true,
615
614
  ishidden: true,
616
615
  param: {
617
616
  contentId: '' + rankingId,
618
617
  fromSkuId: '',
619
618
  detailPageType: '5',
620
619
  rankType: rankType || 10 + '',
621
620
  },
622
621
  logEventInfo,
623
622
  },
624
623
  ),
625
624
  )
626
625
  }
627
626
 
628
627
  jdJumpToFlashSaleTab(logEventInfo) {
629
628
  this.jdNavigateToNative(
630
629
  Object.assign(
631
630
  {},
632
631
  {
633
632
  category: 'jump',
634
633
  des: 'jshopMain',
635
634
  jumpTab: 'flashPurchase',
636
635
  shopId: global.info.queryInfo.shopId,
637
636
  venderId: global.info.queryInfo.venderId,
638
637
  sourceType: 'JDReactShopActivityTAB',
639
638
  sourceValue: '2',
640
639
  operation: 'jumpTabInner',
641
640
  logEventInfo,
642
641
  },
643
642
  ),
644
643
  )
645
644
  }
646
645
 
647
646
 
648
647
  jdJumpToShopMemberInfo(logEventInfo) {
649
648
  this.jdNavigateToNative(
650
649
  Object.assign(
651
650
  {},
652
651
  {
653
652
  category: 'jump',
654
653
  des: 'jdreactcommon',
655
654
  modulename: 'JDReactShopMember',
656
655
  appname: 'JDReactShopMember',
657
656
  ishidden: true,
658
657
  param: {
659
658
  page: 'memberInfo',
660
659
  shopId: global.info.queryInfo.shopId,
661
660
  venderId: global.info.queryInfo.venderId,
662
661
  },
663
662
  logEventInfo,
664
663
  },
665
664
  ),
666
665
  )
667
666
  }
668
667
 
669
668
  jdJumpToShopMemberBenefit(logEventInfo) {
670
669
  this.jdNavigateToNative(
671
670
  Object.assign(
672
671
  {},
673
672
  {
674
673
  category: 'jump',
675
674
  des: 'jdreactcommon',
676
675
  modulename: 'JDReactShopMember',
677
676
  appname: 'JDReactShopMember',
678
677
  ishidden: true,
679
678
  param: {
680
679
  page: 'benefitList',
681
680
  shopId: global.info.queryInfo.shopId,
682
681
  venderId: global.info.queryInfo.venderId,
683
682
  },
684
683
  logEventInfo,
685
684
  },
686
685
  ),
687
686
  )
688
687
  }
689
688
 
690
689
  jdJumpToShopMemberPointExchange(venderType, levelZeroMenuUrl, logEventInfo) {
691
690
  this.jdNavigateToNative(
692
691
  Object.assign(
693
692
  {},
694
693
  {
695
694
  category: 'jump',
696
695
  des: 'jdreactcommon',
697
696
  modulename: 'JDReactShopMember',
698
697
  appname: 'JDReactShopMember',
699
698
  ishidden: true,
700
699
  param: {
701
700
  page: 'pointsExchangePage',
702
701
  shopId: global.info.queryInfo.shopId,
703
702
  venderId: global.info.queryInfo.venderId,
704
703
  levelZeroMenuUrl,
705
704
  },
706
705
  logEventInfo,
707
706
  },
708
707
  ),
709
708
  )
710
709
  }
711
710
 
712
711
  jdJumpToShopMemberBonusPurchase(customerLevel, logEventInfo) {
713
712
  this.jdNavigateToNative(
714
713
  Object.assign(
715
714
  {},
716
715
  {
717
716
  category: 'jump',
718
717
  des: 'jdreactcommon',
719
718
  modulename: 'JDReactShopMember',
720
719
  appname: 'JDReactShopMember',
721
720
  ishidden: true,
722
721
  param: {
723
722
  page: 'bonusPurchase',
724
723
  shopId: global.info.queryInfo.shopId,
725
724
  venderId: global.info.queryInfo.venderId,
726
725
  customerLevel,
727
726
  },
728
727
  logEventInfo,
729
728
  },
730
729
  ),
731
730
  )
732
731
  }
733
732
 
734
733
  jdJumpToMyRedEnvelope(logEventInfo) {
735
734
  this.jdNavigateToNative(
736
735
  Object.assign(
737
736
  {},
738
737
  {
739
738
  category: 'jump',
740
739
  des: 'jdreactcommon',
741
740
  modulename: 'JDReactMyRedEnvelope',
742
741
  appname: 'JDReactMyRedEnvelope',
743
742
  ishidden: true,
744
743
  fromName: 2,
745
744
  needLogin: true,
746
745
  logEventInfo,
747
746
  },
748
747
  ),
749
748
  )
750
749
  }
751
750
 
752
751
  jdJumpToMyCoupon(logEventInfo) {
753
752
  this.jdNavigateToNative(
754
753
  Object.assign(
755
754
  {},
756
755
  {
757
756
  category: 'jump',
758
757
  des: 'mycoupon',
759
758
  logEventInfo,
760
759
  },
761
760
  ),
762
761
  )
763
762
  }
764
763
 
765
764
 
766
765
  jdJumpToMiniProgram({ vapptype, appId, path, param }) {
767
766
  const pageName = param['pageType'] || 'home'
768
767
  const nowMiniPath = `pages/${pageName}/index`
769
768
  if (appId === global.info.pageInfo.appId) {
770
769
  Taro.navigateTo({
771
770
  url: `/${nowMiniPath}?${objectToUrlEncode(param)}`,
772
771
  }).catch((err) => {
773
772
  console.warn('跳转小程序页面错误:', err)
774
773
  })
775
774
  } else {
776
775
  const params = {
777
776
  category: 'jump',
778
777
  des: 'jdmp',
779
778
  appId,
780
779
  vapptype,
781
780
  param,
782
781
  path: '',
783
782
  }
784
783
  if (path) {
785
784
  params.path = `${path}.html`
786
785
  }
787
786
  this.jdNavigateToNative(params)
788
787
  }
789
788
  }
790
789
 
791
790
  jdJumpToAppMiniProgram(
792
791
  path: string,
793
792
  param = {},
794
793
  successBack?: Function,
795
794
  failBack?: Function,
796
795
  ) {
797
796
  this.jdNavigateToNative(param, path, successBack, failBack)
798
797
  }
799
798
 
800
799
  jdNavigateToNative(
801
800
  params: {},
802
801
  url = OpenAppHost,
803
802
  successBack?: Function | undefined,
804
803
  failBack?: Function | undefined,
805
804
  ) {
806
805
  console.log('[降级H5] jdNavigateToNative jdJumJdApp:', params)
807
806
  const getResParams: JumpEventReportInterFace.JdMiniJumpParams =
808
807
  Object.assign(
809
808
  {},
810
809
  {
811
810
  sourceValue: 'sourceValue_jshopMini',
812
811
  sourceType: 'sourceType_jshopMini',
813
812
  param: {},
814
813
  },
815
814
  params,
816
815
  )
817
816
  const { logEventInfo, ...otherParams } = getResParams
818
817
  console.log('jdNavigateToNative params: ', getResParams)
819
818
  console.log('logEventInfo params: ', logEventInfo)
820
819
  this.clickEventLog(logEventInfo || getResParams, getResParams.des)
821
820
  jd.navigateToNative({
822
821
  dataParam: {
823
822
  url: url,
824
823
  params: otherParams,
825
824
  },
826
825
  success(res) {
827
826
  typeof successBack === 'function' && successBack(res)
828
827
  console.log('navigateToNative.success', res)
829
828
  },
830
829
  fail(res) {
831
830
  typeof failBack === 'function' && failBack(res)
832
831
  console.log('navigateToNative.fail', res)
833
832
  },
834
833
  })
835
834
  }
836
835
 
837
836
  clickEventLog(
838
837
  opts: JumpEventReportInterFace.OptEventLogParams = {},
839
838
  clickKey = 'click',
840
839
  ) {
841
840
  const { eventId, jsonParam, eventLevel = 3, skuId, ...otherParams } = opts
842
841
  if (eventId && jsonParam) {
843
842
  const { etModelInfo, logBaseInfo } = jsonParam
844
843
  let getJsonParam = {}
845
844
  if (etModelInfo && logBaseInfo) {
846
845
  getJsonParam = logBaseInfo
847
846
  } else {
848
847
  if (Array.isArray(jsonParam)){
849
848
  getJsonParam = jsonParam
850
849
  } else {
851
850
  getJsonParam = Object.assign(
852
851
  {},
853
852
  {
854
853
  shopid: global.info.queryInfo?.shopId,
855
854
  },
856
855
  jsonParam,
857
856
  )
858
857
  }
859
858
  }
860
859
  if(clickKey === 'exposure' && /^TerminatorNew/.test(eventId) && !Array.isArray(getJsonParam)){
861
860
  getJsonParam = [getJsonParam]
862
861
  }
863
862
  const miniLogParams = {
864
863
  eid: eventId,
865
864
  elevel: eventLevel,
866
865
  eparam: JSON.stringify(getJsonParam),
867
866
  pageId: this.logPageId,
868
867
  pname: this.logPname,
869
868
  pparam: JSON.stringify(this.routerInfo.params),
870
869
  target: this.routerInfo.path,
871
870
  event: this.nativeEvent,
872
871
  ...otherParams,
873
872
  }
874
873
  if (clickKey === 'addToCart' && skuId) {
875
874
  miniLogParams['shoppingList'] = {
876
875
  [skuId]: 1,
877
876
  }
878
877
  }
879
878
  console.log('点击埋点参数对象', miniLogParams, clickKey)
880
879
  global.miniAppLogInstance &&
881
880
  global.miniAppLogInstance[clickKey](miniLogParams)
882
881
  } else {
883
882
  console.log('暂无埋点参数eventId和eventParam')
884
883
  }
885
884
  }
886
885
 
887
886
  exposureEventLog(opts: JumpEventReportInterFace.OptEventLogParams = {}) {
888
887
  return this.clickEventLog(opts, 'exposure')
889
888
  }
890
889
 
891
890
  jdJumpToSearch(shopId, suggestWord) {
892
891
  if(typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId
893
892
  this.jdNavigateToNative({
894
893
  category: 'jump',
895
894
  des: 'jshopGuessWord',
896
895
  shopId: String(shopId),
897
896
  transparentEnable: true,
898
897
  suggestWord,
899
898
  sourceInfo: APP_SOURCE_INFO,
900
899
  })
901
900
  }
902
901
 
903
902
  jdJumpToMyMessageBox() {
904
903
  this.jdNavigateToNative({
905
904
  category: 'jump',
906
905
  des: 'myMessageBox',
907
906
  })
908
907
  }
909
908
 
910
909
  jdJumpToAppHome() {
911
910
  this.jdNavigateToNative({
912
911
  category: 'jump',
913
912
  des: 'HomePage',
914
913
  })
915
914
  }
916
915
 
917
916
  jdJumpToShopHomeDetail({ shopId, venderId }) {
918
917
  this.jdNavigateToNative({
919
918
  category: 'jump',
920
919
  des: 'jshopDetail',
921
920
  shopId: String(shopId),
922
921
  venderId: String(venderId),
923
922
  })
924
923
  }
924
+ import Taro from '@tarojs/taro'
925
925
  entrance: 'shop-page-tab',
926
926
  moduleId: 'shop-modular-floor'
927
927
 
928
928
  jdJumpToProduct(skuIds, logEventInfo, otherParams = {}) {
929
929
  skuIds = skuIds.toString().trim()
930
930
  const getSkuId = skuIds.indexOf(',') !== -1 ? skuIds.split(',')[0] : skuIds
931
931
  this.jdNavigateToNative({
932
932
  category: 'jump',
933
933
  des: 'productDetail',
934
934
  skuId: getSkuId,
935
935
  logEventInfo,
936
936
  ...otherParams,
937
937
  })
938
938
  }
939
939
 
940
940
  jdJumpToShopCategory(shopInfo = {}) {
941
941
  console.log(
942
942
  '🚀 ~ file: jdJumpJdApp.ts:40 ~ JdJumpJdApp ~ jdJumpToShopCategory ~ shopInfo:',
943
943
  shopInfo,
944
944
  )
945
945
  console.log('[降级H5] jdJumpToShopCategory jdJumpJdApp')
946
946
  this.jdNavigateToNative(
947
947
  Object.assign(
948
948
  {},
949
949
  {
950
950
  category: 'jump',
951
951
  des: 'jshopMain',
952
952
  jumpBottomTab: 'category',
953
953
  },
954
954
  shopInfo,
955
955
  {
956
956
  shopId: String(shopInfo.shopId ?? ''),
957
957
  venderId: String(shopInfo.venderId ?? ''),
958
958
  },
959
959
  ),
960
960
  )
961
961
  }
962
962
 
963
963
  jdJumpToOrderInfoView(wareId, wareNum = 1, logEventInfo) {
964
964
  this.jdNavigateToNative({
965
965
  category: 'jump',
966
966
  des: 'orderInfoView',
967
967
  wareId: `${wareId}`,
968
968
  wareNum: global.info.sysInfo.isIOS ? `${wareNum}` : wareNum,
969
969
  skuSource: 25,
970
970
  sourceType: 6,
971
971
  extFlag: '{}',
972
972
  logEventInfo,
973
973
  })
974
974
  }
975
975
 
976
976
  jdJumpToTryDetail(tryId) {
977
977
  this.jdNavigateToNative({
978
978
  category: 'jump',
979
979
  des: 'jdreactcommon',
980
980
  appname: 'JDReactNewProduct',
981
981
  modulename: 'JDReactNewProduct',
982
982
  param: {
983
983
  activityId: tryId,
984
984
  isNative: true,
985
985
  nativePage: 'jdtry_detail',
986
986
  transparentenable: true,
987
987
  },
988
988
  })
989
989
  }
990
990
 
991
991
  jdJumpToShopHome(shopInfo = {}) {
992
992
  console.log('[降级H5] jdJumpToShopHome jdJumpJdApp')
993
993
  const getInfo = Object.assign(
994
994
  {},
995
995
  {
996
996
  shopId: global.info.queryInfo.shopId,
997
997
  venderId: global.info.queryInfo.venderId,
998
998
  },
999
999
  shopInfo,
1000
1000
  )
1001
1001
  const getShopParams = this.getShopIdsInfo(getInfo)
1002
1002
  this.jdJumpToShopBase(getShopParams)
1003
1003
  }
1004
1004
 
1005
1005
  jdJumpToShopHomeInner(shopInfo: JumpEventReportInterFace.ShopIdsInfo = {}) {
1006
1006
  const getParam = Object.assign(
1007
1007
  {},
1008
1008
  {
1009
1009
  jumpTab: HOME_TOP_TAB_TYPE_APP.HOME,
1010
1010
  operation: 'jumpTabInner',
1011
1011
  },
1012
1012
  shopInfo,
1013
1013
  )
1014
1014
  this.jdJumpToShopBase(getParam)
1015
1015
  }
1016
1016
 
1017
1017
  jdJumpToUnifieddetail(sourceInfo) {
1018
1018
  this.jdNavigateToNative(
1019
1019
  Object.assign(
1020
1020
  {},
1021
1021
  {
1022
1022
  category: 'jump',
1023
1023
  des: 'unifieddetail',
1024
1024
  },
1025
1025
  sourceInfo,
1026
1026
  ),
1027
1027
  )
1028
1028
  }
1029
1029
 
1030
1030
  jdJumpToVideoImmersion(sourceInfo) {
1031
1031
  this.jdNavigateToNative(
1032
1032
  Object.assign(
1033
1033
  {},
1034
1034
  {
1035
1035
  category: 'jump',
1036
1036
  des: 'VideoImmersion',
1037
1037
  },
1038
1038
  sourceInfo,
1039
1039
  ),
1040
1040
  )
1041
1041
  }
1042
1042
 
1043
1043
  jdJumpToShopMember(shopInfo) {
1044
1044
  this.jdNavigateToNative(
1045
1045
  Object.assign(
1046
1046
  {},
1047
1047
  {
1048
1048
  category: 'jump',
1049
1049
  des: 'jshopMember',
1050
1050
  followAward: '-1',
1051
1051
  },
1052
1052
  shopInfo,
1053
1053
  ),
1054
1054
  )
1055
1055
  }
1056
1056
 
1057
1057
  jdJumpToMemberTab(shopInfo?) {
1058
1058
  this.jdNavigateToNative(
1059
1059
  Object.assign(
1060
1060
  {},
1061
1061
  {
1062
1062
  category: 'jump',
1063
1063
  des: 'jshopMain',
1064
1064
  shopId: global.info.queryInfo.shopId,
1065
1065
  venderId: global.info.queryInfo.venderId,
1066
1066
  operation: 'jumpBottomTabMember',
1067
1067
  sourceInfo: APP_SOURCE_INFO,
1068
1068
  },
1069
1069
  shopInfo,
1070
1070
  ),
1071
1071
  )
1072
1072
  }
1073
1073
 
1074
1074
  jdJumpToDongDongChatGroup(groupId, source = 'jdmini') {
1075
1075
  this.jdNavigateToNative({
1076
1076
  category: 'jump',
1077
1077
  des: 'dongdong_group_chat',
1078
1078
  source: source,
1079
1079
  groupId: `${groupId}`,
1080
1080
  })
1081
1081
  }
1082
1082
 
1083
1083
  jdJumpToDongDongChat(paramInfo = {}) {
1084
1084
  this.jdNavigateToNative(
1085
1085
  Object.assign(
1086
1086
  {},
1087
1087
  {
1088
1088
  category: 'jump',
1089
1089
  des: 'jd_dongdong_chat',
1090
1090
  venderId: global.info.queryInfo.venderId,
1091
1091
  entry: 'm_shop',
1092
1092
  },
1093
1093
  paramInfo,
1094
1094
  ),
1095
1095
  )
1096
1096
  }
1097
1097
 
1098
1098
  jdJumpToShopActivity(shopInfo) {
1099
1099
  const getParams = Object.assign(
1100
1100
  {},
1101
1101
  {
1102
1102
  category: 'jump',
1103
1103
  des: 'jshopActivity',
1104
1104
  shopId: global.info.queryInfo.shopId,
1105
1105
  venderId: global.info.queryInfo.venderId,
1106
1106
  },
1107
1107
  shopInfo,
1108
1108
  )
1109
1109
  getParams['projectId'] &&
1110
1110
  (getParams['projectId'] = `${getParams['projectId']}`)
1111
1111
  this.jdNavigateToNative(getParams)
1112
1112
  }
1113
1113
 
1114
1114
  jdJumpToShopActivityPage(shopInfo) {
1115
1115
  this.jdNavigateToNative(
1116
1116
  Object.assign(
1117
1117
  {},
1118
1118
  {
1119
1119
  category: 'jump',
1120
1120
  des: 'jshopActivityPage',
1121
1121
  shopId: global.info.queryInfo.shopId,
1122
1122
  title: global.info.queryInfo?.shopName,
1123
1123
  },
1124
1124
  shopInfo,
1125
1125
  ),
1126
1126
  )
1127
1127
  }
1128
1128
 
1129
1129
  jdJumpToShopDetail(shopInfo) {
1130
1130
  this.jdNavigateToNative(
1131
1131
  Object.assign(
1132
1132
  {},
1133
1133
  {
1134
1134
  category: 'jump',
1135
1135
  des: 'jshopDetail',
1136
1136
  shopId: global.info.queryInfo.shopId,
1137
1137
  venderId: global.info.queryInfo.venderId,
1138
1138
  sourceInfo: APP_SOURCE_INFO,
1139
1139
  },
1140
1140
  shopInfo,
1141
1141
  ),
1142
1142
  )
1143
1143
  }
1144
1144
 
1145
1145
  jdJumpToShopMemberCard(shopInfo) {
1146
1146
  const { url, logEventInfo } = shopInfo
1147
1147
  if (this.isOpenJdAppUrl(url)) {
1148
1148
  const getOpenAppParams = this.jdOpenAppParams(url)
1149
1149
  console.log(
1150
1150
  'jd web 获取自定义openApp链接解析后的参数结果',
1151
1151
  getOpenAppParams,
1152
1152
  )
1153
1153
  if (getOpenAppParams) {
1154
1154
  this.jdNavigateToNative(
1155
1155
  Object.assign({}, getOpenAppParams, { logEventInfo }),
1156
1156
  )
1157
1157
  }
1158
1158
  } else {
1159
1159
  super.jdJumpToWeb(url, {
1160
1160
  ...logEventInfo,
1161
1161
  })
1162
1162
  }
1163
1163
  }
1164
1164
 
1165
1165
  jdJumpToTotalPromotion(shopInfo) {
1166
1166
  const { url, logEventInfo } = shopInfo
1167
1167
  if (this.isOpenJdAppUrl(url)) {
1168
1168
  const getOpenAppParams = this.jdOpenAppParams(url)
1169
1169
  console.log(
1170
1170
  'jd web 获取自定义openApp链接解析后的参数结果',
1171
1171
  getOpenAppParams,
1172
1172
  )
1173
1173
  if (getOpenAppParams) {
1174
1174
  this.jdNavigateToNative(
1175
1175
  Object.assign({}, getOpenAppParams, { logEventInfo }),
1176
1176
  )
1177
1177
  }
1178
1178
  } else {
1179
1179
  super.jdJumpToWeb(url, {
1180
1180
  ...logEventInfo,
1181
1181
  })
1182
1182
  }
1183
1183
  }
1184
1184
 
1185
1185
  jdJumpToShopSearch(pageInfo = {}) {
1186
1186
  const getInfo = Object.assign(
1187
1187
  {},
1188
1188
  {
1189
1189
  shopId: global.info.queryInfo.shopId,
1190
1190
  venderId: global.info.queryInfo.venderId,
1191
1191
  sourceInfo: APP_SOURCE_INFO
1192
1192
  },
1193
1193
  pageInfo,
1194
1194
  )
1195
1195
  const { keyword = '', categoryId = '', ...otherPageInfo }: any = getInfo
1196
1196
  const searchInfo = {}
1197
1197
  if (categoryId != '') {
1198
1198
  searchInfo['categoryId'] = typeof categoryId === 'string' ? categoryId?.trim() : categoryId
1199
1199
  searchInfo['searchType'] = '5'
1200
1200
  } else if (keyword != '') {
1201
1201
  searchInfo['keyWord'] = keyword
1202
1202
  searchInfo['searchType'] = '4'
1203
1203
  }
1204
1204
  this.jdNavigateToNative(
1205
1205
  Object.assign(
1206
1206
  {},
1207
1207
  {
1208
1208
  category: 'jump',
1209
1209
  des: 'jshopProductList',
1210
1210
  pageId: '1',
1211
1211
  ...searchInfo,
1212
1212
  },
1213
1213
  otherPageInfo,
1214
1214
  ),
1215
1215
  )
1216
1216
  }
1217
1217
 
1218
1218
  jdJumpToOrderList(logEventInfo = {}) {
1219
1219
  this.jdNavigateToNative(
1220
1220
  Object.assign(
1221
1221
  {},
1222
1222
  {
1223
1223
  category: 'jump',
1224
1224
  des: 'orderlist',
1225
1225
  from: 'dphycc',
1226
1226
  },
1227
1227
  logEventInfo,
1228
1228
  ),
1229
1229
  )
1230
1230
  }
1231
1231
 
1232
1232
  jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
1233
1233
  this.jdNavigateToNative(
1234
1234
  Object.assign(
1235
1235
  {},
1236
1236
  {
1237
1237
  category: 'jump',
1238
1238
  des: 'productList',
1239
1239
  from: 'couponBatch',
1240
1240
  couponId: `${couponId}`,
1241
1241
  logEventInfo,
1242
1242
  }
1243
1243
  ),
1244
1244
  )
1245
1245
  }
1246
1246
 
1247
1247
  jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
1248
1248
  console.log('jdJumpJdApp - jdJumpToTabAllProduct')
1249
1249
  if(typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId
1250
1250
  if(typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId
1251
1251
  this.jdNavigateToNative(
1252
1252
  Object.assign(
1253
1253
  {},
1254
1254
  {
1255
1255
  category: 'jump',
1256
1256
  des: 'jshopMain',
1257
1257
  jumpTab: 'allProduct',
1258
1258
  },
1259
1259
  shopId !== 'undefined' ? {
1260
1260
  shopId
1261
1261
  } :{},
1262
1262
  venderId !== 'undefined' ? {
1263
1263
  venderId
1264
1264
  } :{},
1265
1265
  {
1266
1266
  logEventInfo
1267
1267
  }
1268
1268
  ),
1269
1269
  )
1270
1270
  }
1271
1271
 
1272
1272
  jdJumpToTabAllProductInner(shopId, venderId, logEventInfo = {}) {
1273
1273
  if(typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId
1274
1274
  if(typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId
1275
1275
  this.jdNavigateToNative(
1276
1276
  Object.assign(
1277
1277
  {},
1278
1278
  {
1279
1279
  category: 'jump',
1280
1280
  des: 'jshopMain',
1281
1281
  jumpTab: 'allProduct',
1282
1282
  operation: 'jumpTabInner',
1283
1283
  },
1284
1284
  shopId !== 'undefined' ? {
1285
1285
  shopId
1286
1286
  } :{},
1287
1287
  venderId !== 'undefined' ? {
1288
1288
  venderId
1289
1289
  } :{},
1290
1290
  {
1291
1291
  logEventInfo
1292
1292
  }
1293
1293
  ),
1294
1294
  )
1295
1295
  }
1296
1296
 
1297
1297
  jdJumpToShopBase(shopInfo) {
1298
1298
  console.log('[降级H5] jdJumpToShopBase jdJumpJdApp')
1299
1299
  const getParam = Object.assign(
1300
1300
  {},
1301
1301
  {
1302
1302
  category: 'jump',
1303
1303
  des: 'jshopMain',
1304
1304
  jumpTab: HOME_TOP_TAB_TYPE_APP.HOME,
1305
1305
  shopId: global.info.queryInfo.shopId,
1306
1306
  venderId: global.info.queryInfo.venderId,
1307
1307
  sourceInfo: APP_SOURCE_INFO,
1308
1308
  },
1309
1309
  shopInfo,
1310
1310
  )
1311
1311
  this.jdNavigateToNative(getParam)
1312
1312
  }
1313
1313
 
1314
1314
  jdJumpToTabNew(shopInfo = {}) {
1315
1315
  const getParam = Object.assign(
1316
1316
  {},
1317
1317
  {
1318
1318
  jumpTab: HOME_TOP_TAB_TYPE_APP.NEW,
1319
1319
  },
1320
1320
  shopInfo,
1321
1321
  )
1322
1322
  this.jdJumpToShopBase(getParam)
1323
1323
  }
1324
1324
 
1325
1325
  jdJumpToTabNewInner(shopInfo = {}) {
1326
1326
  const getParam = Object.assign(
1327
1327
  {},
1328
1328
  {
1329
1329
  jumpTab: HOME_TOP_TAB_TYPE_APP.NEW,
1330
1330
  operation: 'jumpTabInner',
1331
1331
  },
1332
1332
  shopInfo,
1333
1333
  )
1334
1334
  this.jdJumpToShopBase(getParam)
1335
1335
  }
1336
1336
  jdJumpToTabRank(shopInfo = {}) {
1337
1337
  const getParam = Object.assign(
1338
1338
  {},
1339
1339
  {
1340
1340
  jumpTab: HOME_TOP_TAB_TYPE_APP.RANK,
1341
1341
  },
1342
1342
  shopInfo,
1343
1343
  )
1344
1344
  this.jdJumpToShopBase(getParam)
1345
1345
  }
1346
1346
  jdJumpToTabRankInner(shopInfo = {}) {
1347
1347
  const getParam = Object.assign(
1348
1348
  {},
1349
1349
  {
1350
1350
  jumpTab: HOME_TOP_TAB_TYPE_APP.RANK,
1351
1351
  operation: 'jumpTabInner',
1352
1352
  },
1353
1353
  shopInfo,
1354
1354
  )
1355
1355
  this.jdJumpToShopBase(getParam)
1356
1356
  }
1357
1357
  jdJumpToTabBuyerShow(shopInfo = {}) {
1358
1358
  const getParam = Object.assign(
1359
1359
  {},
1360
1360
  {
1361
1361
  jumpTab: HOME_TOP_TAB_TYPE_APP.BUYERSHOW,
1362
1362
  },
1363
1363
  shopInfo,
1364
1364
  )
1365
1365
  this.jdJumpToShopBase(getParam)
1366
1366
  }
1367
1367
  jdJumpToTabBuyerShowInner(shopInfo = {}) {
1368
1368
  const getParam = Object.assign(
1369
1369
  {},
1370
1370
  {
1371
1371
  jumpTab: HOME_TOP_TAB_TYPE_APP.BUYERSHOW,
1372
1372
  operation: 'jumpTabInner',
1373
1373
  },
1374
1374
  shopInfo,
1375
1375
  )
1376
1376
  this.jdJumpToShopBase(getParam)
1377
1377
  }
1378
1378
  jdJumpToTabActivity(shopInfo = {}) {
1379
1379
  const getParam = Object.assign(
1380
1380
  {},
1381
1381
  {
1382
1382
  jumpTab: HOME_TOP_TAB_TYPE_APP.ACTIVITY,
1383
1383
  },
1384
1384
  shopInfo,
1385
1385
  )
1386
1386
  this.jdJumpToShopBase(getParam)
1387
1387
  }
1388
1388
  jdJumpToTabActivityInner(shopInfo = {}) {
1389
1389
  const getParam = Object.assign(
1390
1390
  {},
1391
1391
  {
1392
1392
  jumpTab: HOME_TOP_TAB_TYPE_APP.ACTIVITY,
1393
1393
  operation: 'jumpTabInner',
1394
1394
  },
1395
1395
  shopInfo,
1396
1396
  )
1397
1397
  this.jdJumpToShopBase(getParam)
1398
1398
  }
1399
1399
  jdJumpToTabSecKill(shopInfo = {}) {
1400
1400
  const getParam = Object.assign(
1401
1401
  {},
1402
1402
  {
1403
1403
  jumpTab: HOME_TOP_TAB_TYPE_APP.SECKILL,
1404
1404
  },
1405
1405
  shopInfo,
1406
1406
  )
1407
1407
  this.jdJumpToShopBase(getParam)
1408
1408
  }
1409
1409
  jdJumpToTabSecKillInner(shopInfo = {}) {
1410
1410
  const getParam = Object.assign(
1411
1411
  {},
1412
1412
  {
1413
1413
  jumpTab: HOME_TOP_TAB_TYPE_APP.SECKILL,
1414
1414
  operation: 'jumpTabInner',
1415
1415
  },
1416
1416
  shopInfo,
1417
1417
  )
1418
1418
  this.jdJumpToShopBase(getParam)
1419
1419
  }
1420
1420
 
1421
1421
  jdJumpToBottomTabBase(type, shopInfo = {}) {
1422
1422
  this.jdNavigateToNative(
1423
1423
  Object.assign(
1424
1424
  {},
1425
1425
  {
1426
1426
  category: 'jump',
1427
1427
  des: 'jshopMain',
1428
1428
  shopId: global.info.queryInfo.shopId,
1429
1429
  venderId: global.info.queryInfo.venderId,
1430
1430
  jumpBottomTab: type,
1431
1431
  sourceInfo: APP_SOURCE_INFO,
1432
1432
  },
1433
1433
  shopInfo,
1434
1434
  ),
1435
1435
  )
1436
1436
  }
1437
1437
 
1438
1438
  jdJumpToBottomTabProduct(shopInfo = {}) {
1439
1439
  this.jdJumpToBottomTabBase(BOTTOM_TAB_TYPE_APP.PRODUCT, shopInfo)
1440
1440
  }
1441
1441
 
1442
1442
  jdJumpToBottomTabCategory(shopInfo = {}) {
1443
1443
  this.jdJumpToBottomTabBase(BOTTOM_TAB_TYPE_APP.CATEGORY, shopInfo)
1444
1444
  }
1445
1445
 
1446
1446
  jdJumpToBottomTabFind(shopInfo = {}) {
1447
1447
  this.jdJumpToBottomTabBase(BOTTOM_TAB_TYPE_APP.FIND, shopInfo)
1448
1448
  }
1449
1449
 
1450
1450
  jdJumpToBottomTabBrandMember(shopInfo = {}) {
1451
1451
  this.jdJumpToBottomTabBase(BOTTOM_TAB_TYPE_APP.BRANDMEMBER, shopInfo)
1452
1452
  }
1453
1453
 
1454
1454
  jdJumpToBottomTabBrandMemberInner(shopInfo = {}) {
1455
1455
  this.jdJumpToMemberTab(shopInfo)
1456
1456
  }
1457
1457
 
1458
1458
  jdJumpToWeb(
1459
1459
  url,
1460
1460
  logEventInfo,
1461
1461
  successBack?: Function | undefined,
1462
1462
  failBack?: Function | undefined,
1463
1463
  ) {
1464
1464
  const changeUrl = /^\/\//.test(url) ? `https:${url}` : url
1465
1465
  this.jdNavigateToNative(
1466
1466
  {
1467
1467
  category: 'jump',
1468
1468
  des: 'm',
1469
1469
  url: encodeURIComponent(changeUrl),
1470
1470
  logEventInfo,
1471
1471
  },
1472
1472
  OpenAppHost,
1473
1473
  successBack,
1474
1474
  failBack,
1475
1475
  )
1476
1476
  }
1477
1477
 
1478
1478
  jdJumpToLive(clickUrlOrObj, logEventInfo) {
1479
1479
  if (typeof clickUrlOrObj === 'object') {
1480
1480
  this.jdNavigateToNative({
1481
1481
  category: 'jump',
1482
1482
  des: 'LivePlayerRoom',
1483
1483
  liveOrigin: '1',
1484
1484
  needLogin: '0',
1485
1485
  isNeedVideo: true,
1486
1486
  logEventInfo,
1487
1487
  ...clickUrlOrObj,
1488
1488
  })
1489
1489
  } else {
1490
1490
  const getShopLiveParams = this.jdOpenAppParams(clickUrlOrObj)
1491
1491
  console.log('getShopLiveParams=====', getShopLiveParams)
1492
1492
  if (typeof getShopLiveParams === 'object') {
1493
1493
  this.jdNavigateToNative({
1494
1494
  ...getShopLiveParams,
1495
1495
  logEventInfo,
1496
1496
  })
1497
1497
  }
1498
1498
  }
1499
1499
  }
1500
1500
 
1501
1501
  jdJumpToUgcContent(urlObj,logEventInfo = {}) {
1502
1502
  if (typeof urlObj === 'object') {
1503
1503
  this.jdNavigateToNative({
1504
1504
  category: 'jump',
1505
1505
  des: 'shareOrderUgcContent',
1506
1506
  channel: 'shopshangxin',
1507
1507
  cmtType: '10',
1508
1508
  isNeedVideo: true,
1509
1509
  ...urlObj,
1510
1510
  logEventInfo
1511
1511
  })
1512
1512
  } else {
1513
1513
  const getShopUgcParams = this.jdOpenAppParams(urlObj)
1514
1514
  if(getShopUgcParams){
1515
1515
  getShopUgcParams['logEventInfo'] = logEventInfo
1516
1516
  console.log('getShopUgcParams=====', getShopUgcParams)
1517
1517
  getShopUgcParams && this.jdNavigateToNative(getShopUgcParams as String)
1518
1518
  }
1519
1519
  }
1520
1520
  }
1521
1521
 
1522
1522
  jdJumpToSeckillNewBrand(brandId) {
1523
1523
  this.jdNavigateToNative({
1524
1524
  category: 'jump',
1525
1525
  des: 'seckillnewbrand',
1526
1526
  brandId: `${brandId}`,
1527
1527
  })
1528
1528
  }
1529
1529
 
1530
1530
  jdJumpToJshopDynamicDetail(info) {
1531
1531
  this.jdNavigateToNative({
1532
1532
  category: 'jump',
1533
1533
  des: 'jshopDynamicDetail',
1534
1534
  shopId: global.info.queryInfo.shopId,
1535
1535
  venderId: global.info.queryInfo.venderId,
1536
1536
  ...info,
1537
1537
  })
1538
1538
  }
1539
1539
 
1540
1540
  jdJumpToRankList(rankingId, rankType, logEventInfo) {
1541
1541
  this.jdNavigateToNative(
1542
1542
  Object.assign(
1543
1543
  {},
1544
1544
  {
1545
1545
  category: 'jump',
1546
1546
  des: 'jdreactcommon',
1547
1547
  modulename: 'JDReactRankingList',
1548
1548
  appname: 'JDReactRankingList',
1549
1549
  transparentenable: true,
1550
1550
  ishidden: true,
1551
1551
  param: {
1552
1552
  contentId: '' + rankingId,
1553
1553
  fromSkuId: '',
1554
1554
  detailPageType: '5',
1555
1555
  rankType: rankType || 10 + '',
1556
1556
  },
1557
1557
  logEventInfo,
1558
1558
  },
1559
1559
  ),
1560
1560
  )
1561
1561
  }
1562
1562
 
1563
1563
  jdJumpToFlashSaleTab(logEventInfo) {
1564
1564
  this.jdNavigateToNative(
1565
1565
  Object.assign(
1566
1566
  {},
1567
1567
  {
1568
1568
  category: 'jump',
1569
1569
  des: 'jshopMain',
1570
1570
  jumpTab: 'flashPurchase',
1571
1571
  shopId: global.info.queryInfo.shopId,
1572
1572
  venderId: global.info.queryInfo.venderId,
1573
1573
  sourceType: 'JDReactShopActivityTAB',
1574
1574
  sourceValue: '2',
1575
1575
  operation: 'jumpTabInner',
1576
1576
  logEventInfo,
1577
1577
  },
1578
1578
  ),
1579
1579
  )
1580
1580
  }
1581
1581
 
1582
1582
 
1583
1583
  jdJumpToShopMemberInfo(logEventInfo) {
1584
1584
  this.jdNavigateToNative(
1585
1585
  Object.assign(
1586
1586
  {},
1587
1587
  {
1588
1588
  category: 'jump',
1589
1589
  des: 'jdreactcommon',
1590
1590
  modulename: 'JDReactShopMember',
1591
1591
  appname: 'JDReactShopMember',
1592
1592
  ishidden: true,
1593
1593
  param: {
1594
1594
  page: 'memberInfo',
1595
1595
  shopId: global.info.queryInfo.shopId,
1596
1596
  venderId: global.info.queryInfo.venderId,
1597
1597
  },
1598
1598
  logEventInfo,
1599
1599
  },
1600
1600
  ),
1601
1601
  )
1602
1602
  }
1603
1603
 
1604
1604
  jdJumpToShopMemberBenefit(logEventInfo) {
1605
1605
  const venderId = global.info.queryInfo.venderId
1606
1606
  const shopId = global.info.queryInfo.shopId
1607
1607
  this.jdJumpToWeb(
1608
1608
  `${this.jumpWebUrl.memberBenefit}?venderId=${venderId}&shopId=${shopId}&jwebprog=0`,
1609
1609
  logEventInfo,
1610
1610
  )
1611
1611
  }
1612
1612
 
1613
1613
  jdJumpToShopMemberPointExchange(venderType, levelZeroMenuUrl, logEventInfo) {
1614
1614
  this.jdNavigateToNative(
1615
1615
  Object.assign(
1616
1616
  {},
1617
1617
  {
1618
1618
  category: 'jump',
1619
1619
  des: 'jdreactcommon',
1620
1620
  modulename: 'JDReactShopMember',
1621
1621
  appname: 'JDReactShopMember',
1622
1622
  ishidden: true,
1623
1623
  param: {
1624
1624
  page: 'pointsExchangePage',
1625
1625
  shopId: global.info.queryInfo.shopId,
1626
1626
  venderId: global.info.queryInfo.venderId,
1627
1627
  levelZeroMenuUrl,
1628
1628
  },
1629
1629
  logEventInfo,
1630
1630
  },
1631
1631
  ),
1632
1632
  )
1633
1633
  }
1634
1634
 
1635
1635
  jdJumpToShopMemberBonusPurchase(customerLevel, logEventInfo) {
1636
1636
  this.jdNavigateToNative(
1637
1637
  Object.assign(
1638
1638
  {},
1639
1639
  {
1640
1640
  category: 'jump',
1641
1641
  des: 'jdreactcommon',
1642
1642
  modulename: 'JDReactShopMember',
1643
1643
  appname: 'JDReactShopMember',
1644
1644
  ishidden: true,
1645
1645
  param: {
1646
1646
  page: 'bonusPurchase',
1647
1647
  shopId: global.info.queryInfo.shopId,
1648
1648
  venderId: global.info.queryInfo.venderId,
1649
1649
  customerLevel,
1650
1650
  },
1651
1651
  logEventInfo,
1652
1652
  },
1653
1653
  ),
1654
1654
  )
1655
1655
  }
1656
1656
 
1657
1657
  jdJumpToMyRedEnvelope(logEventInfo) {
1658
1658
  this.jdNavigateToNative(
1659
1659
  Object.assign(
1660
1660
  {},
1661
1661
  {
1662
1662
  category: 'jump',
1663
1663
  des: 'jdreactcommon',
1664
1664
  modulename: 'JDReactMyRedEnvelope',
1665
1665
  appname: 'JDReactMyRedEnvelope',
1666
1666
  ishidden: true,
1667
1667
  fromName: 2,
1668
1668
  needLogin: true,
1669
1669
  logEventInfo,
1670
1670
  },
1671
1671
  ),
1672
1672
  )
1673
1673
  }
1674
1674
 
1675
1675
  jdJumpToMyCoupon(logEventInfo) {
1676
1676
  this.jdNavigateToNative(
1677
1677
  Object.assign(
1678
1678
  {},
1679
1679
  {
1680
1680
  category: 'jump',
1681
1681
  des: 'mycoupon',
1682
1682
  logEventInfo,
1683
1683
  },
1684
1684
  ),
1685
1685
  )
1686
1686
  }
1687
1687
 
1688
1688
 
1689
1689
  jdJumpToMiniProgram({ vapptype, appId, path, param }) {
1690
1690
  const pageName = param['pageType'] || 'home'
1691
1691
  const nowMiniPath = `pages/${pageName}/index`
1692
1692
  if (appId === global.info.pageInfo.appId) {
1693
1693
  Taro.navigateTo({
1694
1694
  url: `/${nowMiniPath}?${objectToUrlEncode(param)}`,
1695
1695
  }).catch((err) => {
1696
1696
  console.warn('跳转小程序页面错误:', err)
1697
1697
  })
1698
1698
  } else {
1699
1699
  const params = {
1700
1700
  category: 'jump',
1701
1701
  des: 'jdmp',
1702
1702
  appId,
1703
1703
  vapptype,
1704
1704
  param,
1705
1705
  path: '',
1706
1706
  }
1707
1707
  if (path) {
1708
1708
  params.path = `${path}.html`
1709
1709
  }
1710
1710
  this.jdNavigateToNative(params)
1711
1711
  }
1712
1712
  }
1713
1713
 
1714
1714
  jdJumpToAppMiniProgram(
1715
1715
  path: string,
1716
1716
  param = {},
1717
1717
  successBack?: Function,
1718
1718
  failBack?: Function,
1719
1719
  ) {
1720
1720
  this.jdNavigateToNative(param, path, successBack, failBack)
1721
1721
  }
1722
1722
 
1723
1723
  jdNavigateToNative(
1724
1724
  params: {},
1725
1725
  url = OpenAppHost,
1726
1726
  successBack?: Function | undefined,
1727
1727
  failBack?: Function | undefined,
1728
1728
  ) {
1729
1729
  console.log('[降级H5] jdNavigateToNative jdJumJdApp:', params)
1730
1730
  const getResParams: JumpEventReportInterFace.JdMiniJumpParams =
1731
1731
  Object.assign(
1732
1732
  {},
1733
1733
  {
1734
1734
  sourceValue: 'sourceValue_jshopMini',
1735
1735
  sourceType: 'sourceType_jshopMini',
1736
1736
  param: {},
1737
1737
  },
1738
1738
  params,
1739
1739
  )
1740
1740
  const { logEventInfo, ...otherParams } = getResParams
1741
1741
  console.log('jdNavigateToNative params: ', getResParams)
1742
1742
  console.log('logEventInfo params: ', logEventInfo)
1743
1743
  this.clickEventLog(logEventInfo || getResParams, getResParams.des)
1744
1744
  jd.navigateToNative({
1745
1745
  dataParam: {
1746
1746
  url: url,
1747
1747
  params: otherParams,
1748
1748
  },
1749
1749
  success(res) {
1750
1750
  typeof successBack === 'function' && successBack(res)
1751
1751
  console.log('navigateToNative.success', res)
1752
1752
  },
1753
1753
  fail(res) {
1754
1754
  typeof failBack === 'function' && failBack(res)
1755
1755
  console.log('navigateToNative.fail', res)
1756
1756
  },
1757
1757
  })
1758
1758
  }
1759
1759
 
1760
1760
  clickEventLog(
1761
1761
  opts: JumpEventReportInterFace.OptEventLogParams = {},
1762
1762
  clickKey = 'click',
1763
1763
  ) {
1764
1764
  const { eventId, jsonParam, eventLevel = 3, skuId, ...otherParams } = opts
1765
1765
  if (eventId && jsonParam) {
1766
1766
  const { etModelInfo, logBaseInfo } = jsonParam
1767
1767
  let getJsonParam = {}
1768
1768
  if (etModelInfo && logBaseInfo) {
1769
1769
  getJsonParam = logBaseInfo
1770
1770
  } else {
1771
1771
  if (Array.isArray(jsonParam)){
1772
1772
  getJsonParam = jsonParam
1773
1773
  } else {
1774
1774
  getJsonParam = Object.assign(
1775
1775
  {},
1776
1776
  {
1777
1777
  shopid: global.info.queryInfo?.shopId,
1778
1778
  },
1779
1779
  jsonParam,
1780
1780
  )
1781
1781
  }
1782
1782
  }
1783
1783
  if(clickKey === 'exposure' && /^TerminatorNew/.test(eventId) && !Array.isArray(getJsonParam)){
1784
1784
  getJsonParam = [getJsonParam]
1785
1785
  }
1786
1786
  const miniLogParams = {
1787
1787
  eid: eventId,
1788
1788
  elevel: eventLevel,
1789
1789
  eparam: JSON.stringify(getJsonParam),
1790
1790
  pageId: this.logPageId,
1791
1791
  pname: this.logPname,
1792
1792
  pparam: JSON.stringify(this.routerInfo.params),
1793
1793
  target: this.routerInfo.path,
1794
1794
  event: this.nativeEvent,
1795
1795
  ...otherParams,
1796
1796
  }
1797
1797
  if (clickKey === 'addToCart' && skuId) {
1798
1798
  miniLogParams['shoppingList'] = {
1799
1799
  [skuId]: 1,
1800
1800
  }
1801
1801
  }
1802
1802
  console.log('点击埋点参数对象', miniLogParams, clickKey)
1803
1803
  global.miniAppLogInstance &&
1804
1804
  global.miniAppLogInstance[clickKey](miniLogParams)
1805
1805
  } else {
1806
1806
  console.log('暂无埋点参数eventId和eventParam')
1807
1807
  }
1808
1808
  }
1809
1809
 
1810
1810
  exposureEventLog(opts: JumpEventReportInterFace.OptEventLogParams = {}) {
1811
1811
  return this.clickEventLog(opts, 'exposure')
1812
1812
  }
1813
1813
 
1814
1814
  jdJumpToSearch(shopId, suggestWord) {
1815
1815
  if(typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId
1816
1816
  this.jdNavigateToNative({
1817
1817
  category: 'jump',
1818
1818
  des: 'jshopGuessWord',
1819
1819
  shopId: String(shopId),
1820
1820
  transparentEnable: true,
1821
1821
  suggestWord,
1822
1822
  sourceInfo: APP_SOURCE_INFO,
1823
1823
  })
1824
1824
  }
1825
1825
 
1826
1826
  jdJumpToMyMessageBox() {
1827
1827
  this.jdNavigateToNative({
1828
1828
  category: 'jump',
1829
1829
  des: 'myMessageBox',
1830
1830
  })
1831
1831
  }
1832
1832
 
1833
1833
  jdJumpToAppHome() {
1834
1834
  this.jdNavigateToNative({
1835
1835
  category: 'jump',
1836
1836
  des: 'HomePage',
1837
1837
  })
1838
1838
  }
1839
1839
 
1840
1840
  jdJumpToShopHomeDetail({ shopId, venderId }) {
1841
1841
  this.jdNavigateToNative({
1842
1842
  category: 'jump',
1843
1843
  des: 'jshopDetail',
1844
1844
  shopId: String(shopId),
1845
1845
  venderId: String(venderId),
1846
1846
  })
1847
1847
  }