|
|
<?php if(!$this->view->isAjax):?>
|
|
|
<?php $this->_extends('layout/default_layout');?>
|
|
|
<?php $this->_block('main');?>
|
|
|
<!-- content start -->
|
|
|
<div class="content-wrap clearfix">
|
|
|
<div class="brand-detail">
|
|
|
<div class="brand-detail-top clearfix">
|
|
|
<div class="brand-detail-image">
|
|
|
<?php
|
|
|
$pics = json_decode($this->view->info['pics'],true);
|
|
|
$video = '';
|
|
|
foreach($pics as $val): ?>
|
|
|
<?php if($val['type']=='pic'):?>
|
|
|
<img src="<?php echo Lib_Images::getImageUrl($val['url'], '0300x0300','fragmentimg','thumbnail');?>" alt="<?php echo $this->view->info['description'];?>"/>
|
|
|
<?php else:?>
|
|
|
<?php $video = $val['url']?>
|
|
|
<?php endif;?>
|
|
|
<?php endforeach;?>
|
|
|
</div>
|
|
|
<div class="brand-info">
|
|
|
<div class="brand-info-logo clearfix">
|
|
|
<a href="" class="brand-logo"><img src="<?php echo Lib_Images::getImageUrl($this->view->info['logo'], '0147x0097','fragmentimg');?>" alt="<?php echo $this->view->info['name'];?>"/></a>
|
|
|
<h2><?php echo $this->view->info['name'];?></h2>
|
|
|
<div class="brand-detail-share">
|
|
|
<div style="padding-top: 42px;">
|
|
|
<wb:share-button addition="simple" type="button" default_text="<?php echo Lib_Utils_StringHelper::substr_cn($this->view->info['description'], 250);?>" pic="<?php echo Lib_Images::getImageUrl($this->view->info['logo'], '0145x0095','fragmentimg');?>"></wb:share-button>
|
|
|
<img alt="" src="<?php echo SITE_IMG.'/yohood/wechat.png';?>" id="wechat" style="cursor: pointer;">
|
|
|
<div class="bd_weixin_popup" style="display: none;">
|
|
|
<div class="bd_weixin_popup_head">
|
|
|
<span>分享到微信朋友圈</span>
|
|
|
</div>
|
|
|
<div id="bdshare_weixin_qrcode_dialog_qr" class="bd_weixin_popup_main">
|
|
|
<img width="185" height="185" src="http://qr.liantu.com/api.php?text=<?php echo SITE_MAIN;?>/brand/detail/id/9">
|
|
|
</div>
|
|
|
<div class="bd_weixin_popup_foot">打开微信,点击底部的“发现”,<br>使用“扫一扫”即可将网页分享至朋友圈。</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<h3>ABOUT <?php echo $this->view->info['name'];?></h3>
|
|
|
<div class="brand-intro">
|
|
|
<?php echo $this->view->info['description'];?>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="goods_list">
|
|
|
<?php endif;?>
|
|
|
|
|
|
<?php if(count($this->view->goods)): ?>
|
|
|
<div class="brand-goods-list" style="<?php echo count($this->view->news) == 0 ? 'border-bottom: 0px;':'';?>">
|
|
|
<ul class="clearfix">
|
|
|
<?php foreach($this->view->goods as $val):?>
|
|
|
<li>
|
|
|
<a target="_blank" href="<?php echo $val['url']?>" title="<?php echo $val['name']?>">
|
|
|
<img src="<?php echo $val['thumb']?>" width="150" alt="">
|
|
|
<p><?php echo $val['name']?></p>
|
|
|
</a>
|
|
|
</li>
|
|
|
<?php endforeach;?>
|
|
|
</ul>
|
|
|
<div id="pageContent" class="pagination">
|
|
|
<?php $this->_component('Common_Pagination',array(
|
|
|
'pagination' => $this->view->pagination,'next_label' => '下一页','prev_label' => '上一页','current_class' => 'current',
|
|
|
'page_class'=>'pagination-inner', 'id'=>'img_page'
|
|
|
));?>
|
|
|
</div>
|
|
|
</div>
|
|
|
<?php endif;?>
|
|
|
|
|
|
<?php if(!$this->view->isAjax):?>
|
|
|
</div>
|
|
|
</div>
|
|
|
<?php if(isset($this->view->news) && count($this->view->news) > 0): ?>
|
|
|
<div class="pageSize">
|
|
|
<ul class="clearfix activity-index-list detail-pageSize" style="padding-top: 10px;">
|
|
|
<?php foreach($this->view->news as $val):?>
|
|
|
<li>
|
|
|
<div class="activity-img-item">
|
|
|
<a target="" href="<?php echo url('news/detail',array('id' => $val['id']))?>" title="<?php echo $val['title']?>">
|
|
|
<img alt="" src="<?php echo $val['thumb']?>" style="width: 120px;height: 75px;" alt="<?php echo $this->view->info['description'];?>">
|
|
|
</a>
|
|
|
</div>
|
|
|
<h3><a target="" href="<?php echo url('news/detail',array('id' => $val['id']))?>"><?php echo $val['title']?></a></h3>
|
|
|
<p><?php echo $val['desc'];?></p>
|
|
|
<span><em><?php echo date('H:i',$val['create_time'])?></em> <?php echo date('Y/m/d',$val['create_time'])?></span>
|
|
|
</li>
|
|
|
<?php endforeach;?>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<?php endif;?>
|
|
|
</div>
|
|
|
<?php $this->_endblock();?>
|
|
|
<?php $this->_block('js');?>
|
|
|
<?php $this->_js('index.js', array(
|
|
|
SITE_JS . '/lib/seajs.js',
|
|
|
));?>
|
|
|
<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>
|
|
|
<script type="text/javascript">
|
|
|
seajs.use("jquery",function($)
|
|
|
{
|
|
|
$("#wechat").bind("mousemove", function()
|
|
|
{
|
|
|
$(".bd_weixin_popup").css({left:$(this).offset().left, display:"block"});
|
|
|
});
|
|
|
$("#wechat").bind("mouseout", function()
|
|
|
{
|
|
|
$(".bd_weixin_popup").css("display","none");
|
|
|
});
|
|
|
});
|
|
|
</script>
|
|
|
<?php $this->_endblock();?>
|
|
|
<?php endif;?> |
|
|
\ No newline at end of file |