Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
lore-w
2016-01-07 13:31:10 +0800
Commit
790a909d1c44ff6bf2922daeba4177d2cbdea6c9
2 parents
cfed190d
90f4e87c
code review by liuyue
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
136 additions
and
61 deletions
template/www.yohobuy.com/actions/passport/register/index.phtml
template/www.yohobuy.com/actions/passport/register/third-register.phtml
template/www.yohobuy.com/partials/passport/register.phtml
web-static/sass/passport/_index.scss
web-static/sass/passport/_register.scss
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Register.php
template/www.yohobuy.com/actions/passport/register/index.phtml
View file @
790a909
{
{>
layout/header
}
}
<div
class=
"
login-page
passport-page yoho-page clearfix"
>
<div
class=
"passport-page yoho-page clearfix"
>
{
{#
passport
}
}
{
{>
passport/cover
}
}
<div
class=
"content"
>
<div
class=
"register-page"
>
<form
id=
"register-form"
class=
"register-form"
method=
"POST"
action=
"{{actionUrl}}"
autocomplete=
"off"
>
<ul>
<li
class=
"clearfix"
>
<select
id=
"region"
class=
"region"
name=
"region"
>
{
{#each
region
}
}
<option
{
{#if
selected
}
}selected=
"selected"
{
{/if
}
}
value=
"{{id}}"
>
{
{name
}
}</option>
{
{/each
}
}
</select>
</li>
<li
class=
"clearfix"
data-index=
"0"
>
<span
id=
"country-code"
class=
"country-code"
>
{
{location
}
}</span>
<input
value=
""
id=
"phone-num"
class=
"input va phone-num"
type=
"text"
name=
"phoneNum"
placeholder=
"请输入手机号码"
autocomplete=
"off"
>
</li>
<li
class=
"w330 clearfix"
data-index=
"1"
>
<input
id=
"captcha"
class=
"input va captcha"
type=
"text"
name=
"captcha"
placeholder=
"图形验证码"
autocomplete=
"off"
maxlength=
"4"
>
<img
id=
"captcha-img"
class=
"captcha-img"
src=
"{{captchaUrl}}"
alt=
""
>
<a
class=
"link change-captcha"
>换一张</a>
</li>
<li
class=
"clearfix"
data-index=
"2"
>
<input
id=
"msg-captcha"
class=
"input va msg-captcha"
type=
"text"
name=
"msgCaptcha"
placeholder=
"短信验证码"
autocomplete=
"off"
maxlength=
"4"
>
<input
id=
"send-captcha"
class=
"btn send-captcha disable"
type=
"button"
value=
"获取短信验证码"
>
<span
id=
"msg-tip"
class=
"hide msg-tip"
>短信验证码已发送至您的手机,请查收</span>
</li>
<li
class=
"clearfix"
data-index=
"3"
>
<input
id=
"pwd"
class=
"input va pwd"
name=
"pwd"
placeholder=
"设置密码"
autocomplete=
"off"
maxlength=
"20"
type=
"password"
>
<div
class=
"pwd-intensity-container"
>
<span
class=
"pwd-intensity low"
>低</span>
<span
class=
"pwd-intensity mid"
>中</span>
<span
class=
"pwd-intensity high"
>高</span>
</div>
<div
id=
"pwd-tips"
class=
"hide pwd-tips"
>
<div
class=
"default"
id=
"pwd-tip1"
><i></i>密码只支持
6-20
位字符</div>
<div
class=
"default"
id=
"pwd-tip2"
><i></i>建议由字母、
数字、
符号两种以上组合</div>
</div>
</li>
<li
class=
"items-container clearfix"
>
<input
id=
"agree-terms"
class=
"agree-terms"
type=
"checkbox"
checked=
""
>
<span>
我已阅读并同意遵守
<a
class=
"link go-yoho-items"
href=
"{{itemUrl}}"
>YOHO!有货服务条款</a>
</span>
</li>
<li
class=
"clearfix"
>
<input
name=
"refer"
id=
"refer"
type=
"hidden"
value=
"{{referUrl}}"
>
<input
id=
"register-btn"
class=
"btn register-btn disable"
type=
"submit"
value=
"立即注册"
disabled=
""
>
</li>
<li
class=
"quick-login-container"
>
我已注册YOHO!有货账号
<a
class=
"link go-login"
href=
"{{loginUrl}}"
>快速登录</a>
</li>
</ul>
<div
id=
"err-tip"
class=
"err-tip hide"
>
<span></span>
<b></b>
</div>
</form>
</div>
{
{>
passport/register
}
}
</div>
{
{/
passport
}
}
</div>
...
...
template/www.yohobuy.com/actions/passport/register/third-register.phtml
0 → 100644
View file @
790a909
{
{>
layout/header
}
}
<div
class=
"passport-page yoho-page clearfix"
>
{
{#
passport
}
}
{
{>
passport/cover
}
}
<div
class=
"content"
>
{
{>
passport/register
}
}
</div>
{
{/
passport
}
}
<div
class=
"page-tip clearfix"
>为了给您更好的购物体验,
建议您创建YOHO!Family账号</div>
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/www.yohobuy.com/partials/passport/register.phtml
0 → 100644
View file @
790a909
<div class="register-page">
<form id="register-form" class="register-form" method="POST" action="{{actionUrl}}" autocomplete="off">
<ul>
<li class="clearfix">
<select id="region" class="region" name="region">
{{#each region}}
<option {{#if selected}}selected="selected"{{/if}} value="{{id}}">{{name}}</option>
{{/each}}
</select>
</li>
<li class="clearfix" data-index="0">
<span id="country-code" class="country-code">{{location}}</span>
<input value="" id="phone-num" class="input va phone-num" type="text" name="phoneNum" placeholder="请输入手机号码" autocomplete="off">
</li>
<li class="w330 clearfix" data-index="1">
<input id="captcha" class="input va captcha" type="text" name="captcha" placeholder="图形验证码" autocomplete="off" maxlength="4">
<img id="captcha-img" class="captcha-img" src="{{captchaUrl}}" alt="">
<a class="link change-captcha">换一张</a>
</li>
<li class="clearfix" data-index="2">
<input id="msg-captcha" class="input va msg-captcha" type="text" name="msgCaptcha" placeholder="短信验证码" autocomplete="off" maxlength="4">
<input id="send-captcha" class="btn send-captcha disable" type="button" value="获取短信验证码">
<span id="msg-tip" class="hide msg-tip">短信验证码已发送至您的手机,请查收</span>
</li>
<li class="clearfix" data-index="3">
<input id="pwd" class="input va pwd" name="pwd" placeholder="设置密码" autocomplete="off" maxlength="20" type="password">
<div class="pwd-intensity-container">
<span class="pwd-intensity low">低</span>
<span class="pwd-intensity mid">中</span>
<span class="pwd-intensity high">高</span>
</div>
<div id="pwd-tips" class="hide pwd-tips">
<div class="default" id="pwd-tip1"><i></i>密码只支持6-20位字符</div>
<div class="default" id="pwd-tip2"><i></i>建议由字母、 数字、 符号两种以上组合</div>
</div>
</li>
<li class="items-container clearfix">
<input id="agree-terms" class="agree-terms" type="checkbox" checked="">
<span>
我已阅读并同意遵守
<a class="link go-yoho-items" href="{{itemUrl}}">YOHO!有货服务条款</a>
</span>
</li>
<li class="clearfix">
<input name="refer" id="refer" type="hidden" value="{{referUrl}}">
<input id="register-btn" class="btn register-btn disable" type="submit" value="{{regBtnText}}" disabled="">
</li>
{{# loginUrl}}
<li class="quick-login-container">
我已注册YOHO!有货账号
<a class="link go-login" href="{{.}}">完善信息</a>
</li>
{{/loginUrl}}
{{# skipUrl}}
<li class="skip-user-info">
<a href="{{.}}">跳过此步</a>
</li>
{{/skipUrl}}
</ul>
<div id="err-tip" class="err-tip hide">
<span></span>
<b></b>
</div>
</form>
</div>
\ No newline at end of file
...
...
web-static/sass/passport/_index.scss
View file @
790a909
...
...
@@ -172,6 +172,20 @@ $tip: sprite-map("passport/tip/*.png", $spacing: 10px);
margin-right
:
5px
;
}
}
/*完善信息提示框*/
.page-tip
{
display
:
block
;
width
:
100%
;
height
:
30px
;
line-height
:
30px
;
text-align
:
center
;
font-size
:
20px
;
font-weight
:
bold
;
color
:
#ccc
;
clear
:
both
;
margin-bottom
:
15px
;
}
}
.passport-cover
{
...
...
web-static/sass/passport/_register.scss
View file @
790a909
...
...
@@ -200,6 +200,15 @@
text-align
:
right
;
white-space
:
nowrap
;
}
&
.skip-user-info
{
font-size
:
18px
;
text-align
:
center
;
a
{
color
:
#ff1901
;
text-decoration
:
underline
;
}
}
}
.err-tip
{
...
...
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Register.php
View file @
790a909
...
...
@@ -25,12 +25,41 @@ class RegisterController extends WebAction
'referUrl'
=>
$refer
,
'loginUrl'
=>
'/signin.html?refer='
.
$refer
,
'coverHref'
=>
$cover
[
'url'
],
'coverImg'
=>
$cover
[
'img'
]
'coverImg'
=>
$cover
[
'img'
],
'regBtnText'
=>
'快速登录'
)
);
$this
->
setCookie
(
'refer'
,
$refer
);
$this
->
_view
->
display
(
'index'
,
$data
);
}
/**
* 第三方登录
*/
public
function
thirdAction
()
{
$refer
=
$this
->
get
(
'refer'
,
SITE_MAIN
);
$cover
=
PassportModel
::
getLeftBanner
(
PassportModel
::
REGISTER_LEFT_BANNER_CODE
);
$this
->
setSession
(
'effective_time'
,
time
()
+
1800
);
$data
=
array
(
'registerPage'
=>
true
,
'passport'
=>
array
(
'actionUrl'
=>
'/passport/register/mobileregister'
,
'region'
=>
RegData
::
getAreasData
(),
'location'
=>
'+86'
,
'captchaUrl'
=>
'http://web.dev.yohobuy.com/passport/images?t=1449799445'
,
'itemUrl'
=>
'##'
,
'referUrl'
=>
$refer
,
'skipUrl'
=>
'/signin.html?refer='
.
$refer
,
'coverHref'
=>
$cover
[
'url'
],
'coverImg'
=>
$cover
[
'img'
],
'regBtnText'
=>
'完善信息'
)
);
$this
->
setCookie
(
'refer'
,
$refer
);
$this
->
_view
->
display
(
'third-register'
,
$data
);
}
/**
* 检测手机号
...
...
Please
register
or
login
to post a comment