微信禁用右上角的分享按钮,WeixinJSBridge API以及隐藏分享的子按钮等菜单项

微信禁用右上角的分享按钮,WeixinJSBridge API以及隐藏分享的子按钮等菜单项
<!--禁用微信分享按钮-->
<script>
function onBridgeReady() {
WeixinJSBridge.call('hideOptionMenu');
} if (typeof WeixinJSBridge == "undefined") {
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
} else if (document.attachEvent) {
document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
}
} else {
onBridgeReady();
}
</script>
微信禁用右上角的分享按钮,WeixinJSBridge API以及隐藏分享的子按钮等菜单项

也看了一下别的

查到一篇文章:http://www.2cto.com/weixin/201511/451592.html

作者:人在钱途

为防找不到,就干脆拷贝了一份。

以下为文章中的内容:

之前写了一篇关于这个WeixinJSBridge API的文章,文章地址 ,于是有很多网友都在过来咨询这个API的使用,在这里有必要跟大家再说一下:这个API在以前公布的部分接口被官方和谐掉很久 了, 比如一键关注、分享给好友、分享到朋友圈等。当然,你可能会发现微信官方推送的一些文章还能使用这些功能,粗略估计,官方是对这个API增加了白名单控 制,判断Referer,如果是微信官方的地址、或者是有合作的商家地址,则允许调用,否则,返回“access denied”!

截止目前,笔者还没用发现还有什么办法能继续使用它!不过,官方和谐掉这个API其实也是说得过去的,因为在整个WebView的右上角,官方做了一个Navtive的按钮,点开以后,包括分享给好友、分享到朋友圈这样的功能都有,所以,官方也是在做一些引导。

当然,WeixinJSBridge这个API也并不是所有功能都被和谐掉了,相反,有好几个功能还是相当有用的,可以正常使用,比如:

1、隐藏微信网页右上角的按钮(...按钮):开发者可以用这个功能来禁止当前页面被分享

2、隐藏微信网页底部的导航栏(比如前进后退和刷新):这个导航栏会占用一定的区域,开发者可以认为用户不会用到它,将其隐藏掉

3、在微信网页中获取用户的网络状态:开发者可以利用这个API获得用户的网络状态,并提供不同的服务,比如视频类,在wifi下提供高清视频流,在2g网络下提供普通清晰视频流等等

下面分别通过简单的几行代码,说明这几个API的用法:

1、隐藏微信网页右上角的按钮

1
2
3
4
5
6
7
8
9
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
    // 通过下面这个API隐藏右上角按钮
    WeixinJSBridge.call('hideOptionMenu');
});
             
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
    // 通过下面这个API显示右上角按钮
    WeixinJSBridge.call('showOptionMenu');
});

2、隐藏微信网页底部的导航栏

1
2
3
4
5
6
7
8
9
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
    // 通过下面这个API隐藏底部导航栏
    WeixinJSBridge.call('hideToolbar');
});
            
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
    // 通过下面这个API显示底部导航栏
    WeixinJSBridge.call('showToolbar');
});

3、在微信网页中获取用户的网络状态

1
2
3
4
WeixinJSBridge.invoke('getNetworkType',{},function(e){
    // 在这里拿到e.err_msg,这里面就包含了所有的网络类型
    alert(e.err_msg);
 });

e.err_msg的取值如下所示:

network_type:wifi wifi网络 2 network_type:edge 非wifi,包含3G/2G 3 network_type:fail 网络断开连接 4 network_type:wwan 2g或者3g

