Commit 5f7b0ed3 by 姜雷

添加发送验证码时间变量

parent 361962b5
...@@ -5,6 +5,7 @@ import { getVcode, getImageVcode } from '../../api/vcode'; ...@@ -5,6 +5,7 @@ import { getVcode, getImageVcode } from '../../api/vcode';
import Modal from '../Modal/Modal'; import Modal from '../Modal/Modal';
import './Vcode.scss'; import './Vcode.scss';
import { ResponseDataEntity } from 'src/api'; import { ResponseDataEntity } from 'src/api';
import { ResendTime } from '@/constants';
type PageOwnProps = { type PageOwnProps = {
positionNum: string; positionNum: string;
...@@ -35,7 +36,7 @@ class Vcode extends Component { ...@@ -35,7 +36,7 @@ class Vcode extends Component {
this.state = { this.state = {
defaultText: props.text ? props.text : '获取验证码', defaultText: props.text ? props.text : '获取验证码',
counting: false, counting: false,
count: 10, count: ResendTime,
timer: null, timer: null,
showImgBox: false, showImgBox: false,
vcode: null, vcode: null,
......
...@@ -2,6 +2,7 @@ export const APP_ID = 'wxf5912b79bba23663'; ...@@ -2,6 +2,7 @@ export const APP_ID = 'wxf5912b79bba23663';
export const SuccessCode = 1000; export const SuccessCode = 1000;
export const LogoutCode = -2; export const LogoutCode = -2;
export const NotRegisterCode = 1005; export const NotRegisterCode = 1005;
export const ResendTime = 10;
export const OLD_BASE_SERVER_URL = 'https://in-dev-selfbase.168cad.top'; export const OLD_BASE_SERVER_URL = 'https://in-dev-selfbase.168cad.top';
export const BASE_SERVER_URL = 'https://ex-dev-dcxy-base-app.168cad.top'; export const BASE_SERVER_URL = 'https://ex-dev-dcxy-base-app.168cad.top';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment