@conecli/cone-render 0.10.1-isv2.4 → 0.10.1-isv3.1

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 (105) hide show
  1. package/README.md +1 -1
  2. package/dist/api/index.ts +1 -1
  3. package/dist/common/accessibility.h5.ts +1 -0
  4. package/dist/common/accessibility.ts +1 -0
  5. package/dist/common/const.ts +1 -1
  6. package/dist/common/index.h5.ts +1 -1
  7. package/dist/common/index.jd.ts +1 -1
  8. package/dist/common/index.ts +1 -1
  9. package/dist/common/index.weapp.ts +1 -1
  10. package/dist/common/jdplayerSdk.weapp.tsx +1 -0
  11. package/dist/common/jssdk.weapp.ts +1 -0
  12. package/dist/common/pageType.ts +1 -1
  13. package/dist/common/token/index.h5.ts +1 -1
  14. package/dist/common/token/token.jd.ts +1 -1
  15. package/dist/common/wxappApi.ascf.ts +1 -0
  16. package/dist/components/ErrorBoundary.tsx +1 -1
  17. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  18. package/dist/components/base/CountDown/index.tsx +1 -1
  19. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  20. package/dist/components/base/CustomVideo/index.tsx +1 -1
  21. package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
  22. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  23. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  24. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  25. package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
  26. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  27. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  28. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  29. package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
  30. package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
  31. package/dist/components/base/NetworkDataError/const.ts +1 -1
  32. package/dist/components/base/NetworkDataError/index.module.scss +118 -72
  33. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  34. package/dist/components/base/Price/Base/index.module.scss +12 -0
  35. package/dist/components/base/Price/Base/index.tsx +1 -1
  36. package/dist/components/base/Price/Double/index.module.scss +25 -1
  37. package/dist/components/base/Price/Double/index.tsx +1 -1
  38. package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
  39. package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
  40. package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
  41. package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
  42. package/dist/components/floorItem.tsx +1 -1
  43. package/dist/components/isv/Floor/index.tsx +1 -1
  44. package/dist/components/remoteFloorItem.tsx +1 -1
  45. package/dist/config/env.ts +1 -1
  46. package/dist/interface/common.ts +1 -1
  47. package/dist/interface/component.ts +1 -1
  48. package/dist/interface/jumpEventReport.ts +1 -1
  49. package/dist/interface/service.ts +1 -1
  50. package/dist/jumpEventReport/base.ts +1 -1
  51. package/dist/jumpEventReport/const.ts +1 -1
  52. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  53. package/dist/jumpEventReport/index.h5.ts +1 -1
  54. package/dist/jumpEventReport/index.jd.ts +1 -1
  55. package/dist/jumpEventReport/index.weapp.ts +1 -1
  56. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  57. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  58. package/dist/jumpEventReport/logEventConfig.h5.ts +1 -0
  59. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  60. package/dist/jumpEventReport/web/report.ts +1 -1
  61. package/dist/jumpEventReport/web.base.ts +1 -1
  62. package/dist/jumpEventReport/web.jd.ts +1 -1
  63. package/dist/jumpEventReport/web.pc.ts +1 -1
  64. package/dist/jumpEventReport/web.tjm.ts +1 -1
  65. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  66. package/dist/language/en_US.json +395 -0
  67. package/dist/language/zh_CN.json +395 -0
  68. package/dist/language/zh_HK.json +395 -0
  69. package/dist/libs/openShopBridge.js +161 -0
  70. package/dist/libs/openShopBridge.min.js +1 -0
  71. package/dist/libs/taroAppReport.js +2 -2
  72. package/dist/modules/ContainerFloorList/index.h5.module.scss +16 -2
  73. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  74. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  75. package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
  76. package/dist/open/api/shopMember.ts +1 -1
  77. package/dist/open/api/shopMember.weapp.ts +1 -0
  78. package/dist/open/api/track.ts +1 -1
  79. package/dist/open/api/util.ts +1 -1
  80. package/dist/open/components/index.ts +1 -1
  81. package/dist/open/index.ts +1 -1
  82. package/dist/sass/app.h5.scss +6 -1
  83. package/dist/sass/base.scss +8 -4
  84. package/dist/service/fetchGateway.ts +1 -1
  85. package/dist/service/fetchGateway.weapp.ts +1 -1
  86. package/dist/service/fetchJsonp.weapp.ts +1 -0
  87. package/dist/service/http/h5Http.ts +1 -1
  88. package/dist/service/http/httpInterceptors.weapp.ts +1 -0
  89. package/dist/service/requestServer.h5.ts +1 -1
  90. package/dist/service/requestServer.ts +1 -1
  91. package/dist/service/requestServer.weapp.ts +1 -1
  92. package/dist/utils/connectNativeJsBridge.ts +1 -1
  93. package/dist/utils/h5Utils.ts +1 -1
  94. package/dist/utils/harmonyCallRouter.h5.ts +1 -0
  95. package/dist/utils/harmonyCallRouter.ts +0 -0
  96. package/dist/utils/index.h5.ts +1 -1
  97. package/dist/utils/index.ts +1 -1
  98. package/dist/utils/index.weapp.ts +1 -1
  99. package/dist/utils/jumpExtMapUtil.weapp.ts +1 -0
  100. package/dist/utils/sColor.weapp.ts +1 -0
  101. package/dist/utils/utils.ts +1 -1
  102. package/package.json +42 -36
  103. package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
  104. package/dist/utils/priceUtils.js +0 -1
  105. /package/dist/utils/{sColor.js → sColor.ts} +0 -0
