@conecli/cone-render 0.8.28 → 0.8.30

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 (48) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/index.h5.ts +1 -1
  4. package/dist/common/token/index.h5.ts +1 -1
  5. package/dist/common/token/token.ts +1 -1
  6. package/dist/components/base/CommonFloorHead/index.module.scss +1 -1
  7. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  8. package/dist/components/base/CustomVideo/index.module.scss +3 -2
  9. package/dist/components/base/CustomVideo/index.tsx +1 -1
  10. package/dist/components/base/Dialog/index.module.scss +6 -2
  11. package/dist/components/base/Dialog/index.tsx +1 -1
  12. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  13. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  14. package/dist/components/base/Price/{const.ts → Base/const.ts} +0 -0
  15. package/dist/components/base/Price/Base/index.module.scss +136 -0
  16. package/dist/components/base/Price/Base/index.tsx +1 -0
  17. package/dist/components/base/Price/Double/index.module.scss +158 -0
  18. package/dist/components/base/Price/Double/index.tsx +1 -0
  19. package/dist/components/base/Price/index.tsx +1 -1
  20. package/dist/components/floorItem.weapp.tsx +1 -1
  21. package/dist/interface/component.ts +1 -1
  22. package/dist/interface/jumpEventReport.ts +1 -1
  23. package/dist/interface/service.ts +1 -1
  24. package/dist/jumpEventReport/base.ts +1 -1
  25. package/dist/jumpEventReport/const.ts +1 -1
  26. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  27. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  28. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  29. package/dist/jumpEventReport/web/report.ts +1 -1
  30. package/dist/jumpEventReport/web.base.ts +1 -1
  31. package/dist/open/api/shopMember.ts +1 -1
  32. package/dist/service/bMallConst.ts +1 -1
  33. package/dist/service/bMallConst.wxapp.ts +1 -0
  34. package/dist/service/http/colorSign.ts +1 -1
  35. package/dist/service/http/colorSign.wxapp.ts +1 -0
  36. package/dist/service/http/const.ts +1 -1
  37. package/dist/service/requestServer.ts +1 -1
  38. package/dist/utils/connectNativeJsBridge.ts +1 -1
  39. package/dist/utils/h5Utils.ts +1 -1
  40. package/dist/utils/index.h5.ts +1 -1
  41. package/dist/utils/index.ts +1 -1
  42. package/dist/utils/index.weapp.ts +1 -1
  43. package/dist/utils/jm-common.js +1 -1
  44. package/dist/utils/memberFormatUtils.js +1 -0
  45. package/dist/utils/priceUtils.js +1 -0
  46. package/dist/utils/utils.ts +1 -1
  47. package/package.json +3 -3
  48. package/dist/components/base/Price/index.module.scss +0 -136
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  ...otherParams
3
2
 
4
3
  {shopId: String(shopInfo.shopId ?? ''),
5
4
  venderId: String(shopInfo.venderId ?? '')}
6
5
 
7
6
  jdJumpToTryDetail(tryId) {
8
7
  this.jdNavigateToNative({
9
8
  category: 'jump',
10
9
  des: 'jdreactcommon',
11
10
  appname: 'JDReactNewProduct',
12
11
  modulename: 'JDReactNewProduct',
13
12
  param: {
14
13
  activityId: tryId,
15
14
  isNative: true,
16
15
  nativePage: 'jdtry_detail',
17
16
  transparentenable: true,
18
17
  },
19
18
  })
20
19
  }
21
20
 
22
21
  jdJumpToUnifieddetail(sourceInfo) {
23
22
  this.jdNavigateToNative(
24
23
  Object.assign(
25
24
  {},
26
25
  {
27
26
  category: 'jump',
28
27
  des: 'unifieddetail',
29
28
  },
30
29
  sourceInfo,
31
30
  ),
32
31
  )
33
32
  }
34
33
 
35
34
  jdJumpToVideoImmersion(sourceInfo) {
36
35
  this.jdNavigateToNative(
37
36
  Object.assign(
38
37
  {},
39
38
  {
40
39
  category: 'jump',
41
40
  des: 'VideoImmersion',
42
41
  },
43
42
  sourceInfo,
44
43
  ),
45
44
  )
46
45
  }
47
46
 
48
47
  jdJumpToShopMember(shopInfo) {
49
48
  this.jdNavigateToNative(
50
49
  Object.assign(
51
50
  {},
52
51
  {
53
52
  category: 'jump',
54
53
  des: 'jshopMember',
55
54
  followAward: '-1',
56
55
  },
57
56
  shopInfo,
58
57
  ),
59
58
  )
60
59
  }
61
60
 
62
61
  jdJumpToDongDongChatGroup(groupId, source = 'jdmini') {
63
62
  this.jdNavigateToNative({
64
63
  category: 'jump',
65
64
  des: 'dongdong_group_chat',
66
65
  source: source,
67
66
  groupId: `${groupId}`,
68
67
  })
69
68
  }
70
69
 
71
70
  jdJumpToDongDongChat(paramInfo = {}) {
72
71
  this.jdNavigateToNative(
73
72
  Object.assign(
74
73
  {},
75
74
  {
76
75
  category: 'jump',
77
76
  des: 'jd_dongdong_chat',
78
77
  venderId: global.info.queryInfo.venderId,
79
78
  entry: 'm_shop',
80
79
  },
81
80
  paramInfo,
82
81
  ),
83
82
  )
84
83
  }
85
84
 
86
85
  jdJumpToShopActivity(shopInfo) {
87
86
  const getParams = Object.assign(
88
87
  {},
89
88
  {
90
89
  category: 'jump',
91
90
  des: 'jshopActivity',
92
91
  shopId: global.info.queryInfo.shopId,
93
92
  venderId: global.info.queryInfo.venderId,
94
93
  },
95
94
  shopInfo,
96
95
  )
97
96
  getParams['projectId'] &&
98
97
  (getParams['projectId'] = `${getParams['projectId']}`)
99
98
  this.jdNavigateToNative(getParams)
100
99
  }
101
100
 
102
101
  jdJumpToShopActivityPage(shopInfo) {
103
102
  this.jdNavigateToNative(
104
103
  Object.assign(
105
104
  {},
106
105
  {
107
106
  category: 'jump',
108
107
  des: 'jshopActivityPage',
109
108
  shopId: global.info.queryInfo.shopId,
110
109
  title: global.info.queryInfo?.shopName,
111
110
  },
112
111
  shopInfo,
113
112
  ),
114
113
  )
115
114
  }
