首页 > 其他分享 >微信禁止分享功能

微信禁止分享功能

时间:2022-11-09 14:32:51浏览次数:52  
标签:function 禁止 微信 fTitle fLink fDesc fImgurl var 分享

<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 下载

 

 



标签:function,禁止,微信,fTitle,fLink,fDesc,fImgurl,var,分享
From: https://blog.51cto.com/aaronthon/5836322

相关文章