Authored by whb

修改客户端的显示

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