Small fix

This commit is contained in:
saplf
2019-09-29 09:36:43 +08:00
parent a96137a714
commit 4e3ecd36b6
3 changed files with 5 additions and 8 deletions
+2 -5
View File
@@ -44,11 +44,8 @@ const FundPage: React.FC<HomeFundModelState & DispatchProp> = ({
<div className="bg" />
<span className="title">{formatMessage({ id: 'home.fund.total' })}</span>
<span className="content">
<span className="line">
{info ? (info.vic || 0) : 0} VIC(可提取)
</span>
<span className="line">
{info ? (info.usdt || 0) : 0} VIC(总量)
<span className="large">
{info ? (info.usdt || 0) : 0} VIC
</span>
</span>
<div className={styles.card}>
+1 -1
View File
@@ -46,7 +46,7 @@
margin: 10px 15% 24px;
align-self: stretch;
display: flex;
justify-content: space-between;
justify-content: center;
}
.content .large {
+2 -2
View File
@@ -4,7 +4,7 @@
* @param input 输入
*/
function validPhone(input: string | number): boolean {
return /^1\d{10}$/.test(`${input || ''}`);
return /^\d+$/.test(`${input || ''}`);
}
/**
@@ -12,7 +12,7 @@ function validPhone(input: string | number): boolean {
* @param input 输入
*/
function validPhoneInput(input: string | number): boolean {
return /^(?:1\d*)?$/.test(`${input || ''}`);
return /^\d*$/.test(`${input || ''}`);
}
/**