@conecli/cone-render 0.8.20-beta.0 → 0.8.20-beta.2
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 +7 -1
- package/dist/api/index.ts +1 -1
- package/dist/assets/icon_blue_info.svg +1 -0
- package/dist/common/const.ts +1 -1
- package/dist/common/environmentType.ts +1 -0
- 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.ts +1 -0
- package/dist/common/jssdk.ts +1 -0
- package/dist/common/pageType.ts +1 -0
- package/dist/common/sgmCustomCode.ts +1 -0
- package/dist/common/token/index.h5.ts +1 -1
- package/dist/common/token/token.jd.ts +1 -1
- package/dist/common/token/token.ts +1 -1
- package/dist/common/wxappApi.jd.ts +1 -0
- 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.module.scss +49 -44
- package/dist/components/base/CountDown/index.tsx +1 -1
- package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
- package/dist/components/base/CustomScrollView/index.module.scss +7 -0
- package/dist/components/base/CustomScrollView/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/Dialog/index.module.scss +16 -0
- package/dist/components/base/Dialog/index.tsx +1 -1
- package/dist/components/base/Exposure/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/const.ts +1 -0
- package/dist/components/base/ExposureSmart/index.h5.module.scss +30 -6
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.module.scss +20 -9
- package/dist/components/base/ExposureSmart/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
- package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
- package/dist/components/base/InViewRender/index.tsx +1 -1
- package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
- package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
- package/dist/components/base/LazyLoadImage/const.ts +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.module.scss +24 -20
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
- package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +125 -69
- 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 +32 -0
- package/dist/components/base/Price/Double/index.tsx +1 -1
- package/dist/components/base/Price/index.tsx +1 -1
- package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
- package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
- package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
- package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
- package/dist/components/base/Skeleton/index.tsx +1 -1
- package/dist/components/debug/DebugLayout/index.module.scss +67 -0
- package/dist/components/debug/DebugLayout/index.tsx +1 -0
- package/dist/components/debug/DebugLayout/utils.ts +1 -0
- package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
- package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
- package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
- package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
- package/dist/components/floorItem.jd.tsx +1 -1
- package/dist/components/floorItem.tsx +1 -1
- package/dist/components/floorItem.weapp.tsx +1 -1
- package/dist/components/isv/Floor/index.tsx +1 -1
- package/dist/components/remoteFloorItem.tsx +1 -0
- package/dist/interface/common.ts +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/interface/utils.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.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/report.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 -0
- package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
- package/dist/jumpEventReport/web.pc.ts +1 -0
- package/dist/jumpEventReport/web.tjapp.ts +1 -0
- package/dist/jumpEventReport/web.tjm.ts +1 -0
- 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 -27
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +1 -1
- package/dist/open/api/device.ts +1 -1
- package/dist/open/api/environment.ts +1 -1
- package/dist/open/api/index.ts +1 -1
- package/dist/open/api/jump copy.ts +1 -1
- package/dist/open/api/request.ts +1 -1
- package/dist/open/api/shopMember.ts +1 -1
- package/dist/open/api/track.ts +1 -1
- package/dist/open/api/util.ts +1 -1
- package/dist/open/components/index.ts +1 -1
- package/dist/sass/app.h5.scss +294 -212
- package/dist/sass/base.scss +195 -137
- package/dist/service/bMallConst.ts +1 -1
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/fetchGateway.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 -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/service/requestServer.weapp.ts +1 -0
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
- package/dist/utils/draExceptionAndProfile.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/intersectionObserver.ts +1 -1
- package/dist/utils/jm-common.js +1 -1
- package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
- package/dist/utils/jumpExtMapUtil.ts +1 -0
- package/dist/utils/sColor.js +1 -0
- package/dist/utils/sgmCodeUtils.ts +1 -0
- package/dist/utils/taroRenderUtil.ts +1 -0
- package/dist/utils/utils.ts +1 -1
- package/dist/wxapp/api/helper.js +1 -0
- package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
- package/dist/wxapp/common/user_info.js +1 -1
- package/dist/wxapp/components/launch-app/index.js +1 -0
- package/dist/wxapp/components/launch-app/index.json +5 -0
- package/dist/wxapp/components/launch-app/index.wxml +0 -0
- package/dist/wxapp/components/launch-app/index.wxss +0 -0
- package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
- package/dist/wxapp/components/subscribe-guider/index.js +1 -0
- package/dist/wxapp/components/subscribe-guider/index.json +5 -0
- package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
- package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
- package/package.json +145 -115
- package/dist/components/base/Skeleton/old.tsx +0 -1
- package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
- package/dist/utils/memberFormatUtils.js +0 -1
- /package/dist/service/{bMallConst.wxapp.ts → bMallConst.weapp.ts} +0 -0
- /package/dist/service/http/{colorSign.wxapp.ts → colorSign.weapp.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import global from '../common'
|
|
2
1
|
objectToUrlEncode,
|
|
3
2
|
parseQueryUrlString,
|
|
4
3
|
isH5AndJingGouMini,
|
|
5
4
|
public jingGouMiniState: boolean
|
|
6
5
|
private isH5OpenToWxapp: boolean
|
|
7
6
|
constructor(opt) {
|
|
8
7
|
super(opt)
|
|
9
8
|
this.jingGouMiniState = false
|
|
10
9
|
this.getConfig(opt)
|
|
11
10
|
console.log(
|
|
12
11
|
'window.shopGlobalSwitch:',
|
|
13
12
|
JSON.stringify(window.shopGlobalSwitch),
|
|
14
13
|
)
|
|
15
14
|
this.isH5OpenToWxapp =
|
|
16
15
|
window.shopGlobalSwitch?.openMobileShopToWxApp == 'true'
|
|
17
16
|
this.init()
|
|
18
17
|
}
|
|
19
18
|
getConfig(opt) {
|
|
20
19
|
return Object.assign(this, {}, defaultConfig, super.getConfig(opt), opt)
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
async init() {
|
|
25
24
|
if (window.isJingGouMiniViewState) {
|
|
26
25
|
this.jingGouMiniState = true
|
|
27
26
|
} else {
|
|
28
27
|
console.log(
|
|
29
28
|
'初始化进行小程序环境检查, 当前是否是京购小程序里的H5',
|
|
30
29
|
isH5AndJingGouMini,
|
|
31
30
|
)
|
|
32
31
|
if (isH5AndJingGouMini && this.isH5OpenToWxapp) {
|
|
33
32
|
console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的if')
|
|
34
33
|
this.jingGouMiniState = true
|
|
35
34
|
window.isJingGouMiniViewState = true
|
|
36
35
|
console.log('进入了 iwx?.miniProgram then 但是没有继续跳转的逻辑 ')
|
|
37
36
|
global.info.isJingGouMiniViewState = true
|
|
38
37
|
} else {
|
|
39
38
|
console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的esle')
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
jdJumpToMiniPage(pageUrl, logEventInfo, type = 'navigateTo') {
|
|
45
44
|
this.jdNavigateToNative(
|
|
46
45
|
pageUrl,
|
|
47
46
|
logEventInfo,
|
|
48
47
|
() => {
|
|
49
48
|
wx?.miniProgram[type] &&
|
|
50
49
|
wx?.miniProgram[type]({
|
|
51
50
|
url: pageUrl,
|
|
52
51
|
})
|
|
53
52
|
},
|
|
54
53
|
() => {
|
|
55
54
|
wx?.miniProgram[type] &&
|
|
56
55
|
wx?.miniProgram[type]({
|
|
57
56
|
url: pageUrl,
|
|
58
57
|
})
|
|
59
58
|
},
|
|
60
59
|
)
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
jdJumpToWeb(url, logEventInfo) {
|
|
64
63
|
if (this.jingGouMiniState) {
|
|
65
64
|
const encodeUrl = `${
|
|
66
65
|
this.jumpMiniPath.h5
|
|
67
66
|
}?encode_url=${encodeURIComponent(url)}`
|
|
68
67
|
this.jdJumpToMiniPage(encodeUrl, logEventInfo)
|
|
69
68
|
} else {
|
|
70
69
|
super.jdJumpToWeb(url, logEventInfo)
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
jdJumpToWebInner(url, logEventInfo) {
|
|
75
74
|
super.jdJumpToWeb(url, logEventInfo)
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
jdJumpToProduct(skuIds, logEventInfo) {
|
|
79
78
|
if (this.jingGouMiniState) {
|
|
80
79
|
const detailUrl = `${this.jumpMiniPath.detail}?sku=${skuIds}`
|
|
81
80
|
this.jdJumpToMiniPage(detailUrl, logEventInfo)
|
|
82
81
|
} else {
|
|
83
82
|
super.jdJumpToProduct(skuIds, logEventInfo)
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
jdJumpToShopHome(params) {
|
|
88
87
|
console.log('[降级H5] jdJumpToShopHome web.wxapp')
|
|
89
88
|
const { type = 'navigateTo', ...otherShopInfo } = params
|
|
90
89
|
if (this.jingGouMiniState) {
|
|
91
90
|
let shopUrl = `${this.jumpMiniPath.shopx}${window.location.search}`
|
|
92
91
|
if (/\/shop\/(samCenter|samCard)/.test(window.location.pathname)) {
|
|
93
92
|
shopUrl = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(
|
|
94
93
|
this.getShopIdsInfo(otherShopInfo),
|
|
95
94
|
)}`
|
|
96
95
|
}
|
|
97
96
|
this.jdJumpToMiniPage(shopUrl, otherShopInfo, type)
|
|
98
97
|
} else {
|
|
99
98
|
super.jdJumpToShopHome(otherShopInfo)
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
jdJumpToShopCategory(params) {
|
|
104
103
|
console.log('[降级H5] jdJumpToShopCategory web.wxapp')
|
|
105
104
|
const { type = 'navigateTo', ...otherShopInfo } = params
|
|
106
105
|
if (this.jingGouMiniState) {
|
|
107
106
|
let shopUrl = `${this.jumpMiniPath.shopx}${window.location.search}`
|
|
108
107
|
this.jdJumpToMiniPage(shopUrl, otherShopInfo, type)
|
|
109
108
|
} else {
|
|
110
109
|
super.jdJumpToShopCategory(otherShopInfo)
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
jdJumpToLive(liveInfo, logEventInfo = {}) {
|
|
115
114
|
if (liveInfo?.liveId) {
|
|
116
115
|
this.jdJumpToWeb(
|
|
117
116
|
`${this.jumpWebUrl.mLive}/${liveInfo?.liveId}?${
|
|
118
117
|
this.jingGouMiniState ? 'origin=0&appid=jdgw' : 'origin=30'
|
|
119
118
|
}`,
|
|
120
119
|
logEventInfo,
|
|
121
120
|
)
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
jdJumpToShopLight(shopInfo) {
|
|
126
125
|
if (this.jingGouMiniState) {
|
|
127
126
|
this.jdJumpToMiniPage(
|
|
128
127
|
`${this.jumpMiniPath.shopLight}?${objectToUrlEncode(
|
|
129
128
|
this.getShopIdOrVenderIdParams(shopInfo),
|
|
130
129
|
)}`,
|
|
131
130
|
{
|
|
132
131
|
...shopInfo,
|
|
133
132
|
},
|
|
134
133
|
)
|
|
135
134
|
} else {
|
|
136
135
|
this.jdNavigateToNative(
|
|
137
136
|
`${this.jumpWebUrl.shopLight}?${objectToUrlEncode(
|
|
138
137
|
this.getShopIdOrVenderIdParams(shopInfo),
|
|
139
138
|
)}`,
|
|
140
139
|
{
|
|
141
140
|
...shopInfo,
|
|
142
141
|
},
|
|
143
142
|
)
|
|
144
143
|
}
|
|
145
144
|
}
|
|
146
145
|
jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
|
|
147
146
|
if (this.jingGouMiniState) {
|
|
148
147
|
const detailUrl = `${this.jumpMiniPath.searchCoupon}?batch=${couponId}`
|
|
149
148
|
this.jdJumpToMiniPage(detailUrl, logEventInfo)
|
|
150
149
|
} else {
|
|
151
150
|
super.jdJumpToCouponSearchProductList(couponId, logEventInfo)
|
|
152
151
|
}
|
|
153
152
|
}
|
|
153
|
+
import global from '../common';
|
|
154
154
|
objectToUrlEncode,
|
|
155
155
|
isH5AndJingGouMini,
|
|
156
156
|
public jingGouMiniState: boolean;
|
|
157
157
|
private isH5OpenToWxapp: boolean;
|
|
158
158
|
constructor(opt) {
|
|
159
159
|
super(opt);
|
|
160
160
|
this.jingGouMiniState = false;
|
|
161
161
|
this.getConfig(opt);
|
|
162
162
|
console.log('window.shopGlobalSwitch:', JSON.stringify(window.shopGlobalSwitch));
|
|
163
163
|
this.isH5OpenToWxapp = window.shopGlobalSwitch?.openMobileShopToWxApp == 'true';
|
|
164
164
|
this.init();
|
|
165
165
|
}
|
|
166
166
|
getConfig(opt) {
|
|
167
167
|
return Object.assign(this, {}, defaultConfig, super.getConfig(opt), opt);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
async init() {
|
|
172
172
|
if (window.isJingGouMiniViewState) {
|
|
173
173
|
this.jingGouMiniState = true;
|
|
174
174
|
} else {
|
|
175
175
|
console.log('初始化进行小程序环境检查, 当前是否是京购小程序里的H5', isH5AndJingGouMini);
|
|
176
176
|
if (isH5AndJingGouMini && this.isH5OpenToWxapp) {
|
|
177
177
|
console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的if');
|
|
178
178
|
this.jingGouMiniState = true;
|
|
179
179
|
window.isJingGouMiniViewState = true;
|
|
180
180
|
console.log('进入了 iwx?.miniProgram then 但是没有继续跳转的逻辑 ');
|
|
181
181
|
global.info.isJingGouMiniViewState = true;
|
|
182
182
|
} else {
|
|
183
183
|
console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的esle');
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
jdJumpToMiniPage(pageUrl, logEventInfo, type = 'navigateTo') {
|
|
189
189
|
this.jdNavigateToNative(
|
|
190
190
|
pageUrl,
|
|
191
191
|
logEventInfo,
|
|
192
192
|
() => {
|
|
193
193
|
console.log('JD.wxappext.goto');
|
|
194
194
|
wx?.miniProgram[type] &&
|
|
195
195
|
wx?.miniProgram[type]({
|
|
196
196
|
url: pageUrl,
|
|
197
197
|
});
|
|
198
198
|
},
|
|
199
199
|
() => {
|
|
200
200
|
console.log('JD.wxappext.goto2');
|
|
201
201
|
wx?.miniProgram[type] &&
|
|
202
202
|
wx?.miniProgram[type]({
|
|
203
203
|
url: pageUrl,
|
|
204
204
|
});
|
|
205
205
|
},
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
|
|
210
210
|
console.log('web.wxapp.ts - jdJumpToTabAllProduct');
|
|
211
211
|
if (typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId;
|
|
212
212
|
if (typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId;
|
|
213
213
|
if (this.jingGouMiniState) {
|
|
214
214
|
const param = {
|
|
215
215
|
shopId,
|
|
216
216
|
venderId,
|
|
217
217
|
tabActive: SECTION_HOME_TAB_NAME_TYPE[SECTION_HOME_TAB_TYPE.HOME_PRODUCT],
|
|
218
218
|
};
|
|
219
219
|
const url = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(param)}`;
|
|
220
220
|
this.jdJumpToMiniPage(url, logEventInfo);
|
|
221
221
|
} else {
|
|
222
222
|
super.jdJumpToTabAllProduct(shopId, venderId, logEventInfo);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
jdJumpToTopTabBase(type, shopInfo = {}) {
|
|
227
227
|
const getInfo = Object.assign(
|
|
228
228
|
{},
|
|
229
229
|
{
|
|
230
230
|
shopId: global.info.queryInfo.shopId,
|
|
231
231
|
venderId: global.info.queryInfo.venderId,
|
|
232
232
|
},
|
|
233
233
|
shopInfo,
|
|
234
234
|
);
|
|
235
235
|
if (this.jingGouMiniState) {
|
|
236
236
|
const { shopId, venderId, ...otherInfo } = getInfo;
|
|
237
237
|
const param = {
|
|
238
238
|
shopId,
|
|
239
239
|
venderId,
|
|
240
240
|
tabActive: type,
|
|
241
241
|
};
|
|
242
242
|
const url = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(param)}`;
|
|
243
243
|
this.jdJumpToMiniPage(url, otherInfo);
|
|
244
244
|
} else {
|
|
245
245
|
super.jdJumpToTopTabBase(type, shopInfo);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
jdJumpToWeb(url, logEventInfo) {
|
|
250
250
|
console.log('web.wxapp.ts - jdJumpToWeb', url);
|
|
251
251
|
console.log('jingGouMiniState', this.jingGouMiniState);
|
|
252
252
|
if (this.jingGouMiniState) {
|
|
253
253
|
const encodeUrl = `${this.jumpMiniPath.h5}?encode_url=${encodeURIComponent(url)}`;
|
|
254
254
|
this.jdJumpToMiniPage(encodeUrl, logEventInfo);
|
|
255
255
|
} else {
|
|
256
256
|
super.jdJumpToWeb(url, logEventInfo);
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
jdJumpToWebInner(url, logEventInfo) {
|
|
261
261
|
super.jdJumpToWeb(url, logEventInfo);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
jdJumpToProduct(skuIds, logEventInfo) {
|
|
265
265
|
if (this.jingGouMiniState) {
|
|
266
266
|
const detailUrl = `${this.jumpMiniPath.detail}?sku=${skuIds}`;
|
|
267
267
|
this.jdJumpToMiniPage(detailUrl, logEventInfo);
|
|
268
268
|
} else {
|
|
269
269
|
super.jdJumpToProduct(skuIds, logEventInfo);
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
|
|
274
274
|
const getSkuId = skuInfo?.skuId;
|
|
275
275
|
this.jdJumpToProduct(getSkuId, logEventInfo);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
jdJumpToShopHome(shopInfo) {
|
|
279
279
|
console.log('[降级H5] jdJumpToShopHome web.wxapp', shopInfo);
|
|
280
280
|
console.log(
|
|
281
281
|
'global.info.queryInfo.shopId',
|
|
282
282
|
global.info.queryInfo.shopId,
|
|
283
283
|
global.info.queryInfo.venderId,
|
|
284
284
|
);
|
|
285
285
|
const currentShopInfo = {
|
|
286
286
|
shopId: global.info.queryInfo.shopId,
|
|
287
287
|
venderId: global.info.queryInfo.venderId,
|
|
288
288
|
};
|
|
289
289
|
const restParams =
|
|
290
290
|
(shopInfo?.shopId && shopInfo.shopId !== currentShopInfo.shopId) ||
|
|
291
291
|
(shopInfo?.venderId && shopInfo.venderId !== currentShopInfo.venderId)
|
|
292
292
|
? {}
|
|
293
293
|
: currentShopInfo;
|
|
294
294
|
const getInfo = Object.assign({}, restParams, shopInfo);
|
|
295
295
|
const { type = 'navigateTo', ...otherShopInfo } = getInfo;
|
|
296
296
|
if (this.jingGouMiniState) {
|
|
297
297
|
let shopUrl = `${this.jumpMiniPath.shopx}${window.location.search}`;
|
|
298
298
|
if (
|
|
299
299
|
/(\/shop\/(samCenter|samCard))|(\/sale\/home)|(\/favorite)/.test(window.location.pathname)
|
|
300
300
|
) {
|
|
301
301
|
shopUrl = `${this.jumpMiniPath.shopx}?${objectToUrlEncode(
|
|
302
302
|
this.getShopIdsInfo(otherShopInfo),
|
|
303
303
|
)}`;
|
|
304
304
|
}
|
|
305
305
|
this.jdJumpToMiniPage(shopUrl, otherShopInfo, type);
|
|
306
306
|
} else {
|
|
307
307
|
super.jdJumpToShopHome(otherShopInfo);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
jdJumpToShopCategory(params) {
|
|
312
312
|
console.log('[降级H5] jdJumpToShopCategory web.wxapp');
|
|
313
313
|
const { type = 'navigateTo', ...otherShopInfo } = params;
|
|
314
314
|
console.log('获取分类跳转参数', params);
|
|
315
315
|
if (this.jingGouMiniState) {
|
|
316
316
|
this.jdJumpToTopTabBase('classify', otherShopInfo);
|
|
317
317
|
} else {
|
|
318
318
|
super.jdJumpToShopCategory(otherShopInfo);
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
jdJumpToLive(liveInfo, logEventInfo = {}) {
|
|
323
323
|
if (liveInfo?.liveId) {
|
|
324
324
|
if (this.jingGouMiniState && liveInfo?.openWxappToLiveRoom) {
|
|
325
325
|
this.jdJumpToMiniPage(`${this.jumpMiniPath.jdLive}?liveId=${liveInfo.liveId}&origin=473`, {
|
|
326
326
|
logEventInfo,
|
|
327
327
|
});
|
|
328
328
|
} else {
|
|
329
329
|
this.jdJumpToWeb(
|
|
330
330
|
`${this.jumpWebUrl.mLive}/${liveInfo.liveId}?${
|
|
331
331
|
this.jingGouMiniState ? 'origin=0&appid=jdgw' : 'origin=30'
|
|
332
332
|
}`,
|
|
333
333
|
logEventInfo,
|
|
334
334
|
);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
jdJumpToShopLight(shopInfo) {
|
|
340
340
|
if (this.jingGouMiniState) {
|
|
341
341
|
this.jdJumpToMiniPage(
|
|
342
342
|
`${this.jumpMiniPath.shopLight}?${objectToUrlEncode(
|
|
343
343
|
this.getShopIdOrVenderIdParams(shopInfo),
|
|
344
344
|
)}`,
|
|
345
345
|
{
|
|
346
346
|
...shopInfo,
|
|
347
347
|
},
|
|
348
348
|
);
|
|
349
349
|
} else {
|
|
350
350
|
this.jdNavigateToNative(
|
|
351
351
|
`${this.jumpWebUrl.shopLight}?${objectToUrlEncode(
|
|
352
352
|
this.getShopIdOrVenderIdParams(shopInfo),
|
|
353
353
|
)}`,
|
|
354
354
|
{
|
|
355
355
|
...shopInfo,
|
|
356
356
|
},
|
|
357
357
|
);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
|
|
361
361
|
if (this.jingGouMiniState) {
|
|
362
362
|
const detailUrl = `${this.jumpMiniPath.searchCoupon}?batch=${couponId}`;
|
|
363
363
|
this.jdJumpToMiniPage(detailUrl, logEventInfo);
|
|
364
364
|
} else {
|
|
365
365
|
super.jdJumpToCouponSearchProductList(couponId, logEventInfo);
|
|
366
366
|
}
|
|
367
367
|
}
|
|
@@ -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
|
+
}
|