@conecli/cone-render 0.10.1-beta.5 → 0.10.1-beta.6

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 (57) 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/common/pageType.ts +1 -1
  9. package/dist/common/sgmCustomCode.ts +1 -1
  10. package/dist/components/base/CountDown/index.module.scss +49 -44
  11. package/dist/components/base/CountDown/index.tsx +1 -1
  12. package/dist/components/base/CustomVideo/common.ts +1 -0
  13. package/dist/components/base/CustomVideo/index.tsx +1 -1
  14. package/dist/components/base/LazyLoadImage/index.h5.module.scss +11 -6
  15. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  16. package/dist/components/base/Price/Base/index.tsx +1 -1
  17. package/dist/components/base/Price/Double/index.module.scss +8 -0
  18. package/dist/components/base/Price/Double/index.tsx +1 -1
  19. package/dist/components/floorItem.tsx +1 -1
  20. package/dist/components/isv/Floor/index.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/index.jd.ts +1 -1
  26. package/dist/jumpEventReport/index.weapp.ts +1 -1
  27. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  28. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  29. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  30. package/dist/jumpEventReport/web.base.ts +1 -1
  31. package/dist/jumpEventReport/web.jd.ts +1 -1
  32. package/dist/jumpEventReport/web.jdb.ts +1 -1
  33. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  34. package/dist/jumpEventReport/web.jxwxapp.ts +1 -1
  35. package/dist/jumpEventReport/web.pc.ts +1 -1
  36. package/dist/jumpEventReport/web.tjapp.ts +1 -1
  37. package/dist/jumpEventReport/web.tjm.ts +1 -1
  38. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  39. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  40. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  41. package/dist/open/api/util.ts +1 -1
  42. package/dist/sass/base.scss +142 -141
  43. package/dist/service/fetchGateway.ts +1 -1
  44. package/dist/service/http/colorSign.ts +1 -1
  45. package/dist/service/http/h5Http.ts +1 -0
  46. package/dist/service/http/index.h5.ts +1 -0
  47. package/dist/service/requestServer.h5.ts +1 -0
  48. package/dist/service/requestServer.ts +1 -1
  49. package/dist/utils/connectNativeJsBridge.ts +1 -1
  50. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  51. package/dist/utils/h5Utils.ts +1 -1
  52. package/dist/utils/index.h5.ts +1 -1
  53. package/dist/utils/index.ts +1 -1
  54. package/dist/utils/index.weapp.ts +1 -1
  55. package/dist/utils/utils.ts +1 -1
  56. package/package.json +35 -29
  57. package/dist/utils/memberFormatUtils.js +0 -1
@@ -1 +1 @@
1
- import {JdJumpJdApp} from './jdJumpJdApp'
2
1
  routerInfo: {
3
2
  params: {},
4
3
  },
5
4
  nativeEvent: null,
6
5
  jumpConfig: {
7
6
  venderId: null,
8
7
  shopId: null,
9
8
  sourceValue: '',
10
9
  sourceType: 'App-H5',
11
10
  activityType: 'shopx',
12
11
  moduleId: 'none',
13
12
  entrance: 'none',
14
13
  },
15
14
  logPageParamStr: '',
16
15
  public logPageId: string
17
16
  public jumpConfig: JumpEventReportInterFace.JumpH5ReportConfig
18
17
  constructor(opt = {}) {
19
18
  console.log('jdb加载==========')
20
19
  super(opt)
21
20
  this.getConfig(opt)
22
21
  }
23
22
  jdbOpenAppParams(openAppUrl): Object | boolean {
24
23
  let getParams: boolean | Object = false
25
24
  if (this.isOpenJdbAppUrl(openAppUrl)) {
26
25
  try {
27
26
  getParams = openAppUrl.replace(
28
27
  /openApp\.jdbmall:\/\/virtual\?params=/i,
29
28
  '',
30
29
  )
31
30
  getParams = JSON.parse(String(getParams))
32
31
  } catch (e) {
33
32
  console.log(e)
34
33
  }
35
34
  }
36
35
  return getParams
37
36
  }
38
37
  isOpenJdbAppUrl(openAppUrl) {
39
38
  return /openApp\.jdbmall:\/\/virtual\?params=/i.test(openAppUrl)
40
39
  }
