@conecli/cone-render 0.10.1-isv2.1 → 0.10.1-isv2.4
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/jssdk.ts +1 -1
- package/dist/common/pageType.ts +1 -1
- package/dist/common/sgmCustomCode.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.module.scss +49 -44
- 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/common.ts +1 -0
- package/dist/components/base/CustomVideo/index.tsx +1 -1
- package/dist/components/base/Dialog/index.module.scss +11 -0
- package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
- package/dist/components/base/ExposureSmart/index.h5.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 +2 -2
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.module.scss +11 -3
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +3 -0
- package/dist/components/base/NetworkDataError/index.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/debug/DebugLayout/index.module.scss +2 -2
- package/dist/components/decorate/DecorateFloorModule/index.module.scss +11 -0
- 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 -1
- 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/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/const.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/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 -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/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -52
- 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/request.ts +1 -1
- package/dist/open/api/shopMember.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 +275 -221
- package/dist/sass/base.scss +183 -137
- 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/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/jumpExtMapUtil.h5.ts +1 -0
- package/dist/utils/jumpExtMapUtil.ts +1 -0
- package/dist/utils/log.ts +1 -0
- package/dist/utils/sColor.js +1 -0
- package/dist/utils/sgmCodeUtils.ts +1 -1
- package/dist/utils/taroRenderUtil.ts +1 -1
- 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 +158 -135
- package/dist/utils/memberFormatUtils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import { ServiceInterFace } from '../../interface'
|
|
2
1
|
AppVerifyColorList,
|
|
3
2
|
SHOP_VERIFY_CODE,
|
|
4
3
|
PAGES_VERIFY_CODE,
|
|
5
4
|
B2B_VERITY_CODE,
|
|
6
5
|
PAGES_DOMAIN,
|
|
7
6
|
B2BColorFunctionIdList,
|
|
8
7
|
public fmInfo: {
|
|
9
8
|
eid?: string
|
|
10
9
|
fp?: string
|
|
11
10
|
jsToken?: string
|
|
12
11
|
sdkToken?: string
|
|
13
12
|
}
|
|
14
13
|
public api: ServiceInterFace.HttpApi
|
|
15
14
|
public paramsSignInstance: any
|
|
16
15
|
public paramsSignPagesInstance: any
|
|
17
16
|
public paramsSignBmallInstance: any
|
|
18
17
|
public isPageDomain: boolean
|
|
19
18
|
constructor() {
|
|
20
19
|
this.api = api
|
|
21
20
|
this.isPageDomain = location?.hostname === PAGES_DOMAIN
|
|
22
21
|
this.paramsSignInstance = undefined
|
|
23
22
|
this.paramsSignPagesInstance = undefined
|
|
24
23
|
this.paramsSignBmallInstance = undefined
|
|
25
24
|
this.fmInfo = {}
|
|
26
25
|
this._initSign()
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
_getMobileJsToken(): Promise<{
|
|
30
29
|
ok: boolean
|
|
31
30
|
data?: any
|
|
32
31
|
error?: any
|
|
33
32
|
}> {
|
|
34
33
|
return new Promise((resolve, reject) => {
|
|
35
34
|
try {
|
|
36
35
|
if (window?.getJsToken) {
|
|
37
36
|
window.getJsToken(function (res) {
|
|
38
37
|
console.log('JS token 获取结果:', res)
|
|
39
38
|
resolve({
|
|
40
39
|
ok: true,
|
|
41
40
|
data: res,
|
|
42
41
|
})
|
|
43
42
|
}, 600)
|
|
44
43
|
} else {
|
|
45
44
|
reject({
|
|
46
45
|
ok: false,
|
|
47
46
|
error: '没有识别到getJsToken全局方法',
|
|
48
47
|
})
|
|
49
48
|
}
|
|
50
49
|
} catch (e) {
|
|
51
50
|
console.log('获取指纹JS token 异常', e)
|
|
52
51
|
reject({
|
|
53
52
|
ok: false,
|
|
54
53
|
error: e,
|
|
55
54
|
})
|
|
56
55
|
}
|
|
57
56
|
})
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
async getFmInfo() {
|
|
61
60
|
try {
|
|
62
61
|
const { ok, data } = await this._getMobileJsToken()
|
|
63
62
|
this.fmInfo = ok && data ? data : this.fmInfo
|
|
64
63
|
return this.fmInfo
|
|
65
64
|
} catch (e) {
|
|
66
65
|
console.log('获取指纹信息异常', e)
|
|
67
66
|
return this.fmInfo
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
_initSign() {
|
|
72
71
|
this.paramsSignInstance = window.PSign
|
|
73
72
|
? window.PSign
|
|
74
73
|
: window.ParamsSign
|
|
75
74
|
? this._initParamsSignInstance(SHOP_VERIFY_CODE)
|
|
76
75
|
: null
|
|
77
76
|
this.paramsSignPagesInstance = window.ParamsSign
|
|
78
77
|
? this._initParamsSignInstance(PAGES_VERIFY_CODE)
|
|
79
78
|
: null
|
|
80
79
|
this.paramsSignBmallInstance = window.ParamsSign
|
|
81
80
|
? this._initParamsSignInstance(B2B_VERITY_CODE)
|
|
82
81
|
: null
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
_initParamsSignInstance(appId) {
|
|
86
85
|
return new window.ParamsSign({
|
|
87
86
|
appId: appId,
|
|
88
87
|
debug: false,
|
|
89
88
|
preRequest: false,
|
|
90
89
|
onSign: ({ code }) => {
|
|
91
90
|
console.log('签名可用率监控', code)
|
|
92
91
|
},
|
|
93
92
|
onRequestTokenRemotely: ({ code, message }) => {
|
|
94
93
|
console.log('算法接口可用率监控', code, message)
|
|
95
94
|
},
|
|
96
95
|
onRequestToken: ({ code, message }) => {
|
|
97
96
|
console.log('token的可用率监控', code, message)
|
|
98
97
|
},
|
|
99
98
|
})
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
paramsSign(data) {
|
|
103
102
|
try {
|
|
104
103
|
console.log('获取加签参数', data, this.paramsSignInstance)
|
|
105
104
|
if (!data || typeof data !== 'object' || !this.paramsSignInstance) {
|
|
106
105
|
return Promise.resolve(data)
|
|
107
106
|
} else {
|
|
108
107
|
const param: any = {
|
|
109
108
|
appid: data.appid,
|
|
110
109
|
client: data.client,
|
|
111
110
|
clientVersion: data.clientVersion,
|
|
112
111
|
functionId: data.functionId,
|
|
113
112
|
t: data.t,
|
|
114
113
|
sign: data?.sign,
|
|
115
114
|
jsonp: data?.jsonp,
|
|
116
115
|
}
|
|
117
116
|
data && data.body && (param.body = sha256(data.body).toString())
|
|
118
117
|
console.log(
|
|
119
118
|
'获取加签前的参数处理',
|
|
120
119
|
param,
|
|
121
120
|
'获取下发data',
|
|
122
121
|
data,
|
|
123
122
|
'获取加签实例',
|
|
124
123
|
this.paramsSignInstance,
|
|
125
124
|
this.paramsSignPagesInstance,
|
|
126
125
|
)
|
|
127
126
|
return this.isPageDomain &&
|
|
128
127
|
this.paramsSignPagesInstance &&
|
|
129
128
|
AppVerifyColorList.includes(param.functionId)
|
|
130
129
|
? this.paramsSignPagesInstance.sign(param)
|
|
131
130
|
: this.paramsSignBmallInstance &&
|
|
132
131
|
B2BColorFunctionIdList.includes(param.functionId)
|
|
133
132
|
? this.paramsSignBmallInstance.sign(param)
|
|
134
133
|
: this.paramsSignInstance.sign(param)
|
|
135
134
|
}
|
|
136
135
|
} catch (e) {
|
|
137
136
|
console.log('获取加签参数结果异常', e)
|
|
138
137
|
return Promise.resolve(data)
|
|
139
138
|
}
|
|
140
139
|
}
|
|
140
|
+
import { ServiceInterFace } from '../../interface';
|
|
141
141
|
SHOP_VERIFY_CODE,
|
|
142
142
|
PAGES_VERIFY_CODE,
|
|
143
143
|
B2B_VERITY_CODE,
|
|
144
144
|
PAGES_DOMAIN,
|
|
145
145
|
B2BColorFunctionIdList,
|
|
146
146
|
APPID,
|
|
147
147
|
public fmInfo: {
|
|
148
148
|
eid?: string;
|
|
149
149
|
fp?: string;
|
|
150
150
|
jsToken?: string;
|
|
151
151
|
sdkToken?: string;
|
|
152
152
|
};
|
|
153
153
|
public api: ServiceInterFace.HttpApi;
|
|
154
154
|
public paramsSignInstance: any;
|
|
155
155
|
public paramsSignPagesInstance: any;
|
|
156
156
|
public paramsSignBmallInstance: any;
|
|
157
157
|
public isPageDomain: boolean;
|
|
158
158
|
public initParamsSignInstance: any;
|
|
159
159
|
public initJsTokenInstance: any;
|
|
160
160
|
constructor() {
|
|
161
161
|
this.api = api;
|
|
162
162
|
this.isPageDomain = location?.hostname === PAGES_DOMAIN;
|
|
163
163
|
this.paramsSignInstance = undefined;
|
|
164
164
|
this.paramsSignPagesInstance = undefined;
|
|
165
165
|
this.paramsSignBmallInstance = undefined;
|
|
166
166
|
this.initParamsSignInstance = undefined;
|
|
167
167
|
this.initJsTokenInstance = undefined;
|
|
168
168
|
this.fmInfo = {};
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
_loadSingleJs(jsFileName, successCallback?, failCallback?) {
|
|
172
172
|
const jsInfo = global.loadJsSdkList.find((item) => item?.fileName === jsFileName);
|
|
173
173
|
if (jsInfo) {
|
|
174
174
|
global
|
|
175
175
|
.loadItemSdkPromise(jsInfo)
|
|
176
176
|
.then(() => {
|
|
177
177
|
typeof successCallback === 'function' && successCallback();
|
|
178
178
|
})
|
|
179
179
|
.catch(() => {
|
|
180
180
|
console.info('业务发起接口请求前置加载js异常' + jsInfo?.src);
|
|
181
181
|
typeof failCallback === 'function' && failCallback();
|
|
182
182
|
});
|
|
183
183
|
} else {
|
|
184
184
|
typeof failCallback === 'function' && failCallback();
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
_getMobileJsToken(): Promise<{
|
|
189
189
|
ok: boolean;
|
|
190
190
|
data?: any;
|
|
191
191
|
error?: any;
|
|
192
192
|
}> {
|
|
193
193
|
return this._handleInitJsToken().then(() => {
|
|
194
194
|
try {
|
|
195
195
|
if (window?.getJsToken) {
|
|
196
196
|
return new Promise((resolve) => {
|
|
197
197
|
window.getJsToken(function (res) {
|
|
198
198
|
console.log('JS token 获取结果', res);
|
|
199
199
|
resolve({
|
|
200
200
|
ok: true,
|
|
201
201
|
data: res,
|
|
202
202
|
});
|
|
203
203
|
}, 600);
|
|
204
204
|
});
|
|
205
205
|
} else {
|
|
206
206
|
console.log('没有识别到getJsToken全局方法');
|
|
207
207
|
return Promise.resolve({
|
|
208
208
|
ok: false,
|
|
209
209
|
error: '没有识别到getJsToken全局方法',
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
} catch (e) {
|
|
213
213
|
console.log('获取指纹JS token 异常', e);
|
|
214
214
|
return Promise.resolve({
|
|
215
215
|
ok: false,
|
|
216
216
|
error: e,
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
async getFmInfo() {
|
|
223
223
|
try {
|
|
224
224
|
const { ok, data } = await this._getMobileJsToken();
|
|
225
225
|
this.fmInfo = ok && data ? data : this.fmInfo;
|
|
226
226
|
return this.fmInfo;
|
|
227
227
|
} catch (e) {
|
|
228
228
|
console.log('获取指纹信息异常', e);
|
|
229
229
|
return this.fmInfo;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
_initSign() {
|
|
234
234
|
this.paramsSignInstance = window.PSign
|
|
235
235
|
? window.PSign
|
|
236
236
|
: window.ParamsSign
|
|
237
237
|
? this._initParamsSignInstance(SHOP_VERIFY_CODE)
|
|
238
238
|
: null;
|
|
239
239
|
this.paramsSignPagesInstance = window.ParamsSign
|
|
240
240
|
? this._initParamsSignInstance(PAGES_VERIFY_CODE)
|
|
241
241
|
: null;
|
|
242
242
|
this.paramsSignBmallInstance = window.ParamsSign
|
|
243
243
|
? this._initParamsSignInstance(B2B_VERITY_CODE)
|
|
244
244
|
: null;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
_initParamsSignInstance(appId) {
|
|
248
248
|
return new window.ParamsSign({
|
|
249
249
|
appId: appId,
|
|
250
250
|
debug: false,
|
|
251
251
|
preRequest: false,
|
|
252
252
|
onSign: ({ code }) => {
|
|
253
253
|
console.log('签名可用率监控', code);
|
|
254
254
|
},
|
|
255
255
|
onRequestTokenRemotely: ({ code, message }) => {
|
|
256
256
|
console.log('算法接口可用率监控', code, message);
|
|
257
257
|
},
|
|
258
258
|
onRequestToken: ({ code, message }) => {
|
|
259
259
|
console.log('token的可用率监控', code, message);
|
|
260
260
|
},
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
paramsSign(data) {
|
|
265
265
|
try {
|
|
266
266
|
return this._handleInitSign().then(() => {
|
|
267
267
|
console.log('获取加签参数', data, this.paramsSignInstance);
|
|
268
268
|
if (!data || typeof data !== 'object' || !this.paramsSignInstance) {
|
|
269
269
|
return Promise.resolve(data);
|
|
270
270
|
} else {
|
|
271
271
|
const param: any = {
|
|
272
272
|
appid: data.appid,
|
|
273
273
|
client: data.client,
|
|
274
274
|
clientVersion: data.clientVersion,
|
|
275
275
|
functionId: data.functionId,
|
|
276
276
|
t: data.t,
|
|
277
277
|
sign: data?.sign,
|
|
278
278
|
jsonp: data?.jsonp,
|
|
279
279
|
};
|
|
280
280
|
data && data.body && (param.body = sha256(data.body).toString());
|
|
281
281
|
console.log(
|
|
282
282
|
'获取加签前的参数处理',
|
|
283
283
|
param,
|
|
284
284
|
'获取下发data',
|
|
285
285
|
data,
|
|
286
286
|
'获取加签实例',
|
|
287
287
|
this.paramsSignInstance,
|
|
288
288
|
this.paramsSignPagesInstance,
|
|
289
289
|
);
|
|
290
290
|
return this._checkFunctionIdNeedSignForPages(data)
|
|
291
291
|
? this.paramsSignPagesInstance.sign(param)
|
|
292
292
|
: this.paramsSignBmallInstance && B2BColorFunctionIdList.includes(param.functionId)
|
|
293
293
|
? this.paramsSignBmallInstance.sign(param)
|
|
294
294
|
: this.paramsSignInstance.sign(param);
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
297
|
} catch (e) {
|
|
298
298
|
console.log('获取加签参数结果异常', e);
|
|
299
299
|
return Promise.resolve(data);
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
_checkFunctionIdNeedSignForPages(data) {
|
|
304
304
|
const { appid, functionId } = data;
|
|
305
305
|
return (
|
|
306
306
|
this.isPageDomain &&
|
|
307
307
|
this.paramsSignPagesInstance &&
|
|
308
308
|
appid === APPID.PAGES_COLOR_APPID &&
|
|
309
309
|
functionId
|
|
310
310
|
);
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
_handleInitSign() {
|
|
314
314
|
if (!this.initParamsSignInstance) {
|
|
315
315
|
this.initParamsSignInstance = new Promise((resolve) => {
|
|
316
316
|
if (window?.ParamsSign) {
|
|
317
317
|
this._initSign();
|
|
318
318
|
resolve({
|
|
319
319
|
ok: true,
|
|
320
320
|
msg: '加固js已加载',
|
|
321
321
|
});
|
|
322
322
|
} else if (window?.PAGE_DATA?.asyncLoadSecurityJs) {
|
|
323
323
|
this._loadSingleJs(
|
|
324
324
|
'securityJs',
|
|
325
325
|
() => {
|
|
326
326
|
this._initSign();
|
|
327
327
|
resolve({
|
|
328
328
|
ok: true,
|
|
329
329
|
msg: '异步请求加固js成功加载',
|
|
330
330
|
});
|
|
331
331
|
},
|
|
332
332
|
() => {
|
|
333
333
|
resolve({
|
|
334
334
|
ok: true,
|
|
335
335
|
msg: '加固js加载异常',
|
|
336
336
|
});
|
|
337
337
|
},
|
|
338
338
|
);
|
|
339
339
|
} else {
|
|
340
340
|
resolve({
|
|
341
341
|
ok: true,
|
|
342
342
|
msg: '加固js开关配置为false不加载',
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
return this.initParamsSignInstance;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
_handleInitJsToken() {
|
|
351
351
|
if (!this.initJsTokenInstance) {
|
|
352
352
|
this.initJsTokenInstance = new Promise((resolve) => {
|
|
353
353
|
if (window?.getJsToken) {
|
|
354
354
|
resolve({
|
|
355
355
|
ok: true,
|
|
356
356
|
msg: '指纹js已加载',
|
|
357
357
|
});
|
|
358
358
|
} else if (window?.PAGE_DATA?.asyncLoadMtkJs) {
|
|
359
359
|
this._loadSingleJs(
|
|
360
360
|
'mtkJs',
|
|
361
361
|
() => {
|
|
362
362
|
resolve({
|
|
363
363
|
ok: true,
|
|
364
364
|
msg: '异步请求指纹js成功加载',
|
|
365
365
|
});
|
|
366
366
|
},
|
|
367
367
|
() => {
|
|
368
368
|
resolve({
|
|
369
369
|
ok: true,
|
|
370
370
|
msg: '指纹js加载异常',
|
|
371
371
|
});
|
|
372
372
|
},
|
|
373
373
|
);
|
|
374
374
|
} else {
|
|
375
375
|
resolve({
|
|
376
376
|
ok: true,
|
|
377
377
|
msg: '指纹js开关配置为false不加载',
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
382
|
return this.initJsTokenInstance;
|
|
383
383
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const HttpStatus = {
|
|
2
1
|
SUCCESS: 200,
|
|
3
2
|
CREATED: 201,
|
|
4
3
|
ACCEPTED: 202,
|
|
5
4
|
CLIENT_ERROR: 400,
|
|
6
5
|
AUTHENTICATE: 401,
|
|
7
6
|
FORBIDDEN: 403,
|
|
8
7
|
NOT_FOUND: 404,
|
|
9
8
|
SERVER_ERROR: 500,
|
|
10
9
|
BAD_GATEWAY: 502,
|
|
11
10
|
SERVICE_UNAVAILABLE: 503,
|
|
12
11
|
GATEWAY_TIMEOUT: 504,
|
|
13
12
|
[HttpStatus.NOT_FOUND]: '请求资源不存在',
|
|
14
13
|
[HttpStatus.BAD_GATEWAY]: '服务端异常,请稍后重试',
|
|
15
14
|
[HttpStatus.FORBIDDEN]: '没有权限访问',
|
|
16
15
|
[HttpStatus.AUTHENTICATE]: '需要鉴权',
|
|
17
16
|
[HttpStatus.SUCCESS]: '成功',
|
|
18
17
|
'whx_getShopHomeFloorInfo',
|
|
19
18
|
'whx_searchWare',
|
|
20
19
|
'shopGuessYouLike',
|
|
21
20
|
'whx_getMShopCategory',
|
|
22
21
|
'whx_newWareList',
|
|
23
22
|
'getShopHomePromotionWebPage',
|
|
24
23
|
'whx_getShopCampaignPage',
|
|
25
24
|
'whx_getPromotionWares',
|
|
26
25
|
'whx_buyerShowPage',
|
|
27
26
|
'whx_getShopGwredPage',
|
|
28
27
|
'whx_getShopSpeciSecKillPage',
|
|
29
28
|
'whx_getSignInfo',
|
|
30
29
|
'whx_getSignPrize',
|
|
31
30
|
'getShopHomeFloorInfo',
|
|
32
31
|
'shopGuessYouLike',
|
|
33
32
|
'getShopHomePromotionWebPage',
|
|
34
33
|
'getVipDetail',
|
|
35
34
|
'getShopCategory',
|
|
36
35
|
'getShopNavigationCategory',
|
|
37
36
|
'getPagePreview',
|
|
38
37
|
'bmall_cart',
|
|
39
38
|
'bmall_getOmittedProduct',
|
|
40
39
|
'bmall_cartAdd',
|
|
41
40
|
'bmall_cartChange',
|
|
42
41
|
'bmall_cartRemove',
|
|
43
42
|
"whx_getShopHomeFloorInfo",
|
|
44
43
|
"whx_searchWare",
|
|
45
44
|
"shopGuessYouLike",
|
|
46
45
|
"whx_getMShopCategory",
|
|
47
46
|
"whx_newWareList",
|
|
48
47
|
"getShopHomePromotionWebPage",
|
|
49
48
|
"whx_getShopCampaignPage",
|
|
50
49
|
"whx_getPromotionWares",
|
|
51
50
|
"whx_buyerShowPage"
|
|
52
51
|
'getShopHomeFloorInfo',
|
|
53
52
|
'getShopCategory',
|
|
54
53
|
'getShopNavigationCategory',
|
|
55
54
|
'receiveShopCoupon',
|
|
56
55
|
'getShopHomePromotionWebPage',
|
|
57
56
|
'shopGuessYouLike',
|
|
58
57
|
'addRemind',
|
|
59
58
|
'cancelRemind',
|
|
60
59
|
'getVipDetail',
|
|
61
60
|
'shopDetail',
|
|
62
61
|
'address_queryAddress',
|
|
63
62
|
'shopMemberSprintJoinActivity',
|
|
64
63
|
'shopMemberSprintReceivePrize',
|
|
65
64
|
'customerCenterDispatch'
|
|
66
65
|
'bmall_cart',
|
|
67
66
|
'bmall_getOmittedProduct',
|
|
68
67
|
'bmall_cartAdd',
|
|
69
68
|
'bmall_cartChange',
|
|
70
69
|
'bmall_cartRemove',
|
|
71
70
|
SHOP_COLOR_APPID: 'shop_m_jd_com',
|
|
72
71
|
JSHOPX_COLOR_APPID: 'jshopx_jd_com',
|
|
73
72
|
PAGES_COLOR_APPID: 'pages_jd_com',
|
|
74
73
|
B2B_COLOR_APPID: 'b2b',
|
|
75
74
|
SHOP_MEMBER_COLOR_APPID: 'shopmember_m_jd_com',
|
|
76
75
|
MALL_COLOR_APPID: 'mall_jd_com'
|
|
76
|
+
export const HttpStatus = {
|
|
77
77
|
SUCCESS: 200,
|
|
78
78
|
CREATED: 201,
|
|
79
79
|
ACCEPTED: 202,
|
|
80
80
|
CLIENT_ERROR: 400,
|
|
81
81
|
AUTHENTICATE: 401,
|
|
82
82
|
FORBIDDEN: 403,
|
|
83
83
|
NOT_FOUND: 404,
|
|
84
84
|
SERVER_ERROR: 500,
|
|
85
85
|
BAD_GATEWAY: 502,
|
|
86
86
|
SERVICE_UNAVAILABLE: 503,
|
|
87
87
|
GATEWAY_TIMEOUT: 504,
|
|
88
88
|
[HttpStatus.NOT_FOUND]: '请求资源不存在',
|
|
89
89
|
[HttpStatus.BAD_GATEWAY]: '服务端异常,请稍后重试',
|
|
90
90
|
[HttpStatus.FORBIDDEN]: '没有权限访问',
|
|
91
91
|
[HttpStatus.AUTHENTICATE]: '需要鉴权',
|
|
92
92
|
[HttpStatus.SUCCESS]: '成功',
|
|
93
93
|
'whx_getShopHomeFloorInfo',
|
|
94
94
|
'whx_searchWare',
|
|
95
95
|
'shopGuessYouLike',
|
|
96
96
|
'whx_getMShopCategory',
|
|
97
97
|
'whx_newWareList',
|
|
98
98
|
'getShopHomePromotionWebPage',
|
|
99
99
|
'whx_getShopCampaignPage',
|
|
100
100
|
'whx_getPromotionWares',
|
|
101
101
|
'whx_buyerShowPage',
|
|
102
102
|
'whx_getShopGwredPage',
|
|
103
103
|
'whx_getShopSpeciSecKillPage',
|
|
104
104
|
'whx_getSignInfo',
|
|
105
105
|
'whx_getSignPrize',
|
|
106
106
|
'getShopHomeFloorInfo',
|
|
107
107
|
'shopGuessYouLike',
|
|
108
108
|
'getShopHomePromotionWebPage',
|
|
109
109
|
'getVipDetail',
|
|
110
110
|
'getShopCategory',
|
|
111
111
|
'getShopNavigationCategory',
|
|
112
112
|
'colorApiPreview',
|
|
113
113
|
'bmall_cart',
|
|
114
114
|
'bmall_getOmittedProduct',
|
|
115
115
|
'bmall_cartAdd',
|
|
116
116
|
'bmall_cartChange',
|
|
117
117
|
'bmall_cartRemove',
|
|
118
118
|
'whx_getShopHomeFloorInfo',
|
|
119
119
|
'whx_searchWare',
|
|
120
120
|
'shopGuessYouLike',
|
|
121
121
|
'whx_getMShopCategory',
|
|
122
122
|
'whx_newWareList',
|
|
123
123
|
'getShopHomePromotionWebPage',
|
|
124
124
|
'whx_getShopCampaignPage',
|
|
125
125
|
'whx_getPromotionWares',
|
|
126
126
|
'whx_buyerShowPage',
|
|
127
127
|
'getShopHomeFloorInfo',
|
|
128
128
|
'getShopCategory',
|
|
129
129
|
'getShopNavigationCategory',
|
|
130
130
|
'giftCardAddCart',
|
|
131
131
|
'receiveShopCoupon',
|
|
132
132
|
'getShopHomePromotionWebPage',
|
|
133
133
|
'shopGuessYouLike',
|
|
134
134
|
'addRemind',
|
|
135
135
|
'cancelRemind',
|
|
136
136
|
'getVipDetail',
|
|
137
137
|
'shopDetail',
|
|
138
138
|
'address_queryAddress',
|
|
139
139
|
'shopMemberSprintJoinActivity',
|
|
140
140
|
'shopMemberSprintReceivePrize',
|
|
141
141
|
'bmall_cart',
|
|
142
142
|
'bmall_getOmittedProduct',
|
|
143
143
|
'bmall_cartAdd',
|
|
144
144
|
'bmall_cartChange',
|
|
145
145
|
'bmall_cartRemove',
|
|
146
146
|
SHOP_COLOR_APPID: 'shop_m_jd_com',
|
|
147
147
|
JSHOPX_COLOR_APPID: 'jshopx_jd_com',
|
|
148
148
|
PAGES_COLOR_APPID: 'pages_jd_com',
|
|
149
149
|
B2B_COLOR_APPID: 'b2b',
|
|
150
150
|
SHOP_MEMBER_COLOR_APPID: 'shopmember_m_jd_com',
|
|
151
151
|
MALL_COLOR_APPID: 'mall_jd_com',
|
|
152
152
|
'getSeriesTabData',
|
|
153
153
|
'searchWare',
|
|
154
154
|
'getDrShopDiscoveryFeeds',
|
|
155
155
|
'searchWare',
|