@conecli/cone-render 0.10.1-shop3.52 → 0.10.1-shop3.53
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/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/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.tsx +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.weapp.ts +1 -1
- package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.h5.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/jumpEventReport/web/report.ts +1 -1
- package/dist/jumpEventReport/web.base.ts +1 -1
- package/dist/jumpEventReport/web.jd.ts +1 -1
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/language/en_US.json +4 -0
- package/dist/language/zh_CN.json +4 -0
- package/dist/language/zh_HK.json +4 -0
- package/dist/utils/utils.ts +1 -1
- package/package.json +1 -1
|
@@ -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(shopInfo) {
|
|
127
126
|
console.log('[降级H5] jdJumpToShopHome web.wxapp', shopInfo);
|
|
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 currentShopInfo = {
|
|
134
133
|
shopId: global.info.queryInfo.shopId,
|
|
135
134
|
venderId: global.info.queryInfo.venderId,
|
|
136
135
|
};
|
|
137
136
|
const restParams =
|
|
138
137
|
(shopInfo?.shopId && shopInfo.shopId !== currentShopInfo.shopId) ||
|
|
139
138
|
(shopInfo?.venderId && shopInfo.venderId !== currentShopInfo.venderId)
|
|
140
139
|
? {}
|
|
141
140
|
: currentShopInfo;
|
|
142
141
|
const getInfo = Object.assign({}, restParams, shopInfo);
|
|
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 (
|
|
147
146
|
/(\/shop\/(samCenter|samCard))|(\/sale\/home)|(\/favorite)/.test(window.location.pathname)
|
|
148
147
|
) {
|
|
149
148
|
shopUrl = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(
|
|
150
149
|
this.getShopIdsInfo(otherShopInfo),
|
|
151
150
|
)}`;
|
|
152
151
|
}
|
|
153
152
|
this.jdJumpToMiniPage(shopUrl, otherShopInfo, type);
|
|
154
153
|
} else {
|
|
155
154
|
super.jdJumpToShopHome(otherShopInfo);
|
|
156
155
|
}
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
jdJumpToShopCategory(params) {
|
|
160
159
|
console.log('[降级H5] jdJumpToShopCategory web.wxapp');
|
|
161
160
|
const { type = 'navigateTo', ...otherShopInfo } = params;
|
|
162
161
|
console.log('获取分类跳转参数', params);
|
|
163
162
|
if (this.jingGouMiniState) {
|
|
164
163
|
this.jdJumpToTopTabBase('classify', otherShopInfo);
|
|
165
164
|
} else {
|
|
166
165
|
super.jdJumpToShopCategory(otherShopInfo);
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
168
|
|
|
170
169
|
jdJumpToLive(liveInfo, logEventInfo = {}) {
|
|
171
170
|
if (liveInfo?.liveId) {
|
|
172
171
|
if (this.jingGouMiniState && liveInfo?.openWxappToLiveRoom) {
|
|
173
172
|
this.jdJumpToMiniPage(`${this.jumpMiniPath.jdLive}?liveId=${liveInfo.liveId}&origin=473`, {
|
|
174
173
|
logEventInfo,
|
|
175
174
|
});
|
|
176
175
|
} else {
|
|
177
176
|
this.jdJumpToWeb(
|
|
178
177
|
`${this.jumpWebUrl.mLive}/${liveInfo.liveId}?${
|
|
179
178
|
this.jingGouMiniState ? 'origin=0&appid=jdgw' : 'origin=30'
|
|
180
179
|
}`,
|
|
181
180
|
logEventInfo,
|
|
182
181
|
);
|
|
183
182
|
}
|
|
184
183
|
}
|
|
185
184
|
}
|
|
186
185
|
|
|
187
186
|
jdJumpToShopLight(shopInfo) {
|
|
188
187
|
if (this.jingGouMiniState) {
|
|
189
188
|
this.jdJumpToMiniPage(
|
|
190
189
|
`${this.jumpMiniPath.shopLight}?${objectToUrlEncode(
|
|
191
190
|
this.getShopIdOrVenderIdParams(shopInfo),
|
|
192
191
|
)}`,
|
|
193
192
|
{
|
|
194
193
|
...shopInfo,
|
|
195
194
|
},
|
|
196
195
|
);
|
|
197
196
|
} else {
|
|
198
197
|
this.jdNavigateToNative(
|
|
199
198
|
`${this.jumpWebUrl.shopLight}?${objectToUrlEncode(
|
|
200
199
|
this.getShopIdOrVenderIdParams(shopInfo),
|
|
201
200
|
)}`,
|
|
202
201
|
{
|
|
203
202
|
...shopInfo,
|
|
204
203
|
},
|
|
205
204
|
);
|
|
206
205
|
}
|
|
207
206
|
}
|
|
208
207
|
jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
|
|
209
208
|
if (this.jingGouMiniState) {
|
|
210
209
|
const detailUrl = `${this.jumpMiniPath.searchCoupon}?batch=${couponId}`;
|
|
211
210
|
this.jdJumpToMiniPage(detailUrl, logEventInfo);
|
|
212
211
|
} else {
|
|
213
212
|
super.jdJumpToCouponSearchProductList(couponId, logEventInfo);
|
|
214
213
|
}
|
|
215
214
|
}
|
|
215
|
+
import global from '../common';
|
|
216
216
|
objectToUrlEncode,
|
|
217
217
|
isH5AndJingGouMini,
|
|
218
218
|
public jingGouMiniState: boolean;
|
|
219
219
|
private isH5OpenToWxapp: boolean;
|
|
220
220
|
constructor(opt) {
|
|
221
221
|
super(opt);
|
|
222
222
|
this.jingGouMiniState = false;
|
|
223
223
|
this.getConfig(opt);
|
|
224
224
|
console.log('window.shopGlobalSwitch:', JSON.stringify(window.shopGlobalSwitch));
|
|
225
225
|
this.isH5OpenToWxapp = window.shopGlobalSwitch?.openMobileShopToWxApp == 'true';
|
|
226
226
|
this.init();
|
|
227
227
|
}
|
|
228
228
|
getConfig(opt) {
|
|
229
229
|
return Object.assign(this, {}, defaultConfig, super.getConfig(opt), opt);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
|
|
233
233
|
async init() {
|
|
234
234
|
if (window.isJingGouMiniViewState) {
|
|
235
235
|
this.jingGouMiniState = true;
|
|
236
236
|
} else {
|
|
237
237
|
console.log('初始化进行小程序环境检查, 当前是否是京购小程序里的H5', isH5AndJingGouMini);
|
|
238
238
|
if (isH5AndJingGouMini && this.isH5OpenToWxapp) {
|
|
239
239
|
console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的if');
|
|
240
240
|
this.jingGouMiniState = true;
|
|
241
241
|
window.isJingGouMiniViewState = true;
|
|
242
242
|
console.log('进入了 iwx?.miniProgram then 但是没有继续跳转的逻辑 ');
|
|
243
243
|
global.info.isJingGouMiniViewState = true;
|
|
244
244
|
} else {
|
|
245
245
|
console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的esle');
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
jdJumpToMiniPage(pageUrl, logEventInfo, type = 'navigateTo') {
|
|
251
251
|
this.jdNavigateToNative(
|
|
252
252
|
pageUrl,
|
|
253
253
|
logEventInfo,
|
|
254
254
|
() => {
|
|
255
255
|
console.log('JD.wxappext.goto');
|
|
256
256
|
wx?.miniProgram[type] &&
|
|
257
257
|
wx?.miniProgram[type]({
|
|
258
258
|
url: pageUrl,
|
|
259
259
|
});
|
|
260
260
|
},
|
|
261
261
|
() => {
|
|
262
262
|
console.log('JD.wxappext.goto2');
|
|
263
263
|
wx?.miniProgram[type] &&
|
|
264
264
|
wx?.miniProgram[type]({
|
|
265
265
|
url: pageUrl,
|
|
266
266
|
});
|
|
267
267
|
},
|
|
268
268
|
);
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
|
|
272
272
|
console.log('web.wxapp.ts - jdJumpToTabAllProduct');
|
|
273
273
|
if (typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId;
|
|
274
274
|
if (typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId;
|
|
275
275
|
if (this.jingGouMiniState) {
|
|
276
276
|
const param = {
|
|
277
277
|
shopId,
|
|
278
278
|
venderId,
|
|
279
279
|
tabActive: SECTION_HOME_TAB_NAME_TYPE[SECTION_HOME_TAB_TYPE.HOME_PRODUCT],
|
|
280
280
|
};
|
|
281
281
|
const url = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(param)}`;
|
|
282
282
|
this.jdJumpToMiniPage(url, logEventInfo);
|
|
283
283
|
} else {
|
|
284
284
|
super.jdJumpToTabAllProduct(shopId, venderId, logEventInfo);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
jdJumpToTopTabBase(type, shopInfo = {}) {
|
|
289
289
|
const getInfo = Object.assign(
|
|
290
290
|
{},
|
|
291
291
|
{
|
|
292
292
|
shopId: global.info.queryInfo.shopId,
|
|
293
293
|
venderId: global.info.queryInfo.venderId,
|
|
294
294
|
},
|
|
295
295
|
shopInfo,
|
|
296
296
|
);
|
|
297
297
|
if (this.jingGouMiniState) {
|
|
298
298
|
const { shopId, venderId, ...otherInfo } = getInfo;
|
|
299
299
|
const param = {
|
|
300
300
|
shopId,
|
|
301
301
|
venderId,
|
|
302
302
|
tabActive: type,
|
|
303
303
|
};
|
|
304
304
|
const url = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(param)}`;
|
|
305
305
|
this.jdJumpToMiniPage(url, otherInfo);
|
|
306
306
|
} else {
|
|
307
307
|
super.jdJumpToTopTabBase(type, shopInfo);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
jdJumpToWeb(url, logEventInfo) {
|
|
312
312
|
console.log('web.wxapp.ts - jdJumpToWeb', url);
|
|
313
313
|
console.log('jingGouMiniState', this.jingGouMiniState);
|
|
314
314
|
if (this.jingGouMiniState) {
|
|
315
315
|
const encodeUrl = `${this.jumpMiniPath.h5}?encode_url=${encodeURIComponent(url)}`;
|
|
316
316
|
this.jdJumpToMiniPage(encodeUrl, logEventInfo);
|
|
317
317
|
} else {
|
|
318
318
|
super.jdJumpToWeb(url, logEventInfo);
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
jdJumpToWebInner(url, logEventInfo) {
|
|
323
323
|
super.jdJumpToWeb(url, logEventInfo);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
jdJumpToProduct(skuIds, logEventInfo) {
|
|
327
327
|
if (this.jingGouMiniState) {
|
|
328
328
|
const detailUrl = `${this.jumpMiniPath.detail}?sku=${skuIds}`;
|
|
329
329
|
this.jdJumpToMiniPage(detailUrl, logEventInfo);
|
|
330
330
|
} else {
|
|
331
331
|
super.jdJumpToProduct(skuIds, logEventInfo);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
|
|
336
336
|
const getSkuId = skuInfo?.skuId;
|
|
337
337
|
this.jdJumpToProduct(getSkuId, logEventInfo);
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
jdJumpToCartPage(logEventInfo) {
|
|
341
341
|
console.log('跳转到购物车页面', logEventInfo);
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
jdJumpToShopHome(shopInfo) {
|
|
345
345
|
console.log('[降级H5] jdJumpToShopHome web.wxapp', shopInfo);
|
|
346
346
|
console.log(
|
|
347
347
|
'global.info.queryInfo.shopId',
|
|
348
348
|
global.info.queryInfo.shopId,
|
|
349
349
|
global.info.queryInfo.venderId,
|
|
350
350
|
);
|
|
351
351
|
const currentShopInfo = {
|
|
352
352
|
shopId: global.info.queryInfo.shopId,
|
|
353
353
|
venderId: global.info.queryInfo.venderId,
|
|
354
354
|
};
|
|
355
355
|
const restParams =
|
|
356
356
|
(shopInfo?.shopId && shopInfo.shopId !== currentShopInfo.shopId) ||
|
|
357
357
|
(shopInfo?.venderId && shopInfo.venderId !== currentShopInfo.venderId)
|
|
358
358
|
? {}
|
|
359
359
|
: currentShopInfo;
|
|
360
360
|
const getInfo = Object.assign({}, restParams, shopInfo);
|
|
361
361
|
const { type = 'navigateTo', ...otherShopInfo } = getInfo;
|
|
362
362
|
if (this.jingGouMiniState) {
|
|
363
363
|
let shopUrl = `${this.jumpMiniPath.shopx}${window.location.search}`;
|
|
364
364
|
if (
|
|
365
365
|
/(\/shop\/(samCenter|samCard))|(\/sale\/home)|(\/favorite)/.test(window.location.pathname)
|
|
366
366
|
) {
|
|
367
367
|
shopUrl = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(
|
|
368
368
|
this.getShopIdsInfo(otherShopInfo),
|
|
369
369
|
)}`;
|
|
370
370
|
}
|
|
371
371
|
this.jdJumpToMiniPage(shopUrl, otherShopInfo, type);
|
|
372
372
|
} else {
|
|
373
373
|
super.jdJumpToShopHome(otherShopInfo);
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
jdJumpToShopCategory(params) {
|
|
378
378
|
console.log('[降级H5] jdJumpToShopCategory web.wxapp');
|
|
379
379
|
const { type = 'navigateTo', ...otherShopInfo } = params;
|
|
380
380
|
console.log('获取分类跳转参数', params);
|
|
381
381
|
if (this.jingGouMiniState) {
|
|
382
382
|
this.jdJumpToTopTabBase('classify', otherShopInfo);
|
|
383
383
|
} else {
|
|
384
384
|
super.jdJumpToShopCategory(otherShopInfo);
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
jdJumpToLive(liveInfo, logEventInfo = {}) {
|
|
389
389
|
if (liveInfo?.liveId) {
|
|
390
390
|
if (this.jingGouMiniState && liveInfo?.openWxappToLiveRoom) {
|
|
391
391
|
this.jdJumpToMiniPage(`${this.jumpMiniPath.jdLive}?liveId=${liveInfo.liveId}&origin=473`, {
|
|
392
392
|
logEventInfo,
|
|
393
393
|
});
|
|
394
394
|
} else {
|
|
395
395
|
this.jdJumpToWeb(
|
|
396
396
|
`${this.jumpWebUrl.mLive}/${liveInfo.liveId}?${
|
|
397
397
|
this.jingGouMiniState ? 'origin=0&appid=jdgw' : 'origin=30'
|
|
398
398
|
}`,
|
|
399
399
|
logEventInfo,
|
|
400
400
|
);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
jdJumpToShopLight(shopInfo) {
|
|
406
406
|
if (this.jingGouMiniState) {
|
|
407
407
|
this.jdJumpToMiniPage(
|
|
408
408
|
`${this.jumpMiniPath.shopLight}?${objectToUrlEncode(
|
|
409
409
|
this.getShopIdOrVenderIdParams(shopInfo),
|
|
410
410
|
)}`,
|
|
411
411
|
{
|
|
412
412
|
...shopInfo,
|
|
413
413
|
},
|
|
414
414
|
);
|
|
415
415
|
} else {
|
|
416
416
|
this.jdNavigateToNative(
|
|
417
417
|
`${this.jumpWebUrl.shopLight}?${objectToUrlEncode(
|
|
418
418
|
this.getShopIdOrVenderIdParams(shopInfo),
|
|
419
419
|
)}`,
|
|
420
420
|
{
|
|
421
421
|
...shopInfo,
|
|
422
422
|
},
|
|
423
423
|
);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
|
|
427
427
|
if (this.jingGouMiniState) {
|
|
428
428
|
const detailUrl = `${this.jumpMiniPath.searchCoupon}?batch=${couponId}`;
|
|
429
429
|
this.jdJumpToMiniPage(detailUrl, logEventInfo);
|
|
430
430
|
} else {
|
|
431
431
|
super.jdJumpToCouponSearchProductList(couponId, logEventInfo);
|
|
432
432
|
}
|
|
433
433
|
}
|
package/dist/language/en_US.json
CHANGED
|
@@ -64,10 +64,12 @@
|
|
|
64
64
|
"birthdayGift": "会员生日礼",
|
|
65
65
|
"starMember": "_star",
|
|
66
66
|
"hotSearch": "Hot Search",
|
|
67
|
+
"sceneFeedsTryon": "Try it on me",
|
|
67
68
|
"tapAndReceive": "一键领取",
|
|
68
69
|
"joinGiftsDesc": "新会员专享,礼品有限,以实际使用为准",
|
|
69
70
|
"searchHistory": "Search History",
|
|
70
71
|
"validity": "Expiration Date",
|
|
72
|
+
"sceneFeedsMore": "More combinations",
|
|
71
73
|
"moreRights": "更多权益",
|
|
72
74
|
"upgradeSubMember": "Upgrade to Subscription Members",
|
|
73
75
|
"relatedMemberInfo": "关联会员信息",
|
|
@@ -82,6 +84,7 @@
|
|
|
82
84
|
"memberFilter": "Conditions",
|
|
83
85
|
"isCancelMemberContent": "You will miss out on exclusive benefits for premium members.",
|
|
84
86
|
"ensureBtnMsg": "Confirm",
|
|
87
|
+
"sceneFeedsButton": "Match buy",
|
|
85
88
|
"viewReplay": "View replay",
|
|
86
89
|
"moreRight": "更多权益敬请期待",
|
|
87
90
|
"receiveAndViewMoreRights": "领取并查看更多权益",
|
|
@@ -89,6 +92,7 @@
|
|
|
89
92
|
"failSubscribe": "Please retry later",
|
|
90
93
|
"noticeMsg": "请关注消息提醒",
|
|
91
94
|
"pageLoadFailed": "Page load failed, please try again later",
|
|
95
|
+
"sceneFeedsNoData": "Oh dear, the merchant hasn't published any bundling purchase data yet.",
|
|
92
96
|
"viewAvailableProducts": "查看可用商品",
|
|
93
97
|
"selectAll": "全选",
|
|
94
98
|
"noShopTip": "No shop available",
|
package/dist/language/zh_CN.json
CHANGED
|
@@ -64,10 +64,12 @@
|
|
|
64
64
|
"birthdayGift": "会员生日礼",
|
|
65
65
|
"starMember": "星会员",
|
|
66
66
|
"hotSearch": "热搜",
|
|
67
|
+
"sceneFeedsTryon": "点我试穿",
|
|
67
68
|
"tapAndReceive": "一键领取",
|
|
68
69
|
"joinGiftsDesc": "新会员专享,礼品有限,以实际使用为准",
|
|
69
70
|
"searchHistory": "搜索历史",
|
|
70
71
|
"validity": "有效期",
|
|
72
|
+
"sceneFeedsMore": "更多搭配",
|
|
71
73
|
"moreRights": "更多权益",
|
|
72
74
|
"upgradeSubMember": "升级成为品牌订阅会员",
|
|
73
75
|
"relatedMemberInfo": "关联会员信息",
|
|
@@ -82,6 +84,7 @@
|
|
|
82
84
|
"memberFilter": "条件",
|
|
83
85
|
"isCancelMemberContent": "你将错过超值会员专属福利",
|
|
84
86
|
"ensureBtnMsg": "确定",
|
|
87
|
+
"sceneFeedsButton": "搭配购",
|
|
85
88
|
"viewReplay": "查看回放",
|
|
86
89
|
"moreRight": "更多权益敬请期待",
|
|
87
90
|
"receiveAndViewMoreRights": "领取并查看更多权益",
|
|
@@ -89,6 +92,7 @@
|
|
|
89
92
|
"failSubscribe": "订阅失败,请稍后重试",
|
|
90
93
|
"noticeMsg": "请关注消息提醒",
|
|
91
94
|
"pageLoadFailed": "排队进场中,请稍后再试",
|
|
95
|
+
"sceneFeedsNoData": "哎呀,商家暂时未发布搭配购数据~",
|
|
92
96
|
"viewAvailableProducts": "查看可用商品",
|
|
93
97
|
"selectAll": "全选",
|
|
94
98
|
"noShopTip": "暂无店铺",
|
package/dist/language/zh_HK.json
CHANGED
|
@@ -64,10 +64,12 @@
|
|
|
64
64
|
"birthdayGift": "會員生日禮",
|
|
65
65
|
"starMember": "星會員",
|
|
66
66
|
"hotSearch": "熱搜",
|
|
67
|
+
"sceneFeedsTryon": "點我試穿",
|
|
67
68
|
"tapAndReceive": "一鍵領取",
|
|
68
69
|
"joinGiftsDesc": "新會員專享,禮品有限,以實際使用爲準",
|
|
69
70
|
"searchHistory": "搜索歷史",
|
|
70
71
|
"validity": "有效期",
|
|
72
|
+
"sceneFeedsMore": "更多搭配",
|
|
71
73
|
"moreRights": "更多權益",
|
|
72
74
|
"upgradeSubMember": "升級成爲品牌訂閱會員",
|
|
73
75
|
"relatedMemberInfo": "關聯會員信息",
|
|
@@ -82,6 +84,7 @@
|
|
|
82
84
|
"memberFilter": "條件",
|
|
83
85
|
"isCancelMemberContent": "你將錯過超值會員專屬福利",
|
|
84
86
|
"ensureBtnMsg": "確定",
|
|
87
|
+
"sceneFeedsButton": "搭配購",
|
|
85
88
|
"viewReplay": "查看回放",
|
|
86
89
|
"moreRight": "更多權益敬請期待",
|
|
87
90
|
"receiveAndViewMoreRights": "領取並查看更多權益",
|
|
@@ -89,6 +92,7 @@
|
|
|
89
92
|
"failSubscribe": "訂閱失敗,請稍後重試",
|
|
90
93
|
"noticeMsg": "請關注消息提醒",
|
|
91
94
|
"pageLoadFailed": "排隊進場中,請稍後再試",
|
|
95
|
+
"sceneFeedsNoData": "哎呀,商家暫時未發佈搭配購數據~",
|
|
92
96
|
"viewAvailableProducts": "查看可用商品",
|
|
93
97
|
"selectAll": "全選",
|
|
94
98
|
"noShopTip": "暫無店鋪",
|