@conecli/cone-render 0.9.1-shop2.4 → 0.9.1-shop2.40
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/pageType.ts +1 -1
- package/dist/common/sgmCustomCode.ts +1 -0
- 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/CommonFloorHead/index.module.scss +126 -111
- package/dist/components/base/CommonFloorHead/index.tsx +1 -1
- package/dist/components/base/CountDown/index.module.scss +49 -44
- 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 +16 -0
- package/dist/components/base/Dialog/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
- 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.module.scss +2 -2
- 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.module.scss +23 -20
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.module.scss +8 -0
- package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +3 -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.module.scss +8 -0
- package/dist/components/base/Price/Double/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 +11 -0
- 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.pc.ts +1 -1
- 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 +30 -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 +274 -212
- package/dist/sass/base.scss +195 -137
- 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/jumpExtMapUtil.js +1 -0
- package/dist/utils/sColor.js +1 -0
- 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 React, { useEffect, useContext, useState } from 'react'
|
|
2
1
|
const { title, openAppParams, style, hasCommonHeader = true, hasDownloadTips = true, headerParams } = props
|
|
3
2
|
useEffect(() => {
|
|
4
3
|
hasCommonHeader && initCommonHeader()
|
|
5
4
|
hasDownloadTips && initDownloadAppLayerConfigData()
|
|
6
5
|
}, [])
|
|
7
6
|
const initCommonHeader = () => {
|
|
8
7
|
if (window?.MCommonHeaderBottom) {
|
|
9
8
|
const mchb = new MCommonHeaderBottom()
|
|
10
9
|
const headerArg = {
|
|
11
10
|
moduleName: 'shop',
|
|
12
11
|
hrederId: 'm_common_header',
|
|
13
12
|
title,
|
|
14
13
|
stype: 1,
|
|
15
14
|
onClickJdkey: function () {
|
|
16
15
|
console.log('==>m_common_header jdkey click.')
|
|
17
16
|
},
|
|
18
17
|
...headerParams
|
|
19
18
|
}
|
|
20
19
|
mchb.header(headerArg)
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
const initDownloadAppLayerConfigData = () => {
|
|
24
23
|
const getEle = document.getElementById('m_common_tip')
|
|
25
24
|
getEle &&
|
|
26
25
|
window.$ &&
|
|
27
26
|
window.$.downloadAppLayerConfigData &&
|
|
28
27
|
window.$.downloadAppLayerConfigData({
|
|
29
28
|
tipId: 'm_common_tip',
|
|
30
29
|
M_sourceFrom: 'jshop',
|
|
31
30
|
bottom: 74,
|
|
32
31
|
onClickTipX: () => {
|
|
33
32
|
Taro.eventCenter.trigger(
|
|
34
33
|
TaroEventType.DOWN_LOAD_APP_CLOSE_CHANGE,
|
|
35
34
|
true,
|
|
36
35
|
)
|
|
37
36
|
},
|
|
38
37
|
downloadAppPlugIn: {
|
|
39
38
|
M_sourceFrom: 'jshop',
|
|
40
39
|
openAppBtnId: 'download_openapp',
|
|
41
40
|
downAppURl: '//conecli.com/downloadApp/download.html?channel=jd-m',
|
|
42
41
|
inteneUrl: 'openapp.jdmobile://virtual?',
|
|
43
42
|
inteneUrlParams: {
|
|
44
43
|
category: 'jump',
|
|
45
44
|
des: 'jshopMain',
|
|
46
45
|
shopId: `${global.info.queryInfo.shopId || ''}`,
|
|
47
46
|
venderId: `${global.info.queryInfo.venderId || ''}`,
|
|
48
47
|
sourceType: global.info.queryInfo?.sourceType || 'M-H5',
|
|
49
48
|
sourceValue: global.info.queryInfo?.sourceValue || 'Mshop',
|
|
50
49
|
...openAppParams,
|
|
51
50
|
},
|
|
52
51
|
},
|
|
53
52
|
})
|
|
54
53
|
}
|
|
55
54
|
return !isWxMiniH5View && !isJdApp ? (
|
|
56
55
|
<View
|
|
57
56
|
className={mobileCommonHeaderStyle['d-mobile-header-layout']}
|
|
58
57
|
style={style}
|
|
59
58
|
>
|
|
60
59
|
<View
|
|
61
60
|
id="m_common_tip"
|
|
62
61
|
className={mobileCommonHeaderStyle['d-mobile-common-tip']}
|
|
63
62
|
/>
|
|
64
63
|
{hasCommonHeader && (
|
|
65
64
|
<View
|
|
66
65
|
id="m_common_header"
|
|
67
66
|
className={mobileCommonHeaderStyle['d-mobile-common-header']}
|
|
68
67
|
/>
|
|
69
68
|
)}
|
|
70
69
|
</View>
|
|
71
70
|
) : null
|
|
72
71
|
title: '店铺',
|
|
73
72
|
openAppParams: {},
|
|
73
|
+
import React, {useEffect, useRef} from 'react'
|
|
74
74
|
const { title, openAppParams, style, hasCommonHeader = true, hasDownloadTips = true, headerParams } = props
|
|
75
75
|
const headerRef:any = useRef(null)
|
|
76
76
|
useEffect(() => {
|
|
77
77
|
hasCommonHeader && initCommonHeader()
|
|
78
78
|
hasDownloadTips && initDownloadAppLayerConfigData()
|
|
79
79
|
}, [])
|
|
80
80
|
const isScrolledToTop = () => {
|
|
81
81
|
return window.scrollY !== undefined ? window.scrollY === 0 :
|
|
82
82
|
document.documentElement.scrollTop === 0 || document.body.scrollTop === 0;
|
|
83
83
|
}
|
|
84
84
|
const scrollEventFunc = () => {
|
|
85
85
|
if(!headerRef.current) return
|
|
86
86
|
const stickyTop = headerRef.current?.getBoundingClientRect()?.top || 0;
|
|
87
87
|
if(Math.trunc(stickyTop) <= 0 && !isScrolledToTop()) {
|
|
88
88
|
console.log('scroll 添加class',Math.trunc(stickyTop), isScrolledToTop())
|
|
89
89
|
headerRef.current.classList.add('d-mobile-header-sticky');
|
|
90
90
|
}else {
|
|
91
91
|
console.log('scroll 移除class',Math.trunc(stickyTop), isScrolledToTop())
|
|
92
92
|
headerRef.current.classList.remove('d-mobile-header-sticky');
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
useEffect(() => {
|
|
96
96
|
Taro.eventCenter.on(TaroEventType.PAGE_SCROLL,() => {
|
|
97
97
|
scrollEventFunc()
|
|
98
98
|
})
|
|
99
99
|
},[])
|
|
100
100
|
const initCommonHeader = () => {
|
|
101
101
|
if (window?.MCommonHeaderBottom) {
|
|
102
102
|
const mchb = new MCommonHeaderBottom()
|
|
103
103
|
const headerArg = {
|
|
104
104
|
moduleName: 'shop',
|
|
105
105
|
hrederId: 'm_common_header',
|
|
106
106
|
title,
|
|
107
107
|
stype: 1,
|
|
108
108
|
onClickJdkey: function () {
|
|
109
109
|
console.log('==>m_common_header jdkey click.')
|
|
110
110
|
},
|
|
111
111
|
...headerParams
|
|
112
112
|
}
|
|
113
113
|
mchb.header(headerArg)
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
const initDownloadAppLayerConfigData = () => {
|
|
117
117
|
const getEle = document.getElementById('m_common_tip')
|
|
118
118
|
getEle &&
|
|
119
119
|
window.$ &&
|
|
120
120
|
window.$.downloadAppLayerConfigData &&
|
|
121
121
|
window.$.downloadAppLayerConfigData({
|
|
122
122
|
tipId: 'm_common_tip',
|
|
123
123
|
M_sourceFrom: 'jshop',
|
|
124
124
|
bottom: 74,
|
|
125
125
|
onClickTipX: () => {
|
|
126
126
|
Taro.eventCenter.trigger(
|
|
127
127
|
TaroEventType.DOWN_LOAD_APP_CLOSE_CHANGE,
|
|
128
128
|
true,
|
|
129
129
|
)
|
|
130
130
|
},
|
|
131
131
|
downloadAppPlugIn: {
|
|
132
132
|
M_sourceFrom: 'jshop',
|
|
133
133
|
openAppBtnId: 'download_openapp',
|
|
134
134
|
downAppURl: '//conecli.com/downloadApp/download.html?channel=jd-m',
|
|
135
135
|
inteneUrl: 'openapp.jdmobile://virtual?',
|
|
136
136
|
inteneUrlParams: {
|
|
137
137
|
category: 'jump',
|
|
138
138
|
des: 'jshopMain',
|
|
139
139
|
shopId: `${global.info.queryInfo.shopId || ''}`,
|
|
140
140
|
venderId: `${global.info.queryInfo.venderId || ''}`,
|
|
141
141
|
sourceType: global.info.queryInfo?.sourceType || 'M-H5',
|
|
142
142
|
sourceValue: global.info.queryInfo?.sourceValue || 'Mshop',
|
|
143
143
|
...openAppParams,
|
|
144
144
|
},
|
|
145
145
|
},
|
|
146
146
|
})
|
|
147
147
|
}
|
|
148
148
|
return !isWxMiniH5View && !isJdApp ? (
|
|
149
149
|
<View
|
|
150
150
|
className={mobileCommonHeaderStyle['d-mobile-header-layout']}
|
|
151
151
|
style={style}
|
|
152
152
|
ref={headerRef}
|
|
153
153
|
>
|
|
154
154
|
<View
|
|
155
155
|
id="m_common_tip"
|
|
156
156
|
className={mobileCommonHeaderStyle['d-mobile-common-tip']}
|
|
157
157
|
/>
|
|
158
158
|
{hasCommonHeader && (
|
|
159
159
|
<View
|
|
160
160
|
id="m_common_header"
|
|
161
161
|
className={mobileCommonHeaderStyle['d-mobile-common-header']}
|
|
162
162
|
/>
|
|
163
163
|
)}
|
|
164
164
|
</View>
|
|
165
165
|
) : null
|
|
166
166
|
title: '店铺',
|
|
167
167
|
openAppParams: {},
|
|
@@ -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,
|
|
13
12
|
netWorkDataType,
|
|
14
13
|
netWorkShowType,
|
|
15
14
|
netWorkImageType,
|
|
16
15
|
refreshCallBackFn,
|
|
17
16
|
viewMaxHeight
|
|
18
17
|
} = props
|
|
19
18
|
const refershInitData = useCallback(() => {
|
|
20
19
|
refreshCallBackFn && refreshCallBackFn(true)
|
|
21
20
|
}, [])
|
|
22
21
|
const useErrorTip = message != '' ? message : NetWorkErrorTip[netWorkDataType]
|
|
23
22
|
const useErrorSubTip = subMessage
|
|
24
23
|
? subMessage
|
|
25
24
|
: NetWorkErrorSubTip[netWorkDataType]
|
|
26
25
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
|
|
27
26
|
const maxHeight = latestRes.displayHeight || 546
|
|
28
27
|
return NetWorkErrorList.includes(netWorkDataType as NETWORK_DATA_TYPE) ? (
|
|
29
28
|
<View
|
|
30
29
|
style={{ maxHeight: viewMaxHeight !== '' ? viewMaxHeight : isMemberPage ? '100vh' : maxHeight }}
|
|
31
30
|
className={classNames(
|
|
32
31
|
netWorkErrorStyle['d-shop-network'],
|
|
33
32
|
{
|
|
34
33
|
[netWorkErrorStyle['d-shop-network-white']]: backgroundColorWhite,
|
|
35
34
|
},
|
|
36
35
|
{
|
|
37
36
|
[netWorkErrorStyle['d-shop-network-part']]:
|
|
38
37
|
netWorkShowType === NetWorkShowType.PART,
|
|
39
38
|
},
|
|
40
39
|
{
|
|
41
40
|
[netWorkErrorStyle['d-network-jd-shop-view']]: isH5AndJdShopView,
|
|
42
41
|
},
|
|
43
42
|
'flexible-center-box',
|
|
44
43
|
className,
|
|
45
44
|
)}
|
|
46
45
|
>
|
|
47
46
|
<View className={classNames(netWorkErrorStyle['d-error-content'],'d-error-content')}>
|
|
48
47
|
<View
|
|
49
48
|
className={classNames(
|
|
50
49
|
netWorkErrorStyle['d-error-type'],
|
|
51
50
|
netWorkErrorStyle[`d-${netWorkDataType}`],
|
|
52
51
|
netWorkErrorStyle[`d-${netWorkImageType}`],
|
|
53
52
|
'd-error-type'
|
|
54
53
|
)}
|
|
55
54
|
/>
|
|
56
55
|
<View className={classNames(netWorkErrorStyle['d-error-tip'],'d-error-tip')}>
|
|
57
56
|
{useErrorTip}
|
|
58
57
|
</View>
|
|
59
58
|
{useErrorSubTip ? <View className={classNames(netWorkErrorStyle['d-error-sub-tip'],'d-error-sub-tip')}>{useErrorSubTip}</View> : null}
|
|
60
59
|
<View className={'flexible-horizontal-center-box'}>
|
|
61
60
|
{refreshCallBackFn && (
|
|
62
61
|
<Button
|
|
63
62
|
onClick={refershInitData}
|
|
64
63
|
className={classNames(
|
|
65
64
|
netWorkErrorStyle['d-opt-btn'],
|
|
66
65
|
'd-button-no-border',
|
|
67
66
|
'd-opt-btn'
|
|
68
67
|
)}
|
|
69
68
|
plain
|
|
70
69
|
size="mini"
|
|
71
70
|
>
|
|
72
71
|
{btnLabel}
|
|
73
72
|
</Button>
|
|
74
73
|
)}
|
|
75
74
|
</View>
|
|
76
75
|
</View>
|
|
77
76
|
</View>
|
|
78
77
|
) : null
|
|
79
78
|
className: '',
|
|
80
79
|
message: '',
|
|
81
80
|
subMessage: '',
|
|
82
81
|
btnLabel: '重新加载',
|
|
83
82
|
backgroundColorWhite: false,
|
|
84
83
|
netWorkDataType: NETWORK_DATA_TYPE.NORMAL,
|
|
85
84
|
netWorkImageType: NetWork_Image_Type.No_Data_Default_Tip,
|
|
86
85
|
netWorkShowType: NetWorkShowType.FULL,
|
|
87
86
|
refreshCallBackFn: null,
|
|
88
87
|
viewMaxHeight: ''
|
|
88
|
+
import { Button, View } from '@tarojs/components'
|
|
89
89
|
NetWorkErrorList,
|
|
90
90
|
NetWorkErrorTip,
|
|
91
91
|
NetWorkErrorSubTip,
|
|
92
92
|
NetWorkShowType,
|
|
93
93
|
NetWork_Image_Type,
|
|
94
94
|
const {
|
|
95
95
|
className,
|
|
96
96
|
message,
|
|
97
97
|
subMessage,
|
|
98
98
|
btnLabel,
|
|
99
99
|
backgroundColorWhite,
|
|
100
100
|
netWorkDataType,
|
|
101
101
|
netWorkShowType,
|
|
102
102
|
netWorkImageType,
|
|
103
103
|
refreshCallBackFn,
|
|
104
104
|
viewMaxHeight,
|
|
105
105
|
noPosition = false,
|
|
106
106
|
} = props
|
|
107
107
|
const refershInitData = useCallback(() => {
|
|
108
108
|
refreshCallBackFn && refreshCallBackFn(true)
|
|
109
109
|
}, [])
|
|
110
110
|
const useErrorTip = message != '' ? message : NetWorkErrorTip[netWorkDataType]
|
|
111
111
|
const useErrorSubTip = subMessage
|
|
112
112
|
? subMessage
|
|
113
113
|
: NetWorkErrorSubTip[netWorkDataType]
|
|
114
114
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
|
|
115
115
|
const maxHeight = latestRes.displayHeight || 546
|
|
116
116
|
return NetWorkErrorList.includes(netWorkDataType as NETWORK_DATA_TYPE) ? (
|
|
117
117
|
<View
|
|
118
118
|
style={{ maxHeight: viewMaxHeight !== '' ? viewMaxHeight : isMemberPage ? '100vh' : maxHeight }}
|
|
119
119
|
className={classNames(
|
|
120
120
|
netWorkErrorStyle['d-shop-network'],
|
|
121
121
|
{
|
|
122
122
|
[netWorkErrorStyle['d-shop-network-white']]: backgroundColorWhite,
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
[netWorkErrorStyle['d-shop-network-part']]:
|
|
126
126
|
netWorkShowType === NetWorkShowType.PART,
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
[netWorkErrorStyle['d-network-jd-shop-view']]: isH5AndJdShopView,
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
[netWorkErrorStyle['d-shop-network-no-position']]: noPosition
|
|
133
133
|
},
|
|
134
134
|
'flexible-center-box',
|
|
135
135
|
className,
|
|
136
136
|
)}
|
|
137
137
|
>
|
|
138
138
|
<View className={classNames(netWorkErrorStyle['d-error-content'],'d-error-content')}>
|
|
139
139
|
<View
|
|
140
140
|
className={classNames(
|
|
141
141
|
netWorkErrorStyle['d-error-type'],
|
|
142
142
|
netWorkErrorStyle[`d-${netWorkDataType}`],
|
|
143
143
|
netWorkErrorStyle[`d-${netWorkImageType}`],
|
|
144
144
|
'd-error-type'
|
|
145
145
|
)}
|
|
146
146
|
/>
|
|
147
147
|
<View className={classNames(netWorkErrorStyle['d-error-tip'],'d-error-tip')}>
|
|
148
148
|
{useErrorTip}
|
|
149
149
|
</View>
|
|
150
150
|
{useErrorSubTip ? <View className={classNames(netWorkErrorStyle['d-error-sub-tip'],'d-error-sub-tip')}>{useErrorSubTip}</View> : null}
|
|
151
151
|
<View className={'flexible-horizontal-center-box'}>
|
|
152
152
|
{refreshCallBackFn && (
|
|
153
153
|
<Button
|
|
154
154
|
onClick={refershInitData}
|
|
155
155
|
className={classNames(
|
|
156
156
|
netWorkErrorStyle['d-opt-btn'],
|
|
157
157
|
'd-button-no-border',
|
|
158
158
|
'd-opt-btn'
|
|
159
159
|
)}
|
|
160
160
|
plain
|
|
161
161
|
size="mini"
|
|
162
162
|
>
|
|
163
163
|
{btnLabel}
|
|
164
164
|
</Button>
|
|
165
165
|
)}
|
|
166
166
|
</View>
|
|
167
167
|
</View>
|
|
168
168
|
</View>
|
|
169
169
|
) : null
|
|
170
170
|
className: '',
|
|
171
171
|
message: '',
|
|
172
172
|
subMessage: '',
|
|
173
173
|
btnLabel: '重新加载',
|
|
174
174
|
backgroundColorWhite: false,
|
|
175
175
|
netWorkDataType: NETWORK_DATA_TYPE.NORMAL,
|
|
176
176
|
netWorkImageType: NetWork_Image_Type.No_Data_Default_Tip,
|
|
177
177
|
netWorkShowType: NetWorkShowType.FULL,
|
|
178
178
|
refreshCallBackFn: null,
|
|
179
179
|
viewMaxHeight: ''
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
priceLabelText: "到手价"
|
|
2
|
+
import React from 'react'
|
|
3
3
|
if(/^\d+(\.\d+)?[eE][+-]?\d+$/.test(value)){
|
|
4
4
|
sgmCustomReport({
|
|
5
5
|
code: getSgmCustomCode(`${SgmCustomCode.PRICE_RENDER}_basePrice`),
|
|
6
6
|
msg: {
|
|
7
7
|
price: value,
|
|
8
8
|
originalPrice: initValue,
|
|
9
9
|
msg: "当前价格为科学计数数据,上报关注该价格"
|
|
10
10
|
},
|
|
11
11
|
})
|
|
12
12
|
}
|
|
13
13
|
if(value === "NaN"){
|
|
14
14
|
sgmCustomReport({
|
|
15
15
|
code: getSgmCustomCode(`${SgmCustomCode.PRICE_RENDER}_basePrice`),
|
|
16
16
|
msg: {
|
|
17
17
|
price: value,
|
|
18
18
|
originalPrice: initValue,
|
|
19
19
|
msg: "价格转换异常,兜底展示暂无报价"
|
|
20
20
|
},
|
|
21
21
|
})
|
|
22
22
|
value = "暂无报价"
|
|
23
23
|
}
|
|
24
24
|
priceLabelText: "到手价"
|