116
115
 
117
116
  jdJumpToShopDetail(shopInfo) {
118
117
  this.jdNavigateToNative(
119
118
  Object.assign(
120
119
  {},
121
120
  {
122
121
  category: 'jump',
123
122
  des: 'jshopDetail',
124
123
  },
125
124
  shopInfo,
126
125
  ),
127
126
  )
128
127
  }
129
128
 
130
129
  jdJumpToShopMemberCard(shopInfo) {
131
130
  const { url, logEventInfo } = shopInfo
132
131
  if (this.isOpenJdAppUrl(url)) {
133
132
  const getOpenAppParams = this.jdOpenAppParams(url)
134
133
  console.log(
135
134
  'jd web 获取自定义openApp链接解析后的参数结果',
136
135
  getOpenAppParams,
137
136
  )
138
137
  if (getOpenAppParams) {
139
138
  this.jdNavigateToNative(
140
139
  Object.assign({}, getOpenAppParams, { logEventInfo }),
141
140
  )
142
141
  }
143
142
  } else {
144
143
  super.jdJumpToWeb(url, {
145
144
  ...logEventInfo,
146
145
  })
147
146
  }
148
147
  }
149
148
 
150
149
  jdJumpToTotalPromotion(shopInfo) {
151
150
  const { url, logEventInfo } = shopInfo
152
151
  if (this.isOpenJdAppUrl(url)) {
153
152
  const getOpenAppParams = this.jdOpenAppParams(url)
154
153
  console.log(
155
154
  'jd web 获取自定义openApp链接解析后的参数结果',
156
155
  getOpenAppParams,
157
156
  )
158
157
  if (getOpenAppParams) {
159
158
  this.jdNavigateToNative(
160
159
  Object.assign({}, getOpenAppParams, { logEventInfo }),
161
160
  )
162
161
  }
163
162
  } else {
164
163
  super.jdJumpToWeb(url, {
165
164
  ...logEventInfo,
166
165
  })
167
166
  }
168
167
  }
169
168
 
170
169
  jdJumpToShopSearch(pageInfo = {}) {
171
170
  const { keyword = '', ...otherPageInfo }: any = pageInfo
172
171
  const keywordInfo = {}
173
172
  if (keyword != '') {
174
173
  keywordInfo['keyWord'] = keyword
175
174
  keywordInfo['searchType'] = '4'
176
175
  }
177
176
  this.jdNavigateToNative(
178
177
  Object.assign(
179
178
  {},
180
179
  {
181
180
  category: 'jump',
182
181
  des: 'jshopProductList',
183
182
  pageId: '1',
184
183
  ...keywordInfo,
185
184
  },
186
185
  otherPageInfo,
187
186
  ),
188
187
  )
189
188
  }
190
189
 
191
190
  jdJumpToOrderList(logEventInfo = {}) {
192
191
  this.jdNavigateToNative(
193
192
  Object.assign(
194
193
  {},
195
194
  {
196
195
  category: 'jump',
197
196
  des: 'orderlist',
198
197
  from: 'dphycc',
199
198
  },
200
199
  logEventInfo,
201
200
  ),
202
201
  )
203
202
  }
204
203
 
205
204
  jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
206
205
  this.jdNavigateToNative(
207
206
  Object.assign(
208
207
  {},
209
208
  {
210
209
  category: 'jump',
211
210
  des: 'productList',
212
211
  from: 'couponBatch',
213
212
  couponId: `${couponId}`,
214
213
  },
215
214
  logEventInfo,
216
215
  ),
217
216
  )
218
217
  }
219
218
 
220
219
  jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
221
220
  this.jdNavigateToNative(
222
221
  Object.assign(
223
222
  {},
224
223
  {
225
224
  category: 'jump',
226
225
  des: 'jshopMain',
227
226
  jumpTab: 'allProduct',
228
227
  shopId: `${shopId}`,
229
228
  venderId: `${venderId}`,
230
229
  },
231
230
  logEventInfo,
232
231
  ),
233
232
  )
234
233
  }
235
234
 
236
235
  jdJumpToTabAllProductInner(shopId, venderId, logEventInfo = {}) {
237
236
  this.jdNavigateToNative(
238
237
  Object.assign(
239
238
  {},
240
239
  {
241
240
  category: 'jump',
242
241
  des: 'jshopMain',
243
242
  jumpTab: 'allProduct',
244
243
  shopId: `${shopId}`,
245
244
  venderId: `${venderId}`,
246
245
  operation: 'jumpTabInner',
247
246
  },
248
247
  logEventInfo,
249
248
  ),
250
249
  )
251
250
  }
252
251
 
253
252
  jdJumpToWeb(
254
253
  url,
255
254
  logEventInfo,
256
255
  successBack?: Function | undefined,
257
256
  failBack?: Function | undefined,
258
257
  ) {
259
258
  const changeUrl = /^\/\//.test(url) ? `https:${url}` : url
260
259
  this.jdNavigateToNative(
261
260
  {
262
261
  category: 'jump',
263
262
  des: 'm',
264
263
  url: encodeURIComponent(changeUrl),
265
264
  logEventInfo,
266
265
  },
267
266
  OpenAppHost,
268
267
  successBack,
269
268
  failBack,
270
269
  )
271
270
  }
272
271
 
273
272
  jdJumpToLive(clickUrlOrObj, logEventInfo) {
274
273
  if (typeof clickUrlOrObj === 'object') {
275
274
  this.jdNavigateToNative({
276
275
  category: 'jump',
277
276
  des: 'LivePlayerRoom',
278
277
  liveOrigin: '1',
279
278
  needLogin: '0',
280
279
  isNeedVideo: true,
281
280
  logEventInfo,
282
281
  ...clickUrlOrObj,
283
282
  })
284
283
  } else {
285
284
  const getShopLiveParams = this.jdOpenAppParams(clickUrlOrObj)
286
285
  console.log('getShopLiveParams=====', getShopLiveParams)
287
286
  if (typeof getShopLiveParams === 'object') {
288
287
  this.jdNavigateToNative({
289
288
  ...getShopLiveParams,
290
289
  logEventInfo,
291
290
  })
292
291
  }
293
292
  }
294
293
  }
295
294
 
