Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
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
ReactWeb5
CivWeb
Commits
30861356
Commit
30861356
authored
3 years ago
by
尚顺利
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改微信扫码
parent
673aed6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
infoLogin.js
src/pages/user/login/template/infoLogin.js
+18
-14
No files found.
src/pages/user/login/template/infoLogin.js
View file @
30861356
...
...
@@ -2,7 +2,7 @@
/*
* @Author: shangshunli;
* @Date: 2021-08-02 09:39:46;
* @LastEditTime: 2021-09-03 1
4:58:29
* @LastEditTime: 2021-09-03 1
5:37:12
* @LastEditors: shangshunli
* @Description:信息化登录页;
*/
...
...
@@ -34,6 +34,7 @@ class InfoLogin extends React.Component{
}
componentDidMount
(){
let
action
=
new
LoginAction
(
this
.
props
,
false
,
true
)
this
.
loginEvent
(
action
)
}
// 切换登录方式
changeloginStyle
=
()
=>
{
...
...
@@ -95,21 +96,24 @@ changeQrCode=(item)=>{
loginToWeb5
=
()
=>
{
const
{
loginName
,
passWord
,
isRember
}
=
this
.
state
let
action
=
new
LoginAction
(
this
.
props
,
false
,
true
)
action
.
globalConfig
=
this
.
props
.
global
;
action
.
loginHandler
(
loginName
,
passWord
,
null
,
isRember
,
false
)
this
.
props
.
updateCurrentIndex
&&
this
.
props
.
updateCurrentIndex
(
-
1
);
action
&&
action
.
events
.
on
(
'loginSuccess'
,
event
=>
{
this
.
props
.
updateCurrentIndex
&&
this
.
props
.
updateCurrentIndex
(
0
);
this
.
props
.
history
.
push
(
`/?client=
${
this
.
props
.
global
.
client
}
`
);
window
.
share
.
event
.
emit
(
'triggerMicro'
,
this
.
props
.
global
);
});
action
&&
action
.
events
.
on
(
'loginError'
,
event
=>
{
});
action
&&
action
.
events
.
on
(
'loginVisible'
,
status
=>
{
this
.
loginEvent
(
action
)
}
loginEvent
(
action
){
action
.
globalConfig
=
this
.
props
.
global
;
this
.
props
.
updateCurrentIndex
&&
this
.
props
.
updateCurrentIndex
(
-
1
);
action
&&
action
.
events
.
on
(
'loginSuccess'
,
event
=>
{
this
.
props
.
updateCurrentIndex
&&
this
.
props
.
updateCurrentIndex
(
0
);
this
.
props
.
history
.
push
(
`/?client=
${
this
.
props
.
global
.
client
}
`
);
window
.
share
.
event
.
emit
(
'triggerMicro'
,
this
.
props
.
global
);
});
action
&&
action
.
events
.
on
(
'loginError'
,
event
=>
{
});
});
action
&&
action
.
events
.
on
(
'loginVisible'
,
status
=>
{
});
}
render
(){
const
{
loginStyle
,
isOpen
,
isRember
,
loginName
,
passWord
,
ddOrWeixin
}
=
this
.
state
...
...
This diff is collapsed.
Click to expand it.
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