@conecli/cone-render 0.10.1-shop-beta.13 → 0.10.1-shop-beta.15
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/common/const.ts +1 -1
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.dynamic.module.scss +110 -0
- package/dist/components/base/NetworkDataError/index.dynamic.tsx +1 -0
- package/dist/interface/component.ts +1 -1
- package/dist/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/index.dynamic.ts +1 -1
- package/dist/jumpEventReport/index.ts +1 -1
- package/dist/jumpEventReport/index.weapp.ts +1 -1
- package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- package/dist/utils/index.h5.ts +1 -1
- package/dist/utils/utils.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import { NETWORK_DATA_TYPE } from '../../../common/const';
|
|
2
1
|
[NETWORK_DATA_TYPE.NO_NET_WORK]: '网络连接已断开',
|
|
3
2
|
[NETWORK_DATA_TYPE.DATA_ERROR]: '数据加载失败',
|
|
4
3
|
[NETWORK_DATA_TYPE.NO_DATA]: '你访问的内容飞到太空了',
|
|
5
4
|
[NETWORK_DATA_TYPE.RISK]: '活动太火爆',
|
|
6
5
|
[NETWORK_DATA_TYPE.NO_NET_WORK]: '请检查您的网络设置',
|
|
7
6
|
[NETWORK_DATA_TYPE.DATA_ERROR]: '请稍后重试',
|
|
8
7
|
[NETWORK_DATA_TYPE.NO_DATA]: '',
|
|
9
8
|
[NETWORK_DATA_TYPE.RISK]: '页面加载失败,请稍后再试',
|
|
10
9
|
NETWORK_DATA_TYPE.NO_NET_WORK,
|
|
11
10
|
NETWORK_DATA_TYPE.DATA_ERROR,
|
|
12
11
|
NETWORK_DATA_TYPE.NO_DATA,
|
|
13
12
|
NETWORK_DATA_TYPE.RISK,
|
|
14
13
|
PART: 'part',
|
|
15
14
|
FULL: 'full',
|
|
16
15
|
No_Data_Default_Tip: 'no-data-default-tip',
|
|
17
16
|
No_Data_Tip_1: 'no-data-tip-1',
|
|
18
17
|
No_Data_Tip_2: 'no-data-tip-2',
|
|
19
18
|
No_Network_Err_Tip: 'no-network',
|
|
20
19
|
No_Data_Bmall: 'no-data-bmall',
|
|
21
20
|
OLD: 'old',
|
|
22
21
|
NEW: 'new',
|
|
22
|
+
import { NETWORK_DATA_TYPE } from '../../../common/const';
|
|
23
23
|
[NETWORK_DATA_TYPE.NO_NET_WORK]: '网络连接已断开',
|
|
24
24
|
[NETWORK_DATA_TYPE.DATA_ERROR]: '数据加载失败',
|
|
25
25
|
[NETWORK_DATA_TYPE.NO_DATA]: '你访问的内容飞到太空了',
|
|
26
26
|
[NETWORK_DATA_TYPE.RISK]: '活动太火爆',
|
|
27
27
|
[NETWORK_DATA_TYPE.NO_NET_WORK]: '请检查您的网络设置',
|
|
28
28
|
[NETWORK_DATA_TYPE.DATA_ERROR]: '请稍后重试',
|
|
29
29
|
[NETWORK_DATA_TYPE.NO_DATA]: '',
|
|
30
30
|
[NETWORK_DATA_TYPE.RISK]: '页面加载失败,请稍后再试',
|
|
31
31
|
NETWORK_DATA_TYPE.NO_NET_WORK,
|
|
32
32
|
NETWORK_DATA_TYPE.DATA_ERROR,
|
|
33
33
|
NETWORK_DATA_TYPE.NO_DATA,
|
|
34
34
|
NETWORK_DATA_TYPE.RISK,
|
|
35
35
|
PART: 'part',
|
|
36
36
|
FULL: 'full',
|
|
37
37
|
No_Data_Default_Tip: 'no-data-default-tip',
|
|
38
38
|
No_Data_Tip_1: 'no-data-tip-1',
|
|
39
39
|
No_Data_Tip_2: 'no-data-tip-2',
|
|
40
40
|
No_Network_Err_Tip: 'no-network',
|
|
41
41
|
No_Data_Bmall: 'no-data-bmall',
|
|
42
42
|
noData: 'no-data-empty',
|
|
43
43
|
netWorkErr: 'network-err',
|
|
44
44
|
searchEmpty: 'search-empty',
|
|
45
45
|
shopClose: 'shop-close',
|
|
46
46
|
OLD: 'old',
|
|
47
47
|
NEW: 'new',
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
|
|
2
|
+
.d-shop-network {
|
|
3
|
+
position: fixed;
|
|
4
|
+
padding-bottom: 160px;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
background: #e5e5e5;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
&.d-shop-network-white {
|
|
12
|
+
background-color: #fff;
|
|
13
|
+
}
|
|
14
|
+
.d-error-content {
|
|
15
|
+
text-align: center;
|
|
16
|
+
.d-data-error,
|
|
17
|
+
.d-no-data{
|
|
18
|
+
width: 320px;
|
|
19
|
+
height: 320px;
|
|
20
|
+
background: url('https://img13.360buyimg.com/img/jfs/t1/338555/32/1332/105413/68abc87dFeaf0b55c/75f29c7a376aab33.png')
|
|
21
|
+
0 0 /320px 320px no-repeat;
|
|
22
|
+
}
|
|
23
|
+
.d-opt-btn {
|
|
24
|
+
width: 160px;
|
|
25
|
+
height: 64px;
|
|
26
|
+
line-height: 64px;
|
|
27
|
+
font-size: 28px;
|
|
28
|
+
color: #1a1a1a;
|
|
29
|
+
border-radius: 12px;
|
|
30
|
+
border: none;
|
|
31
|
+
|
|
32
|
+
&:after{
|
|
33
|
+
border: 1PX solid #C2C4CC;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.d-error-tip {
|
|
39
|
+
text-align: center;
|
|
40
|
+
line-height: 36px;
|
|
41
|
+
font-size: 32px;
|
|
42
|
+
font-weight: 600;
|
|
43
|
+
color: #1A1A1A;
|
|
44
|
+
}
|
|
45
|
+
.d-error-no-sub-tip,
|
|
46
|
+
.d-error-sub-tip {
|
|
47
|
+
margin-top: 20px;
|
|
48
|
+
line-height: 26px;
|
|
49
|
+
font-size: 24px;
|
|
50
|
+
text-align: center;
|
|
51
|
+
color: #505259;
|
|
52
|
+
font-weight: normal;
|
|
53
|
+
}
|
|
54
|
+
.d-error-type {
|
|
55
|
+
margin: 0 auto;
|
|
56
|
+
width: 320px;
|
|
57
|
+
height: 320px;
|
|
58
|
+
background-size: contain;
|
|
59
|
+
background-repeat: no-repeat;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.d-no-network {
|
|
63
|
+
// background-image: url('https://m.360buyimg.com/imagetools/jfs/t1/219405/34/29129/32963/64892a0eF2c068392/86c3fcf9d980ff10.png');
|
|
64
|
+
//background-image: url('../../../assets/networkError.png');
|
|
65
|
+
background-image: url('https://img20.360buyimg.com/img/jfs/t1/288585/18/14561/112286/68a2be15Fe5ac83cf/4c7a0aab9b5637da.png');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.d-data-error {
|
|
69
|
+
background-image: url('https://m.360buyimg.com/imagetools/jfs/t1/106708/34/36128/37234/64896f52Fed1530e0/7b403e068aae316c.png');
|
|
70
|
+
}
|
|
71
|
+
.d-risk {
|
|
72
|
+
background-image: url('https://m.360buyimg.com/imagetools/jfs/t1/106708/34/36128/37234/64896f52Fed1530e0/7b403e068aae316c.png');
|
|
73
|
+
}
|
|
74
|
+
.d-no-data {
|
|
75
|
+
background-image: url('https://img13.360buyimg.com/img/jfs/t1/338555/32/1332/105413/68abc87dFeaf0b55c/75f29c7a376aab33.png');
|
|
76
|
+
}
|
|
77
|
+
.d-search-empty {
|
|
78
|
+
background-image: url('https://img13.360buyimg.com/img/jfs/t1/324272/38/10433/126399/68abc9f3Faeb1be1e/cfe0f3f8af9b4cf1.png');
|
|
79
|
+
}
|
|
80
|
+
.d-shop-close {
|
|
81
|
+
background-image: url('https://img20.360buyimg.com/img/jfs/t1/332566/11/3756/130550/68abca38Feeda2bc3/706b2bbbdfefe19f.png');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.d-opt-btn {
|
|
85
|
+
display: flex;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
align-items: center;
|
|
88
|
+
width: 144px;
|
|
89
|
+
height: 56px;
|
|
90
|
+
margin-top: 32px;
|
|
91
|
+
padding: 0;
|
|
92
|
+
font-size: 24px;
|
|
93
|
+
color: #fa2c19;
|
|
94
|
+
border: 1px solid #fa2c19;
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
border-radius: 48px;
|
|
97
|
+
&:active {
|
|
98
|
+
opacity: 0.8;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.d-shop-network-part {
|
|
104
|
+
position: absolute;
|
|
105
|
+
min-height: 500px;
|
|
106
|
+
background: #f2f2f2;
|
|
107
|
+
}
|
|
108
|
+
.d-shop-network-no-position {
|
|
109
|
+
position: static;
|
|
110
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Button, View } from '@tarojs/components';
|
|
2
|
NetWorkErrorList,
|
|
1
3
|
NetWorkErrorTip,
|
|
2
4
|
NetWorkErrorSubTip,
|
|
3
5
|
NetWorkShowType,
|
|
4
6
|
NetWorkBusinessType,
|
|
5
7
|
const {
|
|
6
8
|
className = '',
|
|
7
9
|
message = '',
|
|
8
10
|
subMessage = '',
|
|
9
11
|
btnLabel = '重新加载',
|
|
10
12
|
backgroundColorWhite = false,
|
|
11
13
|
netWorkDataType = NETWORK_DATA_TYPE.NORMAL,
|
|
12
14
|
netWorkShowType = NetWorkShowType.FULL,
|
|
13
15
|
netWorkBusinessType = NetWorkBusinessType.noData,
|
|
14
16
|
refreshCallBackFn = null,
|
|
15
17
|
viewMaxHeight = '',
|
|
16
18
|
noPosition = false,
|
|
17
19
|
} = props;
|
|
18
20
|
const refershInitData = useCallback(() => {
|
|
19
21
|
refreshCallBackFn && refreshCallBackFn(true);
|
|
20
22
|
}, []);
|
|
21
23
|
const useErrorTip = message && message !== '' ? message : NetWorkErrorTip[netWorkDataType];
|
|
22
24
|
const useErrorSubTip = subMessage && subMessage !== "" ? subMessage : NetWorkErrorSubTip[netWorkDataType];
|
|
23
25
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {};
|
|
24
26
|
const maxHeight = latestRes?.displayHeight || 0;
|
|
25
27
|
return NetWorkErrorList.includes(netWorkDataType as NETWORK_DATA_TYPE) ? (
|
|
26
28
|
<View
|
|
27
29
|
style={{
|
|
28
30
|
maxHeight: viewMaxHeight !== '' ? viewMaxHeight : maxHeight > 0 ? maxHeight : '100vh',
|
|
29
31
|
}}
|
|
30
32
|
className={classNames(
|
|
31
33
|
netWorkErrorStyle['d-shop-network'],
|
|
32
34
|
{
|
|
33
35
|
[netWorkErrorStyle['d-shop-network-white']]: backgroundColorWhite,
|
|
34
36
|
},
|
|
35
37
|
{
|
|
36
38
|
[netWorkErrorStyle['d-shop-network-part']]: netWorkShowType === NetWorkShowType.PART,
|
|
37
39
|
},
|
|
38
40
|
{
|
|
39
41
|
[netWorkErrorStyle['d-shop-network-no-position']]: noPosition,
|
|
40
42
|
},
|
|
41
43
|
'flexible-center-box',
|
|
42
44
|
className,
|
|
43
45
|
)}
|
|
44
46
|
>
|
|
45
47
|
<View
|
|
46
48
|
className={classNames(
|
|
47
49
|
netWorkErrorStyle['d-error-content'],
|
|
48
50
|
'd-error-content',
|
|
49
51
|
)}
|
|
50
52
|
>
|
|
51
53
|
<View
|
|
52
54
|
className={classNames(
|
|
53
55
|
netWorkErrorStyle['d-error-type'],
|
|
54
56
|
netWorkErrorStyle[`d-${netWorkDataType}`],
|
|
55
57
|
netWorkErrorStyle[`d-${netWorkBusinessType}`],
|
|
56
58
|
'd-error-type',
|
|
57
59
|
)}
|
|
58
60
|
/>
|
|
59
61
|
<View
|
|
60
62
|
className={classNames(
|
|
61
63
|
netWorkErrorStyle['d-error-tip'],
|
|
62
64
|
netWorkErrorStyle[`d-${netWorkDataType}-tip`],
|
|
63
65
|
{
|
|
64
66
|
[netWorkErrorStyle[`d-error-no-sub-tip`]]: !useErrorSubTip
|
|
65
67
|
},
|
|
66
68
|
'd-error-tip',
|
|
67
69
|
)}
|
|
68
70
|
>
|
|
69
71
|
{useErrorTip}
|
|
70
72
|
</View>
|
|
71
73
|
{useErrorSubTip ? (
|
|
72
74
|
<View
|
|
73
75
|
className={classNames(
|
|
74
76
|
netWorkErrorStyle['d-error-sub-tip'],
|
|
75
77
|
netWorkErrorStyle[`d-${netWorkDataType}-sub-tip`],
|
|
76
78
|
'd-error-sub-tip',
|
|
77
79
|
)}
|
|
78
80
|
>
|
|
79
81
|
{useErrorSubTip}
|
|
80
82
|
</View>
|
|
81
83
|
) : null}
|
|
82
84
|
<View className={'flexible-horizontal-center-box'}>
|
|
83
85
|
{refreshCallBackFn && (
|
|
84
86
|
<Button
|
|
85
87
|
onClick={refershInitData}
|
|
86
88
|
className={classNames(
|
|
87
89
|
netWorkErrorStyle['d-opt-btn'],
|
|
88
90
|
'd-button-no-border',
|
|
89
91
|
'd-opt-btn',
|
|
90
92
|
)}
|
|
91
93
|
plain
|
|
92
94
|
size="mini"
|
|
93
95
|
>
|
|
94
96
|
{btnLabel}
|
|
95
97
|
</Button>
|
|
96
98
|
)}
|
|
97
99
|
</View>
|
|
98
100
|
</View>
|
|
99
101
|
</View>
|
|
100
102
|
) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
subMessage?: string
|
|
3
2
|
netWorkStyleType?: string
|
|
4
3
|
viewMaxHeight?: string
|
|
5
4
|
noPosition?: boolean
|
|
6
5
|
floorLoadWay?: number
|
|
7
6
|
floorKind?: number
|
|
8
7
|
shopId?: string
|
|
9
8
|
moduleDesignerType?: string
|
|
10
9
|
showCommonFloorHead?: boolean
|
|
11
10
|
borderRadius: number
|
|
12
11
|
borderTopLeftRadius?: number
|
|
13
12
|
borderTopRightRadius?: number
|
|
14
13
|
borderBottomLeftRadius?: number
|
|
15
14
|
borderBottomRightRadius?: number
|
|
16
15
|
marginTop?: number
|
|
17
16
|
marginBottom?: number
|
|
18
17
|
marginLeft?: number
|
|
19
18
|
marginRight?: number
|
|
20
19
|
paddingTop?: number
|
|
21
20
|
paddingBottom?: number
|
|
22
21
|
paddingLeft?: number
|
|
23
22
|
paddingRight?: number
|
|
24
23
|
containerId: string
|
|
25
24
|
background?: string
|
|
26
25
|
containerPosition?: string
|
|
27
26
|
key?: string
|
|
28
27
|
floors: floorItemData[]
|
|
29
28
|
includeUids: string[]
|
|
30
29
|
typeCn: string
|
|
31
30
|
typeCode?: string
|
|
32
31
|
addLuxuryStyle?: boolean
|
|
33
32
|
addLuxuryBackupStyle?: boolean
|
|
34
33
|
renderExtendComponent?: functionType
|
|
35
34
|
insertContainerStartComponent?: functionType
|
|
36
35
|
floorExtendData?: any
|
|
37
36
|
}
|
|
38
37
|
isRealTimeRender: boolean
|
|
39
38
|
forceRenderTime: number
|
|
40
39
|
luxuryFixed?: boolean
|
|
41
40
|
customErrorIsvFloorModule?: React.ReactElement | undefined
|
|
42
41
|
containerIndex?: number
|
|
43
42
|
containerData?: any
|
|
44
43
|
shopTotalInfo?: any
|
|
45
44
|
selectContainerFn?: functionType
|
|
46
45
|
selectContainerId?: string
|
|
47
46
|
placeHolderPreContainerId?: string
|
|
48
47
|
children?: any
|
|
49
48
|
luxuryFixed?: boolean
|
|
50
49
|
style?: {
|
|
51
50
|
[key: string]: any
|
|
52
51
|
};
|
|
53
52
|
layoutLeftRightMargin?: number
|
|
54
53
|
}
|
|
55
54
|
isShowPlaceHolder?: boolean
|
|
56
55
|
|
|
57
56
|
useFontV2?: boolean
|
|
58
57
|
useFontV2Bold?: boolean
|
|
59
58
|
onlyShowDaySpaceTextState?: boolean
|
|
60
59
|
showDayToSecondState?: boolean
|
|
61
60
|
useFontV2: boolean
|
|
62
61
|
useFontV2Bold: boolean
|
|
63
62
|
onFormSubmit?: functionType
|
|
64
63
|
onFormReset?: functionType
|
|
65
64
|
isFormDialog?: boolean
|
|
66
65
|
forbiddenBgScrollState?: boolean
|
|
67
66
|
evenList: any[]
|
|
68
67
|
oddList: any[]
|
|
68
|
+
import React from 'react'
|
|
69
69
|
netWorkBusinessType?: string
|
|
70
70
|
subMessage?: string
|
|
71
71
|
netWorkStyleType?: string
|
|
72
72
|
viewMaxHeight?: string
|
|
73
73
|
noPosition?: boolean
|
|
74
74
|
floorLoadWay?: number
|
|
75
75
|
floorKind?: number
|
|
76
76
|
shopId?: string
|
|
77
77
|
moduleDesignerType?: string
|
|
78
78
|
showCommonFloorHead?: boolean
|
|
79
79
|
borderRadius: number
|
|
80
80
|
borderTopLeftRadius?: number
|
|
81
81
|
borderTopRightRadius?: number
|
|
82
82
|
borderBottomLeftRadius?: number
|
|
83
83
|
borderBottomRightRadius?: number
|
|
84
84
|
marginTop?: number
|
|
85
85
|
marginBottom?: number
|
|
86
86
|
marginLeft?: number
|
|
87
87
|
marginRight?: number
|
|
88
88
|
paddingTop?: number
|
|
89
89
|
paddingBottom?: number
|
|
90
90
|
paddingLeft?: number
|
|
91
91
|
paddingRight?: number
|
|
92
92
|
containerId: string
|
|
93
93
|
background?: string
|
|
94
94
|
containerPosition?: string
|
|
95
95
|
key?: string
|
|
96
96
|
floors: floorItemData[]
|
|
97
97
|
includeUids: string[]
|
|
98
98
|
typeCn: string
|
|
99
99
|
typeCode?: string
|
|
100
100
|
addLuxuryStyle?: boolean
|
|
101
101
|
addLuxuryBackupStyle?: boolean
|
|
102
102
|
renderExtendComponent?: functionType
|
|
103
103
|
insertContainerStartComponent?: functionType
|
|
104
104
|
floorExtendData?: any
|
|
105
105
|
}
|
|
106
106
|
isRealTimeRender: boolean
|
|
107
107
|
forceRenderTime: number
|
|
108
108
|
luxuryFixed?: boolean
|
|
109
109
|
customErrorIsvFloorModule?: React.ReactElement | undefined
|
|
110
110
|
containerIndex?: number
|
|
111
111
|
containerData?: any
|
|
112
112
|
shopTotalInfo?: any
|
|
113
113
|
selectContainerFn?: functionType
|
|
114
114
|
selectContainerId?: string
|
|
115
115
|
placeHolderPreContainerId?: string
|
|
116
116
|
children?: any
|
|
117
117
|
luxuryFixed?: boolean
|
|
118
118
|
style?: {
|
|
119
119
|
[key: string]: any
|
|
120
120
|
};
|
|
121
121
|
layoutLeftRightMargin?: number
|
|
122
122
|
}
|
|
123
123
|
isShowPlaceHolder?: boolean
|
|
124
124
|
|
|
125
125
|
useFontV2?: boolean
|
|
126
126
|
useFontV2Bold?: boolean
|
|
127
127
|
onlyShowDaySpaceTextState?: boolean
|
|
128
128
|
showDayToSecondState?: boolean
|
|
129
129
|
useFontV2: boolean
|
|
130
130
|
useFontV2Bold: boolean
|
|
131
131
|
onFormSubmit?: functionType
|
|
132
132
|
onFormReset?: functionType
|
|
133
133
|
isFormDialog?: boolean
|
|
134
134
|
forbiddenBgScrollState?: boolean
|
|
135
135
|
evenList: any[]
|
|
136
136
|
oddList: any[]
|