296
295
  jdJumpToUgcContent(urlObj) {
297
296
  if (typeof urlObj === 'object') {
298
297
  this.jdNavigateToNative({
299
298
  category: 'jump',
300
299
  des: 'shareOrderUgcContent',
301
300
  channel: 'shopshangxin',
302
301
  cmtType: '10',
303
302
  isNeedVideo: true,
304
303
  ...urlObj,
305
304
  })
306
305
  } else {
307
306
  const getShopUgcParams = this.jdOpenAppParams(urlObj)
308
307
  console.log('getShopUgcParams=====', getShopUgcParams)
309
308
  getShopUgcParams && this.jdNavigateToNative(getShopUgcParams as String)
310
309
  }
311
310
  }
312
311
 
313
312
  jdJumpToSeckillNewBrand(brandId) {
314
313
  this.jdNavigateToNative({
315
314
  category: 'jump',
316
315
  des: 'seckillnewbrand',
317
316
  brandId: `${brandId}`,
318
317
  })
319
318
  }
320
319
 
321
320
  jdJumpToJshopDynamicDetail(info) {
322
321
  this.jdNavigateToNative({
323
322
  category: 'jump',
324
323
  des: 'jshopDynamicDetail',
325
324
  shopId: global.info.queryInfo.shopId,
326
325
  venderId: global.info.queryInfo.venderId,
327
326
  ...info,
328
327
  })
329
328
  }
330
329
 
331
330
  jdJumpToRankList(rankingId, rankType, logEventInfo) {
332
331
  this.jdNavigateToNative(
333
332
  Object.assign(
334
333
  {},
335
334
  {
336
335
  category: 'jump',
337
336
  des: 'jdreactcommon',
338
337
  modulename: 'JDReactRankingList',
339
338
  appname: 'JDReactRankingList',
340
339
  transparentenable: true,
341
340
  ishidden: true,
342
341
  param: {
343
342
  contentId: '' + rankingId,
344
343
  fromSkuId: '',
345
344
  detailPageType: '5',
346
345
  rankType: rankType || 10 + '',
347
346
  },
348
347
  logEventInfo,
349
348
  },
350
349
  ),
351
350
  )
352
351
  }
353
352
 
354
353
  jdJumpToFlashSaleTab(logEventInfo) {
355
354
  this.jdNavigateToNative(
356
355
  Object.assign(
357
356
  {},
358
357
  {
359
358
  category: 'jump',
360
359
  des: 'jshopMain',
361
360
  jumpTab: 'flashPurchase',
362
361
  shopId: global.info.queryInfo.shopId,
363
362
  venderId: global.info.queryInfo.venderId,
364
363
  sourceType: 'JDReactShopActivityTAB',
365
364
  sourceValue: '2',
366
365
  operation: 'jumpTabInner',
367
366
  logEventInfo,
368
367
  },
369
368
  ),
370
369
  )
371
370
  }
372
371
 
373
372
 
374
373
  jdJumpToShopMemberInfo(logEventInfo) {
375
374
  this.jdNavigateToNative(
376
375
  Object.assign(
377
376
  {},
378
377
  {
379
378
  category: 'jump',
380
379
  des: 'jdreactcommon',
381
380
  modulename: 'JDReactShopMember',
382
381
  appname: 'JDReactShopMember',
383
382
  ishidden: true,
384
383
  param: {
385
384
  page: 'memberInfo',
386
385
  shopId: global.info.queryInfo.shopId,
387
386
  venderId: global.info.queryInfo.venderId,
388
387
  },
389
388
  logEventInfo,
390
389
  },
391
390
  ),
392
391
  )
393
392
  }
394
393
 
395
394
  jdJumpToShopMemberBenefit(logEventInfo) {
396
395
  this.jdNavigateToNative(
397
396
  Object.assign(
398
397
  {},
399
398
  {
400
399
  category: 'jump',
401
400
  des: 'jdreactcommon',
402
401
  modulename: 'JDReactShopMember',
403
402
  appname: 'JDReactShopMember',
404
403
  ishidden: true,
405
404
  param: {
406
405
  page: 'benefitList',
407
406
  shopId: global.info.queryInfo.shopId,
408
407
  venderId: global.info.queryInfo.venderId,
409
408
  },
410
409
  logEventInfo,
411
410
  },
412
411
  ),
413
412
  )
414
413
  }
415
414
 
416
415
  jdJumpToShopMemberPointExchange(
417
416
  venderType,
418
417
  levelZeroMenuUrl,
419
418
  logEventInfo,
420
419
  ) {
421
420
  this.jdNavigateToNative(
422
421
  Object.assign(
423
422
  {},
424
423
  {
425
424
  category: 'jump',
426
425
  des: 'jdreactcommon',
427
426
  modulename: 'JDReactShopMember',
428
427
  appname: 'JDReactShopMember',
429
428
  ishidden: true,
430
429
  param: {
431
430
  page: 'pointsExchangePage',
432
431
  shopId: global.info.queryInfo.shopId,
433
432
  venderId: global.info.queryInfo.venderId,
434
433
  levelZeroMenuUrl,
435
434
  },
436
435
  logEventInfo,
437
436
  },
438
437
  ),
439
438
  )
440
439
  }
441
440
 
442
441
  jdJumpToShopMemberBonusPurchase(customerLevel, logEventInfo) {
443
442
  this.jdNavigateToNative(
444
443
  Object.assign(
445
444
  {},
446
445
  {
447
446
  category: 'jump',
448
447
  des: 'jdreactcommon',
449
448
  modulename: 'JDReactShopMember',
450
449
  appname: 'JDReactShopMember',
451
450
  ishidden: true,
452
451
  param: {
453
452
  page: 'bonusPurchase',
454
453
  shopId: global.info.queryInfo.shopId,
455
454
  venderId: global.info.queryInfo.venderId,
456
455
  customerLevel,
457
456
  },
458
457
  logEventInfo,
459
458
  },
460
459
  ),
461
460
  )
462
461
  }
463
462
 
464
463
  jdJumpToMyRedEnvelope(logEventInfo) {
465
464
  this.jdNavigateToNative(
466
465
  Object.assign(
467
466
  {},
468
467
  {
469
468
  category: "jump",
470
469
  des: "jdreactcommon",
471
470
  modulename: "JDReactMyRedEnvelope",
472
471
  appname: "JDReactMyRedEnvelope",
473
472
  ishidden: true,
474
473
  fromName: 2,
475
474
  needLogin: true,
476
475
  logEventInfo,
477
476
  },
478
477
  ),
479
478
  )
480
479
  }
