Merge branch 'dev'

为了切换到存币生息模型
This commit is contained in:
Luk Lu
2019-10-27 12:59:22 +08:00
10 changed files with 50 additions and 217 deletions

View File

@@ -100,8 +100,8 @@ export default {
'mine.origin': 'Please choose coin type',
'mine.calc': 'Exchange Calculator',
'mine.mine': '[VIC]',
'mine.addressTitle': 'Deposit >20 {label} to your address. Please scan QR code or click url to copy: ',
'mine.info': 'After the deposit, please click "Refresh" on the previous page to inform the platform. Crystals will become valid after the platform gets informed and confirms your deposit',
'mine.addressTitle': 'Deposit {label} to your address (at least 1000). Please scan QR code or click url to copy: ',
'mine.info': 'After the deposit, please click "Refresh" on the previous page, thereafter you\'ll get crystals and daily income',
'draw.title': 'Withdraw',
'draw.selection': 'Please choose coin type',

View File

@@ -100,8 +100,8 @@ export default {
'mine.origin': '请选择来源币种',
'mine.calc': '汇率计算器:',
'mine.mine': '[VIC]',
'mine.addressTitle': '充值 {label} 到您的专属地址(最低20起20以下无效且无法退还)。扫描二维码或点击地址复制:',
'mine.info': '充值到达目标账户后,请回到上一页矿场点击刷新,平台查账确认后,您即可获得矿晶。',
'mine.addressTitle': '充值 {label} 到您的专属地址(最低1000起否则无效且无法退还)。扫描二维码或点击地址复制:',
'mine.info': '充值到达目标账户后,请回到上一页矿场点击刷新,您即可获得矿晶并每日收益。',
'draw.title': '提币转账',
'draw.selection': '请选择提取币种',

View File

@@ -60,6 +60,13 @@ const model: Model = {
setLocale(lang, false);
yield put({ type: 'onUpdateState', payload: { lang } });
},
*getKycInfo (_, { get }) {
// const data = await http.post('/user/verify', formData);
// yield get({type: 'user/verifyInfo'})
console.info('inside getKycInfo')
},
},
reducers: {

View File

@@ -3,7 +3,7 @@
* Routes:
* - ./src/pages/routes
*/
import React, { useState } from 'react';
import React, { useState, useEffect } from 'react';
import { connect, DispatchProp, routerRedux } from 'dva';
import { formatMessage } from 'umi-plugin-locale';
import { Button, Modal, Input, Select } from 'antd';
@@ -56,6 +56,11 @@ const IdentityPage: React.FC<DispatchProp & UserModelState & IdentityModelState>
const [realname, setRealname] = useState();
const [idNo, setIdNo] = useState();
useEffect( () => {
console.info('实名认证中')
dispatch({ type: 'user/getKycInfo'})
}, []);
const preview = (type) => {
const pic1 = picCover.current;
const pic2 = picBack.current;

View File

@@ -58,7 +58,7 @@ export function displayTime(time: string | Moment): string {
export function displayLabel(label?: string | null): string | null | undefined {
if (label && label.toLowerCase().startsWith('usdt')) {
return 'USDT(erc20)';
return 'VIC';
}
return label;
}