41
40
 
42
41
  async jdJumpConfigUrl(detail, logEventInfo = {}) {
43
42
  const {configDataType, configDataValue} = detail
44
43
  switch (configDataType) {
45
44
  case LinkConfigType.CONFIG_TYPE_SKU_LIST:
46
45
  this.jdJumpToProduct(
47
46
  {
48
47
  ...configDataValue,
49
48
  skuId: configDataValue.skuIds,
50
49
  skuUniformBizInfo: {buId: configDataValue.buId},
51
50
  },
52
51
  logEventInfo,
53
52
  )
54
53
  break
55
54
  case LinkConfigType.CONFIG_TYPE_CUSTOM_LINK: {
56
55
  const _url = configDataValue.linkUrl
57
56
  if (this.isOpenJdbAppUrl(_url)) {
58
57
  const getOpenAppParams = this.jdbOpenAppParams(_url)
59
58
  console.log('jd web 获取自定义链接解析后的参数结果', getOpenAppParams)
60
59
  if (getOpenAppParams) {
61
60
  this.jdNavigateToNative(
62
61
  Object.assign({}, getOpenAppParams, {
63
62
  logEventInfo,
64
63
  }),
65
64
  )
66
65
  }
67
66
  } else {
68
67
  const win = window.parent !== window ? window.parent : window;
69
68
  win.location.href = _url
70
69
  }
71
70
  break
72
71
  }
73
72
  default:
74
73
  }
75
74
  }
76
75
 
77
76
  jdJumpToProduct(skuParams, logEventInfo) {
78
77
  if (typeof skuParams !== 'object') {
79
78
  console.error('万商app跳转商品详情参数需要对象,详情请查看文档')
80
79
  return
81
80
  }
82
81
 
83
82
  let {skuId, bMallTag = '1', skuUniformBizInfo} = skuParams
84
83
  skuId = skuId.toString().trim()
85
84
  let url = 'https://b2b.m.jd'
86
85
  url = url + `.com/goods-detail/#/pages/index/index?skuId=${skuId}&bMallTag=${bMallTag}&skuSourceInfo=${encodeURIComponent(JSON.stringify(skuUniformBizInfo))}`
87
86
  if(/jdjchshopapp/i.test(navigator.userAgent)) {
88
87
  const {browser} = window['@jd/jdb-jssdk-b2b'] || {}
89
88
  if (browser) {
90
89
  browser.openPage({
91
90
  url,
92
91
  })
93
92
  }
94
93
  }else {
95
94
  const win = window.parent !== window ? window.parent : window;
96
95
  win.location.href = url
97
96
  }
98
97
  }
99
98
 
100
99
  jdNavigateToNative(
101
100
  params: {},
102
101
  url = OpenAppHost,
103
102
  successBack?: Function | null,
104
103
  failBack?: Function | null,
105
104
  ) {
106
105
  console.log('jdb web', params)
107
106
  const getResParams: JumpEventReportInterFace.JdMiniJumpParams =
108
107
  Object.assign(
109
108
  {},
110
109
  {
111
110
  param: {},
112
111
  },
113
112
  params,
114
113
  )
115
114
  const {logEventInfo, ...otherParams} = getResParams
116
115
  console.log(
117
116
  'jdb web 获取open协议参数 jdNavigateToNative params: ',
118
117
  otherParams,
119
118
  )
120
119
  console.log('logEventInfo params: ', logEventInfo)
121
120
  console.log('otherParams', otherParams)
122
121
  const paramsStr = JSON.stringify(otherParams)
123
122
  console.log('跳转web jdb open协议', `${url}?params=${paramsStr}`)
124
123
  global.info.pageInfo.dataType === BUSINESS_TYPE.ONLINE &&
125
124
  this.clickEventLog(logEventInfo || getResParams)
126
125
  .then(() => {
127
126
  if (typeof successBack == 'function') {
128
127
  successBack(getResParams)
129
128
  } else {
130
129
  try {
131
130
  const paramsStr = JSON.stringify(otherParams)
132
131
  console.log(
133
132
  'success: 跳转web jdb open协议',
134
133
  `${url}?params=${paramsStr}`,
135
134
  )
136
135
  window.location.href = `${url}?params=${paramsStr}`
137
136
  } catch (e) {
138
137
  console.log('跳转异常', e)
139
138
  }
140
139
  }
141
140
  })
142
141
  .catch((e) => {
143
142
  console.log('catch', e)
144
143
  typeof failBack == 'function' && failBack(getResParams)
145
144
  })
146
145
  }
