Small fix
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
margin: 10px 15% 24px;
|
||||
align-self: stretch;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.content .large {
|
||||
|
||||
@@ -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 || ''}`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user