@@ -1 +1 @@
1
- import global from '../common';
2
1
  objectToUrlEncode,
3
2
  isH5AndJingGouMini,
4
3
  public jingGouMiniState: boolean;
5
4
  private isH5OpenToWxapp: boolean;
6
5
  constructor(opt) {
7
6
  super(opt);
8
7
  this.jingGouMiniState = false;
9
8
  this.getConfig(opt);
10
9
  console.log('window.shopGlobalSwitch:', JSON.stringify(window.shopGlobalSwitch));
11
10
  this.isH5OpenToWxapp = window.shopGlobalSwitch?.openMobileShopToWxApp == 'true';
12
11
  this.init();
13
12
  }
14
13
  getConfig(opt) {
15
14
  return Object.assign(this, {}, defaultConfig, super.getConfig(opt), opt);
16
15
  }
17
16
 
18
17
 
19
18
  async init() {
20
19
  if (window.isJingGouMiniViewState) {
21
20
  this.jingGouMiniState = true;
22
21
  } else {
23
22
  console.log('初始化进行小程序环境检查, 当前是否是京购小程序里的H5', isH5AndJingGouMini);
24
23
  if (isH5AndJingGouMini && this.isH5OpenToWxapp) {
25
24
  console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的if');
26
25
  this.jingGouMiniState = true;
27
26
  window.isJingGouMiniViewState = true;
28
27
  console.log('进入了 iwx?.miniProgram then 但是没有继续跳转的逻辑 ');
29
28
  global.info.isJingGouMiniViewState = true;
30
29
  } else {
31
30
  console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的esle');
32
31
  }
33
32
  }
34
33
  }
35
34
 
36
35
  jdJumpToMiniPage(pageUrl, logEventInfo, type = 'navigateTo') {
37
36
  this.jdNavigateToNative(
38
37
  pageUrl,
39
38
  logEventInfo,
40
39
  () => {
41
40
  console.log('JD.wxappext.goto');
42
41
  wx?.miniProgram[type] &&
43
42
  wx?.miniProgram[type]({
44
43
  url: pageUrl,
45
44
  });
46
45
  },
47
46
  () => {
48
47
  console.log('JD.wxappext.goto2');
49
48
  wx?.miniProgram[type] &&
50
49
  wx?.miniProgram[type]({
51
50
  url: pageUrl,
52
51
  });
53
52
  },
54
53
  );
55
54
  }
56
55
 
57
56
  jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
58
57
  console.log('web.wxapp.ts - jdJumpToTabAllProduct');
