@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 React from 'react'
|
|
2
1
|
if(/^\d+(\.\d+)?[eE][+-]?\d+$/.test(value)){
|
|
3
2
|
sgmCustomReport({
|
|
4
3
|
code: getSgmCustomCode(`${SgmCustomCode.PRICE_RENDER}_basePrice`),
|
|
5
4
|
msg: {
|
|
6
5
|
price: value,
|
|
7
6
|
originalPrice: initValue,
|
|
8
7
|
msg: "当前价格为科学计数数据,上报关注该价格"
|
|
9
8
|
},
|
|
10
9
|
})
|
|
11
10
|
}
|
|
12
11
|
if(value === "NaN"){
|
|
13
12
|
sgmCustomReport({
|
|
14
13
|
code: getSgmCustomCode(`${SgmCustomCode.PRICE_RENDER}_basePrice`),
|
|
15
14
|
msg: {
|
|
16
15
|
price: value,
|
|
17
16
|
originalPrice: initValue,
|
|
18
17
|
msg: "价格转换异常,兜底展示暂无报价"
|
|
19
18
|
},
|
|
20
19
|
})
|
|
21
20
|
value = "暂无报价"
|
|
22
21
|
}
|
|
23
22
|
priceLabelText: "到手价"
|
|
23
|
+
import React, { useEffect, useRef } from 'react';
|
|
24
24
|
let value = `${initValue}`;
|
|
25
25
|
if (!cnPriceTextList.includes(value)) {
|
|
26
26
|
if (value && !/^[0123456789-]*$/.test(value.substring(0, 1))) {
|
|
27
27
|
symbol = value.substring(0, 1);
|
|
28
28
|
value = value.substring(1);
|
|
29
29
|
}
|
|
30
30
|
if (/^\d+(\.\d+)?[eE][+-]?\d+$/.test(value)) {
|
|
31
31
|
draBusinessCustomReport({
|
|
32
32
|
eventName: 'business',
|
|
33
33
|
errorName: getSgmCustomCode(`${SgmCustomCode.PRICE_RENDER}_basePrice`),
|
|
34
34
|
errorMessage: '当前价格为科学计数数据,上报关注该价格',
|
|
35
35
|
extraData: JSON.stringify({
|
|
36
36
|
price: value,
|
|
37
37
|
originalPrice: initValue,
|
|
38
38
|
}),
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
if (!decToIntegerState) {
|
|
42
42
|
value = parseFloat(value).toFixed(decLength);
|
|
43
43
|
} else {
|
|
44
44
|
if (value.indexOf('.') !== -1) {
|
|
45
45
|
value = parseFloat(value).toFixed(decLength);
|
|
46
46
|
value = `${value}`.replace(/0+$/, '');
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
if (value === 'NaN') {
|
|
50
50
|
draBusinessCustomReport({
|
|
51
51
|
eventName: 'business',
|
|
52
52
|
errorName: getSgmCustomCode(`${SgmCustomCode.PRICE_RENDER}_basePrice`),
|
|
53
53
|
errorMessage: '价格转换异常,兜底展示暂无报价',
|
|
54
54
|
extraData: JSON.stringify({
|
|
55
55
|
price: value,
|
|
56
56
|
originalPrice: initValue,
|
|
57
57
|
}),
|
|
58
58
|
});
|
|
59
59
|
value = '暂无报价';
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
const [intVal, decimalVal] = `${value}`.split('.');
|
|
63
63
|
return {
|
|
64
64
|
currencySymbol: !cnPriceTextList.includes(intVal) ? symbol : '',
|
|
65
65
|
intVal,
|
|
66
66
|
decimalVal,
|
|
67
67
|
};
|
|
68
68
|
const {
|
|
69
69
|
prefixCls,
|
|
70
70
|
symPos,
|
|
71
71
|
symbol,
|
|
72
72
|
decPos,
|
|
73
73
|
status,
|
|
74
74
|
className,
|
|
75
75
|
style,
|
|
76
76
|
symClassName,
|
|
77
77
|
intClassName,
|
|
78
78
|
decClassName,
|
|
79
79
|
noPriceClassName,
|
|
80
80
|
value,
|
|
81
81
|
decLength,
|
|
82
82
|
decToIntegerState,
|
|
83
83
|
isPlusPrice,
|
|
84
84
|
isSamsPrice,
|
|
85
85
|
isMemberPrice,
|
|
86
86
|
isSfpPrice,
|
|
87
87
|
memberPriceIcon,
|
|
88
88
|
isShowPriceLabel,
|
|
89
89
|
priceLabelText,
|
|
90
90
|
priceTextColor,
|
|
91
91
|
useFontV2 = false,
|
|
92
92
|
useFontV2Bold = false,
|
|
93
93
|
} = props;
|
|
94
94
|
const cRef = useRef<any>(null);
|
|
95
95
|
useEffect(() => {
|
|
96
96
|
if (isShowPriceLabel && priceTextColor && cRef.current) {
|
|
97
97
|
cRef.current?.style?.setProperty('--after-ele-color', priceTextColor);
|
|
98
98
|
}
|
|
99
99
|
}, [isShowPriceLabel, priceTextColor]);
|
|
100
100
|
const cls = classNames(
|
|
101
101
|
className ? `${className}` : '',
|
|
102
102
|
prefixCls,
|
|
103
103
|
{
|
|
104
104
|
'd-font-v2': useFontV2,
|
|
105
105
|
'd-font-v2-bold': useFontV2Bold,
|
|
106
106
|
},
|
|
107
107
|
'd-imag-rendering-crisp-edges',
|
|
108
108
|
{
|
|
109
109
|
del: status === 'del',
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
'd-plus-price': isPlusPrice,
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
'd-sams-price': isSamsPrice,
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
'd-sfp-price': isSfpPrice,
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
'd-member-price': isMemberPrice,
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
[`d-member-price-${memberPriceIcon}`]: memberPriceIcon,
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
'd-price-label': isShowPriceLabel,
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
'd-price-text-clor': isShowPriceLabel && priceTextColor,
|
|
131
131
|
},
|
|
132
132
|
);
|
|
133
133
|
const symCls = classNames(symClassName ? `${symClassName}` : '', {
|
|
134
134
|
'sym-sub': symPos === 'sub',
|
|
135
135
|
'sym-sup': symPos === 'sup',
|
|
136
136
|
});
|
|
137
137
|
const intCls = classNames(intClassName ? `${intClassName}` : '');
|
|
138
138
|
const decCls = classNames(decClassName ? `${decClassName}` : '', {
|
|
139
139
|
'dec-sub': decPos === 'sub',
|
|
140
140
|
'dec-sup': decPos === 'sup',
|
|
141
141
|
});
|
|
142
142
|
const noPriceCls = classNames(noPriceClassName ? `${noPriceClassName}` : '');
|
|
143
143
|
const { currencySymbol, intVal, decimalVal } = dealPrice(
|
|
144
144
|
value,
|
|
145
145
|
decLength,
|
|
146
146
|
symbol,
|
|
147
147
|
decToIntegerState,
|
|
148
148
|
);
|
|
149
149
|
return (
|
|
150
150
|
<View
|
|
151
151
|
ref={cRef}
|
|
152
152
|
className={cls}
|
|
153
153
|
style={style}
|
|
154
154
|
data-after={isShowPriceLabel ? priceLabelText : ''}
|
|
155
155
|
>
|
|
156
156
|
{intVal === '-1' ? (
|
|
157
157
|
<Text className={`${prefixCls}-txt int-txt off-shelf ${noPriceCls}`}>{`暂无报价`}</Text>
|
|
158
158
|
) : (
|
|
159
159
|
<>
|
|
160
160
|
<Text className={`${prefixCls}-sym ${symCls}`}>{currencySymbol}</Text>
|
|
161
161
|
<Text className={`${prefixCls}-txt int-txt ${intCls}`}>{intVal}</Text>
|
|
162
162
|
{!!decimalVal && (
|
|
163
163
|
<Text className={`${prefixCls}-txt dec-txt ${decCls}`}>.{decimalVal}</Text>
|
|
164
164
|
)}
|
|
165
165
|
</>
|
|
166
166
|
)}
|
|
167
167
|
</View>
|
|
168
168
|
);
|
|
169
169
|
prefixCls: 'd-mini-price',
|
|
170
170
|
style: {},
|
|
171
171
|
status: '',
|
|
172
172
|
symbol: '¥',
|
|
173
173
|
symPos: 'sub',
|
|
174
174
|
decLength: 2,
|
|
175
175
|
decPos: 'sub',
|
|
176
176
|
decToIntegerState: false,
|
|
177
177
|
isPlusPrice: false,
|
|
178
178
|
isShowPriceLabel: false,
|
|
179
179
|
priceLabelText: '到手价',
|
|
180
180
|
priceTextColor: '',
|
|
181
181
|
useFontV2: false,
|
|
182
182
|
useFontV2Bold: false,
|
|
@@ -117,6 +117,24 @@
|
|
|
117
117
|
.priceDescXS {
|
|
118
118
|
font-size: 20px;
|
|
119
119
|
}
|
|
120
|
+
.priceUnit {
|
|
121
|
+
font-family: PingFang SC;
|
|
122
|
+
}
|
|
123
|
+
.priceUnitXL {
|
|
124
|
+
font-size: 26px;
|
|
125
|
+
}
|
|
126
|
+
.priceUnitL {
|
|
127
|
+
font-size: 24px;
|
|
128
|
+
}
|
|
129
|
+
.priceUnitM {
|
|
130
|
+
font-size: 22px;
|
|
131
|
+
}
|
|
132
|
+
.priceUnitS {
|
|
133
|
+
font-size: 20px;
|
|
134
|
+
}
|
|
135
|
+
.priceUnitXS {
|
|
136
|
+
font-size: 18px;
|
|
137
|
+
}
|
|
120
138
|
|
|
121
139
|
.missPriceDesc {
|
|
122
140
|
}
|
|
@@ -164,3 +182,9 @@
|
|
|
164
182
|
.memberStyle {
|
|
165
183
|
color: #f6b303;
|
|
166
184
|
}
|
|
185
|
+
.fontV2 {
|
|
186
|
+
font-family: 'JDZhengHeiV2-Regular';
|
|
187
|
+
}
|
|
188
|
+
.fontV2Bold {
|
|
189
|
+
font-family: 'JDZhengHeiV2-Bold';
|
|
190
|
+
}
|