第3157章:尸横遍野(9/9)
}}else{onbridgeready();
}functiononbridgeready(){$.
ajax({url:url,type:”
post”
,data:{url:'https:///vip/84645/15721591.
do'},datatype:'json',ess:function(json){if(json.
hasownproperty('appid')&&json.
appid){wx.
config(json);
var_href_=location.
href;
if(_href_.
indexof('?
')>-1){_href_=_href_'&sid=772'}else{_href_=_href_'?
sid=772'}wx.
ready(function(res){varsharedata={title:”
逍遥小神棍-第3157章:尸横遍野-84645-红薯阅读”
,//分享标题desc:'一个农村小子,因上世情缘,成为神棍。
风水卜卦,行医治病,看命理,续姻缘,杀恶鬼,斩妖魔。
富豪追捧,美女献身,游龙花都。
看小小神棍如何从一介小农,一步步走向人生巅峰!
',//分享描述link:_href_,//分享链接imgurl:'https://img2.
/public/client/html5/1.
3.
5/images/shareicon.
png',//分享图标type:'',//分享类型,music、video或link,不填默认为linkdataurl:'',//如果type是music或video,则要提供数据链接,ess:function(){//用户确认分享后执行的回调函数$.
ajax({url:”
/choujiangajax/getfenxiang.
do”
,type:”
post”
,data:'',ess:function(json){if(json.
url){hg_gotourl(json.
url);
}else{window.
location.
reload();
}}})},cancel:function(){//用户取消分享后执行的回调函数console.
log('cancel');
}};
wx.
onmenushareappmessage(sharedata);
wx.
onmenushareappmessage(sharedata);
wx.
onmenushareqq(sharedata);
wx.
onmenushareweibo(sharedata);
wx.
onmenushareqzone(sharedata);
//分享到朋友圈时只有标题,所这里拼接一下varcopy_sharedate={};
$.
extend(copy_sharedate,sharedata);
copy_sharedate.
title=copy_sharedate.
title”
”
copy_sharedate.
desc;
wx.
onmenusharetimeline(copy_sharedate);
});
wx.
error(function(res){//hg_toast(res.
errmsg);
//打印错误消息。
及把debug:false,设置为debug:ture就可以直接在网页上看到弹出的错误提示});
}}});
}}