@conecli/cone-render 0.9.1-shop2.3 → 0.9.1-shop2.31
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/assets/icon_blue_info.svg +1 -0
- 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/common.ts +1 -0
- 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/Base/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/debug/DebugLayout/index.module.scss +67 -0
- package/dist/components/debug/DebugLayout/index.tsx +1 -0
- package/dist/components/debug/DebugLayout/utils.ts +1 -0
- 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/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/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 +26 -3
- package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
- package/dist/utils/memberFormatUtils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
2
1
|
console.log('PageScrollEnd fire')
|
|
3
2
|
Taro.eventCenter.trigger(TaroEventType.PAGE_SCROLL_END, options)
|
|
4
3
|
Taro.eventCenter.trigger(TaroEventType.PAGE_INIT_EXPOSURE, options)
|
|
4
|
+
import Taro from '@tarojs/taro'
|
|
5
5
|
console.log('PageScrollEnd fire')
|
|
6
6
|
Taro.eventCenter.trigger(TaroEventType.PAGE_SCROLL_END, options)
|
|
7
7
|
Taro.eventCenter.trigger(TaroEventType.PAGE_INIT_EXPOSURE, options)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import JdDraProfileAndException from
|
|
1
|
+
import JdDraProfileAndException from './jm-js-agent-jd-profile'
|
|
2
2
|
JdDraProfileAndException.jdProfiler.init({
|
|
3
3
|
flag: 149,
|
|
4
4
|
autoReport: true,
|
|
5
5
|
autoAddApiReport: true,
|
|
6
6
|
})
|
|
7
7
|
JdDraProfileAndException.JSAgent.init({
|
|
8
8
|
flag: 149,
|
|
9
9
|
rate: 1,
|
|
10
10
|
ignoreErrors: [],
|
|
11
11
|
ignoreUrls: [],
|
|
12
12
|
})
|
package/dist/utils/h5Utils.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
2
1
|
isApp,
|
|
3
2
|
isIOS,
|
|
4
3
|
getAppVersion,
|
|
5
4
|
version,
|
|
6
5
|
getUUID,
|
|
7
6
|
getUrlQuery,
|
|
8
7
|
assign,
|
|
9
8
|
isString,
|
|
10
9
|
isObject,
|
|
11
10
|
serialize,
|
|
12
11
|
isAndroid, versionCompare,
|
|
13
12
|
CHANNEL_TYPE,
|
|
14
13
|
JDShopViewBusinessPathType,
|
|
15
14
|
JDShopViewBusinessPathList,
|
|
16
15
|
SECTION_HOME_TAB_NAME_TYPE,
|
|
17
16
|
SECTION_HOME_TAB_TYPE,
|
|
18
17
|
parseQueryUrlString(window?.location?.href ?? ''),
|
|
19
18
|
try {
|
|
20
19
|
return JSON.parse(decodeURIComponent(getUrlQuery('cookie')))
|
|
21
20
|
} catch (e) {
|
|
22
21
|
return {}
|
|
23
22
|
}
|
|
24
23
|
isWxMiniH5View && urlCookie['wxapp_type'] == '1'
|
|
25
24
|
if (isJdApp) {
|
|
26
25
|
isIosDevice
|
|
27
26
|
? e && e.stopPropagation()
|
|
28
27
|
: androidDeviceStopNativeScrollEvent(state)
|
|
29
28
|
}
|
|
30
29
|
isJdApp &&
|
|
31
30
|
isAndroidDevice &&
|
|
32
31
|
window?.JdAndroid &&
|
|
33
32
|
window?.JdAndroid.requestEvent(state)
|
|
34
33
|
if (isH5AndJdShopView) {
|
|
35
34
|
return (
|
|
36
35
|
CHANNEL_TYPE[currentChannel] ||
|
|
37
36
|
CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
|
|
38
37
|
)
|
|
39
38
|
}
|
|
40
39
|
return null
|
|
41
40
|
isH5 && ['/app/home', '/app/classify', '/app/newProduct', '/member/shopcard'].includes(urlPathname)
|
|
42
41
|
const getCustomObj = {
|
|
43
42
|
type: 1,
|
|
44
43
|
code: 'all',
|
|
45
44
|
cost1: 1,
|
|
46
45
|
...customObj
|
|
47
46
|
}
|
|
48
47
|
try {
|
|
49
48
|
window.__sgm__.custom(getCustomObj, '9HwAEg@fTtWBB3EnwA5VgLT')
|
|
50
49
|
} catch (e) {}
|
|
50
|
+
import {
|
|
51
51
|
isApp,
|
|
52
52
|
isIOS,
|
|
53
53
|
getAppVersion,
|
|
54
54
|
version,
|
|
55
55
|
getUUID,
|
|
56
56
|
getUrlQuery,
|
|
57
57
|
assign,
|
|
58
58
|
isString,
|
|
59
59
|
isObject,
|
|
60
60
|
serialize,
|
|
61
61
|
isAndroid,
|
|
62
62
|
versionCompare,
|
|
63
63
|
isIPad,
|
|
64
64
|
CHANNEL_TYPE,
|
|
65
65
|
JDShopViewBusinessPathType,
|
|
66
66
|
SECTION_HOME_TAB_NAME_TYPE,
|
|
67
67
|
SECTION_HOME_TAB_TYPE,
|
|
68
68
|
DraBuryPointFlags,
|
|
69
69
|
MPAAS_CONFIG_APP_VERSION,
|
|
70
70
|
parseQueryUrlObj,
|
|
71
71
|
if (window?.__sgm__) {
|
|
72
72
|
resolve(true)
|
|
73
73
|
} else {
|
|
74
74
|
if (isSgmReadyError) {
|
|
75
75
|
console.log("当前sgm初始化失败")
|
|
76
76
|
reject(false)
|
|
77
77
|
} else {
|
|
78
78
|
ready('__sgm__', 2000).then(() => {
|
|
79
79
|
isSgmReadyError = false
|
|
80
80
|
console.log("当前sgm初始化成功")
|
|
81
81
|
resolve(true)
|
|
82
82
|
}).catch(() => {
|
|
83
83
|
isSgmReadyError = true
|
|
84
84
|
console.log("当前sgm初始化失败")
|
|
85
85
|
reject(false)
|
|
86
86
|
})
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
console.log(message)
|
|
90
90
|
reject(new Error(message))
|
|
91
91
|
return ready('dra', 2000)
|
|
92
92
|
.then(() => {
|
|
93
93
|
isNewDraSdkReadyError = false
|
|
94
94
|
console.log('当前新版烛龙sdk初始化成功')
|
|
95
95
|
return true
|
|
96
96
|
})
|
|
97
97
|
.catch(() => {
|
|
98
98
|
isNewDraSdkReadyError = true
|
|
99
99
|
throw new Error('当前新版烛龙sdk初始化失败')
|
|
100
100
|
})
|
|
101
101
|
return new Promise((resolve, reject) => {
|
|
102
102
|
if (window?.dra) {
|
|
103
103
|
resolve(true)
|
|
104
104
|
} else if (isNewDraSdkReadyError) {
|
|
105
105
|
logAndReject('当前新版烛龙sdk初始化失败', reject)
|
|
106
106
|
} else {
|
|
107
107
|
initializeDraSdk()
|
|
108
108
|
.then(resolve)
|
|
109
109
|
.catch(error => logAndReject(error.message, reject))
|
|
110
110
|
}
|
|
111
111
|
})
|
|
112
112
|
try {
|
|
113
113
|
return JSON.parse(decodeURIComponent(getUrlQuery('cookie')))
|
|
114
114
|
} catch (e) {
|
|
115
115
|
return {}
|
|
116
116
|
}
|
|
117
117
|
isWxMiniH5View && urlCookie['wxapp_type'] == '1'
|
|
118
118
|
if (isH5AdnJxMini) {
|
|
119
119
|
return 'jxxcx'
|
|
120
120
|
} else if (isTJApp) {
|
|
121
121
|
return 'tjapp'
|
|
122
122
|
} else if (isTjM) {
|
|
123
123
|
return 'tjm'
|
|
124
124
|
} else if (isTjJxM) {
|
|
125
125
|
return 'jxh5'
|
|
126
126
|
}
|
|
127
127
|
return ''
|
|
128
128
|
START: 'start',
|
|
129
129
|
MOVE: 'move',
|
|
130
130
|
END: 'end',
|
|
131
131
|
x: 0,
|
|
132
132
|
y: 0
|
|
133
133
|
const startX = startPos.x
|
|
134
134
|
const startY = startPos.y
|
|
135
135
|
const endX = touchEvent.clientX
|
|
136
136
|
const endY = touchEvent.clientY
|
|
137
137
|
const dy = startY - endY
|
|
138
138
|
const dx = endX - startX
|
|
139
139
|
let result = 0
|
|
140
140
|
if (Math.abs(dx) < 2 && Math.abs(dy) < 2) {
|
|
141
141
|
return result
|
|
142
142
|
}
|
|
143
143
|
const angle = Math.atan2(dy,dx) * 180 / Math.PI
|
|
144
144
|
if (angle >= -45 && angle < 45) {
|
|
145
145
|
result = 4
|
|
146
146
|
} else if (angle >= 45 && angle < 135) {
|
|
147
147
|
result = 1
|
|
148
148
|
} else if (angle >= -135 && angle < -45) {
|
|
149
149
|
result = 2
|
|
150
150
|
} else if ((angle >= 135 && angle <= 180) || (angle >= -180 && angle < -135)) {
|
|
151
151
|
result = 3
|
|
152
152
|
}
|
|
153
153
|
return result
|
|
154
154
|
if (isJdApp && e) {
|
|
155
155
|
const touchEvent =
|
|
156
156
|
e?.originalEvent?.targetTouches[0] || e?.targetTouches[0]
|
|
157
157
|
let _touchState = touchType
|
|
158
158
|
let _getDirectionState = false
|
|
159
159
|
if(touchType === TouchType.START){
|
|
160
160
|
StopNativeScrollEventPos.x = touchEvent.clientX
|
|
161
161
|
StopNativeScrollEventPos.y = touchEvent.clientY
|
|
162
162
|
}else if(touchType === TouchType.MOVE){
|
|
163
163
|
_getDirectionState = [1,2].includes(touchMoveGetSlideDirection(StopNativeScrollEventPos,touchEvent))
|
|
164
164
|
if(_getDirectionState){
|
|
165
165
|
_touchState = TouchType.END
|
|
166
166
|
}
|
|
167
167
|
console.log("对外提供阻止横滑方法,当前touchType为move,设定1、2向上或向下方向,当前计算后的滑动是否为纵向", _getDirectionState)
|
|
168
168
|
}else if(touchType === TouchType.END){
|
|
169
169
|
StopNativeScrollEventPos.x = 0
|
|
170
170
|
StopNativeScrollEventPos.y = 0
|
|
171
171
|
}
|
|
172
172
|
isIosDevice
|
|
173
173
|
? iosDeviceStopNativeScrollEvent(e, _touchState, stopTouchDocumentScrollState)
|
|
174
174
|
: androidDeviceStopNativeScrollEvent(_touchState, stopTouchDocumentScrollState)
|
|
175
175
|
if(!isAppHomeForMarketPage && stopTouchDocumentScrollState && _touchState === TouchType.START){
|
|
176
176
|
rootEleNode && rootEleNode.classList.add('over-hidden')
|
|
177
177
|
}
|
|
178
178
|
if(_touchState === TouchType.MOVE && _getDirectionState){
|
|
179
179
|
rootEleNode && rootEleNode.classList.contains('over-hidden') && rootEleNode.classList.remove('over-hidden')
|
|
180
180
|
}else if (_touchState === TouchType.END) {
|
|
181
181
|
setTimeout(() => {
|
|
182
182
|
rootEleNode && rootEleNode.classList.contains('over-hidden') && rootEleNode.classList.remove('over-hidden')
|
|
183
183
|
},isAppHomeForMarketPage || _getDirectionState ? 0 : 200)
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
isJdApp &&
|
|
187
187
|
touchType !== TouchType.MOVE &&
|
|
188
188
|
isAndroidDevice &&
|
|
189
189
|
window?.JdAndroid &&
|
|
190
190
|
window?.JdAndroid.requestEvent(touchType === TouchType.START)
|
|
191
191
|
console.log("对外提供阻止安卓横滑方法,true-禁止外部事件H5可滑动,false-外部拦截h5事件,当前touchType为",touchType,"当前非move触发requestEvent状态为",touchType === TouchType.START,"当前stopTouchDocumentScrollState为",stopTouchDocumentScrollState)
|
|
192
192
|
e && e.stopPropagation();
|
|
193
193
|
console.log("对外提供阻止ios横滑方法,当前touchType为", touchType, "当前stopTouchDocumentScrollState为",stopTouchDocumentScrollState)
|
|
194
194
|
window?.webkit?.messageHandlers?.MobileNavi?.postMessage?.({
|
|
195
195
|
method: 'callRouterModuleWithParams',
|
|
196
196
|
params: {
|
|
197
197
|
routerURL: 'router://JDShopModule/processShoph5SlideState',
|
|
198
198
|
routerParam: {
|
|
199
199
|
slideDirection: 'horizontal',
|
|
200
200
|
state: touchType,
|
|
201
201
|
},
|
|
202
202
|
callBackId: new Date().getTime(),
|
|
203
203
|
},
|
|
204
204
|
})
|
|
205
205
|
if (isH5AndJdShopView) {
|
|
206
206
|
return (
|
|
207
207
|
CHANNEL_TYPE[currentChannel] ||
|
|
208
208
|
CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
|
|
209
209
|
)
|
|
210
210
|
}
|
|
211
211
|
return null
|
|
212
212
|
isH5 && isJdApp && ['/app/home', '/app/classify', '/member/shopcard','/favorite/list', '/favorite/home'].includes(urlPathname)
|
|
213
213
|
isH5 && isJdApp && !['/app/home'].includes(urlPathname)
|
|
214
214
|
return isJdApp ? versionCompare(nowVersion, compareVersion) : -2
|
|
215
215
|
getSgmReadyPromise().then(() => {
|
|
216
216
|
if (
|
|
217
217
|
customObj.hasOwnProperty('code') &&
|
|
218
218
|
customObj.code.indexOf(NO_ENVIRONMENT_AND_PAGE_TYPE_FLAG) !== -1
|
|
219
219
|
) {
|
|
220
220
|
const originCode = customObj.code.substring(
|
|
221
221
|
NO_ENVIRONMENT_AND_PAGE_TYPE_FLAG.length,
|
|
222
222
|
customObj.code.length,
|
|
223
223
|
)
|
|
224
224
|
customObj['code'] = getSgmCustomCode(handleSgmCodeTaroVersion(originCode))
|
|
225
225
|
}
|
|
226
226
|
const getCustomObj = {
|
|
227
227
|
type: 1,
|
|
228
228
|
code: 'all',
|
|
229
229
|
cost1: 1,
|
|
230
230
|
...customObj
|
|
231
231
|
}
|
|
232
232
|
try {
|
|
233
233
|
window.__sgm__.custom(getCustomObj, '9HwAEg@fTtWBB3EnwA5VgLT')
|
|
234
234
|
} catch (e) {
|
|
235
235
|
console.log("当前sgm上报异常, 原始数据为",JSON.stringify(customObj))
|
|
236
236
|
}
|
|
237
237
|
}).catch(() => {
|
|
238
238
|
console.error("当前页面sgm加载异常,无法进行异常上报, 原始数据为",JSON.stringify(customObj))
|
|
239
239
|
})
|
|
240
240
|
try {
|
|
241
241
|
await getNewDraSdkReadyPromise()
|
|
242
242
|
const draBurypointFlag = name ?? DraBuryPointFlags.BUSINESS
|
|
243
243
|
const commonObj = {
|
|
244
244
|
shopId: `${global.info.queryInfo.shopId || ''}`,
|
|
245
245
|
venderId: `${global.info.queryInfo.venderId || ''}`,
|
|
246
246
|
taroRenderVersion: window?.taroRenderVersion,
|
|
247
247
|
environmentType: getEnvironmentType(),
|
|
248
248
|
pageType: getPageType(),
|
|
249
249
|
}
|
|
250
250
|
try {
|
|
251
251
|
window.dra.sendCustomEvent(
|
|
252
252
|
{
|
|
253
253
|
name: draBurypointFlag,
|
|
254
254
|
metrics: {
|
|
255
255
|
timeStamp: Date.now(),
|
|
256
256
|
...customMetricsObj
|
|
257
257
|
},
|
|
258
258
|
context: {
|
|
259
259
|
...commonObj,
|
|
260
260
|
...customContextObj,
|
|
261
261
|
},
|
|
262
262
|
},
|
|
263
263
|
true,
|
|
264
264
|
)
|
|
265
265
|
} catch (e) {
|
|
266
266
|
console.error(
|
|
267
267
|
'当前新版烛龙sdk上报异常, 原始数据为',
|
|
268
268
|
JSON.stringify({ ...customContextObj, ...customMetricsObj }),
|
|
269
269
|
'e',
|
|
270
270
|
e,
|
|
271
271
|
)
|
|
272
272
|
}
|
|
273
273
|
} catch (e) {
|
|
274
274
|
console.error(
|
|
275
275
|
'当前页面新版烛龙sdk加载异常,无法进行异常上报, 原始数据为',
|
|
276
276
|
JSON.stringify({ ...customContextObj, ...customMetricsObj }),
|
|
277
277
|
'e',
|
|
278
278
|
e,
|
|
279
279
|
)
|
|
280
280
|
}
|
|
281
281
|
draCustomReport(customContextObj, customMetricsObj, DraBuryPointFlags.REMOTE)
|
|
282
282
|
customContextObj = {},
|
|
283
283
|
customMetricsObj = {},
|
|
284
284
|
draCustomReport(customContextObj, customMetricsObj, DraBuryPointFlags.INTERFACE)
|
|
285
285
|
customContextObj = {},
|
|
286
286
|
customMetricsObj = {},
|
|
287
287
|
draCustomReport(
|
|
288
288
|
customContextObj,
|
|
289
289
|
customMetricsObj,
|
|
290
290
|
DraBuryPointFlags.BUSINESS,
|
|
291
291
|
)
|
|
292
292
|
if(isJdAndAndroidDevice && typeof displayObj === 'object'){
|
|
293
293
|
const deviceRatio = window?.devicePixelRatio
|
|
294
294
|
Object.keys(displayObj).forEach(key => {
|
|
295
295
|
if(key === 'nativeHeaderHeight'){
|
|
296
296
|
displayObj[key] = Math.ceil(displayObj[key] / (deviceRatio * deviceRatio) - 2)
|
|
297
297
|
}else {
|
|
298
298
|
displayObj[key] = Math.ceil(displayObj[key] / deviceRatio)
|
|
299
299
|
}
|
|
300
300
|
})
|
|
301
301
|
}
|
|
302
302
|
return displayObj
|
|
303
303
|
jdAppVersionCompare(MPAAS_CONFIG_APP_VERSION) >= 0
|