59
58
  if (typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId;
60
59
  if (typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId;
61
60
  if (this.jingGouMiniState) {
62
61
  const param = {
63
62
  shopId,
64
63
  venderId,
65
64
  tabActive: SECTION_HOME_TAB_NAME_TYPE[SECTION_HOME_TAB_TYPE.HOME_PRODUCT],
66
65
  };
67
66
  const url = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(param)}`;
68
67
  this.jdJumpToMiniPage(url, logEventInfo);
69
68
  } else {
70
69
  super.jdJumpToTabAllProduct(shopId, venderId, logEventInfo);
71
70
  }
72
71
  }
73
72
 
74
73
  jdJumpToTopTabBase(type, shopInfo = {}) {
75
74
  const getInfo = Object.assign(
76
75
  {},
77
76
  {
78
77
  shopId: global.info.queryInfo.shopId,
79
78
  venderId: global.info.queryInfo.venderId,
80
79
  },
81
80
  shopInfo,
82
81
  );
83
82
  if (this.jingGouMiniState) {
84
83
  const { shopId, venderId, ...otherInfo } = getInfo;
85
84
  const param = {
86
85
  shopId,
87
86
  venderId,
88
87
  tabActive: type,
89
88
  };
90
89
  const url = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(param)}`;
91
90
  this.jdJumpToMiniPage(url, otherInfo);
92
91
  } else {
93
92
  super.jdJumpToTopTabBase(type, shopInfo);
94
93
  }
95
94
  }
96
95
 
97
96
  jdJumpToWeb(url, logEventInfo) {
98
97
  console.log('web.wxapp.ts - jdJumpToWeb', url);
99
98
  console.log('jingGouMiniState', this.jingGouMiniState);
100
99
  if (this.jingGouMiniState) {
101
100
  const encodeUrl = `${this.jumpMiniPath.h5}?encode_url=${encodeURIComponent(url)}`;
102
101
  this.jdJumpToMiniPage(encodeUrl, logEventInfo);
103
102
  } else {
104
103
  super.jdJumpToWeb(url, logEventInfo);
105
104
  }
106
105
  }
107
106
 
108
107
  jdJumpToWebInner(url, logEventInfo) {
109
108
  super.jdJumpToWeb(url, logEventInfo);
110
109
  }
111
110
 
112
111
  jdJumpToProduct(skuIds, logEventInfo) {
113
112
  if (this.jingGouMiniState) {
114
113
  const detailUrl = `${this.jumpMiniPath.detail}?sku=${skuIds}`;
115
114
  this.jdJumpToMiniPage(detailUrl, logEventInfo);
116
115
  } else {
117
116
  super.jdJumpToProduct(skuIds, logEventInfo);
118
117
  }
119
118
  }
120
119
 
121
120
  jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
122
121
  const getSkuId = skuInfo?.skuId;
123
122
  this.jdJumpToProduct(getSkuId, logEventInfo);
124
123
  }
125
124
 
