Authored by hf

modify format template page_header.phtml go back url use javascript

{{> 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>
... ...
<!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) {
<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 () {
(function() {
var clientWidth = docEl.clientWidth;
if (!clientWidth) {
return;
... ... @@ -21,16 +21,16 @@
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}}
</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
... ...
{{#pageHeader}}
<header class="yoho-header">
{{#navBack}}
<a href={{.}} class="nav-back"></a>
{{/navBack}}
<header class="yoho-header">
{{#if navBack}}
<a href="javascript:history.go(-1);" class="nav-back"></a>
{{/if}}
{{#navHome}}
<a href={{.}} class="nav-home"></a>
<a href="{{.}}" class="nav-home"></a>
{{/navHome}}
{{#navTitle}}
<p class="nav-title">{{.}}</p>
{{/navTitle}}
</header>
</header>
{{/pageHeader}}
\ No newline at end of file
... ...
<script>
seajs.use('js/common');
</script>
{{!-- 逛(PLUS+STAR) --}}
{{#if psList}}
<script>
<script>
seajs.use('js/guang/plus-star/list');
</script>
</script>
{{/if}}
{{#if psDetail}}
<script>
<script>
seajs.use('js/guang/plus-star/detail');
</script>
</script>
{{/if}}
{{#if guangHome}}
<script>
<script>
seajs.use('js/guang/home');
</script>
</script>
{{/if}}
{{#if guangList}}
<script>
<script>
seajs.use('js/guang/list');
</script>
</script>
{{/if}}
{{#if guangDetail}}
<script>
<script>
seajs.use('js/guang/detail');
</script>
</script>
{{/if}}
{{!-- 注册 --}}
{{#if regIndex}}
<script>
<script>
seajs.use('js/passport/register/register');
</script>
</script>
{{/if}}
{{#if regCode}}
<script>
<script>
seajs.use('js/passport/register/code');
</script>
</script>
{{/if}}
{{#if regPwd}}
<script>
<script>
seajs.use('js/passport/register/password');
</script>
</script>
{{/if}}
{{!-- 登陆 --}}
{{#if loginIndex}}
<script>
<script>
seajs.use('js/passport/login/login');
</script>
</script>
{{/if}}
{{#if loginInterational}}
<script>
<script>
seajs.use('js/passport/login/interational');
</script>
</script>
{{/if}}
{{!-- 密码找回 --}}
{{#if backEmail}}
<script>
<script>
seajs.use('js/passport/back/email');
</script>
</script>
{{/if}}
{{#if backEmailSuccess}}
<script>
<script>
seajs.use('js/passport/back/email-success');
</script>
</script>
{{/if}}
{{#if backMobile}}
<script>
<script>
seajs.use('js/passport/back/mobile');
</script>
</script>
{{/if}}
{{#if backCode}}
<script>
<script>
seajs.use('js/passport/back/code');
</script>
</script>
{{/if}}
{{#if backNewPwd}}
<script>
<script>
seajs.use('js/passport/back/new-password');
</script>
</script>
{{/if}}
{{!-- 首页 --}}
{{#if grilsHomePage}}
<script>
<script>
seajs.use('js/home/home');
</script>
</script>
{{/if}}
{{#if boysHomePage}}
<script>
<script>
seajs.use('js/home/home');
</script>
</script>
{{/if}}
{{#if kidsHomePage}}
<script>
<script>
seajs.use('js/home/home');
</script>
</script>
{{/if}}
{{#if lifestyleHomePage}}
<script>
<script>
seajs.use('js/home/home');
</script>
</script>
{{/if}}
{{!-- 新品到着 --}}
{{#if newArrival}}
<script>
<script>
seajs.use('js/product/newsale/newarrival');
</script>
</script>
{{/if}}
{{!-- 折扣专区 --}}
{{#if discount}}
<script>
<script>
seajs.use('js/product/newsale/discount');
</script>
</script>
{{/if}}
{{!-- 商品列表 --}}
{{#if goodListPage}}
<script>
<script>
seajs.use('js/product/list');
</script>
</script>
{{/if}}
{{!-- 品类 --}}
{{#if categoryPage}}
<script>
<script>
seajs.use('js/category/index');
</script>
</script>
{{/if}}
{{!-- 品牌 --}}
{{#if brandPage}}
<script>
<script>
seajs.use('js/category/brand');
</script>
</script>
{{/if}}
{{!-- 搜索 --}}
{{#if searchPage}}
<script>
<script>
seajs.use('js/index/search');
</script>
</script>
{{/if}}
{{!-- 购物车 --}}
{{#if shoppingCartPage}}
<script>
<script>
seajs.use('js/shopping-cart/index');
</script>
</script>
{{/if}}
\ No newline at end of file
... ...
... ... @@ -34,7 +34,6 @@ class BrandModel
*/
public static function getBrandByChannel($channel)
{
$result = array();
$brand = array();
... ...