@conecli/cone-render 0.10.1-shop3.47 → 0.10.1-shop3.49
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/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.weapp.ts +1 -0
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
- package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
- package/dist/interface/component.ts +1 -1
- package/dist/jumpEventReport/const.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.h5.ts +1 -0
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
- package/dist/open/api/shopMember.weapp.ts +1 -0
- package/dist/open/index.ts +1 -1
- package/dist/service/fetchGateway.weapp.ts +1 -1
- package/dist/service/fetchJsonp.weapp.ts +1 -0
- 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 -1
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/harmonyCallRouter.h5.ts +1 -0
- package/dist/utils/harmonyCallRouter.ts +0 -0
- package/dist/utils/sColor.weapp.ts +1 -0
- package/package.json +1 -1
- package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
- package/dist/utils/priceUtils.js +0 -1
- /package/dist/utils/{sColor.js → sColor.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro';
|
|
2
1
|
clientVersion: '11.0.0',
|
|
3
2
|
client: 'wh5',
|
|
4
3
|
screen: `${Math.ceil(getSystemInfo?.screenWidth * devicePixelRatio)}*${Math.ceil(
|
|
5
4
|
getSystemInfo?.screenHeight * devicePixelRatio,
|
|
6
5
|
)}`,
|
|
7
6
|
area: '1_72_2799_0',
|
|
8
7
|
uuid: UUID,
|
|
9
8
|
const { area, realTimeArea } = areaInfo || {};
|
|
10
9
|
area && area !== '' && (clientParams.area = area);
|
|
11
10
|
realTimeArea && realTimeArea !== '' && (clientParams['realTimeArea'] = realTimeArea);
|
|
12
11
|
console.warn(
|
|
13
12
|
'cone-render中对外暴露fetchGateway收到原生端获取传来的四级地址信息',
|
|
14
13
|
areaInfo,
|
|
15
14
|
'更新后的接口底层信息',
|
|
16
15
|
clientParams,
|
|
17
16
|
);
|
|
18
17
|
functionId: string,
|
|
19
18
|
body = {},
|
|
20
19
|
options = {},
|
|
21
20
|
requestOptions = {},
|
|
22
21
|
const params = Object.assign(
|
|
23
22
|
{},
|
|
24
23
|
{
|
|
25
24
|
t: Date.now(),
|
|
26
25
|
functionId,
|
|
27
26
|
appid: 'shop_m_jd_com',
|
|
28
27
|
body: JSON.stringify(body),
|
|
29
28
|
},
|
|
30
29
|
clientParams,
|
|
31
30
|
options,
|
|
32
31
|
{
|
|
33
32
|
area: clientParams.area,
|
|
34
33
|
client: options?.client || clientParams.client,
|
|
35
34
|
clientVersion: options?.clientVersion || clientParams.clientVersion,
|
|
36
35
|
},
|
|
37
36
|
);
|
|
38
37
|
console.warn(
|
|
39
38
|
'fetchGateway url:' + api.apiFunc + ',functionId:' + params.functionId,
|
|
40
39
|
'底层默认的clientParams',
|
|
41
40
|
clientParams,
|
|
42
41
|
'下发的options',
|
|
43
42
|
options,
|
|
44
43
|
'最后params',
|
|
45
44
|
params,
|
|
46
45
|
);
|
|
47
46
|
return http.post(api.apiFunc, params, requestOptions);
|
|
47
|
+
import Taro from '@tarojs/taro';
|
|
48
48
|
appid: 'wx_mini_app',
|
|
49
49
|
clientVersion: '11.0.0',
|
|
50
50
|
client: 'wh5',
|
|
51
51
|
area: '1_72_2799_0',
|
|
52
52
|
screen: `${Math.ceil(getSystemInfo?.screenWidth * devicePixelRatio)}*${Math.ceil(
|
|
53
53
|
getSystemInfo?.screenHeight * devicePixelRatio,
|
|
54
54
|
)}`,
|
|
55
55
|
uuid: '-1',
|
|
56
56
|
loginType: '11',
|
|
57
57
|
const { area, realTimeArea } = areaInfo || {};
|
|
58
58
|
area && area !== '' && (clientParams.area = area);
|
|
59
59
|
realTimeArea && realTimeArea !== '' && (clientParams['realTimeArea'] = realTimeArea);
|
|
60
60
|
console.warn(
|
|
61
61
|
'cone-render中对外暴露fetchGateway收到原生端获取传来的四级地址信息',
|
|
62
62
|
areaInfo,
|
|
63
63
|
'更新后的接口底层信息',
|
|
64
64
|
clientParams,
|
|
65
65
|
);
|
|
66
66
|
functionId: string,
|
|
67
67
|
body = {},
|
|
68
68
|
options = {},
|
|
69
69
|
requestOptions = {},
|
|
70
70
|
const params = Object.assign(
|
|
71
71
|
{},
|
|
72
72
|
{
|
|
73
73
|
t: Date.now(),
|
|
74
74
|
functionId,
|
|
75
75
|
appid: 'shop_m_jd_com',
|
|
76
76
|
body: JSON.stringify(body),
|
|
77
77
|
},
|
|
78
78
|
clientParams,
|
|
79
79
|
options,
|
|
80
80
|
{
|
|
81
81
|
area: clientParams.area,
|
|
82
82
|
client: options?.client || clientParams.client,
|
|
83
83
|
clientVersion: options?.clientVersion || clientParams.clientVersion,
|
|
84
84
|
},
|
|
85
85
|
);
|
|
86
86
|
console.warn(
|
|
87
87
|
'fetchGateway url:' + api.apiFunc + ',functionId:' + params.functionId,
|
|
88
88
|
'底层默认的clientParams',
|
|
89
89
|
clientParams,
|
|
90
90
|
'下发的options',
|
|
91
91
|
options,
|
|
92
92
|
'最后params',
|
|
93
93
|
params,
|
|
94
94
|
);
|
|
95
95
|
return http.post(api.apiFunc, params, requestOptions);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
2
|
const requestParams = chain.requestParams
|
|
1
3
|
const { header, data } = requestParams
|
|
2
4
|
const { wqCookie, wqVisitkey = '-1' } = global?.info?.userInfo
|
|
3
5
|
header['wqreferer'] = `https://wq.jd.com/wxapp/pages/shopx/pages/index/index`
|
|
4
6
|
header['Cookie'] = wqCookie
|
|
5
7
|
if (data && data['functionId'] && data['uuid'] && wqVisitkey !== '-1') {
|
|
6
8
|
data['uuid'] = wqVisitkey
|
|
7
9
|
}
|
|
8
10
|
return chain.proceed(requestParams).then((res) => {
|
|
9
11
|
if (res.statusCode === HttpStatus.SUCCESS) {
|
|
10
12
|
return res
|
|
11
13
|
} else {
|
|
12
14
|
return {
|
|
13
15
|
statusCode: res.statusCode,
|
|
14
16
|
msg: httpStatusMsg[res.statusCode] || defaultHttpStatusMsg,
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
})
|