Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-school-app
Commits
5f7b0ed3
Commit
5f7b0ed3
authored
Jun 10, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加发送验证码时间变量
parent
361962b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Vcode.tsx
src/components/Vcode/Vcode.tsx
+2
-1
index.js
src/constants/index.js
+1
-0
No files found.
src/components/Vcode/Vcode.tsx
View file @
5f7b0ed3
...
@@ -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
,
...
...
src/constants/index.js
View file @
5f7b0ed3
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment