...
|
...
|
@@ -70,6 +70,7 @@ |
|
|
<div id="share" class="share" cover-url="<?php
|
|
|
$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'];?>">
|
|
|
<ul class="clearfix">
|
|
|
<li class="yohoo-share-button-sina"><a href="javascript:;"></a></li>
|
...
|
...
|
@@ -89,7 +90,7 @@ |
|
|
var _nonceStr = json.nonceStr.toString();
|
|
|
var _signature = json.signature.toString();
|
|
|
wx.config({
|
|
|
debug: true,
|
|
|
debug: false,
|
|
|
appId: _appId,
|
|
|
timestamp: _timestamp,
|
|
|
nonceStr: _nonceStr,
|
...
|
...
|
@@ -135,9 +136,9 @@ |
|
|
}
|
|
|
});
|
|
|
//构造分享信息
|
|
|
var shareTitle = $('.detail-title').find('.title').text();
|
|
|
var shareTitle = $('.title').text();
|
|
|
var shareImg = $(".share").attr("cover-url");
|
|
|
var shareDesc = '在长大的过程中,我才慢慢发现,我身边的所有事,别人跟我说的所有事,那些所谓本来如此,注定如此的事,它们其没有非如此,事情是可以改变的。更重要的是,有些事既然错了,那就该做出改变。';
|
|
|
var shareDesc = $(".share").attr("desc");
|
|
|
var shareLink = $(".share").attr("data-link");
|
|
|
/*
|
|
|
* 微信分享
|
...
|
...
|
@@ -159,9 +160,9 @@ |
|
|
wx.onMenuShareWeibo(shareData);
|
|
|
|
|
|
});
|
|
|
wx.error(function (res) {
|
|
|
alert(res.errMsg);
|
|
|
});
|
|
|
// wx.error(function (res) {
|
|
|
// alert(res.errMsg);
|
|
|
// });
|
|
|
seajs.use('mobile',function(mobile) {
|
|
|
mobile.detail();
|
|
|
});
|
...
|
...
|
|