147
146
 
148
147
  clickEventLog(
149
148
  opts: JumpEventReportInterFace.OptEventLogParams = {},
150
149
  reportKey = 'click',
151
150
  ) {
152
151
  const {eventId, jsonParam, eventLevel = 3, ...otherParams} = opts
153
152
  if (eventId && jsonParam) {
154
153
  const {etModelInfo, logBaseInfo} = jsonParam
155
154
  let getJsonParam = {}
156
155
  if (etModelInfo && logBaseInfo) {
157
156
  getJsonParam = logBaseInfo
158
157
  } else {
159
158
  if (Array.isArray(jsonParam)){
160
159
  getJsonParam = jsonParam
161
160
  } else {
162
161
  getJsonParam = Object.assign(
163
162
  {},
164
163
  {
165
164
  shopid: global.info.queryInfo?.shopId,
166
165
  },
167
166
  jsonParam,
168
167
  )
169
168
  }
170
169
  }
171
170
  const webLogParams = {
172
171
  eid: eventId,
173
172
  elevel: eventLevel,
174
173
  eparam: JSON.stringify(getJsonParam),
175
174
  jsonParam: JSON.stringify(getJsonParam),
176
175
  etModel: JSON.stringify(etModelInfo || {}),
177
176
  pageId: this.logPageId,
178
177
  pageParam: this.logPageParamStr,
179
178
  ...otherParams,
180
179
  }
181
180
  return /click|exposure/.test(reportKey)
182
181
  ? reportClick(webLogParams)
183
182
  : reportToCart(opts, webLogParams)
184
183
  } else {
185
184
  console.log('暂无埋点参数eventId和eventParam')
186
185
  return Promise.resolve(false)
187
186
  }
188
187
  }
189
188
  getConfig(opt = {}) {
190
189
  return Object.assign(this, {}, defaultConfig, opt)
191
190
  }
191
+ import {JdJumpJdApp} from './jdJumpJdApp'
192
192
  routerInfo: {
193
193
  params: {},
194
194
  },
195
195
  nativeEvent: null,
196
196
  jumpConfig: {
197
197
  venderId: null,
198
198
  shopId: null,
199
199
  sourceValue: '',
200
200
  sourceType: 'App-H5',
201
201
  activityType: 'shopx',
202
202
  moduleId: 'none',
203
203
  entrance: 'none',
204
204
  },
205
205
  logPageParamStr: '',
206
206
  public logPageId: string
207
207
  public jumpConfig: JumpEventReportInterFace.JumpH5ReportConfig
208
208
  constructor(opt = {}) {
209
209
  console.log('jdb加载==========')
210
210
  super(opt)
211
211
  this.getConfig(opt)
212
212
  }
213
213
  jdbOpenAppParams(openAppUrl): Object | boolean {
214
214
  let getParams: boolean | Object = false
215
215
  if (this.isOpenJdbAppUrl(openAppUrl)) {
216
216
  try {
217
217
  getParams = openAppUrl.replace(
218
218
  /openApp\.jdbmall:\/\/virtual\?params=/i,
219
219
  '',
220
220
  )
221
221
  getParams = JSON.parse(String(getParams))
222
222
  } catch (e) {
223
223
  console.log(e)
224
224
  }
225
225
  }
226
226
  return getParams
227
227
  }
228
228
  isOpenJdbAppUrl(openAppUrl) {
229
229
  return /openApp\.jdbmall:\/\/virtual\?params=/i.test(openAppUrl)
230
230
  }
231
231
 