481
480
 
482
481
  jdJumpToMyCoupon(logEventInfo) {
483
482
  this.jdNavigateToNative(
484
483
  Object.assign(
485
484
  {},
486
485
  {
487
486
  category:"jump",
488
487
  des:"mycoupon",
489
488
  logEventInfo,
490
489
  },
491
490
  ),
492
491
  )
493
492
  }
494
493
 
495
494
 
496
495
  jdJumpToMiniProgram({ vapptype, appId, path, param }) {
497
496
  const pageName = param['pageType'] || 'home'
498
497
  const nowMiniPath = `pages/${pageName}/index`
499
498
  if (appId === global.info.pageInfo.appId) {
500
499
  Taro.navigateTo({
501
500
  url: `/${nowMiniPath}?${objectToUrlEncode(param)}`,
502
501
  }).catch((err) => {
503
502
  console.warn('跳转小程序页面错误:', err)
504
503
  })
505
504
  } else {
506
505
  const params = {
507
506
  category: 'jump',
508
507
  des: 'jdmp',
509
508
  appId,
510
509
  vapptype,
511
510
  param,
512
511
  path: '',
513
512
  }
514
513
  if (path) {
515
514
  params.path = `${path}.html`
516
515
  }
517
516
  this.jdNavigateToNative(params)
518
517
  }
519
518
  }
520
519
 
521
520
  jdJumpToAppMiniProgram(
522
521
  path: string,
523
522
  param = {},
524
523
  successBack?: Function,
525
524
  failBack?: Function,
526
525
  ) {
527
526
  this.jdNavigateToNative(param, path, successBack, failBack)
528
527
  }
529
528
 
530
529
  clickEventLog(
531
530
  opts: JumpEventReportInterFace.OptEventLogParams = {},
532
531
  clickKey = 'click',
533
532
  ) {
534
533
  const { eventId, jsonParam, eventLevel = 3, skuId, ...otherParams } = opts
535
534
  if (eventId && jsonParam) {
536
535
  const { etModelInfo, logBaseInfo } = jsonParam
537
536
  const miniLogParams = {
538
537
  eid: eventId,
539
538
  elevel: eventLevel,
540
539
  eparam: JSON.stringify(logBaseInfo || jsonParam),
541
540
  ext: {
542
541
  et_model: JSON.stringify(etModelInfo || {}),
543
542
  },
544
543
  pageId: this.logPageId,
545
544
  pname: this.logPname,
546
545
  pparam: JSON.stringify(this.routerInfo.params),
547
546
  target: this.routerInfo.path,
548
547
  event: this.nativeEvent,
549
548
  ...otherParams,
550
549
  }
551
550
  if (clickKey === 'addToCart' && skuId) {
552
551
  miniLogParams['shoppingList'] = {
553
552
  [skuId]: 1,
554
553
  }
555
554
  }
556
555
  console.log('点击埋点参数对象', miniLogParams, clickKey)
557
556
  global.miniAppLogInstance &&
558
557
  global.miniAppLogInstance[clickKey](miniLogParams)
559
558
  } else {
560
559
  console.log('暂无埋点参数eventId和eventParam')
561
560
  }
562
561
  }
563
562
 
564
563
  exposureEventLog(opts: JumpEventReportInterFace.OptEventLogParams = {}) {
565
564
  return this.clickEventLog(opts, 'exposure')
566
565
  }
567
566
 
568
567
  jdJumpToSearch(shopId, suggestWord) {
569
568
  this.jdNavigateToNative({
570
569
  category: 'jump',
571
570
  des: 'jshopGuessWord',
572
571
  shopId: String(shopId),
573
572
  transparentEnable: true,
574
573
  suggestWord,
575
574
  })
576
575
  }
577
576
 
578
577
  jdJumpToMyMessageBox() {
579
578
  this.jdNavigateToNative({
580
579
  category: 'jump',
581
580
  des: 'myMessageBox',
582
581
  })
583
582
  }
584
583
 
585
584
  jdJumpToAppHome() {
586
585
  this.jdNavigateToNative({
587
586
  category: 'jump',
588
587
  des: 'HomePage',
589
588
  })
590
589
  }
591
590
 
592
591
  jdJumpToShopHomeDetail({ shopId, venderId }) {
593
592
  this.jdNavigateToNative({
594
593
  category: 'jump',
595
594
  des: 'jshopDetail',
596
595
  shopId: String(shopId),
597
596
  venderId: String(venderId),
598
597
  })
599
598
  }
599
+ import Taro from '@tarojs/taro'
600
600
 
601
601
  jdJumpToProduct(skuIds, logEventInfo, otherParams = {}) {
602
602
  skuIds = skuIds.toString().trim()
603
603
  const getSkuId = skuIds.indexOf(',') !== -1 ? skuIds.split(',')[0] : skuIds
604
604
  this.jdNavigateToNative({
605
605
  category: 'jump',
606
606
  des: 'productDetail',
607
607
  skuId: getSkuId,
608
608
  logEventInfo,
609
609
  ...otherParams,
610
610
  })
611
611
  }
612
612
 
613
613
  jdJumpToShopCategory(shopInfo = {}) {
614
614
  console.log(
615
615
  '🚀 ~ file: jdJumpJdApp.ts:40 ~ JdJumpJdApp ~ jdJumpToShopCategory ~ shopInfo:',
616
616
  shopInfo,
617
617
  )
618
618
  console.log('[降级H5] jdJumpToShopCategory jdJumpJdApp')
619
619
  this.jdNavigateToNative(
620
620
  Object.assign(
621
621
  {},
622
622
  {
623
623
  category: 'jump',
624
624
  des: 'jshopMain',
625
625
  jumpBottomTab: 'category',
626
626
  },
627
627
  shopInfo,
628
628
  {
629
629
  shopId: String(shopInfo.shopId ?? ''),
630
630
  venderId: String(shopInfo.venderId ?? ''),
631
631
  },
632
632
  ),
633
633
  )
634
634
  }
635
635
 