在微信JSSDK说明文档中有关于按钮屏蔽使用等的说明:http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADFCAIAAACJhrreAAAPfUlEQVR4nO2dO27bXBCF/51oGVqBOtfqvALClQHWSpWSBVm4C9KopioDTJUVRIL6wJW3MX9xX3OfpOSRScXngwtb4kuXR3OH9BzOfwTAh/lv7gMA/wKQERAAMgICQEZAAMgICAAZAQEgIyDATWR06nar9VP6px6IqK8z7/qL0aHddGf1S7BAdWD7M4udup1eHnwuk2X09vqw/vHL/f3nWZ3Rx9e/0bKnbudOs5UCER1arQ/Ocb/Z7k/JnXIZsRW97RP19a45EtG52apfwGczTUa/f6zWTysno/eXx6fn30REf39+X337Eyw+Go2IhqoUjdqeR6zt/lSIRlaF0T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tC6MwvZ1eEI1swA9eT1+Wp4a4KKNDa5UXPHqAXSWUZeSZkO7IEjlbWz53pZad1D7aTu8UDL33RBvP3JPLsaoDRTcXEpOaMf0opUaiP7jJxQaSKTIi88HZfsm9viRL5Ixt+exDRaJLNqF2en2Y3qb7D1PmJuHF0WhsgxREo0i192uJXOpdbIl2en2de9BRUUa5AOCtGMuobAaPNxXCL+bvzhK5SBmBewMyAgJARkAAyAgIABkBASAjIABkBASAjIAAkBEQADICAkBGQADICAgAGV0F2vL5LFVGEu30GB/yqaEt3yjz+NT8nnxPq7iJkUwDK0GfGtrylZjNp+atGPshZdrpyfjUvE2hLV+KuXxqlkxzI+Fo9PRhnxra8pWYuRFWNlDJtNMT9KmhLV+JmXxqI69fQc6NJOFTo3AVtOULmDUaJbMiIrl2eoI+NbTlKzFnW75f37QDKYFMOz1Bnxra8pWYzac22vz64+30wtNzpU8NbfnGmdenNpoYfaid3m18amjLl2CJd7GnNkf3F07pQNanhrZ8WZYoI3B3QEZAAMgICAAZAQEgIyAAZAQEgIyAAP8DXz1UnWdASfUAAAAASUVORK5CYII=" alt="" />

第十条界面操作则是对于按钮的处理

1
 

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbwAAADACAIAAADwRUGGAAAbOklEQVR4nO2dvY7bSBZG5030GHoCZR0r8xMQigwwliOHDKigM8MJYzFqQI76CVqCcqMjYwc741nv7A7snd2uDerv3qpbJEut1qjJ76ADu0WRlAwd3frx/X76PcHxeFSX4pdf//aCZ3+8u5l/+BT+9svtm9Xb+8QB8lN2xXxd7d2fV7P5erFczfwvlWrr2Xw1m69m83p7vldw2KwXG+Gf47BZF617dFfMV7OyqZaroj1WS3tXba2fuy3JfZqXQG9Sv6JV0aptaf7A2DeLZXNQnb9s68WmKZZNVa7s+2B/ls1BqW25Yi/E3ptmW65m5S7rnQHg5Uh56afxS/NMbEsto9iJ9pflzohp3yzmkTXm5pgTLt0pTe4+r6FdoXXmpRnfT71V4itS7Hh9z9yPh81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X3/7+r3//M3XMtUhTKfXnf//89u3rL7/+DT/4wQ9+/pKfX7/+/O3b11SNqbkiaQIAwPUDaQIAQAaQJgAAZABpAgBABpAmAABkAGkCAEAGkCYAAGQAaQIAQAaQJgAAZABpAgBABpAmAABk8H80zi6ZEPhVZQAAAABJRU5ErkJggg==" alt="" />

在附录三中有所有涉及的菜单项列表

wx.hideMenuItems({
menuList: [] // 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮,所有menu项见附录3
}); 使用方式,直接将项隐藏的菜单项
  • 发送给朋友: "menuItem:share:appMessage"
  • 分享到朋友圈: "menuItem:share:timeline"
  • 分享到QQ: "menuItem:share:qq"
  • 分享到Weibo: "menuItem:share:weiboApp"
  • 收藏: "menuItem:favorite"
  • 分享到FB: "menuItem:share:facebook"
  • 分享到 QQ 空间/menuItem:share:QZone

放入到menuList:[]括号中,具体拼接方式,大概是","

上一篇:spring源码学习之路---AOP初探(六)


下一篇:【BZOJ1036】【树链剖分】树的统计Count