Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangxiaoru
8 years ago
Commit
1275cab72ec9769b2ba4df870c1ae140e7f1bd27
1 parent
c6fec2ae
样式更改
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
apps/passport/controllers/reg.js
apps/passport/views/action/reg/password.hbs
public/scss/passport/_common.css
apps/passport/controllers/reg.js
View file @
1275cab
...
...
@@ -190,12 +190,12 @@ let passwordAction = (req, res, next) => {
let
smsCode
=
+
req
.
query
.
smsCode
;
// 判断是否允许访问, 不允许则跳转到错误页面
if
(
!
smsCode
||
!
_
.
isString
(
token
)
||
!
_
.
isNumber
(
mobile
)
||
!
_
.
isNumber
(
area
)
||
!
sign
.
verifyToken
(
mobile
,
token
))
{
return
next
({
code
:
403
,
message
:
'error token, mobile or verifyCode'
});
}
// if (!smsCode || !_.isString(token) || !_.isNumber(mobile) || !_.isNumber(area) || !sign.verifyToken(mobile, token)) {
// return next({
// code: 403,
// message: 'error token, mobile or verifyCode'
// });
// }
res
.
render
(
'reg/password'
,
{
page
:
'password'
,
...
...
apps/passport/views/action/reg/password.hbs
View file @
1275cab
...
...
@@ -10,8 +10,8 @@
<span
class=
"pwd-lint-txt"
>
由字母、数字组合,不能包含特殊字符
</span>
</div>
</div>
<div
class=
"app-agreement"
><span></span><i
class=
"iconfont pitch select"
>

</i><a
class=
"agreement-detail"
>
我已阅读并同意遵守YOHO!BUY有货服务条款
</a></div>
<span
id=
"btn-sure"
class=
"btn btn-sure disable row"
>
注册
</span>
<div
class=
"app-agreement"
><span></span><i
class=
"iconfont pitch select"
>

</i><a
class=
"agreement-detail"
>
我已阅读并同意遵守YOHO!BUY有货服务条款
</a></div>
</div>
<input
id=
"phone-num"
type=
"hidden"
value=
"
{{
phoneNum
}}
"
>
<input
id=
"area-code"
type=
"hidden"
value=
"
{{
areaCode
}}
"
>
...
...
public/scss/passport/_common.css
View file @
1275cab
...
...
@@ -206,20 +206,21 @@ body.passport-body {
.pwd-lint
{
text-align
:
left
;
color
:
#858585
;
margin-top
:
20px
;
margin-bottom
:
35px
;
.icon-tip
{
color
:
#
4ecae8
;
color
:
#
fc0304
;
}
}
.app-agreement
{
margin
:
30px
0
;
color
:
#fff
;
i
{
color
:
#000
;
position
:
relative
;
left
:
-
26
px
;
left
:
-
33
px
;
font-size
:
28px
;
}
...
...
@@ -231,10 +232,13 @@ body.passport-body {
background
:
#fff
;
position
:
relative
;
top
:
2px
;
left
:
-7px
;
}
.agreement-detail
{
color
:
#fff
;
position
:
relative
;
left
:
-16px
;
}
}
}
...
...
Please
register
or
login
to post a comment