@conecli/cone-render 0.10.1-beta.4 → 0.10.1-beta.6
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/pageType.ts +1 -1
- package/dist/common/sgmCustomCode.ts +1 -1
- package/dist/components/ErrorBoundary.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.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/InOrOutViewObserver/index.tsx +1 -1
- package/dist/components/base/InViewRender/index.weapp.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/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/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.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.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/modules/ContainerFloorList/index.h5.module.scss +1 -0
- 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/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 +5 -0
- package/dist/sass/base.scss +183 -137
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/http/colorSign.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/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/sgmCodeUtils.ts +1 -1
- package/dist/utils/taroRenderUtil.ts +1 -1
- package/dist/utils/utils.ts +1 -1
- package/package.json +35 -28
- package/dist/utils/memberFormatUtils.js +0 -1
package/dist/utils/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
2
1
|
isJdApp,
|
|
3
2
|
isWxApp,
|
|
4
3
|
isIosDevice,
|
|
5
4
|
isAndroidDevice,
|
|
6
5
|
isJdAndIosDevice,
|
|
7
6
|
isJdAndAndroidDevice,
|
|
8
7
|
isWxMin,
|
|
9
8
|
isMin,
|
|
10
9
|
isJdMinAndHarmony,
|
|
11
10
|
isWxMinAndWxapp,
|
|
12
11
|
isJdMin,
|
|
13
12
|
isH5,
|
|
14
13
|
isH5AndJdShopView,
|
|
15
14
|
isChartH5,
|
|
16
15
|
isH5AndJdShopViewNativeScroll,
|
|
17
16
|
isH5AndJdShopViewH5Scroll,
|
|
18
17
|
isH5AndJdShopH5CustomScrollView,
|
|
19
18
|
isWxMiniH5View,
|
|
20
19
|
sliceArrToChunkList,
|
|
21
20
|
dealAddress,
|
|
22
21
|
objectToUrlEncode,
|
|
23
22
|
setLowSmallPicUrl,
|
|
24
23
|
parseQueryUrlString,
|
|
25
24
|
countStringify,
|
|
26
25
|
setTaroStorage,
|
|
27
26
|
getTaroStorageKeyValue,
|
|
28
27
|
removeTaroStorageKey,
|
|
29
28
|
clearTaroStorageKey,
|
|
30
29
|
getQualityImage,
|
|
31
30
|
getSystemInfos,
|
|
32
31
|
getWxAppCookieStr,
|
|
33
32
|
pxTransformFromData,
|
|
34
33
|
dealShopContentData,
|
|
35
34
|
dateFormat,
|
|
36
35
|
throttle,
|
|
37
36
|
lodashThrottle,
|
|
38
37
|
debounce,
|
|
39
38
|
addHttps,
|
|
40
39
|
showSuccessToast,
|
|
41
40
|
showFailToast,
|
|
42
41
|
showNormalToast,
|
|
43
42
|
showShopLoading,
|
|
44
43
|
hideShopLoading,
|
|
45
44
|
getAppChannelType,
|
|
46
45
|
formatTabActiveMenuType,
|
|
47
46
|
getAvifSupport,
|
|
48
47
|
getWebpSupport,
|
|
49
48
|
filterUrlQueryData,
|
|
50
49
|
isMemberPage,
|
|
51
50
|
sgmCustomReport,
|
|
52
51
|
isOpenJdAppUrl,
|
|
53
52
|
jdOpenAppParams,
|
|
54
53
|
createJdOpenAppUrl,
|
|
55
54
|
isEmpty,
|
|
56
55
|
getJdAppReportPageSource,
|
|
57
56
|
isAppClassifyPage,
|
|
58
57
|
isPc,
|
|
59
58
|
ipLoc_djd,
|
|
60
59
|
dealJdOpenAppData,
|
|
61
60
|
jdAppVersionCompare,
|
|
62
61
|
dealNativePixelToCssPixel,
|
|
63
62
|
isAppStowShop,
|
|
64
63
|
isImageOptimizeEnable,
|
|
65
64
|
isJdApp,
|
|
66
65
|
isWxApp,
|
|
67
66
|
isIosDevice,
|
|
68
67
|
isAndroidDevice,
|
|
69
68
|
isJdAndIosDevice,
|
|
70
69
|
isJdAndAndroidDevice,
|
|
71
70
|
isJdAndHarmonyDevice,
|
|
72
71
|
isJdAndroidX5Core,
|
|
73
72
|
isWxMin,
|
|
74
73
|
isMin,
|
|
75
74
|
isJdMinAndHarmony,
|
|
76
75
|
isWxMinAndWxapp,
|
|
77
76
|
isJdMin,
|
|
78
77
|
isH5,
|
|
79
78
|
isH5AndJdShopView,
|
|
80
79
|
isChartH5,
|
|
81
80
|
isH5AndJdShopViewNativeScroll,
|
|
82
81
|
isH5AndJdShopViewH5Scroll,
|
|
83
82
|
isH5AndJdShopH5CustomScrollView,
|
|
84
83
|
isH5AndJingGouMini,
|
|
85
84
|
isWxMiniH5View,
|
|
86
85
|
urlCookie,
|
|
87
86
|
sliceArrToChunkList,
|
|
88
87
|
dealAddress,
|
|
89
88
|
objectToUrlEncode,
|
|
90
89
|
parseQueryUrlString,
|
|
91
90
|
setLowSmallPicUrl,
|
|
92
91
|
countStringify,
|
|
93
92
|
setTaroStorage,
|
|
94
93
|
getTaroStorageKeyValue,
|
|
95
94
|
removeTaroStorageKey,
|
|
96
95
|
clearTaroStorageKey,
|
|
97
96
|
getQualityImage,
|
|
98
97
|
getSystemInfos,
|
|
99
98
|
getWxAppCookieStr,
|
|
100
99
|
pxTransformFromData,
|
|
101
100
|
dealShopContentData,
|
|
102
101
|
dateFormat,
|
|
103
102
|
throttle,
|
|
104
103
|
lodashThrottle,
|
|
105
104
|
debounce,
|
|
106
105
|
addHttps,
|
|
107
106
|
showSuccessToast,
|
|
108
107
|
showFailToast,
|
|
109
108
|
showNormalToast,
|
|
110
109
|
showShopLoading,
|
|
111
110
|
hideShopLoading,
|
|
112
111
|
getAppChannelType,
|
|
113
112
|
formatTabActiveMenuType,
|
|
114
113
|
getAvifSupport,
|
|
115
114
|
getWebpSupport,
|
|
116
115
|
filterUrlQueryData,
|
|
117
116
|
isMemberPage,
|
|
118
117
|
getFloorDataToDataDefines,
|
|
119
118
|
sgmCustomReport,
|
|
120
119
|
isOpenJdAppUrl,
|
|
121
120
|
jdOpenAppParams,
|
|
122
121
|
createJdOpenAppUrl,
|
|
123
122
|
isEmpty,
|
|
124
123
|
isAppClassifyPage,
|
|
125
124
|
getJdAppReportPageSource,
|
|
126
125
|
isImageOptimizeEnable,
|
|
127
126
|
isPc,
|
|
128
127
|
ipLoc_djd,
|
|
129
128
|
isTjM,
|
|
130
129
|
isTjJxM,
|
|
131
130
|
isTjScence,
|
|
132
131
|
isH5AdnJxMini,
|
|
133
132
|
isTJApp,
|
|
134
133
|
isH5AdnHaoWuJie,
|
|
135
134
|
tjChannel,
|
|
136
135
|
dealJdOpenAppData,
|
|
137
136
|
jdAppVersionCompare,
|
|
138
137
|
dealNativePixelToCssPixel,
|
|
139
138
|
isAppStowShop,
|
|
140
139
|
getSgmCustomCode,
|
|
140
|
+
import {
|
|
141
141
|
isMin,
|
|
142
142
|
isJdMinAndHarmony,
|
|
143
143
|
isChartH5,
|
|
144
144
|
isH5AndJdShopViewH5Scroll,
|
|
145
145
|
isH5AndJdShopH5CustomScrollView,
|
|
146
146
|
getAvifSupport,
|
|
147
147
|
getWebpSupport,
|
|
148
148
|
isMemberPage,
|
|
149
149
|
sgmCustomReport,
|
|
150
150
|
draCustomReport,
|
|
151
151
|
remoteCustomReport,
|
|
152
152
|
draInterfaceCustomReport,
|
|
153
153
|
draBusinessCustomReport,
|
|
154
154
|
isOpenJdAppUrl,
|
|
155
155
|
jdOpenAppParams,
|
|
156
156
|
createJdOpenAppUrl,
|
|
157
157
|
isEmpty,
|
|
158
158
|
getJdAppReportPageSource,
|
|
159
159
|
isPc,
|
|
160
160
|
ipLoc_djd,
|
|
161
161
|
dealJdOpenAppData,
|
|
162
162
|
jdAppVersionCompare,
|
|
163
163
|
dealNativePixelToCssPixel,
|
|
164
164
|
isAppStowShop,
|
|
165
165
|
isImageOptimizeEnable,
|
|
166
166
|
isIpadDevice,
|
|
167
167
|
getBorderStyle,
|
|
168
168
|
isLanguageForEn,
|
|
169
169
|
console.warn("🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!")
|
|
170
170
|
return false
|
|
171
171
|
isJdAndHarmonyDevice,
|
|
172
172
|
isJdAndroidX5Core,
|
|
173
173
|
isMin,
|
|
174
174
|
isJdMinAndHarmony,
|
|
175
175
|
isChartH5,
|
|
176
176
|
isH5AndJdShopViewH5Scroll,
|
|
177
177
|
isH5AndJdShopH5CustomScrollView,
|
|
178
178
|
isH5AndJingGouMini,
|
|
179
179
|
urlCookie,
|
|
180
180
|
stopNativeScrollEvent,
|
|
181
181
|
getAvifSupport,
|
|
182
182
|
getWebpSupport,
|
|
183
183
|
isMemberPage,
|
|
184
184
|
sgmCustomReport,
|
|
185
185
|
draCustomReport,
|
|
186
186
|
remoteCustomReport,
|
|
187
187
|
draInterfaceCustomReport,
|
|
188
188
|
draBusinessCustomReport,
|
|
189
189
|
isOpenJdAppUrl,
|
|
190
190
|
jdOpenAppParams,
|
|
191
191
|
createJdOpenAppUrl,
|
|
192
192
|
isEmpty,
|
|
193
193
|
isAppHomeForMarketPage,
|
|
194
194
|
getJdAppReportPageSource,
|
|
195
195
|
isImageOptimizeEnable,
|
|
196
196
|
isPc,
|
|
197
197
|
ipLoc_djd,
|
|
198
198
|
isTjM,
|
|
199
199
|
isTjJxM,
|
|
200
200
|
isTjScence,
|
|
201
201
|
isH5AdnJxMini,
|
|
202
202
|
isTJApp,
|
|
203
203
|
isH5AdnHaoWuJie,
|
|
204
204
|
tjChannel,
|
|
205
205
|
dealJdOpenAppData,
|
|
206
206
|
jdAppVersionCompare,
|
|
207
207
|
dealNativePixelToCssPixel,
|
|
208
208
|
isAppStowShop,
|
|
209
209
|
getSgmCustomCode,
|
|
210
210
|
handleSgmCodeTaroVersion,
|
|
211
211
|
isInGrayscale,
|
|
212
212
|
isIpadDevice,
|
|
213
213
|
getBorderStyle,
|
|
214
214
|
isLanguageForEn,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
2
1
|
isJdApp,
|
|
3
2
|
isWxApp,
|
|
4
3
|
isIosDevice,
|
|
5
4
|
isAndroidDevice,
|
|
6
5
|
isJdAndIosDevice,
|
|
7
6
|
isJdAndAndroidDevice,
|
|
8
7
|
isWxMin,
|
|
9
8
|
isWxMinAndWxapp,
|
|
10
9
|
isJdMin,
|
|
11
10
|
isJdMinAndHarmony,
|
|
12
11
|
isH5,
|
|
13
12
|
isH5AndJdShopView,
|
|
14
13
|
isChartH5,
|
|
15
14
|
isH5AndJdShopViewNativeScroll,
|
|
16
15
|
isH5AndJdShopViewH5Scroll,
|
|
17
16
|
isH5AndJdShopH5CustomScrollView,
|
|
18
17
|
isWxMiniH5View,
|
|
19
18
|
sliceArrToChunkList,
|
|
20
19
|
dealAddress,
|
|
21
20
|
objectToUrlEncode,
|
|
22
21
|
parseQueryUrlString,
|
|
23
22
|
setLowSmallPicUrl,
|
|
24
23
|
setTaroStorage,
|
|
25
24
|
getTaroStorageKeyValue,
|
|
26
25
|
removeTaroStorageKey,
|
|
27
26
|
clearTaroStorageKey,
|
|
28
27
|
getQualityImage,
|
|
29
28
|
countStringify,
|
|
30
29
|
getSystemInfos,
|
|
31
30
|
getWxAppCookieStr,
|
|
32
31
|
pxTransformFromData,
|
|
33
32
|
dealShopContentData,
|
|
34
33
|
dateFormat,
|
|
35
34
|
throttle,
|
|
36
35
|
lodashThrottle,
|
|
37
36
|
debounce,
|
|
38
37
|
addHttps,
|
|
39
38
|
showSuccessToast,
|
|
40
39
|
showFailToast,
|
|
41
40
|
showNormalToast,
|
|
42
41
|
showShopLoading,
|
|
43
42
|
hideShopLoading,
|
|
44
43
|
getAppChannelType,
|
|
45
44
|
formatTabActiveMenuType,
|
|
46
45
|
getAvifSupport,
|
|
47
46
|
getWebpSupport,
|
|
48
47
|
filterUrlQueryData,
|
|
49
48
|
sgmCustomReport,
|
|
50
49
|
isOpenJdAppUrl,
|
|
51
50
|
jdOpenAppParams,
|
|
52
51
|
createJdOpenAppUrl,
|
|
53
52
|
isEmpty,
|
|
54
53
|
getJdAppReportPageSource,
|
|
55
54
|
isMemberPage,
|
|
56
55
|
isAppClassifyPage,
|
|
57
56
|
dealJdOpenAppData,
|
|
58
57
|
jdAppVersionCompare,
|
|
59
58
|
dealNativePixelToCssPixel,
|
|
60
59
|
isImageOptimizeEnable,
|
|
61
60
|
isJdApp,
|
|
62
61
|
isWxApp,
|
|
63
62
|
isIosDevice,
|
|
64
63
|
isAndroidDevice,
|
|
65
64
|
isJdAndIosDevice,
|
|
66
65
|
isJdAndAndroidDevice,
|
|
67
66
|
isJdAndHarmonyDevice,
|
|
68
67
|
isJdAndroidX5Core,
|
|
69
68
|
isWxMin,
|
|
70
69
|
isWxMinAndWxapp,
|
|
71
70
|
isJdMin,
|
|
72
71
|
isMin,
|
|
73
72
|
isJdMinAndHarmony,
|
|
74
73
|
isH5,
|
|
75
74
|
isH5AndJdShopView,
|
|
76
75
|
isChartH5,
|
|
77
76
|
isH5AndJdShopViewNativeScroll,
|
|
78
77
|
isH5AndJdShopViewH5Scroll,
|
|
79
78
|
isH5AndJdShopH5CustomScrollView,
|
|
80
79
|
isH5AndJingGouMini,
|
|
81
80
|
isWxMiniH5View,
|
|
82
81
|
urlCookie,
|
|
83
82
|
sliceArrToChunkList,
|
|
84
83
|
dealAddress,
|
|
85
84
|
objectToUrlEncode,
|
|
86
85
|
parseQueryUrlString,
|
|
87
86
|
setLowSmallPicUrl,
|
|
88
87
|
setTaroStorage,
|
|
89
88
|
getTaroStorageKeyValue,
|
|
90
89
|
removeTaroStorageKey,
|
|
91
90
|
clearTaroStorageKey,
|
|
92
91
|
getQualityImage,
|
|
93
92
|
countStringify,
|
|
94
93
|
getSystemInfos,
|
|
95
94
|
getWxAppCookieStr,
|
|
96
95
|
pxTransformFromData,
|
|
97
96
|
dealShopContentData,
|
|
98
97
|
dateFormat,
|
|
99
98
|
throttle,
|
|
100
99
|
lodashThrottle,
|
|
101
100
|
debounce,
|
|
102
101
|
addHttps,
|
|
103
102
|
showSuccessToast,
|
|
104
103
|
showFailToast,
|
|
105
104
|
showNormalToast,
|
|
106
105
|
showShopLoading,
|
|
107
106
|
hideShopLoading,
|
|
108
107
|
getAppChannelType,
|
|
109
108
|
formatTabActiveMenuType,
|
|
110
109
|
getAvifSupport,
|
|
111
110
|
getWebpSupport,
|
|
112
111
|
filterUrlQueryData,
|
|
113
112
|
getFloorDataToDataDefines,
|
|
114
113
|
sgmCustomReport,
|
|
115
114
|
isOpenJdAppUrl,
|
|
116
115
|
jdOpenAppParams,
|
|
117
116
|
createJdOpenAppUrl,
|
|
118
117
|
isEmpty,
|
|
119
118
|
getJdAppReportPageSource,
|
|
120
119
|
isMemberPage,
|
|
121
120
|
isAppClassifyPage,
|
|
122
121
|
isImageOptimizeEnable,
|
|
123
122
|
isPc,
|
|
124
123
|
isTjM,
|
|
125
124
|
isTjJxM,
|
|
126
125
|
isTjScence,
|
|
127
126
|
isH5AdnJxMini,
|
|
128
127
|
isTJApp,
|
|
129
128
|
isH5AdnHaoWuJie,
|
|
130
129
|
tjChannel,
|
|
131
130
|
dealJdOpenAppData,
|
|
132
131
|
jdAppVersionCompare,
|
|
133
132
|
dealNativePixelToCssPixel,
|
|
134
133
|
getSgmCustomCode,
|
|
134
|
+
import {
|
|
135
135
|
isJdMinAndHarmony,
|
|
136
136
|
isChartH5,
|
|
137
137
|
isH5AndJdShopViewH5Scroll,
|
|
138
138
|
isH5AndJdShopH5CustomScrollView,
|
|
139
139
|
getAvifSupport,
|
|
140
140
|
getWebpSupport,
|
|
141
141
|
sgmCustomReport,
|
|
142
142
|
draCustomReport,
|
|
143
143
|
remoteCustomReport,
|
|
144
144
|
draInterfaceCustomReport,
|
|
145
145
|
draBusinessCustomReport,
|
|
146
146
|
isOpenJdAppUrl,
|
|
147
147
|
jdOpenAppParams,
|
|
148
148
|
createJdOpenAppUrl,
|
|
149
149
|
isEmpty,
|
|
150
150
|
getJdAppReportPageSource,
|
|
151
151
|
isMemberPage,
|
|
152
152
|
isAppClassifyPage,
|
|
153
153
|
dealJdOpenAppData,
|
|
154
154
|
jdAppVersionCompare,
|
|
155
155
|
dealNativePixelToCssPixel,
|
|
156
156
|
isImageOptimizeEnable,
|
|
157
157
|
isIpadDevice,
|
|
158
158
|
getBorderStyle,
|
|
159
159
|
isLanguageForEn,
|
|
160
160
|
console.warn("🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!")
|
|
161
161
|
return false
|
|
162
162
|
isJdAndHarmonyDevice,
|
|
163
163
|
isJdAndroidX5Core,
|
|
164
164
|
isMin,
|
|
165
165
|
isJdMinAndHarmony,
|
|
166
166
|
isH5AndJdShopViewH5Scroll,
|
|
167
167
|
isH5AndJdShopH5CustomScrollView,
|
|
168
168
|
isH5AndJingGouMini,
|
|
169
169
|
urlCookie,
|
|
170
170
|
stopNativeScrollEvent,
|
|
171
171
|
getAvifSupport,
|
|
172
172
|
getWebpSupport,
|
|
173
173
|
sgmCustomReport,
|
|
174
174
|
draCustomReport,
|
|
175
175
|
remoteCustomReport,
|
|
176
176
|
draInterfaceCustomReport,
|
|
177
177
|
draBusinessCustomReport,
|
|
178
178
|
isOpenJdAppUrl,
|
|
179
179
|
jdOpenAppParams,
|
|
180
180
|
createJdOpenAppUrl,
|
|
181
181
|
isEmpty,
|
|
182
182
|
getJdAppReportPageSource,
|
|
183
183
|
isMemberPage,
|
|
184
184
|
isAppClassifyPage,
|
|
185
185
|
isAppHomeForMarketPage,
|
|
186
186
|
isImageOptimizeEnable,
|
|
187
187
|
isPc,
|
|
188
188
|
isTjM,
|
|
189
189
|
isTjJxM,
|
|
190
190
|
isTjScence,
|
|
191
191
|
isH5AdnJxMini,
|
|
192
192
|
isTJApp,
|
|
193
193
|
isH5AdnHaoWuJie,
|
|
194
194
|
tjChannel,
|
|
195
195
|
dealJdOpenAppData,
|
|
196
196
|
jdAppVersionCompare,
|
|
197
197
|
dealNativePixelToCssPixel,
|
|
198
198
|
getSgmCustomCode,
|
|
199
199
|
handleSgmCodeTaroVersion,
|
|
200
200
|
isInGrayscale,
|
|
201
201
|
isIpadDevice,
|
|
202
202
|
getBorderStyle,
|
|
203
203
|
isLanguageForEn,
|
|
@@ -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 || {}
|