Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
hf
9 years ago
Commit
ae63f702f08d3b1a7c7f96c702307f85be05636e
1 parent
073204fd
modify format template page_header.phtml go back url use javascript
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
127 additions
and
142 deletions
template/m.yohobuy.com/partials/layout/footer.phtml
template/m.yohobuy.com/partials/layout/header.phtml
template/m.yohobuy.com/partials/layout/page_header.phtml
template/m.yohobuy.com/partials/layout/use.phtml
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
template/m.yohobuy.com/partials/layout/footer.phtml
View file @
ae63f70
{
{>
layout/page_footer
}
}
{
{#if
rlsEnv
}
}
<script
src=
"http://static.wap.yohobuy.com/js/sea.js"
></script>
<script>seajs.config(
{
base:'http://static.wap.yohobuy.com/'
}
);</script>
<script
src=
"http://cdn.yoho.cn/myohobuy/{{version}}/lib.js"
></script>
<script
src=
"http://cdn.yoho.cn/myohobuy/{{version}}/index.js"
></script>
{
{/if
}
}
{
{#if
testEnv
}
}
<script
src=
"http://cdn.yoho.cn/myohobuy/{{version}}/lib.js"
></script>
<script
src=
"http://cdn.yoho.cn/myohobuy/{{version}}/index.js"
></script>
<script
src=
"http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/lib.js"
></script>
<script
src=
"http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/index.js"
></script>
{
{/if
}
}
{
{#if
devEnv
}
}
<script
src=
"http://localhost:8000/static/js/sea.js?nowrap"
></script>
<script>
seajs.config(
{
base:
'http://localhost:8000/'
}
);
</script>
<script
src=
"http://localhost:8000/static/js/sea.js?nowrap"
></script>
<script>seajs.config(
{
base:
'http://localhost:8000/'
}
);</script>
{
{/if
}
}
{
{>
layout/use
}
}
</body>
...
...
template/m.yohobuy.com/partials/layout/header.phtml
View file @
ae63f70
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<title>
{{title}}YOHO!有货
</title>
<meta
name=
"keywords"
content=
"{{keywords}}Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"
>
<meta
name=
"description"
content=
"{{description}}YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
>
<meta
http-equiv=
"cleartype"
content=
"on"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
/>
<meta
content=
"telephone=no"
name=
"format-detection"
/>
<meta
content=
"email=no"
name=
"format-detection"
/>
<script
type=
"text/javascript"
>
(
function
(
doc
,
win
)
{
var
docEl
=
doc
.
documentElement
;
(
function
()
{
var
clientWidth
=
docEl
.
clientWidth
;
if
(
!
clientWidth
)
{
return
;
}
docEl
.
style
.
fontSize
=
20
*
(
clientWidth
/
320
)
+
'px'
;
}());
})(
document
,
window
);
</script>
{{#if rlsEnv}}
<link
rel=
"stylesheet"
href=
"http://static.wap.yohobuy.com/css/index.css"
>
{{/if}}
{{#if testEnv}}
<link
rel=
"stylesheet"
href=
"http://cdn.yoho.cn/myohobuy/{{version}}/index.css"
>
{{/if}}
{{#if devEnv}}
<link
rel=
"stylesheet"
href=
"http://static.dev.yohobuy.com/css/index.css"
>
{{/if}}
<meta
charset=
"utf-8"
>
<title>
{{title}}YOHO!有货
</title>
<meta
name=
"keywords"
content=
"{{keywords}}Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"
>
<meta
name=
"description"
content=
"{{description}}YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
>
<meta
http-equiv=
"cleartype"
content=
"on"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
/>
<meta
content=
"telephone=no"
name=
"format-detection"
/>
<meta
content=
"email=no"
name=
"format-detection"
/>
<script
type=
"text/javascript"
>
(
function
(
doc
,
win
)
{
var
docEl
=
doc
.
documentElement
;
(
function
()
{
var
clientWidth
=
docEl
.
clientWidth
;
if
(
!
clientWidth
)
{
return
;
}
docEl
.
style
.
fontSize
=
20
*
(
clientWidth
/
320
)
+
'px'
;
}());
})(
document
,
window
);
</script>
{{#if rlsEnv}}
<link
rel=
"stylesheet"
href=
"http://cdn.yoho.cn/myohobuy/{{version}}/index.css"
>
{{/if}}
{{#if testEnv}}
<link
rel=
"stylesheet"
href=
"http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/index.css"
>
{{/if}}
{{#if devEnv}}
<link
rel=
"stylesheet"
href=
"http://static.dev.yohobuy.com/css/index.css"
>
{{/if}}
</head>
<body
{{#
if
isPassportPage
}}
class=
passport-body{{/if}}
>
{{> layout/page_header}}
\ No newline at end of file
{{> layout/page_header}}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/layout/page_header.phtml
View file @
ae63f70
{
{#pageHeader
}
}
<header
class=
"yoho-header"
>
{
{#navBack
}
}
<a
href=
{
{.
}
}
class=
"nav-back"
></a>
{
{/navBack
}
}
{
{#navHome
}
}
<a
href=
{
{.
}
}
class=
"nav-home"
></a>
{
{/navHome
}
}
{
{#navTitle
}
}
<p
class=
"nav-title"
>
{
{.
}
}</p>
{
{/navTitle
}
}
</header>
{
{#pageHeader
}
}
<header
class=
"yoho-header"
>
{
{#if
navBack
}
}
<a
href=
"javascript:history.go(-1);"
class=
"nav-back"
></a>
{
{/if
}
}
{
{#navHome
}
}
<a
href=
"{{.}}"
class=
"nav-home"
></a>
{
{/navHome
}
}
{
{#navTitle
}
}
<p
class=
"nav-title"
>
{
{.
}
}</p>
{
{/navTitle
}
}
</header>
{
{/pageHeader
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/layout/use.phtml
View file @
ae63f70
<script>
seajs.use('js/common');
</script>
{{!-- 逛(PLUS+STAR) --}}
{{#if psList}}
<script>
seajs.use('js/guang/plus-star/list');
</script>
<script>
seajs.use('js/guang/plus-star/list');
</script>
{{/if}}
{{#if psDetail}}
<script>
seajs.use('js/guang/plus-star/detail');
</script>
<script>
seajs.use('js/guang/plus-star/detail');
</script>
{{/if}}
{{#if guangHome}}
<script>
seajs.use('js/guang/home');
</script>
<script>
seajs.use('js/guang/home');
</script>
{{/if}}
{{#if guangList}}
<script>
seajs.use('js/guang/list');
</script>
<script>
seajs.use('js/guang/list');
</script>
{{/if}}
{{#if guangDetail}}
<script>
seajs.use('js/guang/detail');
</script>
<script>
seajs.use('js/guang/detail');
</script>
{{/if}}
{{!-- 注册 --}}
{{#if regIndex}}
<script>
seajs.use('js/passport/register/register');
</script>
<script>
seajs.use('js/passport/register/register');
</script>
{{/if}}
{{#if regCode}}
<script>
seajs.use('js/passport/register/code');
</script>
<script>
seajs.use('js/passport/register/code');
</script>
{{/if}}
{{#if regPwd}}
<script>
seajs.use('js/passport/register/password');
</script>
<script>
seajs.use('js/passport/register/password');
</script>
{{/if}}
{{!-- 登陆 --}}
{{#if loginIndex}}
<script>
seajs.use('js/passport/login/login');
</script>
<script>
seajs.use('js/passport/login/login');
</script>
{{/if}}
{{#if loginInterational}}
<script>
seajs.use('js/passport/login/interational');
</script>
<script>
seajs.use('js/passport/login/interational');
</script>
{{/if}}
{{!-- 密码找回 --}}
{{#if backEmail}}
<script>
seajs.use('js/passport/back/email');
</script>
<script>
seajs.use('js/passport/back/email');
</script>
{{/if}}
{{#if backEmailSuccess}}
<script>
seajs.use('js/passport/back/email-success');
</script>
<script>
seajs.use('js/passport/back/email-success');
</script>
{{/if}}
{{#if backMobile}}
<script>
seajs.use('js/passport/back/mobile');
</script>
<script>
seajs.use('js/passport/back/mobile');
</script>
{{/if}}
{{#if backCode}}
<script>
seajs.use('js/passport/back/code');
</script>
<script>
seajs.use('js/passport/back/code');
</script>
{{/if}}
{{#if backNewPwd}}
<script>
seajs.use('js/passport/back/new-password');
</script>
<script>
seajs.use('js/passport/back/new-password');
</script>
{{/if}}
{{!-- 首页 --}}
{{#if grilsHomePage}}
<script>
seajs.use('js/home/home');
</script>
<script>
seajs.use('js/home/home');
</script>
{{/if}}
{{#if boysHomePage}}
<script>
seajs.use('js/home/home');
</script>
<script>
seajs.use('js/home/home');
</script>
{{/if}}
{{#if kidsHomePage}}
<script>
seajs.use('js/home/home');
</script>
<script>
seajs.use('js/home/home');
</script>
{{/if}}
{{#if lifestyleHomePage}}
<script>
seajs.use('js/home/home');
</script>
<script>
seajs.use('js/home/home');
</script>
{{/if}}
{{!-- 新品到着 --}}
{{#if newArrival}}
<script>
seajs.use('js/product/newsale/newarrival');
</script>
<script>
seajs.use('js/product/newsale/newarrival');
</script>
{{/if}}
{{!-- 折扣专区 --}}
{{#if discount}}
<script>
seajs.use('js/product/newsale/discount');
</script>
<script>
seajs.use('js/product/newsale/discount');
</script>
{{/if}}
{{!-- 商品列表 --}}
{{#if goodListPage}}
<script>
seajs.use('js/product/list');
</script>
<script>
seajs.use('js/product/list');
</script>
{{/if}}
{{!-- 品类 --}}
{{#if categoryPage}}
<script>
seajs.use('js/category/index');
</script>
<script>
seajs.use('js/category/index');
</script>
{{/if}}
{{!-- 品牌 --}}
{{#if brandPage}}
<script>
seajs.use('js/category/brand');
</script>
<script>
seajs.use('js/category/brand');
</script>
{{/if}}
{{!-- 搜索 --}}
{{#if searchPage}}
<script>
seajs.use('js/index/search');
</script>
<script>
seajs.use('js/index/search');
</script>
{{/if}}
{{!-- 购物车 --}}
{{#if shoppingCartPage}}
<script>
seajs.use('js/shopping-cart/index');
</script>
<script>
seajs.use('js/shopping-cart/index');
</script>
{{/if}}
\ No newline at end of file
...
...
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
View file @
ae63f70
...
...
@@ -34,7 +34,6 @@ class BrandModel
*/
public
static
function
getBrandByChannel
(
$channel
)
{
$result
=
array
();
$brand
=
array
();
...
...
Please
register
or
login
to post a comment