Authored by tmq

分享

... ... @@ -197,6 +197,7 @@ EOT;
public function detailAction()
{
$id = intval($this->_request->id);
$type = $this->_request->get('type','');
$news = array();
if (empty($id))
{
... ... @@ -229,6 +230,7 @@ EOT;
$this->_view['info'] = $info;
$this->_view['banners'] = Facade_Index::getIndex(4);
$this->_view['news'] = $news;
$this->_view['type'] = $type;
}
/**
... ...
<?php $this->_extends('layout/default_layout');?>
<?php $this->_block('main');?>
<?php if($this->view->type !==1){?>
<div class="detail-wrap clearfix">
<div class="detail-title">
<h2><?php echo $this->view->info['title']?></h2>
... ... @@ -152,6 +153,15 @@
</div>
</div>
</div>
<?php }else{?>
<div>
<ul>
<li><img src="<?php echo $this->view->thumb?>"></li>
<li>【YO’HOOD 2016】</li>
<li><?php echo $this->view->info['title']?></li>
</ul>
</div>
<?php }?>
<div class="share" data-link="<?php echo SITE_MAIN;?>/news/detail/id/<?php echo $this->view->info['id'];?>" cover-url="<?php echo $this->view->info['thumb'];?>">
<h4>share</h4>
<ul>
... ... @@ -165,7 +175,7 @@
<span>分享到微信朋友圈</span>
</div>
<div class="wx-popup-bd">
<img src="http://qr.liantu.com/api.php?text=<?php echo SITE_MAIN;?>/news/detail/id/<?php echo $this->view->info['id'];?>">
<img src="http://qr.liantu.com/api.php?text=<?php echo SITE_MAIN;?>/news/detail/type/1/id/<?php echo $this->view->info['id'];?>">
</div>
<div class="wx-popup-ft">点击底部的“发现”,使用<br>“扫一扫”即可分享。</div>
</div>
... ...