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