@conecli/cone-render 0.10.1-shop3.8 → 0.10.1-shop3.80
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/README.md +1 -1
- package/dist/api/index.ts +1 -1
- package/dist/common/accessibility.h5.ts +1 -0
- package/dist/common/accessibility.ts +0 -0
- package/dist/common/const.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/jdplayerSdk.weapp.tsx +1 -0
- package/dist/common/jssdk.ts +1 -1
- package/dist/common/jssdk.weapp.ts +1 -0
- package/dist/common/pageType.ts +1 -1
- package/dist/common/token/index.h5.ts +1 -1
- package/dist/common/token/token.jd.ts +1 -1
- package/dist/common/wxappApi.ts +1 -1
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CommonFloorHead/index.tsx +1 -1
- package/dist/components/base/CountDown/index.tsx +1 -1
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/CustomVideo/index.tsx +1 -1
- package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
- package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +118 -72
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/base/Price/Base/index.module.scss +12 -0
- package/dist/components/base/Price/Base/index.tsx +1 -1
- package/dist/components/base/Price/Double/index.module.scss +24 -0
- package/dist/components/base/Price/Double/index.tsx +1 -1
- package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
- package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
- package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
- package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
- package/dist/components/debug/DebugLayout/index.module.scss +2 -2
- 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/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.h5.ts +1 -0
- 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.pc.ts +1 -1
- package/dist/jumpEventReport/web.tjm.ts +1 -1
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/language/en_US.json +274 -0
- package/dist/language/zh_CN.json +274 -0
- package/dist/language/zh_HK.json +274 -0
- package/dist/libs/openShopBridge.js +161 -0
- package/dist/libs/openShopBridge.min.js +1 -0
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.module.scss +16 -2
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +1 -1
- package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
- package/dist/open/api/environment.ts +1 -1
- package/dist/open/api/shopMember.ts +1 -1
- package/dist/open/api/shopMember.weapp.ts +1 -0
- 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/open/index.ts +1 -1
- package/dist/sass/app.h5.scss +27 -1
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/fetchGateway.weapp.ts +1 -1
- package/dist/service/fetchJsonp.weapp.ts +1 -0
- package/dist/service/http/const.ts +1 -1
- package/dist/service/http/h5Http.ts +1 -1
- package/dist/service/http/httpInterceptors.weapp.ts +1 -0
- package/dist/service/requestServer.h5.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- package/dist/service/requestServer.weapp.ts +1 -1
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/h5Utils.ts +1 -1
- package/dist/utils/harmonyCallRouter.h5.ts +1 -0
- package/dist/utils/harmonyCallRouter.ts +0 -0
- 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/jumpExtMapUtil.ts +1 -0
- package/dist/utils/log.ts +1 -0
- package/dist/utils/{sColor.js → sColor.ts} +1 -1
- package/dist/utils/sColor.weapp.ts +1 -0
- package/dist/utils/utils.ts +1 -1
- package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
- package/dist/wxapp/common/user_info.js +1 -1
- package/package.json +162 -141
- package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
- package/dist/utils/priceUtils.js +0 -1
- /package/dist/utils/{jumpExtMapUtil.js → jumpExtMapUtil.h5.ts} +0 -0
|
@@ -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
|
No_Data_Bmall:'no-data-bmall',
|
|
14
|
+
import { NETWORK_DATA_TYPE } from '../../../common/const';
|
|
15
15
|
[NETWORK_DATA_TYPE.NO_NET_WORK]: global?.languageJsonData?.loseNetwork || '网络连接已断开',
|
|
16
16
|
[NETWORK_DATA_TYPE.DATA_ERROR]:
|
|
17
17
|
global?.languageJsonData?.highTraffic || '活动太火爆,访问人数较多',
|
|
18
18
|
[NETWORK_DATA_TYPE.NO_DATA]: global?.languageJsonData?.highTraffic || '活动太火爆,访问人数较多',
|
|
19
19
|
[NETWORK_DATA_TYPE.RISK]: global?.languageJsonData?.highTraffic || '活动太火爆,访问人数较多',
|
|
20
20
|
[NETWORK_DATA_TYPE.NO_NET_WORK]: global?.languageJsonData?.checkNetwork || '请检查您的网络设置',
|
|
21
21
|
[NETWORK_DATA_TYPE.DATA_ERROR]:
|
|
22
22
|
global?.languageJsonData?.pageLoadFailed || '排队进场中,请稍后再试',
|
|
23
23
|
[NETWORK_DATA_TYPE.NO_DATA]: global?.languageJsonData?.pageLoadFailed || '排队进场中,请稍后再试',
|
|
24
24
|
[NETWORK_DATA_TYPE.RISK]: `${
|
|
25
25
|
global?.languageJsonData?.pageLoadFailed || '排队进场中,请稍后再试'
|
|
26
26
|
}。`,
|
|
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
|
PART: 'part',
|
|
32
32
|
FULL: 'full',
|
|
33
33
|
No_Data_Default_Tip: 'no-data-default-tip',
|
|
34
34
|
No_Data_Tip_1: 'no-data-tip-1',
|
|
35
35
|
No_Data_Tip_2: 'no-data-tip-2',
|
|
36
36
|
No_Network_Err_Tip: 'no-network',
|
|
37
37
|
No_Data_Bmall: 'no-data-bmall',
|
|
38
38
|
OLD: 'old',
|
|
39
39
|
NEW: 'new',
|
|
@@ -1,94 +1,140 @@
|
|
|
1
1
|
|
|
2
2
|
.d-shop-network {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
background: #e5e5e5;
|
|
9
|
+
&.d-shop-network-white {
|
|
10
|
+
background-color: #fff;
|
|
11
|
+
}
|
|
12
|
+
.d-error-content {
|
|
13
|
+
text-align: center;
|
|
14
|
+
&.d-new-style-content {
|
|
15
|
+
.d-data-error,
|
|
16
|
+
.d-no-data,
|
|
17
|
+
.d-no-data-tip-1,
|
|
18
|
+
.d-no-data-tip-2 {
|
|
19
|
+
width: 240px;
|
|
20
|
+
height: 240px;
|
|
21
|
+
background: url('https://img11.360buyimg.com/imagetools/jfs/t1/256437/5/21857/22576/67b438adFed8a2665/7df7277fec7e3e8e.png')
|
|
22
|
+
0 0 /240px 240px no-repeat;
|
|
23
|
+
}
|
|
24
|
+
.d-data-error-tip {
|
|
25
|
+
padding-bottom: 24px;
|
|
26
|
+
line-height: 38px;
|
|
27
|
+
font-size: 32px;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
color: #1a1a1a;
|
|
30
|
+
}
|
|
31
|
+
.d-data-error-sub-tip {
|
|
32
|
+
margin: 0;
|
|
33
|
+
font-size: 24px;
|
|
34
|
+
color: #505259;
|
|
35
|
+
}
|
|
36
|
+
.d-no-data-tip {
|
|
37
|
+
line-height: 44px;
|
|
38
|
+
font-size: 24px;
|
|
39
|
+
font-weight: normal;
|
|
40
|
+
color: #505259;
|
|
41
|
+
}
|
|
42
|
+
.d-no-data-sub-tip {
|
|
43
|
+
margin: 0;
|
|
44
|
+
font-weight: normal;
|
|
45
|
+
color: #505259;
|
|
46
|
+
}
|
|
47
|
+
.d-opt-btn {
|
|
48
|
+
width: 160px;
|
|
49
|
+
height: 64px;
|
|
50
|
+
line-height: 64px;
|
|
51
|
+
font-size: 28px;
|
|
52
|
+
color: #1a1a1a;
|
|
53
|
+
border-radius: 12px;
|
|
54
|
+
border: none;
|
|
55
|
+
|
|
56
|
+
&:after{
|
|
57
|
+
border: 1PX solid #C2C4CC;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
15
62
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
63
|
+
.d-error-tip {
|
|
64
|
+
font-size: 28px;
|
|
65
|
+
font-weight: bold;
|
|
66
|
+
line-height: 28px;
|
|
67
|
+
color: #1a1a1a;
|
|
68
|
+
}
|
|
69
|
+
.d-error-sub-tip {
|
|
70
|
+
margin-top: 16px;
|
|
71
|
+
font-size: 24px;
|
|
72
|
+
line-height: 24px;
|
|
73
|
+
color: #8c8c8c;
|
|
74
|
+
}
|
|
75
|
+
.d-error-type {
|
|
76
|
+
width: 320px;
|
|
77
|
+
height: 320px;
|
|
78
|
+
background-size: contain;
|
|
79
|
+
background-repeat: no-repeat;
|
|
33
80
|
margin: 0 auto;
|
|
34
|
-
|
|
81
|
+
}
|
|
35
82
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
83
|
+
.d-no-network {
|
|
84
|
+
// background-image: url('https://m.360buyimg.com/imagetools/jfs/t1/219405/34/29129/32963/64892a0eF2c068392/86c3fcf9d980ff10.png');
|
|
85
|
+
background-image: url('../../../assets/networkError.png');
|
|
86
|
+
}
|
|
40
87
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
88
|
+
.d-data-error {
|
|
89
|
+
background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/256437/5/21857/22576/67b438adFed8a2665/7df7277fec7e3e8e.png');
|
|
90
|
+
}
|
|
44
91
|
.d-risk {
|
|
45
|
-
background-image: url('https://
|
|
92
|
+
background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/256437/5/21857/22576/67b438adFed8a2665/7df7277fec7e3e8e.png');
|
|
93
|
+
}
|
|
94
|
+
.d-no-data {
|
|
95
|
+
background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/256437/5/21857/22576/67b438adFed8a2665/7df7277fec7e3e8e.png');
|
|
96
|
+
}
|
|
97
|
+
.d-no-data-tip-1 {
|
|
98
|
+
background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/256437/5/21857/22576/67b438adFed8a2665/7df7277fec7e3e8e.png');
|
|
46
99
|
}
|
|
47
|
-
.d-no-data {
|
|
48
|
-
background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/190994/19/325/42717/6088fed0Ec4b502d5/0e8de7593fb0d06c.png');
|
|
49
|
-
}
|
|
50
|
-
.d-no-data-tip-1 {
|
|
51
|
-
background-image: url('https://img14.360buyimg.com/imagetools/jfs/t1/152550/40/8432/21643/5fc9cae0E5391a506/523da679188ff687.png');
|
|
52
|
-
}
|
|
53
|
-
|
|
54
100
|
.d-no-data-tip-2 {
|
|
55
|
-
background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/
|
|
101
|
+
background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/256437/5/21857/22576/67b438adFed8a2665/7df7277fec7e3e8e.png');
|
|
102
|
+
}
|
|
103
|
+
.d-no-network-err-tip {
|
|
104
|
+
background-image: url('https://img14.360buyimg.com/imagetools/jfs/t1/146556/1/17745/7493/5fd1e62dE86e86669/96f5c91befa8e991.png');
|
|
56
105
|
}
|
|
57
|
-
.d-no-network-err-tip {
|
|
58
|
-
background-image: url('https://img14.360buyimg.com/imagetools/jfs/t1/146556/1/17745/7493/5fd1e62dE86e86669/96f5c91befa8e991.png');
|
|
59
|
-
}
|
|
60
106
|
.d-no-data-bmall {
|
|
61
107
|
background-image: url('https://img12.360buyimg.com/imagetools/jfs/t1/217798/34/32933/150484/64ccadf3Fde1a93bf/9b1b8929a9631469.png');
|
|
62
108
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
109
|
+
|
|
110
|
+
.d-opt-btn {
|
|
111
|
+
display: flex;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
align-items: center;
|
|
114
|
+
width: 144px;
|
|
115
|
+
height: 56px;
|
|
116
|
+
margin-top: 32px;
|
|
117
|
+
padding: 0;
|
|
118
|
+
font-size: 24px;
|
|
119
|
+
color: #fa2c19;
|
|
120
|
+
border: 1px solid #fa2c19;
|
|
121
|
+
box-sizing: border-box;
|
|
122
|
+
border-radius: 48px;
|
|
123
|
+
&:active {
|
|
124
|
+
opacity: 0.8;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
81
127
|
}
|
|
82
128
|
|
|
83
129
|
.d-network-jd-shop-view {
|
|
84
|
-
|
|
130
|
+
min-height: 500px;
|
|
85
131
|
}
|
|
86
132
|
|
|
87
133
|
.d-shop-network-part {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
134
|
+
position: absolute;
|
|
135
|
+
min-height: 500px;
|
|
136
|
+
background: #f2f2f2;
|
|
91
137
|
}
|
|
92
138
|
.d-shop-network-no-position {
|
|
93
|
-
|
|
139
|
+
position: static;
|
|
94
140
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { Button, View } from '@tarojs/components'
|
|
2
1
|
NetWorkErrorList,
|
|
3
2
|
NetWorkErrorTip,
|
|
4
3
|
NetWorkErrorSubTip,
|
|
5
4
|
NetWorkShowType,
|
|
6
5
|
NetWork_Image_Type,
|
|
7
6
|
const {
|
|
8
7
|
className = '',
|
|
9
8
|
message = '',
|
|
10
9
|
subMessage = '',
|
|
11
10
|
btnLabel = '重新加载',
|
|
12
11
|
backgroundColorWhite = false,
|
|
13
12
|
netWorkDataType = NETWORK_DATA_TYPE.NORMAL,
|
|
14
13
|
netWorkImageType = NetWork_Image_Type.No_Data_Default_Tip,
|
|
15
14
|
netWorkShowType = NetWorkShowType.FULL,
|
|
16
15
|
refreshCallBackFn = null,
|
|
17
16
|
viewMaxHeight = '',
|
|
18
17
|
noPosition = false,
|
|
19
18
|
} = props
|
|
20
19
|
const refershInitData = useCallback(() => {
|
|
21
20
|
refreshCallBackFn && refreshCallBackFn(true)
|
|
22
21
|
}, [])
|
|
23
22
|
const useErrorTip = message != '' ? message : NetWorkErrorTip[netWorkDataType]
|
|
24
23
|
const useErrorSubTip = subMessage
|
|
25
24
|
? subMessage
|
|
26
25
|
: NetWorkErrorSubTip[netWorkDataType]
|
|
27
26
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
|
|
28
27
|
const maxHeight = latestRes.displayHeight || 546
|
|
29
28
|
return NetWorkErrorList.includes(netWorkDataType as NETWORK_DATA_TYPE) ? (
|
|
30
29
|
<View
|
|
31
30
|
style={{
|
|
32
31
|
maxHeight:
|
|
33
32
|
viewMaxHeight !== ''
|
|
34
33
|
? viewMaxHeight
|
|
35
34
|
: isMemberPage || isAppStowShop
|
|
36
35
|
? '100vh'
|
|
37
36
|
: maxHeight,
|
|
38
37
|
}}
|
|
39
38
|
className={classNames(
|
|
40
39
|
netWorkErrorStyle['d-shop-network'],
|
|
41
40
|
{
|
|
42
41
|
[netWorkErrorStyle['d-shop-network-white']]: backgroundColorWhite,
|
|
43
42
|
},
|
|
44
43
|
{
|
|
45
44
|
[netWorkErrorStyle['d-shop-network-part']]:
|
|
46
45
|
netWorkShowType === NetWorkShowType.PART,
|
|
47
46
|
},
|
|
48
47
|
{
|
|
49
48
|
[netWorkErrorStyle['d-network-jd-shop-view']]: isH5AndJdShopView,
|
|
50
49
|
},
|
|
51
50
|
{
|
|
52
51
|
[netWorkErrorStyle['d-shop-network-no-position']]: noPosition,
|
|
53
52
|
},
|
|
54
53
|
'flexible-center-box',
|
|
55
54
|
className,
|
|
56
55
|
)}
|
|
57
56
|
>
|
|
58
57
|
<View
|
|
59
58
|
className={classNames(
|
|
60
59
|
netWorkErrorStyle['d-error-content'],
|
|
61
60
|
'd-error-content',
|
|
62
61
|
)}
|
|
63
62
|
>
|
|
64
63
|
<View
|
|
65
64
|
className={classNames(
|
|
66
65
|
netWorkErrorStyle['d-error-type'],
|
|
67
66
|
netWorkErrorStyle[`d-${netWorkDataType}`],
|
|
68
67
|
netWorkErrorStyle[`d-${netWorkImageType}`],
|
|
69
68
|
'd-error-type',
|
|
70
69
|
)}
|
|
71
70
|
/>
|
|
72
71
|
<View
|
|
73
72
|
className={classNames(
|
|
74
73
|
netWorkErrorStyle['d-error-tip'],
|
|
75
74
|
'd-error-tip',
|
|
76
75
|
)}
|
|
77
76
|
>
|
|
78
77
|
{useErrorTip}
|
|
79
78
|
</View>
|
|
80
79
|
{useErrorSubTip ? (
|
|
81
80
|
<View
|
|
82
81
|
className={classNames(
|
|
83
82
|
netWorkErrorStyle['d-error-sub-tip'],
|
|
84
83
|
'd-error-sub-tip',
|
|
85
84
|
)}
|
|
86
85
|
>
|
|
87
86
|
{useErrorSubTip}
|
|
88
87
|
</View>
|
|
89
88
|
) : null}
|
|
90
89
|
<View className={'flexible-horizontal-center-box'}>
|
|
91
90
|
{refreshCallBackFn && (
|
|
92
91
|
<Button
|
|
93
92
|
onClick={refershInitData}
|
|
94
93
|
className={classNames(
|
|
95
94
|
netWorkErrorStyle['d-opt-btn'],
|
|
96
95
|
'd-button-no-border',
|
|
97
96
|
'd-opt-btn',
|
|
98
97
|
)}
|
|
99
98
|
plain
|
|
100
99
|
size="mini"
|
|
101
100
|
>
|
|
102
101
|
{btnLabel}
|
|
103
102
|
</Button>
|
|
104
103
|
)}
|
|
105
104
|
</View>
|
|
106
105
|
</View>
|
|
107
106
|
</View>
|
|
108
107
|
) : null
|
|
108
|
+
import { Button, View } from '@tarojs/components';
|
|
109
109
|
NetWorkErrorList,
|
|
110
110
|
NetWorkErrorTip,
|
|
111
111
|
NetWorkErrorSubTip,
|
|
112
112
|
NetWorkShowType,
|
|
113
113
|
NetWork_Image_Type,
|
|
114
114
|
NetWorkStyleType,
|
|
115
115
|
const {
|
|
116
116
|
className = '',
|
|
117
117
|
message = '',
|
|
118
118
|
subMessage = '',
|
|
119
119
|
btnLabel = global?.languageJsonData?.reload || '重新加载',
|
|
120
120
|
backgroundColorWhite = false,
|
|
121
121
|
netWorkDataType = NETWORK_DATA_TYPE.NORMAL,
|
|
122
122
|
netWorkShowType = NetWorkShowType.FULL,
|
|
123
123
|
netWorkImageType = NetWork_Image_Type.No_Data_Default_Tip,
|
|
124
124
|
netWorkStyleType = NetWorkStyleType.OLD,
|
|
125
125
|
refreshCallBackFn = null,
|
|
126
126
|
viewMaxHeight = '',
|
|
127
127
|
noPosition = false,
|
|
128
128
|
} = props;
|
|
129
129
|
const refershInitData = useCallback(() => {
|
|
130
130
|
refreshCallBackFn && refreshCallBackFn(true);
|
|
131
131
|
}, []);
|
|
132
132
|
const useErrorTip = message != '' ? message : NetWorkErrorTip[netWorkDataType];
|
|
133
133
|
const useErrorSubTip = subMessage
|
|
134
134
|
? subMessage
|
|
135
135
|
: message != ''
|
|
136
136
|
? ''
|
|
137
137
|
: NetWorkErrorSubTip[netWorkDataType];
|
|
138
138
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {};
|
|
139
139
|
const onePlusOneBottomPlaceHeight = global.info?.sysInfo?.onePlusOneBottomPlaceHeight
|
|
140
140
|
? global.info?.sysInfo?.onePlusOneBottomPlaceHeight + 20
|
|
141
141
|
: 0;
|
|
142
142
|
const maxHeight = latestRes.displayHeight || onePlusOneBottomPlaceHeight + 546;
|
|
143
143
|
return NetWorkErrorList.includes(netWorkDataType as NETWORK_DATA_TYPE) ? (
|
|
144
144
|
<View
|
|
145
145
|
style={{
|
|
146
146
|
maxHeight: viewMaxHeight !== '' ? viewMaxHeight : isMemberPage ? '100vh' : maxHeight,
|
|
147
147
|
}}
|
|
148
148
|
className={classNames(
|
|
149
149
|
netWorkErrorStyle['d-shop-network'],
|
|
150
150
|
{
|
|
151
151
|
[netWorkErrorStyle['d-shop-network-white']]: backgroundColorWhite,
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
[netWorkErrorStyle['d-shop-network-part']]: netWorkShowType === NetWorkShowType.PART,
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
[netWorkErrorStyle['d-network-jd-shop-view']]: isH5AndJdShopView,
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
[netWorkErrorStyle['d-shop-network-no-position']]: noPosition,
|
|
161
161
|
},
|
|
162
162
|
'flexible-center-box',
|
|
163
163
|
className,
|
|
164
164
|
)}
|
|
165
165
|
>
|
|
166
166
|
<View
|
|
167
167
|
className={classNames(
|
|
168
168
|
netWorkErrorStyle['d-error-content'],
|
|
169
169
|
netWorkErrorStyle[`d-${netWorkStyleType}-style-content`],
|
|
170
170
|
'd-error-content',
|
|
171
171
|
)}
|
|
172
172
|
>
|
|
173
173
|
<View
|
|
174
174
|
className={classNames(
|
|
175
175
|
netWorkErrorStyle['d-error-type'],
|
|
176
176
|
netWorkErrorStyle[`d-${netWorkDataType}`],
|
|
177
177
|
netWorkErrorStyle[`d-${netWorkImageType}`],
|
|
178
178
|
`d-${netWorkDataType}`,
|
|
179
179
|
`d-${netWorkImageType}`,
|
|
180
180
|
'd-error-type',
|
|
181
181
|
)}
|
|
182
182
|
/>
|
|
183
183
|
<View
|
|
184
184
|
className={classNames(
|
|
185
185
|
netWorkErrorStyle['d-error-tip'],
|
|
186
186
|
netWorkErrorStyle[`d-${netWorkDataType}-tip`],
|
|
187
187
|
`d-${netWorkDataType}-tip`,
|
|
188
188
|
'd-error-tip',
|
|
189
189
|
)}
|
|
190
190
|
>
|
|
191
191
|
{useErrorTip}
|
|
192
192
|
</View>
|
|
193
193
|
{useErrorSubTip ? (
|
|
194
194
|
<View
|
|
195
195
|
className={classNames(
|
|
196
196
|
netWorkErrorStyle['d-error-sub-tip'],
|
|
197
197
|
netWorkErrorStyle[`d-${netWorkDataType}-sub-tip`],
|
|
198
198
|
`d-${netWorkDataType}-sub-tip`,
|
|
199
199
|
'd-error-sub-tip',
|
|
200
200
|
)}
|
|
201
201
|
>
|
|
202
202
|
{useErrorSubTip}
|
|
203
203
|
</View>
|
|
204
204
|
) : null}
|
|
205
205
|
<View className={'flexible-horizontal-center-box'}>
|
|
206
206
|
{refreshCallBackFn && (
|
|
207
207
|
<Button
|
|
208
208
|
onClick={refershInitData}
|
|
209
209
|
className={classNames(
|
|
210
210
|
netWorkErrorStyle['d-opt-btn'],
|
|
211
211
|
'd-button-no-border',
|
|
212
212
|
'd-opt-btn',
|
|
213
213
|
)}
|
|
214
214
|
plain
|
|
215
215
|
size="mini"
|
|
216
216
|
>
|
|
217
217
|
{btnLabel}
|
|
218
218
|
</Button>
|
|
219
219
|
)}
|
|
220
220
|
</View>
|
|
221
221
|
</View>
|
|
222
222
|
</View>
|
|
223
223
|
) : null;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
:global {
|
|
3
3
|
.d-mini-price {
|
|
4
|
+
--after-ele-color: '';
|
|
4
5
|
position: relative;
|
|
5
6
|
color: #f23030;
|
|
6
7
|
display: inline-block;
|
|
7
8
|
font-family: 'JDZhengHT-Regular';
|
|
9
|
+
&.d-font-v2 {
|
|
10
|
+
font-family: 'JDZhengHeiV2-Regular';
|
|
11
|
+
}
|
|
12
|
+
&.d-font-v2-bold {
|
|
13
|
+
font-family: 'JDZhengHeiV2-Bold';
|
|
14
|
+
}
|
|
8
15
|
|
|
9
16
|
&-sym {
|
|
10
17
|
font-size: 22px;
|
|
@@ -61,6 +68,11 @@
|
|
|
61
68
|
margin-left: 8px;
|
|
62
69
|
}
|
|
63
70
|
}
|
|
71
|
+
&.d-price-text-clor {
|
|
72
|
+
&:after {
|
|
73
|
+
color: var(--after-ele-color) !important;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
64
76
|
&.d-plus-price {
|
|
65
77
|
.int-txt,
|
|
66
78
|
.sym-sub,
|