@conecli/cone-render 0.8.15-alpha.19 → 0.8.15-alpha.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react'
|
|
2
2
|
<View className={blockStyle['skeleton-header']}>
|
|
3
3
|
<Image
|
|
4
4
|
className={blockStyle['skeleton-header-img']}
|
|
5
5
|
src={ShopHeaderSvgUrl}
|
|
6
6
|
mode='widthFix'
|
|
7
7
|
/>
|
|
8
8
|
</View>
|
|
9
9
|
<View className={blockStyle['skeleton-new-product']}>
|
|
10
10
|
<ContentLoader viewBox='0 0 375 280' {...props}>
|
|
11
11
|
<rect x='10' y='38' rx='5' ry='5' width='355' height='55' />
|
|
12
12
|
<rect x='12' y='112' rx='3' ry='3' width='111' height='95' />
|
|
13
13
|
<rect x='12' y='11' rx='3' ry='3' width='100' height='10' />
|
|
14
14
|
<rect x='254' y='112' rx='3' ry='3' width='111' height='95' />
|
|
15
15
|
<rect x='14' y='218' rx='0' ry='0' width='111' height='27' />
|
|
16
16
|
<rect x='261' y='217' rx='0' ry='0' width='111' height='27' />
|
|
17
17
|
<rect x='134' y='112' rx='3' ry='3' width='111' height='95' />
|
|
18
18
|
<rect x='133' y='218' rx='0' ry='0' width='111' height='27' />
|
|
19
19
|
<rect x='20' y='255' rx='0' ry='0' width='100' height='9' />
|
|
20
20
|
<rect x='140' y='255' rx='0' ry='0' width='100' height='9' />
|
|
21
21
|
<rect x='263' y='255' rx='0' ry='0' width='100' height='9' />
|
|
22
22
|
</ContentLoader>
|
|
23
23
|
</View>
|
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,
|
|
13
12
|
CHANNEL_TYPE,
|
|
14
13
|
JDShopViewBusinessPathType,
|
|
15
14
|
JDShopViewBusinessPathList,
|
|
16
15
|
SECTION_HOME_TAB_NAME_TYPE,
|
|
17
16
|
parseQueryUrlString(window?.location?.href?? ''),
|
|
18
17
|
try{
|
|
19
18
|
return JSON.parse(decodeURIComponent(getUrlQuery('cookie')))
|
|
20
19
|
}catch(e){
|
|
21
20
|
return {}
|
|
22
21
|
}
|
|
23
22
|
if (isJdApp) {
|
|
24
23
|
isIosDevice
|
|
25
24
|
? e && e.stopPropagation()
|
|
26
25
|
: androidDeviceStopNativeScrollEvent(state)
|
|
27
26
|
}
|
|
28
27
|
isJdApp &&
|
|
29
28
|
isAndroidDevice &&
|
|
30
29
|
window?.JdAndroid &&
|
|
31
30
|
window?.JdAndroid.requestEvent(state)
|
|
32
31
|
if (isH5AndJdShopView) {
|
|
33
32
|
return (
|
|
34
33
|
CHANNEL_TYPE[currentChannel] ||
|
|
35
34
|
CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
|
|
36
35
|
)
|
|
37
36
|
}
|
|
38
37
|
return null
|
|
38
|
+
import {
|
|
39
39
|
isApp,
|
|
40
40
|
isIOS,
|
|
41
41
|
getAppVersion,
|
|
42
42
|
version,
|
|
43
43
|
getUUID,
|
|
44
44
|
getUrlQuery,
|
|
45
45
|
assign,
|
|
46
46
|
isString,
|
|
47
47
|
isObject,
|
|
48
48
|
serialize,
|
|
49
49
|
isAndroid,
|
|
50
50
|
CHANNEL_TYPE,
|
|
51
51
|
JDShopViewBusinessPathType,
|
|
52
52
|
JDShopViewBusinessPathList,
|
|
53
53
|
SECTION_HOME_TAB_NAME_TYPE,
|
|
54
54
|
parseQueryUrlString(window?.location?.href ?? ''),
|
|
55
55
|
try {
|
|
56
56
|
return JSON.parse(decodeURIComponent(getUrlQuery('cookie')))
|
|
57
57
|
} catch (e) {
|
|
58
58
|
return {}
|
|
59
59
|
}
|
|
60
60
|
isWxMiniH5View && urlCookie['wxapp_type'] == '1'
|
|
61
61
|
if (isJdApp) {
|
|
62
62
|
isIosDevice
|
|
63
63
|
? e && e.stopPropagation()
|
|
64
64
|
: androidDeviceStopNativeScrollEvent(state)
|
|
65
65
|
}
|
|
66
66
|
isJdApp &&
|
|
67
67
|
isAndroidDevice &&
|
|
68
68
|
window?.JdAndroid &&
|
|
69
69
|
window?.JdAndroid.requestEvent(state)
|
|
70
70
|
if (isH5AndJdShopView) {
|
|
71
71
|
return (
|
|
72
72
|
CHANNEL_TYPE[currentChannel] ||
|
|
73
73
|
CHANNEL_TYPE[JDShopViewBusinessPathType.HOME]
|
|
74
74
|
)
|
|
75
75
|
}
|
|
76
76
|
return null
|
|
77
77
|
isH5 && ['/app/home', '/app/classify'].includes(urlPathname)
|