Authored by whb

修改客户端的显示

... ... @@ -71,7 +71,8 @@
$thumb = empty($this->view->info['client_thumb']) ? $this->view->info['thumb'] : $this->view->info['client_thumb'];
echo Lib_Images::getImageUrl($thumb, 'source','fragmentimg');?>"
desc="<?php echo Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($this->view->info['content']), 200);?>"
data-link="<?php echo SITE_MAIN.'/news/detail/id/'.$this->view->info['id'];?>">
data-link="<?php echo SITE_MAIN.'/news/detail/id/'.$this->view->info['id'];?>"
style="<?php echo $this->view->client ? 'display:none':'';?>">
<ul class="clearfix">
<li class="yohoo-share-button-sina"><a href="javascript:;"></a></li>
<li class="yohoo-share-button-qq"><a href="javascript:;"></a></li>
... ... @@ -137,6 +138,7 @@
}
});
//构造分享信息
var shareTitle = $('.title').text();
var shareImg = $(".share").attr("cover-url");
... ... @@ -165,6 +167,9 @@
// wx.error(function (res) {
// alert(res.errMsg);
// });
function getClientShare() {
return { title: shareTitle,desc: shareDesc,imgUrl: shareImg, link: shareLink};
}
seajs.use('mobile',function(mobile) {
mobile.detail();
});
... ...