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

View File

@@ -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}>

View File

@@ -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 {

View File

@@ -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 || ''}`);
} }
/** /**