@conecli/cone-render 0.8.20-shop.71 → 0.8.20-shop.73
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ready from '../utils/ready'
|
|
2
|
return new Promise((resolve, reject) => {
|
|
1
3
|
ready('jmfe', timeout)
|
|
2
4
|
.then(() => {
|
|
3
5
|
registerCode(JSSDK_APP_WEBVIEW_CODE)
|
|
4
6
|
resolve(window.jmfe)
|
|
5
7
|
})
|
|
6
8
|
.catch(() => {
|
|
7
9
|
console.log('window.jmfe不存在')
|
|
8
10
|
reject(null)
|
|
9
11
|
})
|
|
10
12
|
})
|
|
11
13
|
if (jmfe) {
|
|
12
14
|
console.log('registerCode:', code)
|
|
13
15
|
jmfe.registerCode(code)
|
|
14
16
|
} else {
|
|
15
17
|
console.warn('jmfe对象不存在,可能没有提前引入jd-jssdk.js')
|
|
16
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { Button, View } from '@tarojs/components'
|
|
2
1
|
NetWorkErrorSubTip,
|
|
3
2
|
subMessage,
|
|
4
3
|
backgroundColorWhite,
|
|
5
4
|
const useErrorTip = message != '' ? message : NetWorkErrorTip[netWorkDataType]
|
|
6
5
|
const useErrorSubTip = subMessage? subMessage: NetWorkErrorSubTip[netWorkDataType]
|
|
7
6
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
|
|
8
7
|
const maxHeight = latestRes.displayHeight || 546
|
|
9
8
|
style={{maxHeight: isMemberPage ? '100vh' : maxHeight}}
|
|
10
9
|
{useErrorSubTip? <View className={netWorkErrorStyle['d-error-sub-tip']}>{useErrorSubTip}</View>: null}
|
|
11
10
|
<Button
|
|
12
11
|
onClick={refershInitData}
|
|
13
12
|
className={classNames(
|
|
14
13
|
netWorkErrorStyle['d-opt-btn'],
|
|
15
14
|
'd-button-no-border',
|
|
16
15
|
)}
|
|
17
16
|
plain
|
|
18
17
|
size="mini"
|
|
19
18
|
>
|
|
20
19
|
重新加载
|
|
21
20
|
</Button>
|
|
22
21
|
)}
|
|
23
22
|
subMessage: '',
|
|
23
|
+
import { Button, View } from '@tarojs/components'
|
|
24
24
|
NetWorkErrorList,
|
|
25
25
|
NetWorkErrorTip,
|
|
26
26
|
NetWorkErrorSubTip,
|
|
27
27
|
NetWorkShowType,
|
|
28
28
|
NetWork_Image_Type,
|
|
29
29
|
const {
|
|
30
30
|
className,
|
|
31
31
|
message,
|
|
32
32
|
subMessage,
|
|
33
33
|
btnLabel,
|
|
34
34
|
backgroundColorWhite,
|
|
35
35
|
netWorkDataType,
|
|
36
36
|
netWorkShowType,
|
|
37
37
|
netWorkImageType,
|
|
38
38
|
refreshCallBackFn,
|
|
39
39
|
} = props
|
|
40
40
|
const refershInitData = useCallback(() => {
|
|
41
41
|
refreshCallBackFn && refreshCallBackFn(true)
|
|
42
42
|
}, [])
|
|
43
43
|
const useErrorTip = message != '' ? message : NetWorkErrorTip[netWorkDataType]
|
|
44
44
|
const useErrorSubTip = subMessage
|
|
45
45
|
? subMessage
|
|
46
46
|
: NetWorkErrorSubTip[netWorkDataType]
|
|
47
47
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
|
|
48
48
|
const maxHeight = latestRes.displayHeight || 546
|
|
49
49
|
return NetWorkErrorList.includes(netWorkDataType as NETWORK_DATA_TYPE) ? (
|
|
50
50
|
<View
|
|
51
51
|
style={{ maxHeight: isMemberPage ? '100vh' : maxHeight }}
|
|
52
52
|
className={classNames(
|
|
53
53
|
netWorkErrorStyle['d-shop-network'],
|
|
54
54
|
{
|
|
55
55
|
[netWorkErrorStyle['d-shop-network-white']]: backgroundColorWhite,
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
[netWorkErrorStyle['d-shop-network-part']]:
|
|
59
59
|
netWorkShowType === NetWorkShowType.PART,
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
[netWorkErrorStyle['d-network-jd-shop-view']]: isH5AndJdShopView,
|
|
63
63
|
},
|
|
64
64
|
'flexible-center-box',
|
|
65
65
|
className,
|
|
66
66
|
)}
|
|
67
67
|
>
|
|
68
68
|
<View className={netWorkErrorStyle['d-error-content']}>
|
|
69
69
|
<View
|
|
70
70
|
className={classNames(
|
|
71
71
|
netWorkErrorStyle['d-error-type'],
|
|
72
72
|
netWorkErrorStyle[`d-${netWorkDataType}`],
|
|
73
73
|
netWorkErrorStyle[`d-${netWorkImageType}`],
|
|
74
74
|
)}
|
|
75
75
|
/>
|
|
76
76
|
<View className={netWorkErrorStyle['d-error-tip']}>{useErrorTip}</View>
|
|
77
77
|
{useErrorSubTip ? (
|
|
78
78
|
<View className={netWorkErrorStyle['d-error-sub-tip']}>
|
|
79
79
|
{useErrorSubTip}
|
|
80
80
|
</View>
|
|
81
81
|
) : null}
|
|
82
82
|
<View className={'flexible-horizontal-center-box'}>
|
|
83
83
|
{refreshCallBackFn && (
|
|
84
84
|
<Button
|
|
85
85
|
onClick={refershInitData}
|
|
86
86
|
className={classNames(
|
|
87
87
|
netWorkErrorStyle['d-opt-btn'],
|
|
88
88
|
'd-button-no-border',
|
|
89
89
|
)}
|
|
90
90
|
plain
|
|
91
91
|
size="mini"
|
|
92
92
|
>
|
|
93
93
|
{btnLabel}
|
|
94
94
|
</Button>
|
|
95
95
|
)}
|
|
96
96
|
</View>
|
|
97
97
|
</View>
|
|
98
98
|
</View>
|
|
99
99
|
) : null
|
|
100
100
|
className: '',
|
|
101
101
|
message: '',
|
|
102
102
|
subMessage: '',
|
|
103
103
|
btnLabel: '重新加载',
|
|
104
104
|
backgroundColorWhite: false,
|
|
105
105
|
netWorkDataType: NETWORK_DATA_TYPE.NORMAL,
|
|
106
106
|
netWorkImageType: NetWork_Image_Type.No_Data_Default_Tip,
|
|
107
107
|
netWorkShowType: NetWorkShowType.FULL,
|
|
108
108
|
refreshCallBackFn: null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
subMessage?: string
|
|
3
2
|
floorLoadWay?: number
|
|
4
3
|
showCommonFloorHead?: boolean
|
|
5
4
|
isRealTimeRender: boolean
|
|
6
5
|
customErrorIsvFloorModule?: React.ReactElement | undefined
|
|
7
6
|
containerIndex?: number
|
|
8
7
|
containerData?: any
|
|
9
8
|
shopTotalInfo?: any
|
|
10
9
|
selectContainerFn?: Function
|
|
11
10
|
selectContainerId?: string
|
|
12
11
|
placeHolderPreContainerId?: string
|
|
13
12
|
children?: any
|
|
14
13
|
style?: {
|
|
15
14
|
[key: string]: any
|
|
16
15
|
};
|
|
17
16
|
layoutLeftRightMargin?: number
|
|
18
17
|
}
|
|
19
18
|
onFormSubmit?: Function
|
|
20
19
|
onFormReset?: Function
|
|
21
20
|
isFormDialog?: boolean
|
|
22
21
|
forbiddenBgScrollState?: boolean
|
|
22
|
+
import React from 'react'
|
|
23
23
|
subMessage?: string
|
|
24
24
|
floorLoadWay?: number
|
|
25
25
|
showCommonFloorHead?: boolean
|
|
26
26
|
isRealTimeRender: boolean
|
|
27
27
|
customErrorIsvFloorModule?: React.ReactElement | undefined
|
|
28
28
|
containerIndex?: number
|
|
29
29
|
containerData?: any
|
|
30
30
|
shopTotalInfo?: any
|
|
31
31
|
selectContainerFn?: Function
|
|
32
32
|
selectContainerId?: string
|
|
33
33
|
placeHolderPreContainerId?: string
|
|
34
34
|
children?: any
|
|
35
35
|
style?: {
|
|
36
36
|
[key: string]: any
|
|
37
37
|
};
|
|
38
38
|
layoutLeftRightMargin?: number
|
|
39
39
|
}
|
|
40
40
|
onFormSubmit?: Function
|
|
41
41
|
onFormReset?: Function
|
|
42
42
|
isFormDialog?: boolean
|
|
43
43
|
forbiddenBgScrollState?: boolean
|
package/dist/open/api/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import * as device from './device'
|
|
2
1
|
device,
|
|
3
2
|
environment,
|
|
4
3
|
jump,
|
|
5
4
|
storage,
|
|
6
5
|
util,
|
|
7
6
|
moduleUtil,
|
|
8
7
|
track,
|
|
9
8
|
trackPromise,
|
|
10
9
|
global,
|
|
11
10
|
http,
|
|
12
11
|
shopMember,
|
|
13
12
|
userToken,
|
|
14
13
|
TokenPlatform,
|
|
15
14
|
requestServer,
|
|
16
15
|
isvStorage,
|
|
16
|
+
import * as device from './device'
|
|
17
17
|
device,
|
|
18
18
|
environment,
|
|
19
19
|
jump,
|
|
20
20
|
storage,
|
|
21
21
|
util,
|
|
22
22
|
moduleUtil,
|
|
23
23
|
track,
|
|
24
24
|
trackPromise,
|
|
25
25
|
global,
|
|
26
26
|
http,
|
|
27
27
|
shopMember,
|
|
28
28
|
userToken,
|
|
29
29
|
TokenPlatform,
|
|
30
30
|
requestServer,
|
|
31
31
|
isvStorage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conecli/cone-render",
|
|
3
|
-
"version": "0.8.20-shop.
|
|
3
|
+
"version": "0.8.20-shop.73",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
],
|
|
62
62
|
"author": "conecli",
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@tarojs/cli": "
|
|
64
|
+
"@tarojs/cli": "3.5.4",
|
|
65
65
|
"@tarojs/components": "3.5.4",
|
|
66
66
|
"@tarojs/plugin-framework-react": "3.5.4",
|
|
67
67
|
"@tarojs/react": "3.5.4",
|
|
@@ -115,6 +115,8 @@
|
|
|
115
115
|
"webpack": "5.69.0"
|
|
116
116
|
},
|
|
117
117
|
"resolutions": {
|
|
118
|
-
"@babel/runtime": "7.23.7"
|
|
118
|
+
"@babel/runtime": "7.23.7",
|
|
119
|
+
"@tarojs/cli": "3.5.4",
|
|
120
|
+
"@tarojs/helper": "3.5.4"
|
|
119
121
|
}
|
|
120
122
|
}
|