232
232
  async jdJumpConfigUrl(detail, logEventInfo = {}) {
233
233
  const {configDataType, configDataValue} = detail
234
234
  switch (configDataType) {
235
235
  case LinkConfigType.CONFIG_TYPE_SKU_LIST:
236
236
  this.jdJumpToProduct(
237
237
  {
238
238
  ...configDataValue,
239
239
  skuId: configDataValue.skuIds,
240
240
  skuUniformBizInfo: {buId: configDataValue.buId},
241
241
  },
242
242
  logEventInfo,
243
243
  )
244
244
  break
245
245
  case LinkConfigType.CONFIG_TYPE_CUSTOM_LINK: {
246
246
  const _url = configDataValue.linkUrl
247
247
  if (this.isOpenJdbAppUrl(_url)) {
248
248
  const getOpenAppParams = this.jdbOpenAppParams(_url)
249
249
  console.log('jd web 获取自定义链接解析后的参数结果', getOpenAppParams)
250
250
  if (getOpenAppParams) {
251
251
  this.jdNavigateToNative(
252
252
  Object.assign({}, getOpenAppParams, {
253
253
  logEventInfo,
254
254
  }),
255
255
  )
256
256
  }
257
257
  } else {
258
258
  const win = window.parent !== window ? window.parent : window;
259
259
  win.location.href = _url
260
260
  }
261
261
  break
262
262
  }
263
263
  default:
264
264
  }
265
265
  }
266
266
 
267
267
  jdJumpToProduct(skuParams, logEventInfo) {
268
268
  if (typeof skuParams !== 'object') {
269
269
  console.error('万商app跳转商品详情参数需要对象,详情请查看文档')
270
270
  return
271
271
  }
272
272
 
273
273
  let {skuId, bMallTag = '1', skuUniformBizInfo} = skuParams
274
274
  skuId = skuId.toString().trim()
275
275
  let url = 'https://b2b.m.jd'
276
276
  url = url + `.com/goods-detail/#/pages/index/index?skuId=${skuId}&bMallTag=${bMallTag}&skuSourceInfo=${encodeURIComponent(JSON.stringify(skuUniformBizInfo))}`
277
277
  if(/jdjchshopapp/i.test(navigator.userAgent)) {
278
278
  const {browser} = window['@jd/jdb-jssdk-b2b'] || {}
279
279
  if (browser) {
280
280
  browser.openPage({
281
281
  url,
282
282
  })
283
283
  }
284
284
  }else {
285
285
  const win = window.parent !== window ? window.parent : window;
286
286
  win.location.href = url
287
287
  }
288
288
  }
289
289
 
290
290
  jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
291
291
  this.jdJumpToProduct(skuInfo, logEventInfo)
292
292
  }
293
293
 
294
294
  jdNavigateToNative(
295
295
  params: {},
296
296
  url = OpenAppHost,
297
297
  successBack?: Function | null,
298
298
  failBack?: Function | null,
299
299
  ) {
300
300
  console.log('jdb web', params)
301
301
  const getResParams: JumpEventReportInterFace.JdMiniJumpParams =
302
302
  Object.assign(
303
303
  {},
304
304
  {
305
305
  param: {},
306
306
  },
307
307
  params,
308
308
  )
309
309
  const {logEventInfo, ...otherParams} = getResParams
310
310
  console.log(
311
311
  'jdb web 获取open协议参数 jdNavigateToNative params: ',
312
312
  otherParams,
313
313
  )
314
314
  console.log('logEventInfo params: ', logEventInfo)
315
315
  console.log('otherParams', otherParams)
316
316
  const paramsStr = JSON.stringify(otherParams)
317
317
  console.log('跳转web jdb open协议', `${url}?params=${paramsStr}`)
318
318
  global.info.pageInfo.dataType === BUSINESS_TYPE.ONLINE &&
319
319
  this.clickEventLog(logEventInfo || getResParams)
320
320
  .then(() => {
321
321
  if (typeof successBack == 'function') {
322
322
  successBack(getResParams)
323
323
  } else {
324
324
  try {
325
325
  const paramsStr = JSON.stringify(otherParams)
326
326
  console.log(
327
327
  'success: 跳转web jdb open协议',
328
328
  `${url}?params=${paramsStr}`,
329
329
  )
330
330
  window.location.href = `${url}?params=${paramsStr}`
331
331
  } catch (e) {
332
332
  console.log('跳转异常', e)
333
333
  }
334
334
  }
335
335
  })
336
336
  .catch((e) => {
337
337
  console.log('catch', e)
338
338
  typeof failBack == 'function' && failBack(getResParams)
339
339
  })
340
340
  }
341
341
 
