...
|
...
|
@@ -140,11 +140,22 @@ |
|
|
*/
|
|
|
wx.ready(function () {
|
|
|
//构造分享信息
|
|
|
var shareData = {
|
|
|
/* var shareData = {
|
|
|
title: $('.detail-title').find('.title'),
|
|
|
desc: '',
|
|
|
imgUrl: $(".share").attr("cover-url"),
|
|
|
link: $(".share").attr("data-link"),
|
|
|
};*/
|
|
|
//构造分享信息
|
|
|
var shareTitle = '互联网之子';
|
|
|
var shareImg = 'http://demo.open.weixin.qq.com/jssdk/images/p2166127561.jpg';
|
|
|
var shareDesc = '在长大的过程中,我才慢慢发现,我身边的所有事,别人跟我说的所有事,那些所谓本来如此,注定如此的事,它们其没有非如此,事情是可以改变的。更重要的是,有些事既然错了,那就该做出改变。';
|
|
|
var shareLink = 'http://movie.douban.com/subject/25785114/';
|
|
|
var shareData = {
|
|
|
title: shareTitle,
|
|
|
desc: shareDesc,
|
|
|
imgUrl: shareImg,
|
|
|
link: shareLink
|
|
|
};
|
|
|
// 2.1 “分享给朋友”
|
|
|
wx.onMenuShareAppMessage(shareData);
|
...
|
...
|
|