636
636
  jdJumpToOrderInfoView(wareId, wareNum = 1, logEventInfo) {
637
637
  this.jdNavigateToNative({
638
638
  category: 'jump',
639
639
  des: 'orderInfoView',
640
640
  wareId: `${wareId}`,
641
641
  wareNum: global.info.sysInfo.isIOS ? `${wareNum}` : wareNum,
642
642
  skuSource: 25,
643
643
  sourceType: 6,
644
644
  extFlag: '{}',
645
645
  logEventInfo,
646
646
  })
647
647
  }
648
648
 
649
649
  jdJumpToTryDetail(tryId) {
650
650
  this.jdNavigateToNative({
651
651
  category: 'jump',
652
652
  des: 'jdreactcommon',
653
653
  appname: 'JDReactNewProduct',
654
654
  modulename: 'JDReactNewProduct',
655
655
  param: {
656
656
  activityId: tryId,
657
657
  isNative: true,
658
658
  nativePage: 'jdtry_detail',
659
659
  transparentenable: true,
660
660
  },
661
661
  })
662
662
  }
663
663
 
664
664
  jdJumpToShopHome(shopInfo = {}) {
665
665
  console.log('[降级H5] jdJumpToShopHome jdJumpJdApp')
666
666
  const getShopParams = this.getShopIdsInfo(shopInfo)
667
667
  this.jdJumpToShopBase(getShopParams)
668
668
  }
669
669
 
670
670
  jdJumpToUnifieddetail(sourceInfo) {
671
671
  this.jdNavigateToNative(
672
672
  Object.assign(
673
673
  {},
674
674
  {
675
675
  category: 'jump',
676
676
  des: 'unifieddetail',
677
677
  },
678
678
  sourceInfo,
679
679
  ),
680
680
  )
681
681
  }
682
682
 
683
683
  jdJumpToVideoImmersion(sourceInfo) {
684
684
  this.jdNavigateToNative(
685
685
  Object.assign(
686
686
  {},
687
687
  {
688
688
  category: 'jump',
689
689
  des: 'VideoImmersion',
690
690
  },
691
691
  sourceInfo,
692
692
  ),
693
693
  )
694
694
  }
695
695
 
696
696
  jdJumpToShopMember(shopInfo) {
697
697
  this.jdNavigateToNative(
698
698
  Object.assign(
699
699
  {},
700
700
  {
701
701
  category: 'jump',
702
702
  des: 'jshopMember',
703
703
  followAward: '-1',
704
704
  },
705
705
  shopInfo,
706
706
  ),
707
707
  )
708
708
  }
709
709
 
710
710
  jdJumpToMemberTab(shopInfo?) {
711
711
  this.jdNavigateToNative(
712
712
  Object.assign(
713
713
  {},
714
714
  {
715
715
  category: 'jump',
716
716
  des: 'jshopMain',
717
717
  shopId: global.info.queryInfo.shopId,
718
718
  venderId: global.info.queryInfo.venderId,
719
719
  operation: 'jumpBottomTabMember',
720
720
  },
721
721
  shopInfo,
722
722
  ),
723
723
  )
724
724
  }
725
725
 
726
726
  jdJumpToDongDongChatGroup(groupId, source = 'jdmini') {
727
727
  this.jdNavigateToNative({
728
728
  category: 'jump',
729
729
  des: 'dongdong_group_chat',
730
730
  source: source,
731
731
  groupId: `${groupId}`,
732
732
  })
733
733
  }
734
734
 
735
735
  jdJumpToDongDongChat(paramInfo = {}) {
736
736
  this.jdNavigateToNative(
737
737
  Object.assign(
738
738
  {},
739
739
  {
740
740
  category: 'jump',
741
741
  des: 'jd_dongdong_chat',
742
742
  venderId: global.info.queryInfo.venderId,
743
743
  entry: 'm_shop',
744
744
  },
745
745
  paramInfo,
746
746
  ),
747
747
  )
748
748
  }
749
749
 
750
750
  jdJumpToShopActivity(shopInfo) {
751
751
  const getParams = Object.assign(
752
752
  {},
753
753
  {
754
754
  category: 'jump',
755
755
  des: 'jshopActivity',
756
756
  shopId: global.info.queryInfo.shopId,
757
757
  venderId: global.info.queryInfo.venderId,
758
758
  },
759
759
  shopInfo,
760
760
  )
761
761
  getParams['projectId'] &&
762
762
  (getParams['projectId'] = `${getParams['projectId']}`)
763
763
  this.jdNavigateToNative(getParams)
764
764
  }
765
765
 
766
766
  jdJumpToShopActivityPage(shopInfo) {
767
767
  this.jdNavigateToNative(
768
768
  Object.assign(
769
769
  {},
770
770
  {
771
771
  category: 'jump',
772
772
  des: 'jshopActivityPage',
773
773
  shopId: global.info.queryInfo.shopId,
774
774
  title: global.info.queryInfo?.shopName,
775
775
  },
776
776
  shopInfo,
777
777
  ),
778
778
  )
779
779
  }
780
780
 
781
781
  jdJumpToShopDetail(shopInfo) {
782
782
  this.jdNavigateToNative(
783
783
  Object.assign(
784
784
  {},
785
785
  {
786
786
  category: 'jump',
787
787
  des: 'jshopDetail',
788
788
  },
789
789
  shopInfo,
790
790
  ),
791
791
  )
792
792
  }
793
793
 
794
794
  jdJumpToShopMemberCard(shopInfo) {
795
795
  const { url, logEventInfo } = shopInfo
796
796
  if (this.isOpenJdAppUrl(url)) {
797
797
  const getOpenAppParams = this.jdOpenAppParams(url)
798
798
  console.log(
799
799
  'jd web 获取自定义openApp链接解析后的参数结果',
800
800
  getOpenAppParams,
801
801
  )
802
802
  if (getOpenAppParams) {
803
803
  this.jdNavigateToNative(
804
804
  Object.assign({}, getOpenAppParams, { logEventInfo }),
805
805
  )
806
806
  }
807
807
  } else {
808
808
  super.jdJumpToWeb(url, {
809
809
  ...logEventInfo,
810
810
  })
811
811
  }
812
812
  }
813
813
 
814
814
  jdJumpToTotalPromotion(shopInfo) {
815
815
  const { url, logEventInfo } = shopInfo
816
816
  if (this.isOpenJdAppUrl(url)) {
817
817
  const getOpenAppParams = this.jdOpenAppParams(url)
818
818
  console.log(
819
819
  'jd web 获取自定义openApp链接解析后的参数结果',
820
820
  getOpenAppParams,
821
821
  )
822
822
  if (getOpenAppParams) {
823
823
  this.jdNavigateToNative(
824
824
  Object.assign({}, getOpenAppParams, { logEventInfo }),
825
825
  )
826
826
  }
827
827
  } else {
828
828
  super.jdJumpToWeb(url, {
829
829
  ...logEventInfo,
830
830
  })
831
831
  }
832
832
  }
