Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈玉桐
marketing
Commits
b03896da
Commit
b03896da
authored
Dec 02, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add屏蔽微信菜单
parent
ef384806
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
activityDetail.vue
src/views/activityDetail.vue
+5
-1
No files found.
src/views/activityDetail.vue
View file @
b03896da
...
...
@@ -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
){})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment