Authored by tmq

首页页面

... ... @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale = 1.0, maximum-scale=1.0, minimum-scale=1.0,user-scalable = no" />
<title>YO'HOOD | 全球潮流新品嘉年华</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<meta name="renderer" content="webkit">
<link rel="dns-prefetch" href="<?php echo SITE_RES;?>">
<?php $this->_css('index.css', array(
... ... @@ -45,18 +45,18 @@
</ul>
<a class="contact-btn" href="/default/contactus">contact</a>
</div>
<?php
<?php
$_ctx = Framework_YHttpRequest::instance();
$controller_name = $_ctx->controller_name;
$action_name = $_ctx->action_name;
?>
<div class="header" id="w-submit">
<!-- 页首 logo start -->
<h1 class="logo">
<img src='<?php echo SITE_RES ."/images/yohood/logo3.0.png"?>'>
</h1>
<div class="header">
<a href="<?php echo SITE_MAIN;?>">
<h1 class="logo"><img src='<?php echo SITE_RES."/images/yohood/logo3.0.png"?>'></h1>
</a>
<div class="nav">
<ul class="clearfix">
<!-- 单个菜单标签 start -->
<li <?php echo ($controller_name == 'default') ? 'class="current"':''; ?>>
<a href="/default/index">
<em>HOME</em>
... ... @@ -64,21 +64,37 @@
<i></i>
</a>
</li>
<li <?php echo ($controller_name == 'activity' &&
in_array($action_name, array('index','video','partner'))) ? 'class="current"':''; ?>>
<a href="/activity/index">
<!-- 单个菜单标签 end -->
<!-- 单个菜单标签 start -->
<li>
<a href="javascript:;">
<em>ACTIVITY</em>
<span>活动详情</span>
<i></i>
</a>
</li>
<li <?php echo ($controller_name == 'news') ? 'class="current"':''; ?>>
<a href="/news/index">
<em>COUNSEL</em>
<span>最新资讯</span>
<span>活动资讯</span>
<i></i>
</a>
<!-- 二级菜单 start -->
<div class="second-menu">
<a href="/news/index/tag/品牌咨询">
<em>品牌咨询</em>
<i></i>
</a>
<a href="/news/index/tag/活动介绍">
<em>活动介绍</em>
<i></i>
</a>
<a href="/news/index/tag/亮点活动">
<em>亮点活动</em>
<i></i>
</a>
<a href="/news/index/tag/限量商品">
<em>限量商品</em>
<i></i>
</a>
</div>
<!-- 二级菜单 end -->
</li>
<!-- 单个菜单标签 end -->
<!-- 单个菜单标签 start -->
<li <?php echo ($controller_name == 'brand') ? 'class="current"':''; ?>>
<a href="/brand/index">
<em>BRAND</em>
... ... @@ -86,6 +102,8 @@
<i></i>
</a>
</li>
<!-- 单个菜单标签 end -->
<!-- 单个菜单标签 start -->
<li <?php echo ($controller_name == 'video') ? 'class="current"':''; ?>>
<a href="/video/index">
<em>VIDEO</em>
... ... @@ -93,20 +111,33 @@
<i></i>
</a>
</li>
<li <?php echo ($controller_name == 'onlinereg') ? 'class="current"':''; ?>>
<a href="/onlinereg/index">
<!-- 单个菜单标签 end -->
<!-- 单个菜单标签 start -->
<li>
<a href="javascript:;">
<em>REGISTRATION</em>
<span>在线登记</span>
<i></i>
</a>
<!-- 二级菜单 start -->
<div class="second-menu">
<a href="/onlinereg/exhibitor">
<em>参展商登记</em>
<i></i>
</a>
<a href="/onlinereg/media">
<em>媒体登记</em>
<i></i>
</a>
<a href="/onlinereg/sponsor">
<em>赞助商登记</em>
<i></i>
</a>
</div>
<!-- 二级菜单 end -->
</li>
<li <?php echo ($controller_name == 'activity' && $action_name == 'plan') ? 'class="current"':''; ?>>
<a href="/activity/plan">
<em>SCENE</em>
<span>现场活动</span>
<i></i>
</a>
</li>
<!-- 单个菜单标签 end -->
<!-- 单个菜单标签 start -->
<li <?php echo ($controller_name == 'show') ? 'class="current"':''; ?>>
<a href="/show/index">
<em>SHOW</em>
... ... @@ -114,6 +145,7 @@
<i></i>
</a>
</li>
<!-- 单个菜单标签 end -->
</ul>
</div>
</div>
... ... @@ -123,28 +155,13 @@
$this->_endblock();?>
</div>
</div>
<?php if($this->view->recom_product_total):?>
<div class="ft"> <!-- 限量推荐 -->
<div class="limited-goods">
<h2>限量商品</h2>
<div class="limited-slide-box">
<div class="slide-wrap clearfix" id="product_list" offset="0">
</div>
</div>
<div class="limited-slide-control">
<a class="limited-slide-prev iconfont" href="javascript:void(0);">&#xe600;</a>
<a class="limited-slide-next iconfont" href="javascript:void(0);">&#xe602;</a>
</div>
</div>
</div>
<?php endif;?>
<div class="return-top" style="display:none;">
<a href="javascript:void(0);" id="toTop" class="ifont" style="display: inline;">
<span class="iconfont">&#xe605;</span>
TOP
</a>
</div>
<div class="dialog-w" style="display: none;">
<div class="dia-content">
<span></span>
... ... @@ -152,12 +169,19 @@
</div>
<div class="ft-bd" style="line-height: 20px;text-align: center;color: #c0c0c0;font-family: helveticaneue,'helveticaneue','microsoft yahei'">
<div class="ft-line"></div>
<p>CopyRight © 2007-2016 南京新与力文化传播有限公司 <a href="http://www.miibeian.gov.cn" target="_blank" style="color:#c0c0c0;">苏ICP备09011225号-11</a></p>
<p>CopyRight © 2007-2016 南京新与力文化传播有限公司 <a href="http://www.miibeian.gov.cn" target="_blank" style="color:#c0c0c0;">苏ICP备09011225号-11</a></p>
</div>
<?php $this->_js('index.js', array(
SITE_JS . '/lib/seajs.js',
));?>
<script type="text/javascript" src='<?php echo SITE_RES."/js/lib/seajs.js"?>'></script>
<script type="text/javascript">
seajs.use(['jquery', 'channel'], function($, channel) {
channel.common();
channel.index();
})
</script>
<script type="text/javascript">
seajs.use('yohood',function(yohood){
yohood.layout();
... ... @@ -182,7 +206,7 @@ seajs.use('yohood',function(yohood){
}
)(window,document,'script','//cdn.yoho.cn/yas-jssdk/1.0.6/yas.js','_yas');//第一个参数是版本,第二个参数是appkey,第三个是用户ID,第四个是是否获取地理位置传空就是不获取地理位置。
_yas(1*new Date(),'1.0','yohood_web','','geo');
</script>
</script>
</body>
</html>
... ...
... ... @@ -25,9 +25,9 @@
<div class="content-wrap clearfix">
<div class="fluid-list">
<div class="fluid-list-inner main-layout clearfix" id="img_flow">
<?php
<?php
$this->_widget('news_list', array('list'=> $this->view->news));
?>
?>
</div>
<div id="pageContent" style="text-align: center;" class="pagination">
<?php $this->_component('Common_Pagination',array(
... ... @@ -41,7 +41,7 @@
<div class="cooperation clearfix">
<div class="cooperation-slide-box">
<div class="slide-wrap clearfix">
<?php
<?php
$partnerGroups = array();
foreach($this->view->partnerList as $partner)
{
... ... @@ -50,7 +50,7 @@
if($partner['type'] == $key)
{
$partnerGroups[$type][] = $partner;
}
}
}
}
$groupNum = 0;
... ... @@ -67,7 +67,7 @@
<a href="{$partner['url']}" title="{$partner['name']}" target="_blank">
<img src="{$pic}" alt="" style="width:70px;"/>
</a>
</li>
</li>
EOL;
$groupLen ++;
if($groupLen>= 6)
... ... @@ -77,7 +77,7 @@ EOL;
$groupLen = 0;
$groupNum = 0;
}
}
}
if(!empty($html))
{
$templates[] ='<div class="{class}"><h2>'.$type.'</h2><ul class="clearfix">'.$html.'</ul></div>';
... ... @@ -92,7 +92,7 @@ EOL;
$groupLen = 0;
}
}
$pos = 0;
$pos = 0;
foreach($templates as $temp)
{
if($pos % 2 == 0)
... ... @@ -138,7 +138,7 @@ EOL;
</div>
</div>
<?php endif;?>
<div id="right_banner" style="display:none;" num="<?php echo count($this->view->rightBanners);?>">
<div class="fluid-item layout-item tiled">
<?php
... ... @@ -171,7 +171,7 @@ EOL;
<?php endforeach;?>
</div>
</div>
<?php $this->_endblock();?>
<?php $this->_block('js');?>
<script type="text/javascript">
... ...