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

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