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
Email Patches
Plain Diff
Browse Files
Authored by
biao
2015-12-15 09:07:37 +0800
Commit
9ab5027406012a928d26d608ed5db1d4429290c3
1 parent
fc54d2b4
update for bind
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
1 deletions
docs/data-structure.md
static/sass/passport/_bind.scss
template/m.yohobuy.com/actions/passport/bind/index.phtml
template/m.yohobuy.com/partials/layout/use.phtml
docs/data-structure.md
View file @
9ab5027
...
...
@@ -608,6 +608,27 @@
//注册页
{
countrys: [...], //区域列表
countryCode: '' //默认区号
platform: 'qq' //用户在登录页选择的第三方登录平台
openId: '' //第三方登录平台id,用于绑定手机号
}
//验证码
{
areaCode: '',
phoneNum: ''
}
//密码页
{
... //仅头部
}
### 绑定手机号
//绑定页
{
countrys: [...], //区域列表
countryCode: '' //默认区号
}
...
...
static/sass/passport/_bind.scss
View file @
9ab5027
...
...
@@ -3,3 +3,15 @@
color
:
#fff
;
font-size
:
15px
;
}
#yohood
{
background-image
:
image-url
(
'yohood.png'
);
background-size
:
40%
;
background-repeat
:
no-repeat
;
background-color
:
transparent
;
background-position-x
:
10%
;
background-position-y
:
40%
;
border
:
none
;
border-bottom
:
4px
solid
#fff
;
}
...
...
template/m.yohobuy.com/actions/passport/bind/index.phtml
View file @
9ab5027
{
{>
layout/header
}
}
<div
class=
"bind-page passport-page yoho-page"
>
<input
type=
"hidden"
id=
"openId"
value=
"{{openId}}"
>
<input
type=
"hidden"
id=
"sourceType"
value=
"{{sourceType}}"
>
{
{>
passport/header
}
}
<div
class=
"content"
>
{
{>
passport/country_list
}
}
...
...
@@ -8,7 +10,7 @@
<input
id=
"phone-num"
class=
"input phone-num"
type=
"text"
placeholder=
"手机号"
>
</div>
<span
id=
"btn-next"
class=
"btn btn-next disable row"
>下一步</span>
<p
class=
"bind-tip"
>
YOHO!Family账号可登录Yoho!Buy有货、YOHO!Boys、YOHO!Girls及SHOW
</p>
<p
class=
"bind-tip"
>
绑定手机号码后,可选择
{
{platform
}
}和手机号登录此帐号
</p>
</div>
</div>
{
{>
layout/footer
}
}
...
...
template/m.yohobuy.com/partials/layout/use.phtml
View file @
9ab5027
...
...
@@ -52,6 +52,22 @@
seajs.use('js/passport/register/password');
</script>
{{/if}}
{{!-- 绑定手机号 --}}
{{#if bindIndex}}
<script>
seajs.use('js/passport/bind/bind');
</script>
{{/if}}
{{#if bindCode}}
<script>
seajs.use('js/passport/bind/code');
</script>
{{/if}}
{{#if bindPwd}}
<script>
seajs.use('js/passport/bind/password');
</script>
{{/if}}
{{!-- 登陆 --}}
{{#if loginIndex}}
<script>
...
...
Please
register
or
login
to post a comment