@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const colorDSM = 'https://api.m.jd.com/client.action?functionId=';
|
|
2
|
[
|
|
1
3
|
colorDSM + 'op_getGoodListByCatesIds',
|
|
2
4
|
['dsm.jshop.operations.api.inner.service.ProductJsfService.getGoodListByCatesIds', true],
|
|
3
5
|
,
|
|
4
6
|
],
|
|
5
7
|
console.log('getSColorPara ~ url is:', url);
|
|
6
8
|
url = colorDSM + url;
|
|
7
9
|
if (isDowngradeSDM(url)) {
|
|
8
10
|
return {};
|
|
9
11
|
}
|
|
10
12
|
return getDSMValue(url)
|
|
11
13
|
? {
|
|
12
14
|
url: '/api?v=1.0&appId=IEAFE4HKEFPYCKVAUVBR&api=' + getDSMValue(url)[0],
|
|
13
15
|
}
|
|
14
16
|
: {};
|
|
15
17
|
url = colorDSM + url;
|
|
16
18
|
try {
|
|
17
19
|
if (isDowngradeSDM(url)) {
|
|
18
20
|
return false;
|
|
19
21
|
}
|
|
20
22
|
console.log('is DSM', !!getDSMValue(url));
|
|
21
23
|
return !!getDSMValue(url);
|
|
22
24
|
} catch (error) {
|
|
23
25
|
console.log('🚀 ~ checkIsDSM ~ error:', error);
|
|
24
26
|
return false;
|
|
25
27
|
}
|
|
26
28
|
url = colorDSM + url;
|
|
27
29
|
if (isDowngradeSDM(url)) {
|
|
28
30
|
return false;
|
|
29
31
|
}
|
|
30
32
|
console.log('is need deconstruction', getDSMValue(url) ? getDSMValue(url)[1] : false);
|
|
31
33
|
return getDSMValue(url) ? getDSMValue(url)[1] : false;
|
|
32
34
|
for (let [key, value] of DSM) {
|
|
33
35
|
if (url.startsWith(key) && url.includes('?')) {
|
|
34
36
|
return value;
|
|
35
37
|
}
|
|
36
38
|
if (key === url) {
|
|
37
39
|
return value;
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
return '';
|
|
41
43
|
try {
|
|
42
44
|
const { nodePageData } = window;
|
|
43
45
|
const { DSMDowngradeList = null, routeBlackList = null } = nodePageData;
|
|
44
46
|
if (
|
|
45
47
|
nodePageData &&
|
|
46
48
|
routeBlackList &&
|
|
47
49
|
Array.isArray(routeBlackList) &&
|
|
48
50
|
((routeBlackList.length > 0 &&
|
|
49
51
|
routeBlackList.some((prefix) => url.startsWith(prefix)) &&
|
|
50
52
|
url.includes('?')) ||
|
|
51
53
|
routeBlackList.includes(url))
|
|
52
54
|
) {
|
|
53
55
|
return true;
|
|
54
56
|
}
|
|
55
57
|
if (DSMDowngradeList === null) return true;
|
|
56
58
|
if (
|
|
57
59
|
!Array.isArray(DSMDowngradeList) ||
|
|
58
60
|
(DSMDowngradeList.length > 0 &&
|
|
59
61
|
DSMDowngradeList.some((prefix) => url.startsWith(prefix)) &&
|
|
60
62
|
url.includes('?')) ||
|
|
61
63
|
DSMDowngradeList.includes(url)
|
|
62
64
|
) {
|
|
63
65
|
return true;
|
|
64
66
|
}
|
|
65
67
|
return false;
|
|
66
68
|
} catch (error) {
|
|
67
69
|
console.log('🚀 ~ isDowngradeSDM ~ error:', error)
|
|
68
70
|
return false;
|
|
69
71
|
}
|
|
70
72
|
getSColorPara: (url) => getSColorPara(url),
|
|
71
73
|
checkIsNeedDeconstruction: (url) => checkIsNeedDeconstruction(url),
|
|
72
74
|
checkIsDSM: (url) => checkIsDSM(url),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { getPageType } from "../common/pageType"
|
|
2
1
|
return str.replace(/-([a-z])/g, (match) => {
|
|
3
2
|
return match[1].toUpperCase();
|
|
4
3
|
});
|
|
5
4
|
let finalSgmCustomCode = sgmCustomCode
|
|
6
5
|
const pageType = getPageType()
|
|
7
6
|
if (pageType !== '') {
|
|
8
7
|
const sgmPageType = underlineToCamelCase(pageType)
|
|
9
8
|
finalSgmCustomCode = `${sgmPageType}_${finalSgmCustomCode}`
|
|
10
9
|
}
|
|
11
10
|
const environmentType = getEnvironmentType()
|
|
12
11
|
finalSgmCustomCode = `${environmentType}_${finalSgmCustomCode}`
|
|
13
12
|
console.log('sgm上报自定义编码', finalSgmCustomCode)
|
|
14
13
|
return finalSgmCustomCode
|
|
14
|
+
import { getPageType } from "../common/pageType"
|
|
15
15
|
return str.replace(/-([a-z])/g, (match) => {
|
|
16
16
|
return match[1].toUpperCase();
|
|
17
17
|
});
|
|
18
18
|
const taroVersion =
|
|
19
19
|
window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW ? 'newTaro' : 'oldTaro'
|
|
20
20
|
console.log('handleSgmCodeTaroVersion', handleSgmCodeTaroVersion)
|
|
21
21
|
return `${taroVersion}_${sgmCustomCode}`
|
|
22
22
|
let finalSgmCustomCode = sgmCustomCode
|
|
23
23
|
const pageType = getPageType()
|
|
24
24
|
if (pageType !== '') {
|
|
25
25
|
const sgmPageType = underlineToCamelCase(pageType)
|
|
26
26
|
finalSgmCustomCode = `${sgmPageType}_${finalSgmCustomCode}`
|
|
27
27
|
}
|
|
28
28
|
const environmentType = getEnvironmentType()
|
|
29
29
|
finalSgmCustomCode = `${environmentType}_${finalSgmCustomCode}`
|
|
30
30
|
console.log('sgm上报自定义编码', finalSgmCustomCode)
|
|
31
31
|
return finalSgmCustomCode
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export enum TaroRenderVersion {
|
|
2
1
|
VERSION_OLD = 0,
|
|
3
2
|
VERSION_NEW = 1,
|
|
4
3
|
let result = modularPackResult?.bundleUrl || ''
|
|
5
4
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
6
5
|
result = modularPackResult?.bundleUrlV2 || ''
|
|
7
6
|
}
|
|
8
7
|
console.log(
|
|
9
8
|
'getBundleUrl taroRenderVersion:' +
|
|
10
9
|
window?.taroRenderVersion +
|
|
11
10
|
',bundleUrl:' +
|
|
12
11
|
result,
|
|
13
12
|
)
|
|
14
13
|
return result
|
|
15
14
|
let result = modularPackResult?.bundleFileName || ''
|
|
16
15
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
17
16
|
result = modularPackResult?.bundleFileNameV2 || ''
|
|
18
17
|
}
|
|
19
18
|
console.log(
|
|
20
19
|
'getBundleUrl taroRenderVersion:' +
|
|
21
20
|
window?.taroRenderVersion +
|
|
22
21
|
',bundleFileName:' +
|
|
23
22
|
result,
|
|
24
23
|
)
|
|
25
24
|
return result
|
|
26
25
|
if (typeof modularPackResult === 'string') {
|
|
27
26
|
try {
|
|
28
27
|
return JSON.parse(modularPackResult)
|
|
29
28
|
} catch (e) {
|
|
30
29
|
console.error('JSON解析失败', e)
|
|
31
30
|
return {}
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
return modularPackResult || {}
|
|
34
|
+
export enum TaroRenderVersion {
|
|
35
35
|
VERSION_OLD = 0,
|
|
36
36
|
VERSION_NEW = 1,
|
|
37
37
|
let result = modularPackResult?.bundleUrl || ''
|
|
38
38
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
39
39
|
result = modularPackResult?.bundleUrlV2 || ''
|
|
40
40
|
}
|
|
41
41
|
return result
|
|
42
42
|
let result = modularPackResult?.bundleFileName || ''
|
|
43
43
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
44
44
|
result = modularPackResult?.bundleFileNameV2 || ''
|
|
45
45
|
}
|
|
46
46
|
return result
|
|
47
47
|
let result = modularPackResult?.taroVersion || ''
|
|
48
48
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
49
49
|
result = modularPackResult?.taroVersionV2 || ''
|
|
50
50
|
}
|
|
51
51
|
console.log(
|
|
52
52
|
'getTaroVersion taroRenderVersion:' +
|
|
53
53
|
window?.taroRenderVersion +
|
|
54
54
|
',taroVersion:' +
|
|
55
55
|
result,
|
|
56
56
|
)
|
|
57
57
|
return result
|
|
58
58
|
if (typeof modularPackResult === 'string') {
|
|
59
59
|
try {
|
|
60
60
|
return JSON.parse(modularPackResult)
|
|
61
61
|
} catch (e) {
|
|
62
62
|
console.error('JSON解析失败', e)
|
|
63
63
|
return {}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
return modularPackResult || {}
|