Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
mongo-ui
Commits
c52571d9
Commit
c52571d9
authored
Sep 01, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 分享调试
parent
512508bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
wxJsSdk.js
src/service/wxJsSdk.js
+9
-4
No files found.
src/service/wxJsSdk.js
View file @
c52571d9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Description: weixin-js-sdk
* @Description: weixin-js-sdk
* @LastEditors: gzw
* @LastEditors: gzw
* @Date: 20120-08-30 18:40:11
* @Date: 20120-08-30 18:40:11
* @LastEditTime: 2020-0
8-31 17:40:33
* @LastEditTime: 2020-0
9-01 12:49:34
*/
*/
import
cfg
from
"
@/config/index
"
;
import
cfg
from
"
@/config/index
"
;
import
{
getwxAuth
}
from
"
@/api/user
"
;
import
{
getwxAuth
}
from
"
@/api/user
"
;
...
@@ -21,11 +21,16 @@ export default async function({ title = "", desc = "", link = window.location.hr
...
@@ -21,11 +21,16 @@ export default async function({ title = "", desc = "", link = window.location.hr
timestamp
,
// 必填,生成签名的时间戳,刚才接口拿到的数据
timestamp
,
// 必填,生成签名的时间戳,刚才接口拿到的数据
nonceStr
,
// 必填,生成签名的随机串
nonceStr
,
// 必填,生成签名的随机串
signature
,
// 必填,签名,见附录1
signature
,
// 必填,签名,见附录1
jsApiList
:
[
"
onMenuShareTimeline
"
,
"
onMenuShareAppMessage
"
]
jsApiList
:
[
"
onMenuShareTimeline
"
,
"
onMenuShareAppMessage
"
,
"
updateAppMessageShareData
"
,
"
updateTimelineShareData
"
]
});
});
wx
.
ready
(
function
()
{
wx
.
ready
(
function
()
{
//分享到朋友圈
//分享到朋友圈
wx
.
onMenuShareTimeline
({
wx
.
updateTimelineShareData
({
title
,
// 分享时的标题
title
,
// 分享时的标题
link
,
// 分享时的链接
link
,
// 分享时的链接
imgUrl
,
// 分享时的图标
imgUrl
,
// 分享时的图标
...
@@ -37,7 +42,7 @@ export default async function({ title = "", desc = "", link = window.location.hr
...
@@ -37,7 +42,7 @@ export default async function({ title = "", desc = "", link = window.location.hr
}
}
});
});
//分享给朋友
//分享给朋友
wx
.
onMenuShareAppMessage
({
wx
.
updateAppMessageShareData
({
title
,
title
,
desc
,
desc
,
link
,
link
,
...
...
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