Showing
1 changed file
with
7 additions
and
6 deletions
@@ -70,6 +70,7 @@ | @@ -70,6 +70,7 @@ | ||
70 | <div id="share" class="share" cover-url="<?php | 70 | <div id="share" class="share" cover-url="<?php |
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 | 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'];?>"> |
74 | <ul class="clearfix"> | 75 | <ul class="clearfix"> |
75 | <li class="yohoo-share-button-sina"><a href="javascript:;"></a></li> | 76 | <li class="yohoo-share-button-sina"><a href="javascript:;"></a></li> |
@@ -89,7 +90,7 @@ | @@ -89,7 +90,7 @@ | ||
89 | var _nonceStr = json.nonceStr.toString(); | 90 | var _nonceStr = json.nonceStr.toString(); |
90 | var _signature = json.signature.toString(); | 91 | var _signature = json.signature.toString(); |
91 | wx.config({ | 92 | wx.config({ |
92 | - debug: true, | 93 | + debug: false, |
93 | appId: _appId, | 94 | appId: _appId, |
94 | timestamp: _timestamp, | 95 | timestamp: _timestamp, |
95 | nonceStr: _nonceStr, | 96 | nonceStr: _nonceStr, |
@@ -135,9 +136,9 @@ | @@ -135,9 +136,9 @@ | ||
135 | } | 136 | } |
136 | }); | 137 | }); |
137 | //构造分享信息 | 138 | //构造分享信息 |
138 | - var shareTitle = $('.detail-title').find('.title').text(); | 139 | + var shareTitle = $('.title').text(); |
139 | var shareImg = $(".share").attr("cover-url"); | 140 | var shareImg = $(".share").attr("cover-url"); |
140 | - var shareDesc = '在长大的过程中,我才慢慢发现,我身边的所有事,别人跟我说的所有事,那些所谓本来如此,注定如此的事,它们其没有非如此,事情是可以改变的。更重要的是,有些事既然错了,那就该做出改变。'; | 141 | + var shareDesc = $(".share").attr("desc"); |
141 | var shareLink = $(".share").attr("data-link"); | 142 | var shareLink = $(".share").attr("data-link"); |
142 | /* | 143 | /* |
143 | * 微信分享 | 144 | * 微信分享 |
@@ -159,9 +160,9 @@ | @@ -159,9 +160,9 @@ | ||
159 | wx.onMenuShareWeibo(shareData); | 160 | wx.onMenuShareWeibo(shareData); |
160 | 161 | ||
161 | }); | 162 | }); |
162 | - wx.error(function (res) { | ||
163 | - alert(res.errMsg); | ||
164 | - }); | 163 | +// wx.error(function (res) { |
164 | +// alert(res.errMsg); | ||
165 | +// }); | ||
165 | seajs.use('mobile',function(mobile) { | 166 | seajs.use('mobile',function(mobile) { |
166 | mobile.detail(); | 167 | mobile.detail(); |
167 | }); | 168 | }); |
-
Please register or login to post a comment