342
342
  clickEventLog(
343
343
  opts: JumpEventReportInterFace.OptEventLogParams = {},
344
344
  reportKey = 'click',
345
345
  ) {
346
346
  const {eventId, jsonParam, eventLevel = 3, ...otherParams} = opts
347
347
  if (eventId && jsonParam) {
348
348
  const {etModelInfo, logBaseInfo} = jsonParam
349
349
  let getJsonParam = {}
350
350
  if (etModelInfo && logBaseInfo) {
351
351
  getJsonParam = logBaseInfo
352
352
  } else {
353
353
  if (Array.isArray(jsonParam)){
354
354
  getJsonParam = jsonParam
355
355
  } else {
356
356
  getJsonParam = Object.assign(
357
357
  {},
358
358
  {
359
359
  shopid: global.info.queryInfo?.shopId,
360
360
  },
361
361
  jsonParam,
362
362
  )
363
363
  }
364
364
  }
365
365
  const webLogParams = {
366
366
  eid: eventId,
367
367
  elevel: eventLevel,
368
368
  eparam: JSON.stringify(getJsonParam),
369
369
  jsonParam: JSON.stringify(getJsonParam),
370
370
  etModel: JSON.stringify(etModelInfo || {}),
371
371
  pageId: this.logPageId,
372
372
  pageParam: this.logPageParamStr,
373
373
  ...otherParams,
374
374
  }
375
375
  return /click|exposure/.test(reportKey)
376
376
  ? reportClick(webLogParams)
377
377
  : reportToCart(opts, webLogParams)
378
378
  } else {
379
379
  console.log('暂无埋点参数eventId和eventParam')
380
380
  return Promise.resolve(false)
381
381
  }
382
382
  }
383
383
  getConfig(opt = {}) {
384
384
  return Object.assign(this, {}, defaultConfig, opt)
385
385
  }
@@ -1 +1 @@
1
- import global from '../common'
2
1
  isH5AdnJxMini,
3
2
  public jingXiMiniState: boolean
4
3
  constructor(opt) {
5
4
  super(opt)
6
5
  this.jingXiMiniState = false
7
6
  this.getConfig(opt)
8
7
  console.log(
9
8
  'window.shopGlobalSwitch:',
10
9
  JSON.stringify(window.shopGlobalSwitch),
11
10
  )
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
  async init() {
19
18
  if (window.isJingxiMiniViewState) {
20
19
  this.jingXiMiniState = true
21
20
  global.info.isJingxiMiniViewState = true
22
21
  } else {
23
22
  console.log(
24
23
  '初始化进行小程序环境检查, 当前是否是京喜小程序',
25
24
  isH5AdnJxMini
26
25
  )
27
26
  if (isH5AdnJxMini) {
28
27
  console.log('进入了 isH5AdnJxMini 的 else if')
29
28
  this.jingXiMiniState = true
30
29
  global.info.isJingxiMiniViewState = true
31
30
  window.isJingxiMiniViewState = true
32
31
  } else {
33
32
  console.log('进入了 this.isH5OpenToWxapp 的esle')
34
33
  }
35
34
  }
36
35
  }
37
36
 
38
37
  jdJumpToMiniPage(pageUrl, logEventInfo, type = 'navigateTo') {
39
38
  this.jdNavigateToNative(
40
39
  pageUrl,
41
40
  logEventInfo,
42
41
  () => {
43
42
  console.log('JD.wxappext.goto',pageUrl)
44
43
  wx?.miniProgram[type] &&
45
44
  wx?.miniProgram[type]({
46
45
  url: pageUrl,
47
46
  })
48
47
  },
49
48
  () => {
50
49
  console.log('JD.wxappext.goto2')
51
50
  wx?.miniProgram[type] &&
52
51
  wx?.miniProgram[type]({
53
52
  url: pageUrl,
54
53
  })
55
54
  },
56
55
  )
57
56
  }
58
57
 
59
58
  jdJumpToWebInner(url, logEventInfo) {
60
59
  super.jdJumpToWeb(url, logEventInfo)
61
60
  }
62
61
 
63
62
  jdJumpToProduct(skuIds, logEventInfo) {
64
63
  if (this.jingXiMiniState) {
65
64
  const detailUrl = `${this.jumpMiniPath.jxDetail}?sku=${skuIds}`
66
65
  this.jdJumpToMiniPage(detailUrl, logEventInfo)
67
66
  } else {
68
67
  super.jdJumpToProduct(skuIds, logEventInfo)
69
68
  }
70
69
  }
71
70
  jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
72
71
  if (this.jingXiMiniState) {
73
72
  const batchParam = `coupon_batch=${couponId}`
74
73
  const detailUrl = `${this.jumpMiniPath.jxCouponSearch}?${batchParam}`
75
74
  this.jdJumpToMiniPage(detailUrl, logEventInfo)
76
75
  } else {
77
76
  super.jdJumpToCouponSearchProductList(couponId, logEventInfo)
78
77
  }
79
78
  }
