var wstitle = $("title").html(); var wsdesc = $('meta[name="description"]')[0].content; var wslink = window.location.href; var wsimg = "http://upload.zmdnews.cn/wxlogo.jpg"; /* $(document).ready(function(){ if($(".article-detail-inner img").length>0){ wsimg=$(".article-detail-inner img")[0].src; } }); */ wx.config({ debug: false, appId: 'wx6012bd158f0fa433', timestamp: 1744873376, nonceStr: 'jnJOYlsZ5yceGuEM', signature: '87e351f3e32a019d64529228d803997e731172f2', jsApiList: [ 'checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo' ] }); wx.ready(function() { var share_data = { title: wstitle, link: wslink, imgUrl: wsimg, desc: wsdesc, success: function(){} }; wx.onMenuShareAppMessage(share_data); wx.onMenuShareTimeline(share_data); wx.onMenuShareQQ(share_data) })