Small fix
This commit is contained in:
@@ -44,11 +44,8 @@ const FundPage: React.FC<HomeFundModelState & DispatchProp> = ({
|
|||||||
<div className="bg" />
|
<div className="bg" />
|
||||||
<span className="title">{formatMessage({ id: 'home.fund.total' })}</span>
|
<span className="title">{formatMessage({ id: 'home.fund.total' })}</span>
|
||||||
<span className="content">
|
<span className="content">
|
||||||
<span className="line">
|
<span className="large">
|
||||||
{info ? (info.vic || 0) : 0} VIC(可提取)
|
{info ? (info.usdt || 0) : 0} VIC
|
||||||
</span>
|
|
||||||
<span className="line">
|
|
||||||
{info ? (info.usdt || 0) : 0} VIC(总量)
|
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<div className={styles.card}>
|
<div className={styles.card}>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
margin: 10px 15% 24px;
|
margin: 10px 15% 24px;
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content .large {
|
.content .large {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* @param input 输入
|
* @param input 输入
|
||||||
*/
|
*/
|
||||||
function validPhone(input: string | number): boolean {
|
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 输入
|
* @param input 输入
|
||||||
*/
|
*/
|
||||||
function validPhoneInput(input: string | number): boolean {
|
function validPhoneInput(input: string | number): boolean {
|
||||||
return /^(?:1\d*)?$/.test(`${input || ''}`);
|
return /^\d*$/.test(`${input || ''}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user