小程序
小游戏
企业微信
微信支付
扫描小程序码分享
企业微信H5页面的右上角分享按钮如何隐藏?以下代码只能隐藏微信客户端的分享按钮,在企业微信上还是可以分享
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
WeixinJSBridge.call('hideOptionMenu');
});
6 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
请问问题解决了吗?
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
请问楼主解决了么
<script src="./jweixin.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> wx.config({ "debug":false, "beta":false, "jsApiList":["openEnterpriseChat","openChatWithMsg","selectExternalContact","openUserProfile","thirdPartyOpenPage","getCurExternalContact","onMenuShareTimeline","onMenuShareAppMessage","hideOptionMenu","hideMenuItems"], "appId":"xxx", "nonceStr":"xxxx", "timestamp":xxxx, "url":"xxxx", "signature":"xxxx" }); wx.ready(function() { wx.hideOptionMenu(); wx.hideMenuItems(); }); </script>
楼主解决了吗
https://work.weixin.qq.com/api/doc/90000/90136/90491#%E9%9A%90%E8%97%8F%E5%8F%B3%E4%B8%8A%E8%A7%92%E8%8F%9C%E5%8D%95%E6%8E%A5%E5%8F%A3 试试这个
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
请问问题解决了吗?
请问楼主解决了么
wx.hideOptionMenu()隐藏右上角菜单接口
<script src="./jweixin.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> wx.config({ "debug":false, "beta":false, "jsApiList":["openEnterpriseChat","openChatWithMsg","selectExternalContact","openUserProfile","thirdPartyOpenPage","getCurExternalContact","onMenuShareTimeline","onMenuShareAppMessage","hideOptionMenu","hideMenuItems"], "appId":"xxx", "nonceStr":"xxxx", "timestamp":xxxx, "url":"xxxx", "signature":"xxxx" }); wx.ready(function() { wx.hideOptionMenu(); wx.hideMenuItems(); }); </script>
楼主解决了吗
https://work.weixin.qq.com/api/doc/90000/90136/90491#%E9%9A%90%E8%97%8F%E5%8F%B3%E4%B8%8A%E8%A7%92%E8%8F%9C%E5%8D%95%E6%8E%A5%E5%8F%A3 试试这个