833
833
 
834
834
  jdJumpToShopSearch(pageInfo = {}) {
835
835
  const { keyword = '', ...otherPageInfo }: any = pageInfo
836
836
  const keywordInfo = {}
837
837
  if (keyword != '') {
838
838
  keywordInfo['keyWord'] = keyword
839
839
  keywordInfo['searchType'] = '4'
840
840
  }
841
841
  this.jdNavigateToNative(
842
842
  Object.assign(
843
843
  {},
844
844
  {
845
845
  category: 'jump',
846
846
  des: 'jshopProductList',
847
847
  pageId: '1',
848
848
  ...keywordInfo,
849
849
  },
850
850
  otherPageInfo,
851
851
  ),
852
852
  )
853
853
  }
854
854
 
855
855
  jdJumpToOrderList(logEventInfo = {}) {
856
856
  this.jdNavigateToNative(
857
857
  Object.assign(
858
858
  {},
859
859
  {
860
860
  category: 'jump',
861
861
  des: 'orderlist',
862
862
  from: 'dphycc',
863
863
  },
864
864
  logEventInfo,
865
865
  ),
866
866
  )
867
867
  }
868
868
 
869
869
  jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
870
870
  this.jdNavigateToNative(
871
871
  Object.assign(
872
872
  {},
873
873
  {
874
874
  category: 'jump',
875
875
  des: 'productList',
876
876
  from: 'couponBatch',
877
877
  couponId: `${couponId}`,
878
878
  },
879
879
  logEventInfo,
880
880
  ),
881
881
  )
882
882
  }
883
883
 
884
884
  jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
885
885
  this.jdNavigateToNative(
886
886
  Object.assign(
887
887
  {},
888
888
  {
889
889
  category: 'jump',
890
890
  des: 'jshopMain',
891
891
  jumpTab: 'allProduct',
892
892
  shopId: `${shopId}`,
893
893
  venderId: `${venderId}`,
894
894
  },
895
895
  logEventInfo,
896
896
  ),
897
897
  )
898
898
  }
899
899
 
900
900
  jdJumpToTabAllProductInner(shopId, venderId, logEventInfo = {}) {
901
901
  this.jdNavigateToNative(
902
902
  Object.assign(
903
903
  {},
904
904
  {
905
905
  category: 'jump',
906
906
  des: 'jshopMain',
907
907
  jumpTab: 'allProduct',
908
908
  shopId: `${shopId}`,
909
909
  venderId: `${venderId}`,
910
910
  operation: 'jumpTabInner',
911
911
  },
912
912
  logEventInfo,
913
913
  ),
914
914
  )
915
915
  }
916
916
 
917
917
  jdJumpToShopBase(shopInfo, jumpTab = 'home', des = 'jshopMain') {
918
918
  console.log('[降级H5] jdJumpToShopBase jdJumpJdApp')
919
919
  this.jdNavigateToNative(
920
920
  Object.assign(
921
921
  {},
922
922
  {
923
923
  category: 'jump',
924
924
  des: des,
925
925
  jumpTab: jumpTab,
926
926
  },
927
927
  shopInfo,
928
928
  ),
929
929
  )
930
930
  }
931
931
 
932
932
  jdJumpToWeb(
933
933
  url,
934
934
  logEventInfo,
935
935
  successBack?: Function | undefined,
936
936
  failBack?: Function | undefined,
937
937
  ) {
938
938
  const changeUrl = /^\/\//.test(url) ? `https:${url}` : url
939
939
  this.jdNavigateToNative(
940
940
  {
941
941
  category: 'jump',
942
942
  des: 'm',
943
943
  url: encodeURIComponent(changeUrl),
944
944
  logEventInfo,
945
945
  },
946
946
  OpenAppHost,
947
947
  successBack,
948
948
  failBack,
949
949
  )
950
950
  }
951
951
 
952
952
  jdJumpToLive(clickUrlOrObj, logEventInfo) {
953
953
  if (typeof clickUrlOrObj === 'object') {
954
954
  this.jdNavigateToNative({
955
955
  category: 'jump',
956
956
  des: 'LivePlayerRoom',
957
957
  liveOrigin: '1',
958
958
  needLogin: '0',
959
959
  isNeedVideo: true,
960
960
  logEventInfo,
961
961
  ...clickUrlOrObj,
962
962
  })
963
963
  } else {
964
964
  const getShopLiveParams = this.jdOpenAppParams(clickUrlOrObj)
965
965
  console.log('getShopLiveParams=====', getShopLiveParams)
966
966
  if (typeof getShopLiveParams === 'object') {
967
967
  this.jdNavigateToNative({
968
968
  ...getShopLiveParams,
969
969
  logEventInfo,
970
970
  })
971
971
  }
972
972
  }
973
973
  }
974
974
 
975
975
  jdJumpToUgcContent(urlObj) {
976
976
  if (typeof urlObj === 'object') {
977
977
  this.jdNavigateToNative({
978
978
  category: 'jump',
979
979
  des: 'shareOrderUgcContent',
980
980
  channel: 'shopshangxin',
981
981
  cmtType: '10',
982
982
  isNeedVideo: true,
983
983
  ...urlObj,
984
984
  })
985
985
  } else {
986
986
  const getShopUgcParams = this.jdOpenAppParams(urlObj)
987
987
  console.log('getShopUgcParams=====', getShopUgcParams)
988
988
  getShopUgcParams && this.jdNavigateToNative(getShopUgcParams as String)
989
989
  }
990
990
  }
991
991
 
992
992
  jdJumpToSeckillNewBrand(brandId) {
993
993
  this.jdNavigateToNative({
994
994
  category: 'jump',
995
995
  des: 'seckillnewbrand',
996
996
  brandId: `${brandId}`,
997
997
  })
998
998
  }
999
999
 
1000
1000
  jdJumpToJshopDynamicDetail(info) {
1001
1001
  this.jdNavigateToNative({
1002
1002
  category: 'jump',
1003
1003
  des: 'jshopDynamicDetail',
1004
1004
  shopId: global.info.queryInfo.shopId,
1005
1005
  venderId: global.info.queryInfo.venderId,
1006
1006
  ...info,
1007
1007
  })
1008
1008
  }