126
125
  jdJumpToShopHome(params) {
127
126
  console.log('[降级H5] jdJumpToShopHome web.wxapp', params);
128
127
  console.log(
129
128
  'global.info.queryInfo.shopId',
130
129
  global.info.queryInfo.shopId,
131
130
  global.info.queryInfo.venderId,
132
131
  );
133
132
  const getInfo = Object.assign(
134
133
  {},
135
134
  {
136
135
  shopId: global.info.queryInfo.shopId,
137
136
  venderId: global.info.queryInfo.venderId,
138
137
  },
139
138
  params,
140
139
  );
141
140
  const { type = 'navigateTo', ...otherShopInfo } = getInfo;
142
141
  if (this.jingGouMiniState) {
143
142
  let shopUrl = `${this.jumpMiniPath.shopx}${window.location.search}`;
144
143
  if (
145
144
  /(\/shop\/(samCenter|samCard))|(\/sale\/home)|(\/favorite)/.test(window.location.pathname)
146
145
  ) {
147
146
  shopUrl = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(
148
147
  this.getShopIdsInfo(otherShopInfo),
149
148
  )}`;
150
149
  }
151
150
  this.jdJumpToMiniPage(shopUrl, otherShopInfo, type);
152
151
  } else {
153
152
  super.jdJumpToShopHome(otherShopInfo);
154
153
  }
155
154
  }
156
155
 
157
156
  jdJumpToShopCategory(params) {
158
157
  console.log('[降级H5] jdJumpToShopCategory web.wxapp');
159
158
  const { type = 'navigateTo', ...otherShopInfo } = params;
160
159
  console.log('获取分类跳转参数', params);
161
160
  if (this.jingGouMiniState) {
162
161
  this.jdJumpToTopTabBase('classify', otherShopInfo);
163
162
  } else {
164
163
  super.jdJumpToShopCategory(otherShopInfo);
165
164
  }
166
165
  }
167
166
 
168
167
  jdJumpToLive(liveInfo, logEventInfo = {}) {
169
168
  if (liveInfo?.liveId) {
170
169
  if (this.jingGouMiniState && liveInfo?.openWxappToLiveRoom) {
171
170
  this.jdJumpToMiniPage(`${this.jumpMiniPath.jdLive}?liveId=${liveInfo.liveId}&origin=473`, {
172
171
  logEventInfo,
173
172
  });
174
173
  } else {
175
174
  this.jdJumpToWeb(
176
175
  `${this.jumpWebUrl.mLive}/${liveInfo.liveId}?${
177
176
  this.jingGouMiniState ? 'origin=0&appid=jdgw' : 'origin=30'
178
177
  }`,
179
178
  logEventInfo,
180
179
  );
181
180
  }
182
181
  }
183
182
  }
184
183
 
185
184
  jdJumpToShopLight(shopInfo) {
186
185
  if (this.jingGouMiniState) {
187
186
  this.jdJumpToMiniPage(
188
187
  `${this.jumpMiniPath.shopLight}?${objectToUrlEncode(
189
188
  this.getShopIdOrVenderIdParams(shopInfo),
190
189
  )}`,
191
190
  {
192
191
  ...shopInfo,
193
192
  },
194
193
  );
195
194
  } else {
196
195
  this.jdNavigateToNative(
197
196
  `${this.jumpWebUrl.shopLight}?${objectToUrlEncode(
198
197
  this.getShopIdOrVenderIdParams(shopInfo),
199
198
  )}`,
200
199
  {
201
200
  ...shopInfo,
202
201
  },
203
202
  );
204
203
  }
205
204
  }
206
205
  jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
207
206
  if (this.jingGouMiniState) {
208
207
  const detailUrl = `${this.jumpMiniPath.searchCoupon}?batch=${couponId}`;
209
208
  this.jdJumpToMiniPage(detailUrl, logEventInfo);
210
209
  } else {
211
210
  super.jdJumpToCouponSearchProductList(couponId, logEventInfo);
212
211
  }
213
212
  }
213
+ import global from '../common';
214
214
  objectToUrlEncode,
215
215
  isH5AndJingGouMini,
216
216
  isAscfApp,
217
217
  public jingGouMiniState: boolean;
218
218
  private isH5OpenToWxapp: boolean;
219
219
  constructor(opt) {
220
220
  super(opt);
221
221
  this.jingGouMiniState = false;
222
222
  this.getConfig(opt);
223
223
  console.log('window.shopGlobalSwitch:', JSON.stringify(window.shopGlobalSwitch));
224
224
  this.isH5OpenToWxapp = window.shopGlobalSwitch?.openMobileShopToWxApp == 'true';
225
225
  this.init();
226
226
  }
227
227
  getConfig(opt) {
228
228
  return Object.assign(this, {}, defaultConfig, super.getConfig(opt), opt);
229
229
  }
230
230
 
231
231
 
232
232
  async init() {
233
233
  if (window.isJingGouMiniViewState) {
234
234
  this.jingGouMiniState = true;
235
235
  } else {
236
236
  console.log('初始化进行小程序环境检查, 当前是否是京购小程序里的H5', isH5AndJingGouMini);
237
237
  if ((isH5AndJingGouMini || isAscfApp) && this.isH5OpenToWxapp) {
238
238
  console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的if');
239
239
  this.jingGouMiniState = true;
240
240
  window.isJingGouMiniViewState = true;
241
241
  console.log('进入了 iwx?.miniProgram then 但是没有继续跳转的逻辑 ');
242
242
  global.info.isJingGouMiniViewState = true;
243
243
  } else {
244
244
  console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的esle');
245
245
  }
246
246
  }
247
247
  }
248
248
 
249
249
  jdJumpToMiniPage(pageUrl, logEventInfo, type = 'navigateTo') {
250
250
  this.jdNavigateToNative(
251
251
  pageUrl,
252
252
  logEventInfo,
253
253
  () => {
254
254
  console.log('JD.wxappext.goto');
255
255
  if (window?.wx && window?.wx?.miniProgram[type]) {
256
256
  wx?.miniProgram[type]({
257
257
  url: pageUrl,
258
258
  });
259
259
  } else if (window?.has && window?.has.ascfweb && window?.has.ascfweb[type]) {
260
260
  has.ascfweb[type]({
261
261
  url: pageUrl,
262
262
  });
263
263
  }
264
264
  },
265
265
  () => {
266
266
  console.log('JD.wxappext.goto2');
267
267
  if (window?.wx && window?.wx?.miniProgram[type]) {
268
268
  wx?.miniProgram[type]({
269
269
  url: pageUrl,
270
270
  });
271
271
  } else if (window?.has && window?.has.ascfweb && window?.has.ascfweb[type]) {
272
272
  has.ascfweb[type]({
273
273
  url: pageUrl,
274
274
  });
275
275
  }
276
276
  },
277
277
  );
278
278
  }
279
279
 
280
280
  jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
281
281
  console.log('web.wxapp.ts - jdJumpToTabAllProduct');
282
282
  if (typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId;
283
283
  if (typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId;
284
284
  if (this.jingGouMiniState) {
285
285
  const param = {
286
286
  shopId,
287
287
  venderId,
288
288
  tabActive: SECTION_HOME_TAB_NAME_TYPE[SECTION_HOME_TAB_TYPE.HOME_PRODUCT],
289
289
  };
290
290
  const url = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(param)}`;
291
291
  this.jdJumpToMiniPage(url, logEventInfo);
292
292
  } else {
293
293
  super.jdJumpToTabAllProduct(shopId, venderId, logEventInfo);
294
294
  }
295
295
  }
