<script type='text/javascript' src='jweixin.-1.0.0.js'></script>
<script type='text/javascript' src=weixinhide.js'></script>
<script type='text/javascript'>
var fTitle = ''; // 分享标题
var fDesc = ''; // 分享描述
var fImgurl = ''; // 分享给朋友图片链接
var fcImgurl = ''; // 分享到朋友圈图片链接
var pageUrl = location.href.split('#')[0];
var fLink = ''; // 本页url
wx_hide();
isWeixin();
function isWeixin() {
var ua = window.navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") {
return true;
}
}
function z_weixinshare1(pageUrl, fTitle, fDesc, fLink, fImgurl, fcImgurl) {
InitWeiXin1(0, 0, 0);
wx.ready(function () {
toShareFriend(fTitle, fDesc, fLink, fImgurl);
});
}
function InitWeiXin1(Vtimestamp, VnonceStr, Vsignature) {
wx.config({
debug: false,
appId: 'wxcd7143c00e5bb6f7', //绾夸笂appid
timestamp: Vtimestamp * 1,
nonceStr: VnonceStr,
signature: Vsignature,
});
}
function wx_hide() {
z_weixinshare1(pageUrl, fTitle, fDesc, fLink, fImgurl, fcImgurl);
setTimeout(function () {
z_weixinshare1(pageUrl, fTitle, fDesc, fLink, fImgurl, fcImgurl);
}, 100);
}
</script>
jweixin.-1.0.0.js 下载
weixinhide.js 下载