1009
1009
 
1010
1010
  jdJumpToRankList(rankingId, rankType, logEventInfo) {
1011
1011
  this.jdNavigateToNative(
1012
1012
  Object.assign(
1013
1013
  {},
1014
1014
  {
1015
1015
  category: 'jump',
1016
1016
  des: 'jdreactcommon',
1017
1017
  modulename: 'JDReactRankingList',
1018
1018
  appname: 'JDReactRankingList',
1019
1019
  transparentenable: true,
1020
1020
  ishidden: true,
1021
1021
  param: {
1022
1022
  contentId: '' + rankingId,
1023
1023
  fromSkuId: '',
1024
1024
  detailPageType: '5',
1025
1025
  rankType: rankType || 10 + '',
1026
1026
  },
1027
1027
  logEventInfo,
1028
1028
  },
1029
1029
  ),
1030
1030
  )
1031
1031
  }
1032
1032
 
1033
1033
  jdJumpToFlashSaleTab(logEventInfo) {
1034
1034
  this.jdNavigateToNative(
1035
1035
  Object.assign(
1036
1036
  {},
1037
1037
  {
1038
1038
  category: 'jump',
1039
1039
  des: 'jshopMain',
1040
1040
  jumpTab: 'flashPurchase',
1041
1041
  shopId: global.info.queryInfo.shopId,
1042
1042
  venderId: global.info.queryInfo.venderId,
1043
1043
  sourceType: 'JDReactShopActivityTAB',
1044
1044
  sourceValue: '2',
1045
1045
  operation: 'jumpTabInner',
1046
1046
  logEventInfo,
1047
1047
  },
1048
1048
  ),
1049
1049
  )
1050
1050
  }
1051
1051
 
1052
1052
 
1053
1053
  jdJumpToShopMemberInfo(logEventInfo) {
1054
1054
  this.jdNavigateToNative(
1055
1055
  Object.assign(
1056
1056
  {},
1057
1057
  {
1058
1058
  category: 'jump',
1059
1059
  des: 'jdreactcommon',
1060
1060
  modulename: 'JDReactShopMember',
1061
1061
  appname: 'JDReactShopMember',
1062
1062
  ishidden: true,
1063
1063
  param: {
1064
1064
  page: 'memberInfo',
1065
1065
  shopId: global.info.queryInfo.shopId,
1066
1066
  venderId: global.info.queryInfo.venderId,
1067
1067
  },
1068
1068
  logEventInfo,
1069
1069
  },
1070
1070
  ),
1071
1071
  )
1072
1072
  }
1073
1073
 
1074
1074
  jdJumpToShopMemberBenefit(logEventInfo) {
1075
1075
  this.jdNavigateToNative(
1076
1076
  Object.assign(
1077
1077
  {},
1078
1078
  {
1079
1079
  category: 'jump',
1080
1080
  des: 'jdreactcommon',
1081
1081
  modulename: 'JDReactShopMember',
1082
1082
  appname: 'JDReactShopMember',
1083
1083
  ishidden: true,
1084
1084
  param: {
1085
1085
  page: 'benefitList',
1086
1086
  shopId: global.info.queryInfo.shopId,
1087
1087
  venderId: global.info.queryInfo.venderId,
1088
1088
  },
1089
1089
  logEventInfo,
1090
1090
  },
1091
1091
  ),
1092
1092
  )
1093
1093
  }
1094
1094
 
1095
1095
  jdJumpToShopMemberPointExchange(venderType, levelZeroMenuUrl, logEventInfo) {
1096
1096
  this.jdNavigateToNative(
1097
1097
  Object.assign(
1098
1098
  {},
1099
1099
  {
1100
1100
  category: 'jump',
1101
1101
  des: 'jdreactcommon',
1102
1102
  modulename: 'JDReactShopMember',
1103
1103
  appname: 'JDReactShopMember',
1104
1104
  ishidden: true,
1105
1105
  param: {
1106
1106
  page: 'pointsExchangePage',
1107
1107
  shopId: global.info.queryInfo.shopId,
1108
1108
  venderId: global.info.queryInfo.venderId,
1109
1109
  levelZeroMenuUrl,
1110
1110
  },
1111
1111
  logEventInfo,
1112
1112
  },
1113
1113
  ),
1114
1114
  )
1115
1115
  }
1116
1116
 
1117
1117
  jdJumpToShopMemberBonusPurchase(customerLevel, logEventInfo) {
1118
1118
  this.jdNavigateToNative(
1119
1119
  Object.assign(
1120
1120
  {},
1121
1121
  {
1122
1122
  category: 'jump',
1123
1123
  des: 'jdreactcommon',
1124
1124
  modulename: 'JDReactShopMember',
1125
1125
  appname: 'JDReactShopMember',
1126
1126
  ishidden: true,
1127
1127
  param: {
1128
1128
  page: 'bonusPurchase',
1129
1129
  shopId: global.info.queryInfo.shopId,
1130
1130
  venderId: global.info.queryInfo.venderId,
1131
1131
  customerLevel,
1132
1132
  },
1133
1133
  logEventInfo,
1134
1134
  },
1135
1135
  ),
1136
1136
  )
1137
1137
  }
1138
1138
 
1139
1139
  jdJumpToMyRedEnvelope(logEventInfo) {
1140
1140
  this.jdNavigateToNative(
1141
1141
  Object.assign(
1142
1142
  {},
1143
1143
  {
1144
1144
  category: 'jump',
1145
1145
  des: 'jdreactcommon',
1146
1146
  modulename: 'JDReactMyRedEnvelope',
1147
1147
  appname: 'JDReactMyRedEnvelope',
1148
1148
  ishidden: true,
1149
1149
  fromName: 2,
1150
1150
  needLogin: true,
1151
1151
  logEventInfo,
1152
1152
  },
1153
1153
  ),
1154
1154
  )
1155
1155
  }
1156
1156
 
1157
1157
  jdJumpToMyCoupon(logEventInfo) {
1158
1158
  this.jdNavigateToNative(
1159
1159
  Object.assign(
1160
1160
  {},
1161
1161
  {
1162
1162
  category: 'jump',
1163
1163
  des: 'mycoupon',
1164
1164
  logEventInfo,
1165
1165
  },
1166
1166
  ),
1167
1167
  )
1168
1168
  }
