@conecli/cone-render 0.9.1-shop2.2 → 0.9.1-shop2.20
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 -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/components/ErrorBoundary.tsx +1 -1
- 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/index.tsx +1 -1
- package/dist/components/base/Dialog/index.module.scss +5 -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/index.h5.tsx +1 -1
- 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/ItemViewExposureSmart/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLoadImage/const.ts +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.module.scss +23 -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 +7 -0
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/base/Price/Double/index.tsx +1 -1
- package/dist/components/base/Price/index.tsx +1 -1
- 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 -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/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.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 -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/modules/ContainerFloorList/index.h5.module.scss +18 -1
- 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 +49 -3
- package/dist/sass/base.scss +57 -0
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/http/const.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- 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/jm-common.js +1 -1
- package/dist/utils/sgmCodeUtils.ts +1 -0
- package/dist/utils/taroRenderUtil.ts +1 -1
- package/dist/utils/utils.ts +1 -1
- package/package.json +1 -1
- package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
2
1
|
isChartH5,
|
|
3
2
|
isH5AndJdShopViewH5Scroll,
|
|
4
3
|
sgmCustomReport,
|
|
5
4
|
isMemberPage,
|
|
6
5
|
isAppClassifyPage
|
|
7
6
|
isH5AndJdShopViewH5Scroll,
|
|
8
7
|
isH5AndJingGouMini,
|
|
9
8
|
urlCookie,
|
|
10
9
|
isMemberPage,
|
|
11
10
|
isAppClassifyPage
|
|
11
|
+
import {
|
|
12
12
|
isJdMinAndHarmony,
|
|
13
13
|
isChartH5,
|
|
14
14
|
isH5AndJdShopViewH5Scroll,
|
|
15
15
|
isH5AndJdShopH5CustomScrollView,
|
|
16
16
|
getAvifSupport,
|
|
17
17
|
getWebpSupport,
|
|
18
18
|
sgmCustomReport,
|
|
19
19
|
isOpenJdAppUrl,
|
|
20
20
|
jdOpenAppParams,
|
|
21
21
|
createJdOpenAppUrl,
|
|
22
22
|
isEmpty,
|
|
23
23
|
getJdAppReportPageSource,
|
|
24
24
|
isMemberPage,
|
|
25
25
|
isAppClassifyPage,
|
|
26
26
|
dealJdOpenAppData,
|
|
27
27
|
jdAppVersionCompare,
|
|
28
28
|
dealNativePixelToCssPixel,
|
|
29
29
|
isImageOptimizeEnable,
|
|
30
30
|
isIpadDevice,
|
|
31
31
|
console.warn("🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!")
|
|
32
32
|
return false
|
|
33
33
|
isJdAndHarmonyDevice,
|
|
34
34
|
isJdAndroidX5Core,
|
|
35
35
|
isMin,
|
|
36
36
|
isJdMinAndHarmony,
|
|
37
37
|
isH5AndJdShopViewH5Scroll,
|
|
38
38
|
isH5AndJdShopH5CustomScrollView,
|
|
39
39
|
isH5AndJingGouMini,
|
|
40
40
|
urlCookie,
|
|
41
41
|
stopNativeScrollEvent,
|
|
42
42
|
getAvifSupport,
|
|
43
43
|
getWebpSupport,
|
|
44
44
|
sgmCustomReport,
|
|
45
45
|
isOpenJdAppUrl,
|
|
46
46
|
jdOpenAppParams,
|
|
47
47
|
createJdOpenAppUrl,
|
|
48
48
|
isEmpty,
|
|
49
49
|
getJdAppReportPageSource,
|
|
50
50
|
isMemberPage,
|
|
51
51
|
isAppClassifyPage,
|
|
52
52
|
isAppHomeForMarketPage,
|
|
53
53
|
isImageOptimizeEnable,
|
|
54
54
|
isPc,
|
|
55
55
|
isTjM,
|
|
56
56
|
isTjJxM,
|
|
57
57
|
isTjScence,
|
|
58
58
|
isH5AdnJxMini,
|
|
59
59
|
isTJApp,
|
|
60
60
|
isH5AdnHaoWuJie,
|
|
61
61
|
tjChannel,
|
|
62
62
|
dealJdOpenAppData,
|
|
63
63
|
jdAppVersionCompare,
|
|
64
64
|
dealNativePixelToCssPixel,
|
|
65
65
|
getSgmCustomCode,
|
|
66
66
|
handleSgmCodeTaroVersion,
|
|
67
67
|
isInGrayscale,
|
|
68
68
|
isIpadDevice,
|
package/dist/utils/jm-common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var splitOnFirst = function splitOnFirst(string, separator) {
|
|
2
1
|
return Object.prototype.toString.call(obj);
|
|
3
2
|
return typeof obj === 'function';
|
|
4
3
|
return '[object Object]' === getType(obj);
|
|
5
4
|
return '[object Array]' == getType(obj);
|
|
6
5
|
return '[object Undefined]' === getType(obj);
|
|
7
6
|
return '[object Null]' == getType(obj);
|
|
8
7
|
return typeof obj === 'string';
|
|
9
8
|
return typeof obj === 'boolean';
|
|
10
9
|
return '[object Number]' === getType(num);
|
|
11
10
|
ua = ua || navigator.userAgent;
|
|
12
11
|
if (name === 'wx') return (/micromessenger/i.test(ua)
|
|
13
12
|
);
|
|
14
13
|
if (name === 'qq') return (/qq\//i.test(ua)
|
|
15
14
|
);
|
|
16
15
|
if (name === 'weibo') return (/weibo/i.test(ua)
|
|
17
16
|
);
|
|
18
17
|
if (name === 'jd') return (/^jdapp/i.test(ua)
|
|
19
18
|
);
|
|
20
19
|
if (name === 'jdlittle') return (/^jdltapp/i.test(ua)
|
|
21
20
|
);
|
|
22
21
|
if (name === 'mp') return navigator.userAgent.match(/micromessenger/i) && navigator.userAgent.match(/miniprogram/i) || window.__wxjs_environment === 'miniprogram';
|
|
23
22
|
if (name === 'jdb') return (/JDBmall/i.test(ua) && /shop\.m\.jd\.com\/shop\/bhome/i.test(window.location.href));
|
|
24
23
|
if(name === 'jdjch') return (/jdjchshopapp/i.test(ua) || (/shop\.m\.jd\.com\/shop\/bhome/i.test(window.location.href)) && window.location.href.includes('channel')) ;
|
|
25
24
|
return false;
|
|
26
25
|
ua = ua || navigator.userAgent;
|
|
27
26
|
return (/android/i.test(ua) && !isIOS()
|
|
28
27
|
);
|
|
29
28
|
ua = ua || navigator.userAgent;
|
|
30
29
|
return (/ip(hone|od)|ipad/i.test(ua)
|
|
31
30
|
);
|
|
32
31
|
ua = ua || navigator.userAgent;
|
|
33
32
|
return (/ipad/i.test(ua) || /android/i.test(ua) && !/mobi|mini|fennec/i.test(ua)
|
|
34
33
|
);
|
|
35
34
|
ua = ua || navigator.userAgent;
|
|
36
35
|
return !!ua.match(/ip(hone|od)|android.+mobile|windows (ce|phone)|blackberry|bb10|symbian|webos|firefox.+fennec|opera m(ob|in)i|polaris|iemobile|lgtelecom|nokia|sonyericsson|dolfin|uzard|natebrowser|ktf;|skt;/i);
|
|
37
36
|
ua = ua || navigator.userAgent;
|
|
38
37
|
return !!ua.match(/iphone/i);
|
|
39
38
|
ua = ua || navigator.userAgent;
|
|
40
39
|
return !!ua.match(/ipad/i);
|
|
41
40
|
ua = ua || navigator.userAgent;
|
|
42
41
|
if (name === 'xview') return typeof window.XView !== 'undefined';
|
|
43
42
|
if (name === 'wk') return !!ua.match(/supportjdshwk/i) || window._is_jdsh_wkwebview == 1;
|
|
44
43
|
return false;
|
|
45
44
|
ua = ua || navigator.userAgent;
|
|
46
45
|
var re = /nettype\/([\S]*)/i;
|
|
47
46
|
if (isApp('jd', ua)) re = /network\/([^;]*)/i;
|
|
48
47
|
return re.test(ua) ? RegExp.$1.toLowerCase() : 'unknown';
|
|
49
48
|
ua = ua || navigator.userAgent;
|
|
50
49
|
if (!isApp('jd', ua)) return null;
|
|
51
50
|
return ua.split(';')[4];
|
|
52
51
|
ua = ua || navigator.userAgent;
|
|
53
52
|
if (appName === 'jd') return ua.split(';')[2] || null;
|
|
54
53
|
if (appName === 'wx') return (/micromessenger\/([\S]*)/i.test(ua) ? RegExp.$1 : null
|
|
55
54
|
);
|
|
56
55
|
if (appName === 'qq') return (/qq\/([\S]*)/i.test(ua) ? RegExp.$1 : null
|
|
57
56
|
);
|
|
58
57
|
return null;
|
|
59
58
|
ua = ua || navigator.userAgent;
|
|
60
59
|
var match = ua.match(/android\s([0-9\.]*)/i);
|
|
61
60
|
return match ? match[1] : 'unknown';
|
|
62
61
|
ua = ua || navigator.userAgent;
|
|
63
62
|
var match = ua.match(/OS ((\d+_?){2,3})\s/i);
|
|
64
63
|
return match ? match[1].replace(/_/g, '.') : 'unknown';
|
|
64
|
+
var splitOnFirst = function splitOnFirst(string, separator) {
|
|
65
65
|
return Object.prototype.toString.call(obj);
|
|
66
66
|
return typeof obj === 'function';
|
|
67
67
|
return '[object Object]' === getType(obj);
|
|
68
68
|
return '[object Array]' == getType(obj);
|
|
69
69
|
return '[object Undefined]' === getType(obj);
|
|
70
70
|
return '[object Null]' == getType(obj);
|
|
71
71
|
return typeof obj === 'string';
|
|
72
72
|
return typeof obj === 'boolean';
|
|
73
73
|
return '[object Number]' === getType(num);
|
|
74
74
|
ua = ua || navigator.userAgent;
|
|
75
75
|
if (name === 'wx') return (/micromessenger/i.test(ua)
|
|
76
76
|
);
|
|
77
77
|
if (name === 'qq') return (/qq\//i.test(ua)
|
|
78
78
|
);
|
|
79
79
|
if (name === 'weibo') return (/weibo/i.test(ua)
|
|
80
80
|
);
|
|
81
81
|
if (name === 'jd') return (/^jdapp/i.test(ua)
|
|
82
82
|
);
|
|
83
83
|
if (name === 'jdharmony') return (/^jdapp;harmony/i.test(ua)
|
|
84
84
|
);
|
|
85
85
|
if (name === 'jdlittle') return (/^jdltapp/i.test(ua)
|
|
86
86
|
);
|
|
87
87
|
if (name === 'mp') return navigator.userAgent.match(/micromessenger/i) && navigator.userAgent.match(/miniprogram/i) || window.__wxjs_environment === 'miniprogram';
|
|
88
88
|
if (name === 'jdb') return (/JDBmall/i.test(ua) && /shop\.m\.jd\.com\/shop\/bhome/i.test(window.location.href));
|
|
89
89
|
if(name === 'jdjch') return (/jdjchshopapp/i.test(ua) || (/shop\.m\.jd\.com\/shop\/bhome/i.test(window.location.href)) && window.location.href.includes('channel')) ;
|
|
90
90
|
if(name == 'tjapp') return /jdltapp;/.test(ua);
|
|
91
91
|
return false;
|
|
92
92
|
ua = ua || navigator.userAgent;
|
|
93
93
|
return (/android/i.test(ua) && !isIOS()
|
|
94
94
|
);
|
|
95
95
|
ua = ua || navigator.userAgent;
|
|
96
96
|
return (/ip(hone|od)|ipad/i.test(ua)
|
|
97
97
|
);
|
|
98
98
|
ua = ua || navigator.userAgent;
|
|
99
99
|
return (/ipad/i.test(ua) || /android/i.test(ua) && !/mobi|mini|fennec/i.test(ua)
|
|
100
100
|
);
|
|
101
101
|
ua = ua || navigator.userAgent;
|
|
102
102
|
return !!ua.match(/ip(hone|od)|android.+mobile|windows (ce|phone)|blackberry|bb10|symbian|webos|firefox.+fennec|opera m(ob|in)i|polaris|iemobile|lgtelecom|nokia|sonyericsson|dolfin|uzard|natebrowser|ktf;|skt;/i);
|
|
103
103
|
ua = ua || navigator.userAgent;
|
|
104
104
|
return !!ua.match(/iphone/i);
|
|
105
105
|
ua = ua || navigator.userAgent;
|
|
106
106
|
return !!ua.match(/ipad/i);
|
|
107
107
|
ua = ua || navigator.userAgent;
|
|
108
108
|
if (name === 'xview') return typeof window.XView !== 'undefined';
|
|
109
109
|
if (name === 'wk') return !!ua.match(/supportjdshwk/i) || window._is_jdsh_wkwebview == 1;
|
|
110
110
|
return false;
|
|
111
111
|
ua = ua || navigator.userAgent;
|
|
112
112
|
var re = /nettype\/([\S]*)/i;
|
|
113
113
|
if (isApp('jd', ua)) re = /network\/([^;]*)/i;
|
|
114
114
|
return re.test(ua) ? RegExp.$1.toLowerCase() : 'unknown';
|
|
115
115
|
ua = ua || navigator.userAgent;
|
|
116
116
|
if (!isApp('jd', ua)) return null;
|
|
117
117
|
return ua.split(';')[4];
|
|
118
118
|
ua = ua || navigator.userAgent;
|
|
119
119
|
if (appName === 'jd') return ua.split(';')[2] || null;
|
|
120
120
|
if (appName === 'wx') return (/micromessenger\/([\S]*)/i.test(ua) ? RegExp.$1 : null
|
|
121
121
|
);
|
|
122
122
|
if (appName === 'qq') return (/qq\/([\S]*)/i.test(ua) ? RegExp.$1 : null
|
|
123
123
|
);
|
|
124
124
|
return null;
|
|
125
125
|
ua = ua || navigator.userAgent;
|
|
126
126
|
var match = ua.match(/android\s([0-9\.]*)/i);
|
|
127
127
|
return match ? match[1] : 'unknown';
|
|
128
128
|
ua = ua || navigator.userAgent;
|
|
129
129
|
var match = ua.match(/OS ((\d+_?){2,3})\s/i);
|
|
130
130
|
return match ? match[1].replace(/_/g, '.') : 'unknown';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { getPageType } from "../common/pageType"
|
|
2
|
return str.replace(/-([a-z])/g, (match) => {
|
|
1
3
|
return match[1].toUpperCase();
|
|
2
4
|
});
|
|
3
5
|
const taroVersion =
|
|
4
6
|
window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW ? 'newTaro' : 'oldTaro'
|
|
5
7
|
console.log('handleSgmCodeTaroVersion', handleSgmCodeTaroVersion)
|
|
6
8
|
return `${taroVersion}_${sgmCustomCode}`
|
|
7
9
|
let finalSgmCustomCode = sgmCustomCode
|
|
8
10
|
const pageType = getPageType()
|
|
9
11
|
if (pageType !== '') {
|
|
10
12
|
const sgmPageType = underlineToCamelCase(pageType)
|
|
11
13
|
finalSgmCustomCode = `${sgmPageType}_${finalSgmCustomCode}`
|
|
12
14
|
}
|
|
13
15
|
const environmentType = getEnvironmentType()
|
|
14
16
|
finalSgmCustomCode = `${environmentType}_${finalSgmCustomCode}`
|
|
15
17
|
console.log('sgm上报自定义编码', finalSgmCustomCode)
|
|
16
18
|
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
|
console.log(
|
|
42
42
|
'getBundleUrl taroRenderVersion:' +
|
|
43
43
|
window?.taroRenderVersion +
|
|
44
44
|
',bundleUrl:' +
|
|
45
45
|
result,
|
|
46
46
|
)
|
|
47
47
|
return result
|
|
48
48
|
let result = modularPackResult?.bundleFileName || ''
|
|
49
49
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
50
50
|
result = modularPackResult?.bundleFileNameV2 || ''
|
|
51
51
|
}
|
|
52
52
|
console.log(
|
|
53
53
|
'getBundleUrl taroRenderVersion:' +
|
|
54
54
|
window?.taroRenderVersion +
|
|
55
55
|
',bundleFileName:' +
|
|
56
56
|
result,
|
|
57
57
|
)
|
|
58
58
|
return result
|
|
59
59
|
let result = modularPackResult?.taroVersion || ''
|
|
60
60
|
if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
|
|
61
61
|
result = modularPackResult?.taroVersionV2 || ''
|
|
62
62
|
}
|
|
63
63
|
console.log(
|
|
64
64
|
'getTaroVersion taroRenderVersion:' +
|
|
65
65
|
window?.taroRenderVersion +
|
|
66
66
|
',taroVersion:' +
|
|
67
67
|
result,
|
|
68
68
|
)
|
|
69
69
|
return result
|
|
70
70
|
if (typeof modularPackResult === 'string') {
|
|
71
71
|
try {
|
|
72
72
|
return JSON.parse(modularPackResult)
|
|
73
73
|
} catch (e) {
|
|
74
74
|
console.error('JSON解析失败', e)
|
|
75
75
|
return {}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
return modularPackResult || {}
|