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
da89607c
Commit
da89607c
authored
Jun 16, 2023
by
徐乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改威信登录页
parent
bd1329e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
7 deletions
+47
-7
8.png
src/pages/user/login/template/project/weixin/images/8.png
+0
-0
index.js
src/pages/user/login/template/project/weixin/index.js
+9
-7
index.less
src/pages/user/login/template/project/weixin/index.less
+38
-0
No files found.
src/pages/user/login/template/project/weixin/images/8.png
0 → 100644
View file @
da89607c
This diff was suppressed by a .gitattributes entry.
src/pages/user/login/template/project/weixin/index.js
View file @
da89607c
...
...
@@ -13,16 +13,14 @@ import { defaultApp } from '../../../../../../micro';
import
QRCode
from
'qrcode.react'
;
import
classnames
from
'classnames'
;
import
moment
from
'moment'
;
const
renderQRCode
=
props
=>
{
const
qrcodes
=
props
.
qrcode
.
split
(
'|'
)
||
[];
if
(
qrcodes
.
length
>
0
&&
qrcodes
[
0
])
{
let
value
=
qrcodes
[
0
].
replace
(
/{ip}/gi
,
props
.
ip
||
window
.
location
.
host
).
split
(
'='
)[
1
];
return
<
QRCode
value
=
{
value
}
/>
;
const
renderQRCode
=
()
=>
{
const
qrcodes
=
window
.
globalConfig
&&
window
.
globalConfig
.
qrcode
;
console
.
log
(
'qrcodes'
,
qrcodes
)
if
(
qrcodes
)
{
return
<
div
><
QRCode
value
=
{
qrcodes
}
/><p>扫码下载APP</
p
><
/div>
;
}
return
<
span
>
手持
APP
下载未配置
<
/span>
;
};
const
Login
=
forwardRef
((
props
,
_ref
)
=>
{
const
sliVerify
=
useRef
();
const
loginFormRef
=
useRef
();
...
...
@@ -159,6 +157,10 @@ const Login = forwardRef((props, _ref) => {
<
div
className
=
{
classnames
(
styles
[
'inner-bg'
],
styles
[
'login-part'
])}
ref
=
{
loginFormRef
}
>
{
renderPlatform
()}
<
/div
>
<
div
className
=
{
styles
.
WXqrcodeBox
}
>
<
p
className
=
{
styles
.
WXimg
}
><
/p
>
<
div
className
=
{
styles
.
WXbigImg
}
>
{
renderQRCode
()}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
{
styles
[
'login-header'
]}
>
...
...
src/pages/user/login/template/project/weixin/index.less
View file @
da89607c
...
...
@@ -127,6 +127,44 @@
flex-flow: column;
align-items: center;
border-radius: 0 10px 10px 0;
position: relative;
}
.WXqrcodeBox {
position: absolute;
background: rgba(255, 255, 255, 0.5);
border-radius: 0px 5px 5px 0px;
padding: 7px;
bottom: 20px;
right: -36px;
}
.WXimg {
width: 22px;
height: 22px;
background: url('./images/8.png');
background-size: 100%;
background-repeat: no-repeat;
margin: 0;
}
.WXbigImg {
width: 128px;
height: 144px;
text-align: center;
display: none;
}
.WXqrcodeBox:hover {
right: -142px;
}
.WXqrcodeBox:hover .WXimg {
display: none;
}
.WXqrcodeBox:hover .WXbigImg {
display: block;
}
.welcome-title {
...
...
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