@conecli/cone-render 0.10.1-shop3.20 → 0.10.1-shop3.21

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.
@@ -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]: '网络连接已断开',
16
16
  [NETWORK_DATA_TYPE.DATA_ERROR]: '数据加载失败',
17
17
  [NETWORK_DATA_TYPE.NO_DATA]: '你访问的内容飞到太空了',
18
18
  [NETWORK_DATA_TYPE.RISK]: '活动太火爆',
19
19
  [NETWORK_DATA_TYPE.NO_NET_WORK]: '请检查您的网络设置',
20
20
  [NETWORK_DATA_TYPE.DATA_ERROR]: '请稍后重试',
21
21
  [NETWORK_DATA_TYPE.NO_DATA]: '',
22
22
  [NETWORK_DATA_TYPE.RISK]: '页面加载失败,请稍后再试',
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
  PART: 'part',
28
28
  FULL: 'full',
29
29
  No_Data_Default_Tip: 'no-data-default-tip',
30
30
  No_Data_Tip_1: 'no-data-tip-1',
31
31
  No_Data_Tip_2: 'no-data-tip-2',
32
32
  No_Network_Err_Tip: 'no-network',
33
33
  No_Data_Bmall: 'no-data-bmall',
34
34
  OLD: 'old',
35
35
  NEW: 'new',
@@ -1,94 +1,140 @@
1
1
 
