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
unknown
9 years ago
Commit
3eb54b781b1c53800ad079f248f7525f8bca6021
2 parents
d04819b2
c6a21350
@review by 徐祁
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
102 additions
and
253 deletions
docs/web-data-structure.md
template/www.yohobuy.com/actions/passport/back/index.phtml
template/www.yohobuy.com/actions/passport/back/reset-pwd.phtml
template/www.yohobuy.com/partials/layout/simple-header.phtml
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Back.php
docs/web-data-structure.md
View file @
3eb54b7
...
...
@@ -1170,6 +1170,8 @@
### 注册页
## 站点头部
{
registerPage: true, //用于加载js
passport: {
...
...
@@ -1189,4 +1191,27 @@
coverHref' => '/passport', //右侧封面跳转链接
coverImg' => '##', //右侧封面地址
}
}
### 登录注册页公用简化头部
{
simpleHeader: {
logo: {
img:'', //头部logo图片
url:''
},
tool: {
user: '', //用户名字
userCenter: '', //用户中心链接
loginHref: '', //登录链接,已登录不传
registerHref: '', //注册链接,已登录不传
logoutHref: '', //登出链接,未登录不传
favoriteHref: '', //我的收藏链接
couponHref: '', //我的优惠券链接
orderHref: '', //订单中心连接
helpHref: '' //帮助中心连接
}
}
}
\ No newline at end of file
...
...
template/www.yohobuy.com/actions/passport/back/index.phtml
View file @
3eb54b7
{
{>
layout/simple-header
}
}
<div
class=
"back-page passport-page yoho-page clearfix"
>
{
{#
back
}
}
<div
class=
"back-page passport-page yoho-page clearfix"
>
{
{#
back
}
}
{
{>
passport/cover
}
}
<div
class=
"content"
>
<div
class=
"back-header clearfix"
>
...
...
template/www.yohobuy.com/actions/passport/back/reset-pwd.phtml
View file @
3eb54b7
{
{>
layout/simple-header
}
}
<div
class=
"reset-pwd-page back-page passport-page yoho-page clearfix"
>
{
{#
resetPwd
}
}
{
{>
passport/cover
}
}
{
{>
passport/cover
}
}
<div
class=
"content"
>
<h
2
class=
"title2"
>重置密码</h
2
>
<form
id=
"reset-pwd-form"
class=
"reset-pwd-form"
method=
"POST"
action=
"/passport/back/update"
>
...
...
template/www.yohobuy.com/partials/layout/simple-header.phtml
View file @
3eb54b7
...
...
@@ -27,32 +27,42 @@
{{/ logo}}
<ul
class=
"header-tool clearfix"
>
{{# tool}}
<li
{{#
if
options
}}
class=
"tool-options"
{{/
if
}}{{#
if
loginUrl
}}
class=
"login-box"
{{/
if
}}
>
{{# tell}}
<i
class=
"tell-icon iconfont"
>

</i>
{{/ tell}}
<li>
<span>
Hi~
</span>
{{# user}}
<a
href=
"{{userCenter}}"
>
{{.}}
</a>
{{/ user}}
{{# loginHref}}
<a
href=
"{{.}}"
>
[请登录]
</a>
{{/ loginHref}}
{{#if url}}
<a
href=
"{{url}}"
>
{{title}}
</a>
{{/if}}
{{#unless url}}
<span>
{{title}}
</span>
{{/unless}}
{{# logoutHref}}
<a
href=
"{{.}}"
>
[退出]
</a>
{{/ logoutHref}}
{{#if options}}
{{# registerHref}}
<a
href=
"{{.}}"
>
[免费注册]
</a>
{{/ registerHref}}
</li>
<li
class=
"tool-options"
>
<span>
MY有货
</span>
<i
class=
"options-icon down iconfont"
>

</i>
<i
class=
"options-icon up iconfont"
>

</i>
<div
class=
"tool-select"
>
{{# options}}
<a
href=
"{{url}}"
>
{{textCn}}
</a>
{{/ options}}
<a
href=
"{{favoriteHref}}"
>
我的收藏
</a>
<a
href=
"{{couponHref}}"
>
优惠券
</a>
</div>
{{/if}}
{{# loginInfo}}
<a
href=
"{{url}}"
>
{{textCn}}
</a>
{{/ loginInfo}}
</li>
<li>
<a
href=
"{{orderHref}}"
>
订单中心
</a>
</li>
<li>
<a
href=
"{{helpHref}}"
>
帮助中心
</a>
</li>
<li>
<i
class=
"tell-icon iconfont"
>

</i>
<span>
400-9889-9646
</span>
</li>
{{/ tool}}
</ul>
...
...
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Back.php
View file @
3eb54b7
...
...
@@ -16,52 +16,14 @@ class BackController extends AbstractAction
'url'
=>
'http://www.yohobuy.com'
),
'tool'
=>
array
(
array
(
'title'
=>
'Hi~'
,
'loginInfo'
=>
array
(
array
(
'textCn'
=>
'2586****@qq.com'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[请登录]'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[免费注册]'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[退出]'
,
'url'
=>
''
)
)
),
array
(
'title'
=>
'MY有货'
,
'options'
=>
array
(
array
(
'textCn'
=>
'我的收藏'
,
'url'
=>
''
),
array
(
'textCn'
=>
'优惠券'
,
'url'
=>
''
),
)
),
array
(
'title'
=>
'订单中心'
,
'url'
=>
'http://www.yohobuy.com/home/orders?t=1449801433.5294'
),
array
(
'title'
=>
'帮助中心'
,
'url'
=>
'http://www.yohobuy.com/help'
),
array
(
'title'
=>
'400-9889-9646'
,
'tell'
=>
true
)
'user'
=>
'2586703@qq.com'
,
'userCenter'
=>
''
,
'loginHref'
=>
''
,
'registerHref'
=>
''
,
'favoriteHref'
=>
''
,
'couponHref'
=>
''
,
'orderHref'
=>
''
,
'helpHref'
=>
''
)
);
$data
=
array
(
...
...
@@ -105,52 +67,15 @@ class BackController extends AbstractAction
'url'
=>
'http://www.yohobuy.com'
),
'tool'
=>
array
(
array
(
'title'
=>
'Hi~'
,
'loginInfo'
=>
array
(
array
(
'textCn'
=>
'2586****@qq.com'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[请登录]'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[免费注册]'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[退出]'
,
'url'
=>
''
)
)
),
array
(
'title'
=>
'MY有货'
,
'options'
=>
array
(
array
(
'textCn'
=>
'我的收藏'
,
'url'
=>
''
),
array
(
'textCn'
=>
'优惠券'
,
'url'
=>
''
),
)
),
array
(
'title'
=>
'订单中心'
,
'url'
=>
'http://www.yohobuy.com/home/orders?t=1449801433.5294'
),
array
(
'title'
=>
'帮助中心'
,
'url'
=>
'http://www.yohobuy.com/help'
),
array
(
'title'
=>
'400-9889-9646'
,
'tell'
=>
true
)
'user'
=>
'2586703@qq.com'
,
'userCenter'
=>
''
,
'loginHref'
=>
''
,
'logoutHref'
=>
''
,
'registerHref'
=>
''
,
'favoriteHref'
=>
''
,
'couponHref'
=>
''
,
'orderHref'
=>
''
,
'helpHref'
=>
''
)
);
$data
=
array
(
...
...
@@ -174,52 +99,15 @@ class BackController extends AbstractAction
'url'
=>
'http://www.yohobuy.com'
),
'tool'
=>
array
(
array
(
'title'
=>
'Hi~'
,
'loginInfo'
=>
array
(
array
(
'textCn'
=>
'2586****@qq.com'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[请登录]'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[免费注册]'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[退出]'
,
'url'
=>
''
)
)
),
array
(
'title'
=>
'MY有货'
,
'options'
=>
array
(
array
(
'textCn'
=>
'我的收藏'
,
'url'
=>
''
),
array
(
'textCn'
=>
'优惠券'
,
'url'
=>
''
),
)
),
array
(
'title'
=>
'订单中心'
,
'url'
=>
'http://www.yohobuy.com/home/orders?t=1449801433.5294'
),
array
(
'title'
=>
'帮助中心'
,
'url'
=>
'http://www.yohobuy.com/help'
),
array
(
'title'
=>
'400-9889-9646'
,
'tell'
=>
true
)
'user'
=>
'2586703@qq.com'
,
'userCenter'
=>
''
,
'loginHref'
=>
''
,
'logoutHref'
=>
''
,
'registerHref'
=>
''
,
'favoriteHref'
=>
''
,
'couponHref'
=>
''
,
'orderHref'
=>
''
,
'helpHref'
=>
''
)
);
$data
=
array
(
...
...
@@ -241,52 +129,15 @@ class BackController extends AbstractAction
'url'
=>
'http://www.yohobuy.com'
),
'tool'
=>
array
(
array
(
'title'
=>
'Hi~'
,
'loginInfo'
=>
array
(
array
(
'textCn'
=>
'2586****@qq.com'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[请登录]'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[免费注册]'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[退出]'
,
'url'
=>
''
)
)
),
array
(
'title'
=>
'MY有货'
,
'options'
=>
array
(
array
(
'textCn'
=>
'我的收藏'
,
'url'
=>
''
),
array
(
'textCn'
=>
'优惠券'
,
'url'
=>
''
),
)
),
array
(
'title'
=>
'订单中心'
,
'url'
=>
'http://www.yohobuy.com/home/orders?t=1449801433.5294'
),
array
(
'title'
=>
'帮助中心'
,
'url'
=>
'http://www.yohobuy.com/help'
),
array
(
'title'
=>
'400-9889-9646'
,
'tell'
=>
true
)
'user'
=>
'2586703@qq.com'
,
'userCenter'
=>
''
,
'loginHref'
=>
''
,
'logoutHref'
=>
''
,
'registerHref'
=>
''
,
'favoriteHref'
=>
''
,
'couponHref'
=>
''
,
'orderHref'
=>
''
,
'helpHref'
=>
''
)
);
$data
=
array
(
...
...
@@ -307,52 +158,15 @@ class BackController extends AbstractAction
'url'
=>
'http://www.yohobuy.com'
),
'tool'
=>
array
(
array
(
'title'
=>
'Hi~'
,
'loginInfo'
=>
array
(
array
(
'textCn'
=>
'2586****@qq.com'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[请登录]'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[免费注册]'
,
'url'
=>
''
),
array
(
'textCn'
=>
'[退出]'
,
'url'
=>
''
)
)
),
array
(
'title'
=>
'MY有货'
,
'options'
=>
array
(
array
(
'textCn'
=>
'我的收藏'
,
'url'
=>
''
),
array
(
'textCn'
=>
'优惠券'
,
'url'
=>
''
),
)
),
array
(
'title'
=>
'订单中心'
,
'url'
=>
'http://www.yohobuy.com/home/orders?t=1449801433.5294'
),
array
(
'title'
=>
'帮助中心'
,
'url'
=>
'http://www.yohobuy.com/help'
),
array
(
'title'
=>
'400-9889-9646'
,
'tell'
=>
true
)
'user'
=>
'2586703@qq.com'
,
'userCenter'
=>
''
,
'loginHref'
=>
''
,
'logoutHref'
=>
''
,
'registerHref'
=>
''
,
'favoriteHref'
=>
''
,
'couponHref'
=>
''
,
'orderHref'
=>
''
,
'helpHref'
=>
''
)
);
$data
=
array
(
...
...
Please
register
or
login
to post a comment