1169
1169
 
1170
1170
 
1171
1171
  jdJumpToMiniProgram({ vapptype, appId, path, param }) {
1172
1172
  const pageName = param['pageType'] || 'home'
1173
1173
  const nowMiniPath = `pages/${pageName}/index`
1174
1174
  if (appId === global.info.pageInfo.appId) {
1175
1175
  Taro.navigateTo({
1176
1176
  url: `/${nowMiniPath}?${objectToUrlEncode(param)}`,
1177
1177
  }).catch((err) => {
1178
1178
  console.warn('跳转小程序页面错误:', err)
1179
1179
  })
1180
1180
  } else {
1181
1181
  const params = {
1182
1182
  category: 'jump',
1183
1183
  des: 'jdmp',
1184
1184
  appId,
1185
1185
  vapptype,
1186
1186
  param,
1187
1187
  path: '',
1188
1188
  }
1189
1189
  if (path) {
1190
1190
  params.path = `${path}.html`
1191
1191
  }
1192
1192
  this.jdNavigateToNative(params)
1193
1193
  }
1194
1194
  }
1195
1195
 
1196
1196
  jdJumpToAppMiniProgram(
1197
1197
  path: string,
1198
1198
  param = {},
1199
1199
  successBack?: Function,
1200
1200
  failBack?: Function,
1201
1201
  ) {
1202
1202
  this.jdNavigateToNative(param, path, successBack, failBack)
1203
1203
  }
1204
1204
 
1205
1205
  jdNavigateToNative(
1206
1206
  params: {},
1207
1207
  url = OpenAppHost,
1208
1208
  successBack?: Function | undefined,
1209
1209
  failBack?: Function | undefined,
1210
1210
  ) {
1211
1211
  console.log('[降级H5] jdNavigateToNative jdJumJdApp:', params)
1212
1212
  const getResParams: JumpEventReportInterFace.JdMiniJumpParams =
1213
1213
  Object.assign(
1214
1214
  {},
1215
1215
  {
1216
1216
  sourceValue: 'sourceValue_jshopMini',
1217
1217
  sourceType: 'sourceType_jshopMini',
1218
1218
  param: {},
1219
1219
  },
1220
1220
  params,
1221
1221
  )
1222
1222
  const { logEventInfo, ...otherParams } = getResParams
1223
1223
  console.log('jdNavigateToNative params: ', getResParams)
1224
1224
  console.log('logEventInfo params: ', logEventInfo)
1225
1225
  this.clickEventLog(logEventInfo || getResParams, getResParams.des)
1226
1226
  jd.navigateToNative({
1227
1227
  dataParam: {
1228
1228
  url: url,
1229
1229
  params: otherParams,
1230
1230
  },
1231
1231
  success(res) {
1232
1232
  typeof successBack === 'function' && successBack(res)
1233
1233
  console.log('navigateToNative.success', res)
1234
1234
  },
1235
1235
  fail(res) {
1236
1236
  typeof failBack === 'function' && failBack(res)
1237
1237
  console.log('navigateToNative.fail', res)
1238
1238
  },
1239
1239
  })
1240
1240
  }
1241
1241
 
1242
1242
  clickEventLog(
1243
1243
  opts: JumpEventReportInterFace.OptEventLogParams = {},
1244
1244
  clickKey = 'click',
1245
1245
  ) {
1246
1246
  const { eventId, jsonParam, eventLevel = 3, skuId, ...otherParams } = opts
1247
1247
  if (eventId && jsonParam) {
1248
1248
  const { etModelInfo, logBaseInfo } = jsonParam
1249
1249
  const miniLogParams = {
1250
1250
  eid: eventId,
1251
1251
  elevel: eventLevel,
1252
1252
  eparam: JSON.stringify(logBaseInfo || jsonParam),
1253
1253
  ext: {
1254
1254
  et_model: JSON.stringify(etModelInfo || {}),
1255
1255
  },
1256
1256
  pageId: this.logPageId,
1257
1257
  pname: this.logPname,
1258
1258
  pparam: JSON.stringify(this.routerInfo.params),
1259
1259
  target: this.routerInfo.path,
1260
1260
  event: this.nativeEvent,
1261
1261
  ...otherParams,
1262
1262
  }
1263
1263
  if (clickKey === 'addToCart' && skuId) {
1264
1264
  miniLogParams['shoppingList'] = {
1265
1265
  [skuId]: 1,
1266
1266
  }
1267
1267
  }
1268
1268
  console.log('点击埋点参数对象', miniLogParams, clickKey)
1269
1269
  global.miniAppLogInstance &&
1270
1270
  global.miniAppLogInstance[clickKey](miniLogParams)
1271
1271
  } else {
1272
1272
  console.log('暂无埋点参数eventId和eventParam')
1273
1273
  }
1274
1274
  }
1275
1275
 
1276
1276
  exposureEventLog(opts: JumpEventReportInterFace.OptEventLogParams = {}) {
1277
1277
  return this.clickEventLog(opts, 'exposure')
1278
1278
  }
1279
1279
 
1280
1280
  jdJumpToSearch(shopId, suggestWord) {
1281
1281
  this.jdNavigateToNative({
1282
1282
  category: 'jump',
1283
1283
  des: 'jshopGuessWord',
1284
1284
  shopId: String(shopId),
1285
1285
  transparentEnable: true,
1286
1286
  suggestWord,
1287
1287
  })
1288
1288
  }
1289
1289
 
1290
1290
  jdJumpToMyMessageBox() {
1291
1291
  this.jdNavigateToNative({
1292
1292
  category: 'jump',
1293
1293
  des: 'myMessageBox',
1294
1294
  })
1295
1295
  }
1296
1296
 
1297
1297
  jdJumpToAppHome() {
1298
1298
  this.jdNavigateToNative({
1299
1299
  category: 'jump',
1300
1300
  des: 'HomePage',
1301
1301
  })
1302
1302
  }
1303
1303
 
1304
1304
  jdJumpToShopHomeDetail({ shopId, venderId }) {
1305
1305
  this.jdNavigateToNative({
1306
1306
  category: 'jump',
1307
1307
  des: 'jshopDetail',
1308
1308
  shopId: String(shopId),
1309
1309
  venderId: String(venderId),
1310
1310
  })
1311
1311
  }