296
296
 
297
297
  jdJumpToTopTabBase(type, shopInfo = {}) {
298
298
  const getInfo = Object.assign(
299
299
  {},
300
300
  {
301
301
  shopId: global.info.queryInfo.shopId,
302
302
  venderId: global.info.queryInfo.venderId,
303
303
  },
304
304
  shopInfo,
305
305
  );
306
306
  if (this.jingGouMiniState) {
307
307
  const { shopId, venderId, ...otherInfo } = getInfo;
308
308
  const param = {
309
309
  shopId,
310
310
  venderId,
311
311
  tabActive: type,
312
312
  };
313
313
  const url = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(param)}`;
314
314
  this.jdJumpToMiniPage(url, otherInfo);
315
315
  } else {
316
316
  super.jdJumpToTopTabBase(type, shopInfo);
317
317
  }
318
318
  }
319
319
 
320
320
  jdJumpToWeb(url, logEventInfo) {
321
321
  console.log('web.wxapp.ts - jdJumpToWeb', url);
322
322
  console.log('jingGouMiniState', this.jingGouMiniState);
323
323
  if (this.jingGouMiniState) {
324
324
  const encodeUrl = `${this.jumpMiniPath.h5}?encode_url=${encodeURIComponent(url)}`;
325
325
  this.jdJumpToMiniPage(encodeUrl, logEventInfo);
326
326
  } else {
327
327
  super.jdJumpToWeb(url, logEventInfo);
328
328
  }
329
329
  }
330
330
 
331
331
  jdJumpToWebInner(url, logEventInfo) {
332
332
  super.jdJumpToWeb(url, logEventInfo);
333
333
  }
334
334
 
335
335
  jdJumpToProduct(skuIds, logEventInfo) {
336
336
  if (this.jingGouMiniState) {
337
337
  const detailUrl = `${this.jumpMiniPath.detail}?sku=${skuIds}`;
338
338
  this.jdJumpToMiniPage(detailUrl, logEventInfo);
339
339
  } else {
340
340
  super.jdJumpToProduct(skuIds, logEventInfo);
341
341
  }
342
342
  }
343
343
 
344
344
  jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
345
345
  const getSkuId = skuInfo?.skuId;
346
346
  this.jdJumpToProduct(getSkuId, logEventInfo);
347
347
  }
348
348
 
349
349
  jdJumpToCartPage(logEventInfo) {
350
350
  console.log('跳转到购物车页面', logEventInfo);
351
351
  }
352
352
 
353
353
  jdJumpToShopHome(shopInfo) {
354
354
  console.log('[降级H5] jdJumpToShopHome web.wxapp', shopInfo);
355
355
  console.log(
356
356
  'global.info.queryInfo.shopId',
357
357
  global.info.queryInfo.shopId,
358
358
  global.info.queryInfo.venderId,
359
359
  );
360
360
  const currentShopInfo = {
361
361
  shopId: global.info.queryInfo.shopId,
362
362
  venderId: global.info.queryInfo.venderId,
363
363
  };
364
364
  const restParams =
365
365
  (shopInfo?.shopId && shopInfo.shopId !== currentShopInfo.shopId) ||
366
366
  (shopInfo?.venderId && shopInfo.venderId !== currentShopInfo.venderId)
367
367
  ? {}
368
368
  : currentShopInfo;
369
369
  const getInfo = Object.assign({}, restParams, shopInfo);
370
370
  const { type = 'navigateTo', ...otherShopInfo } = getInfo;
371
371
  if (this.jingGouMiniState) {
372
372
  let shopUrl = `${this.jumpMiniPath.shopx}${window.location.search}`;
373
373
  if (
374
374
  /(\/shop\/(samCenter|samCard))|(\/sale\/home)|(\/favorite)/.test(window.location.pathname)
375
375
  ) {
376
376
  shopUrl = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(
377
377
  this.getShopIdsInfo(otherShopInfo),
378
378
  )}`;
379
379
  }
