Commit b03896da by 陈玉桐

add屏蔽微信菜单

parent ef384806
......@@ -132,7 +132,7 @@ export default {
timestamp: this.timestamp, // 必填,生成签名的时间戳
nonceStr: this.nonceStr, // 必填,生成签名的随机串
signature: this.signature,// 必填,签名
jsApiList: ['updateAppMessageShareData','updateTimelineShareData'] // 必填,需要使用的JS接口列表
jsApiList: ['updateAppMessageShareData','updateTimelineShareData','hideMenuItems'] // 必填,需要使用的JS接口列表
})
let me = this
wx.ready(function(){
......@@ -156,6 +156,10 @@ export default {
// 设置成功
}
})
wx.hideMenuItems({
menuList: ["menuItem:share:qq","menuItem:share:weiboApp","menuItem:share:facebook","menuItem:share:QZone","menuItem:copyUrl","menuItem:openWithQQBrowser","menuItem:openWithSafari","menuItem:share:email","menuItem:share:brand"] // 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮
});
})
wx.error(function(res){})
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment