@conecli/cone-render 0.10.1-shop3.5 → 0.10.1-shop3.51
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/README.md +1 -1
- package/dist/common/accessibility.h5.ts +1 -0
- package/dist/common/accessibility.ts +0 -0
- 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/common/jdplayerSdk.weapp.tsx +1 -0
- package/dist/common/jssdk.ts +1 -1
- package/dist/common/jssdk.weapp.ts +1 -0
- package/dist/common/pageType.ts +1 -1
- package/dist/common/token/index.h5.ts +1 -1
- package/dist/common/token/token.jd.ts +1 -1
- package/dist/common/wxappApi.ts +1 -1
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
- package/dist/components/base/CommonFloorHead/index.tsx +1 -1
- package/dist/components/base/CountDown/index.tsx +1 -1
- package/dist/components/base/CustomScrollView/index-back.tsx +1 -0
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/CustomVideo/index.tsx +1 -1
- package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
- package/dist/components/base/Dialog/index.module.scss +11 -0
- package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
- package/dist/components/base/InViewRender/index.tsx +1 -1
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +118 -72
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/base/Price/Base/index.module.scss +12 -0
- package/dist/components/base/Price/Base/index.tsx +1 -1
- package/dist/components/base/Price/Double/index.module.scss +24 -0
- package/dist/components/base/Price/Double/index.tsx +1 -1
- package/dist/components/debug/DebugLayout/index.module.scss +2 -2
- package/dist/components/floorItem.weapp.tsx +1 -1
- package/dist/interface/common.ts +1 -1
- package/dist/interface/component.ts +1 -1
- package/dist/interface/jumpEventReport.ts +1 -1
- package/dist/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/const.ts +1 -1
- package/dist/jumpEventReport/createReportFloorData.ts +1 -1
- package/dist/jumpEventReport/index.h5.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.h5.ts +1 -0
- 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.pc.ts +1 -1
- package/dist/jumpEventReport/web.tjm.ts +1 -1
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/language/en_US.json +231 -0
- package/dist/language/zh_CN.json +231 -0
- package/dist/language/zh_HK.json +231 -0
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -56
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +1 -1
- package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
- package/dist/open/api/environment.ts +1 -1
- package/dist/open/api/shopMember.ts +1 -1
- package/dist/open/api/shopMember.weapp.ts +1 -0
- package/dist/open/api/util.ts +1 -1
- package/dist/open/index.ts +1 -1
- package/dist/sass/app.h5.scss +278 -224
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/fetchGateway.weapp.ts +1 -0
- package/dist/service/fetchJsonp.weapp.ts +1 -0
- package/dist/service/http/colorSign.ts +1 -1
- package/dist/service/http/const.ts +1 -1
- package/dist/service/http/h5Http.ts +1 -1
- package/dist/service/http/httpInterceptors.weapp.ts +1 -0
- package/dist/service/requestServer.h5.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- package/dist/service/requestServer.weapp.ts +1 -0
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/h5Utils.ts +1 -1
- package/dist/utils/harmonyCallRouter.h5.ts +1 -0
- package/dist/utils/harmonyCallRouter.ts +0 -0
- 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/jumpExtMapUtil.h5.ts +1 -0
- package/dist/utils/jumpExtMapUtil.ts +1 -0
- package/dist/utils/log.ts +1 -0
- package/dist/utils/{sColor.js → sColor.ts} +1 -1
- package/dist/utils/sColor.weapp.ts +1 -0
- package/dist/utils/utils.ts +1 -1
- package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
- package/dist/wxapp/common/user_info.js +1 -1
- package/package.json +160 -141
- package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
- package/dist/utils/priceUtils.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
|
jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
|
|
133
132
|
const getSkuId = skuInfo?.skuId;
|
|
134
133
|
this.jdJumpToProduct(getSkuId, logEventInfo)
|
|
135
134
|
}
|
|
136
135
|
|
|
137
136
|
jdJumpToShopHome(params) {
|
|
138
137
|
console.log('[降级H5] jdJumpToShopHome web.wxapp', params)
|
|
139
138
|
console.log('global.info.queryInfo.shopId', global.info.queryInfo.shopId, global.info.queryInfo.venderId)
|
|
140
139
|
const getInfo = Object.assign(
|
|
141
140
|
{},
|
|
142
141
|
{
|
|
143
142
|
shopId: global.info.queryInfo.shopId,
|
|
144
143
|
venderId: global.info.queryInfo.venderId,
|
|
145
144
|
},
|
|
146
145
|
params,
|
|
147
146
|
)
|
|
148
147
|
const { type = 'navigateTo', ...otherShopInfo } = getInfo
|
|
149
148
|
if (this.jingGouMiniState) {
|
|
150
149
|
let shopUrl = `${this.jumpMiniPath.shopx}${window.location.search}`
|
|
151
150
|
if (/(\/shop\/(samCenter|samCard))|(\/sale\/home)|(\/favorite)/.test(window.location.pathname)) {
|
|
152
151
|
shopUrl = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(
|
|
153
152
|
this.getShopIdsInfo(otherShopInfo),
|
|
154
153
|
)}`
|
|
155
154
|
}
|
|
156
155
|
this.jdJumpToMiniPage(shopUrl, otherShopInfo, type)
|
|
157
156
|
} else {
|
|
158
157
|
super.jdJumpToShopHome(otherShopInfo)
|
|
159
158
|
}
|
|
160
159
|
}
|
|
161
160
|
|
|
162
161
|
jdJumpToShopCategory(params) {
|
|
163
162
|
console.log('[降级H5] jdJumpToShopCategory web.wxapp')
|
|
164
163
|
const { type = 'navigateTo', ...otherShopInfo } = params
|
|
165
164
|
console.log("获取分类跳转参数", params)
|
|
166
165
|
if (this.jingGouMiniState) {
|
|
167
166
|
this.jdJumpToTopTabBase('classify',otherShopInfo)
|
|
168
167
|
} else {
|
|
169
168
|
super.jdJumpToShopCategory(otherShopInfo)
|
|
170
169
|
}
|
|
171
170
|
}
|
|
172
171
|
|
|
173
172
|
jdJumpToLive(liveInfo, logEventInfo = {}) {
|
|
174
173
|
if (liveInfo?.liveId) {
|
|
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
|
jdJumpToShopLight(shopInfo) {
|
|
185
184
|
if (this.jingGouMiniState) {
|
|
186
185
|
this.jdJumpToMiniPage(
|
|
187
186
|
`${this.jumpMiniPath.shopLight}?${objectToUrlEncode(
|
|
188
187
|
this.getShopIdOrVenderIdParams(shopInfo),
|
|
189
188
|
)}`,
|
|
190
189
|
{
|
|
191
190
|
...shopInfo,
|
|
192
191
|
},
|
|
193
192
|
)
|
|
194
193
|
} else {
|
|
195
194
|
this.jdNavigateToNative(
|
|
196
195
|
`${this.jumpWebUrl.shopLight}?${objectToUrlEncode(
|
|
197
196
|
this.getShopIdOrVenderIdParams(shopInfo),
|
|
198
197
|
)}`,
|
|
199
198
|
{
|
|
200
199
|
...shopInfo,
|
|
201
200
|
},
|
|
202
201
|
)
|
|
203
202
|
}
|
|
204
203
|
}
|
|
205
204
|
jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
|
|
206
205
|
if (this.jingGouMiniState) {
|
|
207
206
|
const detailUrl = `${this.jumpMiniPath.searchCoupon}?batch=${couponId}`
|
|
208
207
|
this.jdJumpToMiniPage(detailUrl, logEventInfo)
|
|
209
208
|
} else {
|
|
210
209
|
super.jdJumpToCouponSearchProductList(couponId, logEventInfo)
|
|
211
210
|
}
|
|
212
211
|
}
|
|
212
|
+
import global from '../common';
|
|
213
213
|
objectToUrlEncode,
|
|
214
214
|
isH5AndJingGouMini,
|
|
215
215
|
public jingGouMiniState: boolean;
|
|
216
216
|
private isH5OpenToWxapp: boolean;
|
|
217
217
|
constructor(opt) {
|
|
218
218
|
super(opt);
|
|
219
219
|
this.jingGouMiniState = false;
|
|
220
220
|
this.getConfig(opt);
|
|
221
221
|
console.log('window.shopGlobalSwitch:', JSON.stringify(window.shopGlobalSwitch));
|
|
222
222
|
this.isH5OpenToWxapp = window.shopGlobalSwitch?.openMobileShopToWxApp == 'true';
|
|
223
223
|
this.init();
|
|
224
224
|
}
|
|
225
225
|
getConfig(opt) {
|
|
226
226
|
return Object.assign(this, {}, defaultConfig, super.getConfig(opt), opt);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
|
|
230
230
|
async init() {
|
|
231
231
|
if (window.isJingGouMiniViewState) {
|
|
232
232
|
this.jingGouMiniState = true;
|
|
233
233
|
} else {
|
|
234
234
|
console.log('初始化进行小程序环境检查, 当前是否是京购小程序里的H5', isH5AndJingGouMini);
|
|
235
235
|
if (isH5AndJingGouMini && this.isH5OpenToWxapp) {
|
|
236
236
|
console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的if');
|
|
237
237
|
this.jingGouMiniState = true;
|
|
238
238
|
window.isJingGouMiniViewState = true;
|
|
239
239
|
console.log('进入了 iwx?.miniProgram then 但是没有继续跳转的逻辑 ');
|
|
240
240
|
global.info.isJingGouMiniViewState = true;
|
|
241
241
|
} else {
|
|
242
242
|
console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的esle');
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
jdJumpToMiniPage(pageUrl, logEventInfo, type = 'navigateTo') {
|
|
248
248
|
this.jdNavigateToNative(
|
|
249
249
|
pageUrl,
|
|
250
250
|
logEventInfo,
|
|
251
251
|
() => {
|
|
252
252
|
console.log('JD.wxappext.goto');
|
|
253
253
|
wx?.miniProgram[type] &&
|
|
254
254
|
wx?.miniProgram[type]({
|
|
255
255
|
url: pageUrl,
|
|
256
256
|
});
|
|
257
257
|
},
|
|
258
258
|
() => {
|
|
259
259
|
console.log('JD.wxappext.goto2');
|
|
260
260
|
wx?.miniProgram[type] &&
|
|
261
261
|
wx?.miniProgram[type]({
|
|
262
262
|
url: pageUrl,
|
|
263
263
|
});
|
|
264
264
|
},
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
|
|
269
269
|
console.log('web.wxapp.ts - jdJumpToTabAllProduct');
|
|
270
270
|
if (typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId;
|
|
271
271
|
if (typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId;
|
|
272
272
|
if (this.jingGouMiniState) {
|
|
273
273
|
const param = {
|
|
274
274
|
shopId,
|
|
275
275
|
venderId,
|
|
276
276
|
tabActive: SECTION_HOME_TAB_NAME_TYPE[SECTION_HOME_TAB_TYPE.HOME_PRODUCT],
|
|
277
277
|
};
|
|
278
278
|
const url = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(param)}`;
|
|
279
279
|
this.jdJumpToMiniPage(url, logEventInfo);
|
|
280
280
|
} else {
|
|
281
281
|
super.jdJumpToTabAllProduct(shopId, venderId, logEventInfo);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
jdJumpToTopTabBase(type, shopInfo = {}) {
|
|
286
286
|
const getInfo = Object.assign(
|
|
287
287
|
{},
|
|
288
288
|
{
|
|
289
289
|
shopId: global.info.queryInfo.shopId,
|
|
290
290
|
venderId: global.info.queryInfo.venderId,
|
|
291
291
|
},
|
|
292
292
|
shopInfo,
|
|
293
293
|
);
|
|
294
294
|
if (this.jingGouMiniState) {
|
|
295
295
|
const { shopId, venderId, ...otherInfo } = getInfo;
|
|
296
296
|
const param = {
|
|
297
297
|
shopId,
|
|
298
298
|
venderId,
|
|
299
299
|
tabActive: type,
|
|
300
300
|
};
|
|
301
301
|
const url = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(param)}`;
|
|
302
302
|
this.jdJumpToMiniPage(url, otherInfo);
|
|
303
303
|
} else {
|
|
304
304
|
super.jdJumpToTopTabBase(type, shopInfo);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
jdJumpToWeb(url, logEventInfo) {
|
|
309
309
|
console.log('web.wxapp.ts - jdJumpToWeb', url);
|
|
310
310
|
console.log('jingGouMiniState', this.jingGouMiniState);
|
|
311
311
|
if (this.jingGouMiniState) {
|
|
312
312
|
const encodeUrl = `${this.jumpMiniPath.h5}?encode_url=${encodeURIComponent(url)}`;
|
|
313
313
|
this.jdJumpToMiniPage(encodeUrl, logEventInfo);
|
|
314
314
|
} else {
|
|
315
315
|
super.jdJumpToWeb(url, logEventInfo);
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
jdJumpToWebInner(url, logEventInfo) {
|
|
320
320
|
super.jdJumpToWeb(url, logEventInfo);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
jdJumpToProduct(skuIds, logEventInfo) {
|
|
324
324
|
if (this.jingGouMiniState) {
|
|
325
325
|
const detailUrl = `${this.jumpMiniPath.detail}?sku=${skuIds}`;
|
|
326
326
|
this.jdJumpToMiniPage(detailUrl, logEventInfo);
|
|
327
327
|
} else {
|
|
328
328
|
super.jdJumpToProduct(skuIds, logEventInfo);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
|
|
333
333
|
const getSkuId = skuInfo?.skuId;
|
|
334
334
|
this.jdJumpToProduct(getSkuId, logEventInfo);
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
jdJumpToShopHome(shopInfo) {
|
|
338
338
|
console.log('[降级H5] jdJumpToShopHome web.wxapp', shopInfo);
|
|
339
339
|
console.log(
|
|
340
340
|
'global.info.queryInfo.shopId',
|
|
341
341
|
global.info.queryInfo.shopId,
|
|
342
342
|
global.info.queryInfo.venderId,
|
|
343
343
|
);
|
|
344
344
|
const currentShopInfo = {
|
|
345
345
|
shopId: global.info.queryInfo.shopId,
|
|
346
346
|
venderId: global.info.queryInfo.venderId,
|
|
347
347
|
};
|
|
348
348
|
const restParams =
|
|
349
349
|
(shopInfo?.shopId && shopInfo.shopId !== currentShopInfo.shopId) ||
|
|
350
350
|
(shopInfo?.venderId && shopInfo.venderId !== currentShopInfo.venderId)
|
|
351
351
|
? {}
|
|
352
352
|
: currentShopInfo;
|
|
353
353
|
const getInfo = Object.assign({}, restParams, shopInfo);
|
|
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 (
|
|
358
358
|
/(\/shop\/(samCenter|samCard))|(\/sale\/home)|(\/favorite)/.test(window.location.pathname)
|
|
359
359
|
) {
|
|
360
360
|
shopUrl = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(
|
|
361
361
|
this.getShopIdsInfo(otherShopInfo),
|
|
362
362
|
)}`;
|
|
363
363
|
}
|
|
364
364
|
this.jdJumpToMiniPage(shopUrl, otherShopInfo, type);
|
|
365
365
|
} else {
|
|
366
366
|
super.jdJumpToShopHome(otherShopInfo);
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
jdJumpToShopCategory(params) {
|
|
371
371
|
console.log('[降级H5] jdJumpToShopCategory web.wxapp');
|
|
372
372
|
const { type = 'navigateTo', ...otherShopInfo } = params;
|
|
373
373
|
console.log('获取分类跳转参数', params);
|
|
374
374
|
if (this.jingGouMiniState) {
|
|
375
375
|
this.jdJumpToTopTabBase('classify', otherShopInfo);
|
|
376
376
|
} else {
|
|
377
377
|
super.jdJumpToShopCategory(otherShopInfo);
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
jdJumpToLive(liveInfo, logEventInfo = {}) {
|
|
382
382
|
if (liveInfo?.liveId) {
|
|
383
383
|
if (this.jingGouMiniState && liveInfo?.openWxappToLiveRoom) {
|
|
384
384
|
this.jdJumpToMiniPage(`${this.jumpMiniPath.jdLive}?liveId=${liveInfo.liveId}&origin=473`, {
|
|
385
385
|
logEventInfo,
|
|
386
386
|
});
|
|
387
387
|
} else {
|
|
388
388
|
this.jdJumpToWeb(
|
|
389
389
|
`${this.jumpWebUrl.mLive}/${liveInfo.liveId}?${
|
|
390
390
|
this.jingGouMiniState ? 'origin=0&appid=jdgw' : 'origin=30'
|
|
391
391
|
}`,
|
|
392
392
|
logEventInfo,
|
|
393
393
|
);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
jdJumpToShopLight(shopInfo) {
|
|
399
399
|
if (this.jingGouMiniState) {
|
|
400
400
|
this.jdJumpToMiniPage(
|
|
401
401
|
`${this.jumpMiniPath.shopLight}?${objectToUrlEncode(
|
|
402
402
|
this.getShopIdOrVenderIdParams(shopInfo),
|
|
403
403
|
)}`,
|
|
404
404
|
{
|
|
405
405
|
...shopInfo,
|
|
406
406
|
},
|
|
407
407
|
);
|
|
408
408
|
} else {
|
|
409
409
|
this.jdNavigateToNative(
|
|
410
410
|
`${this.jumpWebUrl.shopLight}?${objectToUrlEncode(
|
|
411
411
|
this.getShopIdOrVenderIdParams(shopInfo),
|
|
412
412
|
)}`,
|
|
413
413
|
{
|
|
414
414
|
...shopInfo,
|
|
415
415
|
},
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
|
|
420
420
|
if (this.jingGouMiniState) {
|
|
421
421
|
const detailUrl = `${this.jumpMiniPath.searchCoupon}?batch=${couponId}`;
|
|
422
422
|
this.jdJumpToMiniPage(detailUrl, logEventInfo);
|
|
423
423
|
} else {
|
|
424
424
|
super.jdJumpToCouponSearchProductList(couponId, logEventInfo);
|
|
425
425
|
}
|
|
426
426
|
}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cancelChanges": "取消修改",
|
|
3
|
+
"memberUniqueCoupon": "Member-only coupon",
|
|
4
|
+
"memberInstructionDetail": "Rules",
|
|
5
|
+
"timeToEnd": "距结束",
|
|
6
|
+
"joinMemberFail": "Please retry later",
|
|
7
|
+
"failBusy": "Please retry later",
|
|
8
|
+
"inviteToMember": "Invite you to join brand member",
|
|
9
|
+
"paidMemberCoupon": "品牌订阅尊享券",
|
|
10
|
+
"lv0Star": "LV0",
|
|
11
|
+
"viewAllProducts": "View all",
|
|
12
|
+
"cancelBtnMsg": "Cancel",
|
|
13
|
+
"failCode": "Please retry later",
|
|
14
|
+
"memberSprintNoStandardTip": "Sorry,not up to standard",
|
|
15
|
+
"authorize": "Authorize",
|
|
16
|
+
"noProductNew": "This store has not yet listed any products for sale.",
|
|
17
|
+
"goToShop": "Visit",
|
|
18
|
+
"bookingNextPart": "预约下期",
|
|
19
|
+
"queryFailedTryAgain": "查询失败,请稍后重试",
|
|
20
|
+
"edit": "edit",
|
|
21
|
+
"fansChat": "Fans' group chat",
|
|
22
|
+
"belowProductAvailable": "The following products are available",
|
|
23
|
+
"failNetwork": "Please retry later",
|
|
24
|
+
"limitedInStoreAvailable": "限店内部分商品",
|
|
25
|
+
"newRelease": "New release",
|
|
26
|
+
"cancelMemberlFailMsg": "Unbinding membership failed, please try again later.",
|
|
27
|
+
"reserved": "已预约",
|
|
28
|
+
"memberCardAgreement": "Member Authorization Agreement",
|
|
29
|
+
"timeUnitSecond": "s",
|
|
30
|
+
"pointsExchangeTask": "积分兑换任务",
|
|
31
|
+
"memberGiftReceiveTip": "Success",
|
|
32
|
+
"memberCoupon": "会员专享券",
|
|
33
|
+
"successMsg": "Success",
|
|
34
|
+
"newWareCalendar": "上新日历",
|
|
35
|
+
"insufficientPoints": "积分不足",
|
|
36
|
+
"recommendOrder": "Recommended",
|
|
37
|
+
"memberOnlyExclusiveCoupon": "会员限量专属神券",
|
|
38
|
+
"checkNetwork": "Check network settings",
|
|
39
|
+
"memberBalance": "Balance",
|
|
40
|
+
"cancelMemberCardContent": "Note: After canceling the membership card, you will no longer be able to enjoy exclusive member coupons, member points benefits, and member-only prices.",
|
|
41
|
+
"pointsExchange": "积分兑换",
|
|
42
|
+
"memberGiftCongrats": "Success",
|
|
43
|
+
"ReceiveNow": "Receive",
|
|
44
|
+
"pleaseInput": "Please input",
|
|
45
|
+
"sendSuccess": "Sent",
|
|
46
|
+
"failReceive": "Please retry later",
|
|
47
|
+
"unFollowMsg": "Unfollow",
|
|
48
|
+
"welcomeToSageShop": "Welcome",
|
|
49
|
+
"highTraffic": "High traffic",
|
|
50
|
+
"newlyFirst": "Newly first",
|
|
51
|
+
"pleaseInputCode": "Please input code",
|
|
52
|
+
"verifyCode": "code",
|
|
53
|
+
"searchBtn": "Search",
|
|
54
|
+
"payPrivilege": "尊享特权",
|
|
55
|
+
"birthdayGift": "会员生日礼",
|
|
56
|
+
"starMember": "_star",
|
|
57
|
+
"hotSearch": "Hot Search",
|
|
58
|
+
"tapAndReceive": "一键领取",
|
|
59
|
+
"joinGiftsDesc": "新会员专享,礼品有限,以实际使用为准",
|
|
60
|
+
"searchHistory": "Search History",
|
|
61
|
+
"validity": "Expiration Date",
|
|
62
|
+
"moreRights": "更多权益",
|
|
63
|
+
"upgradeSubMember": "Upgrade to Subscription Members",
|
|
64
|
+
"relatedMemberInfo": "关联会员信息",
|
|
65
|
+
"newReleaseToday": "New release today",
|
|
66
|
+
"allProductUseable": "All items available",
|
|
67
|
+
"available": "Available",
|
|
68
|
+
"memberCardInstruction": "Card Instructions",
|
|
69
|
+
"rules": "规则",
|
|
70
|
+
"fansBenefits": "Fans' rewarding",
|
|
71
|
+
"timeUnitMinute": "m",
|
|
72
|
+
"memberFilter": "Conditions",
|
|
73
|
+
"isCancelMemberContent": "You will miss out on exclusive benefits for premium members.",
|
|
74
|
+
"ensureBtnMsg": "Confirm",
|
|
75
|
+
"viewReplay": "View replay",
|
|
76
|
+
"receiveAndViewMoreRights": "领取并查看更多权益",
|
|
77
|
+
"successAddCart": "Success",
|
|
78
|
+
"failSubscribe": "Please retry later",
|
|
79
|
+
"noticeMsg": "请关注消息提醒",
|
|
80
|
+
"pageLoadFailed": "Page load failed, please try again later",
|
|
81
|
+
"viewAvailableProducts": "查看可用商品",
|
|
82
|
+
"noShopTip": "No shop available",
|
|
83
|
+
"openCardNow": "立即开卡",
|
|
84
|
+
"failCancel": "Please retry later",
|
|
85
|
+
"joinMemberDesc": "Join for ¥0 and enjoy exclusive member benefits",
|
|
86
|
+
"successSubscribe": "Success",
|
|
87
|
+
"memberRule": "Membership Rules",
|
|
88
|
+
"failMsg": "Please retry later",
|
|
89
|
+
"pleaseInputMobileNumber": "Please input phone number",
|
|
90
|
+
"confirmExchangeTextYes": "确定兑换",
|
|
91
|
+
"joinIn": "Join now",
|
|
92
|
+
"cancelMsg": "Canceled",
|
|
93
|
+
"reveivedRights": "已领权益",
|
|
94
|
+
"buyers": "buyers",
|
|
95
|
+
"joinMemberNow": "Join Now",
|
|
96
|
+
"successCode": "Success",
|
|
97
|
+
"globalShare": "Share",
|
|
98
|
+
"someProductUseable": "Some items available",
|
|
99
|
+
"hasSent": "Has sent",
|
|
100
|
+
"memberAnd": "and",
|
|
101
|
+
"failAddCart": "Please retry later",
|
|
102
|
+
"successJoinIn": "Success",
|
|
103
|
+
"goForOtherShopProducts": "去看看其他店铺商品",
|
|
104
|
+
"globalMessage": "Message",
|
|
105
|
+
"bookingReminder": "预约提醒",
|
|
106
|
+
"emailError": "Wrong email",
|
|
107
|
+
"mobileNumberError": "Wrong phone number",
|
|
108
|
+
"isCancelMemberTitle": "Are you really going to cancel your membership?",
|
|
109
|
+
"brandActivity": "品牌活动",
|
|
110
|
+
"shopPopularity": "Popularity",
|
|
111
|
+
"joinMemberSuccess": "Join successfully",
|
|
112
|
+
"immediatelyExchange": "立即兑换",
|
|
113
|
+
"drawNow": "立即抽奖",
|
|
114
|
+
"pleaseSelect": "Please select",
|
|
115
|
+
"1Star": "One_star",
|
|
116
|
+
"hasUsed": "已使用",
|
|
117
|
+
"hasExchanged": "已兑换",
|
|
118
|
+
"fansMember": "Members",
|
|
119
|
+
"confirmExchangeTextNo": "暂不兑换",
|
|
120
|
+
"failFollow": "Please retry later",
|
|
121
|
+
"mobileNumber": "Phone",
|
|
122
|
+
"discount": "discount",
|
|
123
|
+
"cancelMemberCard": "Cancel membership card",
|
|
124
|
+
"joinGifts": "入会礼包",
|
|
125
|
+
"noGiftTryAgain": "暂未查询到礼包,请稍后再试",
|
|
126
|
+
"allLoaded": "All loaded\n",
|
|
127
|
+
"openCardSuccessAndReturn": "Success",
|
|
128
|
+
"shopDetail": "Detail",
|
|
129
|
+
"joinMemberSuccess2": "Join successfully",
|
|
130
|
+
"failLoad": "Please retry later",
|
|
131
|
+
"collapsePrivilege": "收起特权",
|
|
132
|
+
"cancelMemberConfirmText": "Cancel membership",
|
|
133
|
+
"memberFranchise": "Privilege",
|
|
134
|
+
"memberAddMemberInfo": "Membership rules and benefits",
|
|
135
|
+
"levelGifts": "等级礼包",
|
|
136
|
+
"contentUnavailable": "The content you're looking for is unavailable",
|
|
137
|
+
"successReceive": "Success",
|
|
138
|
+
"allPrivilege": "全部特权",
|
|
139
|
+
"successAddShopList": "Success",
|
|
140
|
+
"verifyCodeError": "Wrong code",
|
|
141
|
+
"reachTo": "Reach to",
|
|
142
|
+
"myPoints": "我的积分",
|
|
143
|
+
"loading": "Loading",
|
|
144
|
+
"soldOut": "已抢光",
|
|
145
|
+
"sgBonus": "Welcome bonus",
|
|
146
|
+
"newReleaseSeason": "Season release",
|
|
147
|
+
"confirmExchange": "确认要兑换吗?",
|
|
148
|
+
"openCardNowAndReceive": "立即开卡并领取",
|
|
149
|
+
"timeUnitDay": "d",
|
|
150
|
+
"5Star": "Five_star",
|
|
151
|
+
"greatRedPacket": "超值红包",
|
|
152
|
+
"sendCodeFail": "Send failed, please try again later.",
|
|
153
|
+
"noProduct": "No products~",
|
|
154
|
+
"shopYearDescText": "Achieve annual 5-Star honors, with ratings exceeding 99% of stores",
|
|
155
|
+
"joinYouToMember": "Invite you to join brand member",
|
|
156
|
+
"activateNow": "立即开通",
|
|
157
|
+
"goForMemberPriced": "去看看会员价商品",
|
|
158
|
+
"rightsDesc": "权益说明",
|
|
159
|
+
"memberSprintConfirmTip": "Sorry,not up to standard",
|
|
160
|
+
"sorryNoProduct": "Sorry, there is no product available.",
|
|
161
|
+
"2Star": "Two_star",
|
|
162
|
+
"joinReceive": "Join now",
|
|
163
|
+
"filterCriteriaMsg": "Filter criteria",
|
|
164
|
+
"memberSearchShop": "View this store",
|
|
165
|
+
"improveMemberInfo": "Authorize phone number",
|
|
166
|
+
"memberPointsFranchise": "Member points benefits",
|
|
167
|
+
"loseNetwork": "Network connection lost",
|
|
168
|
+
"simplifiedMode": "Simplified mode",
|
|
169
|
+
"resetBtnMsg": "Reset",
|
|
170
|
+
"cancelMemberCloseText": "I'll think about it again",
|
|
171
|
+
"coupon": "优惠券",
|
|
172
|
+
"more": "More",
|
|
173
|
+
"memberPrizeLimit": "限量福利 先到先得 以实际领取为准",
|
|
174
|
+
"deleteAll": "Delete all",
|
|
175
|
+
"followShop": "关注店铺",
|
|
176
|
+
"timeToStart": "距开始",
|
|
177
|
+
"congratulationsOnLevelGifts": "恭喜获得专属等级礼包",
|
|
178
|
+
"chat": "Chat",
|
|
179
|
+
"notYetAndDisappearThreeSeconds": "没抽中呢~活动将在3秒后消失~",
|
|
180
|
+
"ReceiveCouponNow": "Receive",
|
|
181
|
+
"complete": "Complete",
|
|
182
|
+
"fullMode": "Full mode",
|
|
183
|
+
"exchangeSuccess": "兑换成功",
|
|
184
|
+
"timeUnitHour": "h",
|
|
185
|
+
"effectiveTime": "有效时间",
|
|
186
|
+
"getQualification": "领取资格",
|
|
187
|
+
"unlimitedAmount": "Unlimited",
|
|
188
|
+
"mobileNumberErrorInput": "Wrong phone number",
|
|
189
|
+
"points": "积分",
|
|
190
|
+
"openCardDelayTip": "Please retry later",
|
|
191
|
+
"failAddShopList": "Please retry later",
|
|
192
|
+
"reserveNow": "Reserve now",
|
|
193
|
+
"failReceiveGift": "Please retry later",
|
|
194
|
+
"noPriceTip": "Unpriced",
|
|
195
|
+
"officialReduction": "Official reduction",
|
|
196
|
+
"updateCardMemberAndEnjoy": "升级开卡会员领好礼",
|
|
197
|
+
"4Star": "Four_star",
|
|
198
|
+
"allStoreAvailable": "全店通用",
|
|
199
|
+
"manyPeoleFollow": "Followers",
|
|
200
|
+
"viewAll": "View all",
|
|
201
|
+
"successFollow": "Success",
|
|
202
|
+
"expand": "展开",
|
|
203
|
+
"followers": "followers",
|
|
204
|
+
"memberRules": "会员规则",
|
|
205
|
+
"loadDataFailed": "Failed to load",
|
|
206
|
+
"ensureMemberAuthorize": "Confirm authorization",
|
|
207
|
+
"sendCode": "send",
|
|
208
|
+
"payPrivilegeDesc": "品牌付费订阅说明",
|
|
209
|
+
"globalShopDetail": "Shop Details",
|
|
210
|
+
"reload": "Reload",
|
|
211
|
+
"3Star": "Three_star",
|
|
212
|
+
"memberUniquePrice": "Member exclusive price",
|
|
213
|
+
"joinEnjoyGifts": "Join and enjoy gifts",
|
|
214
|
+
"retryLater": "retryLater",
|
|
215
|
+
"joinMember": "License and registration",
|
|
216
|
+
"lookForwardTo": "敬请期待",
|
|
217
|
+
"useNow": "Use Now",
|
|
218
|
+
"globalHome": "Home",
|
|
219
|
+
"joinMemberRightNow": "立即加入品牌会员",
|
|
220
|
+
"follow": "Follow",
|
|
221
|
+
"followed": "Following",
|
|
222
|
+
"mobileNumberErrorFill": "Wrong phone number",
|
|
223
|
+
"freeMemberRights": "免费会员可享权益",
|
|
224
|
+
"joinNow": "Join now",
|
|
225
|
+
"exchangeFailedAndTryLater": "兑换失败,请稍后重试",
|
|
226
|
+
"watchNow": "Watch now",
|
|
227
|
+
"superMemberDay": "超级会员日",
|
|
228
|
+
"nextEpisodePreview": "下期预告",
|
|
229
|
+
"collapse": "收起",
|
|
230
|
+
"pleaseTryAgainLater": "Please try again later"
|
|
231
|
+
}
|