380
380
  this.jdJumpToMiniPage(shopUrl, otherShopInfo, type);
381
381
  } else {
382
382
  super.jdJumpToShopHome(otherShopInfo);
383
383
  }
384
384
  }
385
385
 
386
386
  jdJumpToShopCategory(params) {
387
387
  console.log('[降级H5] jdJumpToShopCategory web.wxapp');
388
388
  const { type = 'navigateTo', ...otherShopInfo } = params;
389
389
  console.log('获取分类跳转参数', params);
390
390
  if (this.jingGouMiniState) {
391
391
  this.jdJumpToTopTabBase('classify', otherShopInfo);
392
392
  } else {
393
393
  super.jdJumpToShopCategory(otherShopInfo);
394
394
  }
395
395
  }
396
396
 
397
397
  jdJumpToLive(liveInfo, logEventInfo = {}) {
398
398
  if (liveInfo?.liveId) {
399
399
  if (this.jingGouMiniState && liveInfo?.openWxappToLiveRoom) {
400
400
  this.jdJumpToMiniPage(`${this.jumpMiniPath.jdLive}?liveId=${liveInfo.liveId}&origin=473`, {
401
401
  logEventInfo,
402
402
  });
403
403
  } else {
404
404
  this.jdJumpToWeb(
405
405
  `${this.jumpWebUrl.mLive}/${liveInfo.liveId}?${
406
406
  this.jingGouMiniState ? 'origin=0&appid=jdgw' : 'origin=30'
407
407
  }`,
408
408
  logEventInfo,
409
409
  );
410
410
  }
411
411
  }
412
412
  }
413
413
 
414
414
  jdJumpToShopLight(shopInfo) {
415
415
  if (this.jingGouMiniState) {
416
416
  this.jdJumpToMiniPage(
417
417
  `${this.jumpMiniPath.shopLight}?${objectToUrlEncode(
418
418
  this.getShopIdOrVenderIdParams(shopInfo),
419
419
  )}`,
420
420
  {
421
421
  ...shopInfo,
422
422
  },
423
423
  );
424
424
  } else {
425
425
  this.jdNavigateToNative(
426
426
  `${this.jumpWebUrl.shopLight}?${objectToUrlEncode(
427
427
  this.getShopIdOrVenderIdParams(shopInfo),
428
428
  )}`,
429
429
  {
430
430
  ...shopInfo,
431
431
  },
432
432
  );
433
433
  }
434
434
  }
435
435
  jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
436
436
  if (this.jingGouMiniState) {
437
437
  const detailUrl = `${this.jumpMiniPath.searchCoupon}?batch=${couponId}`;
438
438
  this.jdJumpToMiniPage(detailUrl, logEventInfo);
439
439
  } else {
440
440
  super.jdJumpToCouponSearchProductList(couponId, logEventInfo);
441
441
  }
442
442
  }
443
443
  jdJumpToOrderList(orderType, logEventInfo = {}) {
444
444
  if (this.jingGouMiniState) {
445
445
  const detailUrl = `${this.jumpMiniPath.orderList}?orderType=${orderType}&source=shopx`;
446
446
  this.jdJumpToMiniPage(detailUrl, logEventInfo);
447
447
  } else {
448
448
  super.jdJumpToOrderList(orderType, logEventInfo);
449
449
  }
450
450
  }
451
451
 
452
452
  jdJumpBack(logEventInfo) {
453
453
  if (this.jingGouMiniState) {
454
454
  this.jdJumpToMiniPage('', logEventInfo, 'navigateBack');
455
455
  } else {
456
456
  super.jdJumpBack(logEventInfo);
457
457
  }
458
458
  }