79
+ import global from '../common'
80
80
  isH5AdnJxMini,
81
81
  public jingXiMiniState: boolean
82
82
  constructor(opt) {
83
83
  super(opt)
84
84
  this.jingXiMiniState = false
85
85
  this.getConfig(opt)
86
86
  console.log(
87
87
  'window.shopGlobalSwitch:',
88
88
  JSON.stringify(window.shopGlobalSwitch),
89
89
  )
90
90
  this.init()
91
91
  }
92
92
  getConfig(opt) {
93
93
  return Object.assign(this, {}, defaultConfig, super.getConfig(opt), opt)
94
94
  }
95
95
 
96
96
  async init() {
97
97
  if (window.isJingxiMiniViewState) {
98
98
  this.jingXiMiniState = true
99
99
  global.info.isJingxiMiniViewState = true
100
100
  } else {
101
101
  console.log(
102
102
  '初始化进行小程序环境检查, 当前是否是京喜小程序',
103
103
  isH5AdnJxMini
104
104
  )
105
105
  if (isH5AdnJxMini) {
106
106
  console.log('进入了 isH5AdnJxMini 的 else if')
107
107
  this.jingXiMiniState = true
108
108
  global.info.isJingxiMiniViewState = true
109
109
  window.isJingxiMiniViewState = true
110
110
  } else {
111
111
  console.log('进入了 this.isH5OpenToWxapp 的esle')
112
112
  }
113
113
  }
114
114
  }
115
115
 
116
116
  jdJumpToMiniPage(pageUrl, logEventInfo, type = 'navigateTo') {
117
117
  this.jdNavigateToNative(
118
118
  pageUrl,
119
119
  logEventInfo,
120
120
  () => {
121
121
  console.log('JD.wxappext.goto',pageUrl)
122
122
  wx?.miniProgram[type] &&
123
123
  wx?.miniProgram[type]({
124
124
  url: pageUrl,
125
125
  })
126
126
  },
127
127
  () => {
128
128
  console.log('JD.wxappext.goto2')
129
129
  wx?.miniProgram[type] &&
130
130
  wx?.miniProgram[type]({
131
131
  url: pageUrl,
132
132
  })
133
133
  },
134
134
  )
135
135
  }
136
136
 
137
137
  jdJumpToWebInner(url, logEventInfo) {
138
138
  super.jdJumpToWeb(url, logEventInfo)
139
139
  }
140
140
 
141
141
  jdJumpToProduct(skuIds, logEventInfo) {
142
142
  if (this.jingXiMiniState) {
143
143
  const detailUrl = `${this.jumpMiniPath.jxDetail}?sku=${skuIds}`
144
144
  this.jdJumpToMiniPage(detailUrl, logEventInfo)
145
145
  } else {
146
146
  super.jdJumpToProduct(skuIds, logEventInfo)
147
147
  }
148
148
  }
149
149
 
150
150
  jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
151
151
  const getSkuId = skuInfo?.skuId;
152
152
  this.jdJumpToProduct(getSkuId, logEventInfo)
153
153
  }
154
154
  jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
155
155
  if (this.jingXiMiniState) {
156
156
  const batchParam = `coupon_batch=${couponId}`
157
157
  const detailUrl = `${this.jumpMiniPath.jxCouponSearch}?${batchParam}`
158
158
  this.jdJumpToMiniPage(detailUrl, logEventInfo)
159
159
  } else {
160
160
  super.jdJumpToCouponSearchProductList(couponId, logEventInfo)
161
161
  }
162
162
  }