2
2
  .d-shop-network {
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
- }
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
- .d-error-tip {
17
- font-size: 28px;
18
- font-weight: bold;
19
- line-height: 28px;
20
- color: #8C8C8C;
21
- }
22
- .d-error-sub-tip {
23
- margin-top: 16px;
24
- font-size: 24px;
25
- line-height: 24px;
26
- color: #8C8C8C;
27
- }
28
- .d-error-type {
29
- width: 320px;
30
- height: 320px;
31
- background-size: contain;
32
- background-repeat: no-repeat;
63
+ .d-error-tip {
64
+ font-size: 28px;
65
+ font-weight: bold;
66
+ line-height: 28px;
67
+ color: #8c8c8c;
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
- .d-no-network {
37
- // background-image: url('https://m.360buyimg.com/imagetools/jfs/t1/219405/34/29129/32963/64892a0eF2c068392/86c3fcf9d980ff10.png');
38
- background-image: url('../../../assets/networkError.png');
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
- .d-data-error {
42
- background-image: url('https://m.360buyimg.com/imagetools/jfs/t1/106708/34/36128/37234/64896f52Fed1530e0/7b403e068aae316c.png');
43
- }
88
+ .d-data-error {
89
+ background-image: url('https://m.360buyimg.com/imagetools/jfs/t1/106708/34/36128/37234/64896f52Fed1530e0/7b403e068aae316c.png');
90
+ }
44
91
  .d-risk {
45
92
  background-image: url('https://m.360buyimg.com/imagetools/jfs/t1/106708/34/36128/37234/64896f52Fed1530e0/7b403e068aae316c.png');
46
93
  }
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
-
94
+ .d-no-data {
95
+ background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/190994/19/325/42717/6088fed0Ec4b502d5/0e8de7593fb0d06c.png');
96
+ }
97
+ .d-no-data-tip-1 {
98
+ background-image: url('https://img14.360buyimg.com/imagetools/jfs/t1/152550/40/8432/21643/5fc9cae0E5391a506/523da679188ff687.png');
99
+ }
54
100
  .d-no-data-tip-2 {
55
101
  background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/142705/35/17776/5911/5fd1e62dE4fbc2300/3ee1d4160db1dac6.png');
56
102
  }
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
- }
103
+ .d-no-network-err-tip {
104
+ background-image: url('https://img14.360buyimg.com/imagetools/jfs/t1/146556/1/17745/7493/5fd1e62dE86e86669/96f5c91befa8e991.png');
105
+ }
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
- .d-opt-btn {
65
- display: flex;
66
- justify-content: center;
67
- align-items: center;
68
- width: 144px;
69
- height: 56px;
70
- margin-top: 32px;
71
- padding: 0;
72
- font-size: 24px;
73
- color: #fa2c19;
74
- border: 1PX solid #fa2c19;
75
- box-sizing: border-box;
76
- border-radius: 48px;
77
- &:active {
78
- opacity: 0.8;
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
- min-height: 500px;
130
+ min-height: 500px;
85
131
  }
86
132
 
87
133
  .d-shop-network-part {
88
- position: absolute;
89
- min-height: 500px;
90
- background: #f2f2f2;
134
+ position: absolute;
135
+ min-height: 500px;
136
+ background: #f2f2f2;
91
137
  }
92
138
  .d-shop-network-no-position {
93
- position: static;
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 = '重新加载',
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 ? subMessage : NetWorkErrorSubTip[netWorkDataType];
134
134
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {};
135
135
  const maxHeight = latestRes.displayHeight || 546;
136
136
  return NetWorkErrorList.includes(netWorkDataType as NETWORK_DATA_TYPE) ? (
137
137
  <View
138
138
  style={{
139
139
  maxHeight: viewMaxHeight !== '' ? viewMaxHeight : isMemberPage ? '100vh' : maxHeight,
140
140
  }}
141
141
  className={classNames(
142
142
  netWorkErrorStyle['d-shop-network'],
143
143
  {
144
144
  [netWorkErrorStyle['d-shop-network-white']]: backgroundColorWhite,
145
145
  },
146
146
  {
147
147
  [netWorkErrorStyle['d-shop-network-part']]: netWorkShowType === NetWorkShowType.PART,
148
148
  },
149
149
  {
150
150
  [netWorkErrorStyle['d-network-jd-shop-view']]: isH5AndJdShopView,
151
151
  },
152
152
  {
153
153
  [netWorkErrorStyle['d-shop-network-no-position']]: noPosition,
154
154
  },
155
155
  'flexible-center-box',
156
156
  className,
157
157
  )}
158
158
  >
159
159
  <View
160
160
  className={classNames(
161
161
  netWorkErrorStyle['d-error-content'],
162
162
  netWorkErrorStyle[`d-${netWorkStyleType}-style-content`],
163
163
  'd-error-content',
164
164
  )}
165
165
  >
166
166
  <View
167
167
  className={classNames(
168
168
  netWorkErrorStyle['d-error-type'],
169
169
  netWorkErrorStyle[`d-${netWorkDataType}`],
170
170
  netWorkErrorStyle[`d-${netWorkImageType}`],
171
171
  'd-error-type',
172
172
  )}
173
173
  />
174
174
  <View
175
175
  className={classNames(
176
176
  netWorkErrorStyle['d-error-tip'],
177
177
  netWorkErrorStyle[`d-${netWorkDataType}-tip`],
178
178
  'd-error-tip',
179
179
  )}
180
180
  >
181
181
  {useErrorTip}
182
182
  </View>
183
183
  {useErrorSubTip ? (
184
184
  <View
185
185
  className={classNames(
186
186
  netWorkErrorStyle['d-error-sub-tip'],
187
187
  netWorkErrorStyle[`d-${netWorkDataType}-sub-tip`],
188
188
  'd-error-sub-tip',
189
189
  )}
190
190
  >
191
191
  {useErrorSubTip}
192
192
  </View>
193
193
  ) : null}
194
194
  <View className={'flexible-horizontal-center-box'}>
195
195
  {refreshCallBackFn && (
196
196
  <Button
197
197
  onClick={refershInitData}
198
198
  className={classNames(
199
199
  netWorkErrorStyle['d-opt-btn'],
200
200
  'd-button-no-border',
201
201
  'd-opt-btn',
202
202
  )}
203
203
  plain
204
204
  size="mini"
205
205
  >
206
206
  {btnLabel}
207
207
  </Button>
208
208
  )}
209
209
  </View>
210
210
  </View>
211
211
  </View>
212
212
  ) : null;
@@ -5,6 +5,12 @@
5
5
  color: #f23030;
6
6
  display: inline-block;
7
7
  font-family: 'JDZhengHT-Regular';
8
+ &.d-font-v2 {
9
+ font-family: 'JDZhengHeiV2-Regular';
10
+ }
11
+ &.d-font-v2-bold {
12
+ font-family: 'JDZhengHeiV2-Bold';
13
+ }
8
14
 
9
15
  &-sym {
10
16
  font-size: 22px;
@@ -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 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
  sgmCustomReport({
32
32
  code: getSgmCustomCode(`${SgmCustomCode.PRICE_RENDER}_basePrice`),
33
33
  msg: {
34
34
  price: value,
35
35
  originalPrice: initValue,
36
36
  msg: '当前价格为科学计数数据,上报关注该价格',
37
37
  },
38
38
  });
39
39
  }
40
40
  if (!decToIntegerState) {
41
41
  value = parseFloat(value).toFixed(decLength);
42
42
  } else {
43
43
  if (value.indexOf('.') !== -1) {
44
44
  value = parseFloat(value).toFixed(decLength);
45
45
  value = `${value}`.replace(/0+$/, '');
46
46
  }
47
47
  }
48
48
  if (value === 'NaN') {
49
49
  sgmCustomReport({
50
50
  code: getSgmCustomCode(`${SgmCustomCode.PRICE_RENDER}_basePrice`),
51
51
  msg: {
52
52
  price: value,
53
53
  originalPrice: initValue,
54
54
  msg: '价格转换异常,兜底展示暂无报价',
55
55
  },
56
56
  });
57
57
  value = '暂无报价';
58
58
  }
59
59
  }
60
60
  const [intVal, decimalVal] = `${value}`.split('.');
61
61
  return {
62
62
  currencySymbol: !cnPriceTextList.includes(intVal) ? symbol : '',
63
63
  intVal,
64
64
  decimalVal,
65
65
  };
66
66
  const {
67
67
  prefixCls,
68
68
  symPos,
69
69
  symbol,
70
70
  decPos,
71
71
  status,
72
72
  className,
73
73
  style,
74
74
  symClassName,
75
75
  intClassName,
76
76
  decClassName,
77
77
  noPriceClassName,
78
78
  value,
79
79
  decLength,
80
80
  decToIntegerState,
81
81
  isPlusPrice,
82
82
  isSamsPrice,
83
83
  isMemberPrice,
84
84
  isSfpPrice,
85
85
  memberPriceIcon,
86
86
  isShowPriceLabel,
87
87
  priceLabelText,
88
88
  useFontV2 = false,
89
89
  useFontV2Bold = false,
90
90
  } = props;
91
91
  const cls = classNames(
92
92
  className ? `${className}` : '',
93
93
  prefixCls,
94
94
  {
95
95
  'd-font-v2': useFontV2,
96
96
  'd-font-v2-bold': useFontV2Bold,
97
97
  },
98
98
  'd-imag-rendering-crisp-edges',
99
99
  {
100
100
  del: status === 'del',
101
101
  },
102
102
  {
103
103
  'd-plus-price': isPlusPrice,
104
104
  },
105
105
  {
106
106
  'd-sams-price': isSamsPrice,
107
107
  },
108
108
  {
109
109
  'd-sfp-price': isSfpPrice,
110
110
  },
111
111
  {
112
112
  'd-member-price': isMemberPrice,
113
113
  },
114
114
  {
115
115
  [`d-member-price-${memberPriceIcon}`]: memberPriceIcon,
116
116
  },
117
117
  {
118
118
  'd-price-label': isShowPriceLabel,
119
119
  },
120
120
  );
121
121
  const symCls = classNames(symClassName ? `${symClassName}` : '', {
122
122
  'sym-sub': symPos === 'sub',
123
123
  'sym-sup': symPos === 'sup',
124
124
  });
125
125
  const intCls = classNames(intClassName ? `${intClassName}` : '');
126
126
  const decCls = classNames(decClassName ? `${decClassName}` : '', {
127
127
  'dec-sub': decPos === 'sub',
128
128
  'dec-sup': decPos === 'sup',
129
129
  });
130
130
  const noPriceCls = classNames(noPriceClassName ? `${noPriceClassName}` : '');
131
131
  const { currencySymbol, intVal, decimalVal } = dealPrice(
132
132
  value,
133
133
  decLength,
134
134
  symbol,
135
135
  decToIntegerState,
136
136
  );
137
137
  return (
138
138
  <View className={cls} style={style} data-after={isShowPriceLabel ? priceLabelText : ''}>
139
139
  {intVal === '-1' ? (
140
140
  <Text className={`${prefixCls}-txt int-txt off-shelf ${noPriceCls}`}>{`暂无报价`}</Text>
141
141
  ) : (
142
142
  <>
143
143
  <Text className={`${prefixCls}-sym ${symCls}`}>{currencySymbol}</Text>
144
144
  <Text className={`${prefixCls}-txt int-txt ${intCls}`}>{intVal}</Text>
145
145
  {!!decimalVal && (
146
146
  <Text className={`${prefixCls}-txt dec-txt ${decCls}`}>.{decimalVal}</Text>
147
147
  )}
148
148
  </>
149
149
  )}
150
150
  </View>
151
151
  );
152
152
  prefixCls: 'd-mini-price',
153
153
  style: {},
154
154
  status: '',
155
155
  symbol: '¥',
156
156
  symPos: 'sub',
157
157
  decLength: 2,
158
158
  decPos: 'sub',
159
159
  decToIntegerState: false,
160
160
  isPlusPrice: false,
161
161
  isShowPriceLabel: false,
162
162
  priceLabelText: '到手价',
163
163
  useFontV2: false,
164
164
  useFontV2Bold: false,
@@ -164,3 +164,9 @@
164
164
  .memberStyle {
165
165
  color: #f6b303;
166
166
  }
167
+ .fontV2 {
168
+ font-family: 'JDZhengHeiV2-Regular';
169
+ }
170
+ .fontV2Bold {
171
+ font-family: 'JDZhengHeiV2-Bold';
172
+ }