Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fenzhan_zsb
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
esf
fenzhan_zsb
Commits
0bf8cbbf
Commit
0bf8cbbf
authored
Apr 07, 2021
by
liuqiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码
parent
75175984
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
95 additions
and
16 deletions
+95
-16
login.php
new_admincp/applications/zsb/views/nj/login.php
+78
-6
js2.js
new_admincp/source/zsb/js/v1.0/js2.js
+17
-10
No files found.
new_admincp/applications/zsb/views/nj/login.php
View file @
0bf8cbbf
...
...
@@ -40,9 +40,32 @@ $phone = getPhone(4);
#demo
{
height
:
270px
;
position
:
relative
;
overflow
:
hidden
;}
#demo1
,
#demo2
{
height
:
auto
;}
.notice-close
{
position
:
absolute
;
border
:
1px
solid
#666
;
bottom
:
0px
;
padding
:
2px
;
cursor
:
pointer
;
left
:
0
}
.qrcode_login
{}
.qrcode_login
.qrcode_left
{
float
:
left
;
width
:
50%
}
.qrcode_login
.qrcode_right
{
float
:
left
;
width
:
46%
}
.qrcode_login
{
}
.box
{
}
.box
::after
{
content
:
""
;
clear
:
both
;
/*清除浮动*/
display
:
block
;
/*确保该元素是一个块级元素*/
}
.qrcode_left
{
float
:
left
;
width
:
50%
}
.qrcode_left
::after
{
content
:
""
;
clear
:
both
;
/*清除浮动*/
display
:
block
;
/*确保该元素是一个块级元素*/
}
.qrcode_right
{
float
:
left
;
width
:
46%
}
.qrcode_right
.account-btn
{
font-size
:
14px
;
color
:
#fff
;
...
...
@@ -58,8 +81,44 @@ $phone = getPhone(4);
outline
:
none
;
position
:
relative
;
}
.qrcode_login
.qrcode_text
{
font-size
:
16px
;
margin-top
:
20px
;
text-align
:
center
}
.qrcode_text_color
{
color
:
#fe8b41
}
.qrcode_login
.qrcode_text
{
font-size
:
16px
;
margin-top
:
20px
;
text-align
:
center
}
.qrcode_text_color
{
color
:
#fe8b41
}
.qr-code-btn
{
font-size
:
14px
;
color
:
#fff
;
padding
:
0
15px
;
background-color
:
#07c160
;
border
:
1px
solid
#07c160
;
line-height
:
2
;
text-align
:
center
;
border-radius
:
3px
;
cursor
:
pointer
;
transition
:
opacity
0.2s
;
outline
:
none
;
width
:
110px
;
position
:
relative
;
margin-right
:
10px
;
}
.qrcode-item
{
margin-top
:
30px
;
}
.qrcode-item
.findPow
{
color
:
#808080
;
line-height
:
30px
;
}
.qrcode-item
.register
{
color
:
#0096ff
;
font-weight
:
bold
;
line-height
:
30px
;
}
</style>
<div
class=
"notice"
>
<div
class=
"noticewap"
>
...
...
@@ -138,14 +197,23 @@ $phone = getPhone(4);
<div
id=
"errorBlock"
><span
class=
"ico"
>
</span><span
id=
"errorInner"
></span></div>
<div
class=
"qrcode_login"
>
<div
class=
"box"
>
<div
class=
"qrcode_left"
>
<img
id=
"qrcode_img"
src=
"
<?php
echo
$default_login_qr_code
;
?>
"
alt=
""
style=
"width: 150px;height: 150px"
>
<img
id=
"qrcode_img"
src=
"
<?php
echo
$default_login_qr_code
;
?>
"
alt=
""
style=
"width: 150px;height: 150px"
>
</div>
<div
class=
"qrcode_right"
>
<div
class=
"qrcode_text"
>
打开
<span
class=
"qrcode_text_color"
>
租售宝APP
</span></div>
<div
class=
"qrcode_text"
>
扫描二维码安全登录
</div>
<div
class=
"qrcode_text account-btn"
>
账户登录
</div>
</div>
</div>
<div
class=
"qrcode-item clearfix"
>
<div
class=
" clearfix"
style=
"width: 110px;margin: 0 auto"
>
<a
class=
"findPow"
href=
"/login/findpw/"
target=
"_blank"
>
找回密码
</a><span
class=
"fg"
>
|
</span><a
class=
"register"
href=
"
<?=
GB_BROKER_REG
?>
"
target=
"_blank"
>
立即注册
</a>
</div>
</div>
</div>
<div
class=
"forms"
style=
"display: none"
>
<div
class=
"item clearfix"
>
...
...
@@ -389,6 +457,10 @@ var _hmt = _hmt || [];
$
(
'.qrcode_login'
).
hide
();
$
(
'.forms'
).
show
();
})
$
(
'.qr-code-btn'
).
click
(
function
()
{
$
(
'.qrcode_login'
).
show
();
$
(
'.forms'
).
hide
();
})
$
.
ajax
({
url
:
'/login/qrCode'
,
type
:
'get'
,
...
...
new_admincp/source/zsb/js/v1.0/js2.js
View file @
0bf8cbbf
...
...
@@ -434,16 +434,23 @@ $("#jsAlterTel").bind("click",function(){
$
(
"#oldpassword"
).
siblings
(
".error"
).
hide
();
}
if
(
newpassword
==
""
||
newpassword
.
length
<
6
)
{
$
(
"#newpassworderr"
).
text
(
"填写新的密码,长度至少6位。"
);
$
(
"#newpassworderr"
).
show
();
return
false
;
}
else
{
$
(
"#newpassworderr"
).
hide
();
}
if
(
newpassword
==
""
||
newpassword
.
length
<
8
)
{
$
(
"#newpassworderr"
).
text
(
"新密码需8位以上数字+英文,请重新设置"
);
$
(
"#newpassworderr"
).
show
();
return
false
;
}
else
if
(
/^
\d
+$/
.
test
(
newpassword
))
{
console
.
log
(
1
);
$
(
"#newpassworderr"
).
text
(
"新密码需8位以上数字+英文,请重新设置"
);
$
(
"#newpassworderr"
).
show
();
return
false
;
}
else
if
(
/^
[
a-zA-Z
]
+$/
.
test
(
newpassword
)){
$
(
"#newpassworderr"
).
text
(
"新密码需8位以上数字+英文,请重新设置"
);
$
(
"#newpassworderr"
).
show
();
return
false
;
}
else
{
$
(
"#newpassworderr"
).
hide
();
}
if
(
newpassword
==
oldpassword
)
{
...
...
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