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
02c7f6fb
Commit
02c7f6fb
authored
Sep 01, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/goods' into 'master'
Fix/goods See merge request
!175
parents
ac7c90ab
c52571d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
dev.config.js
src/config/dev.config.js
+1
-1
wxJsSdk.js
src/service/wxJsSdk.js
+9
-4
No files found.
src/config/dev.config.js
View file @
02c7f6fb
...
@@ -4,7 +4,7 @@ export default {
...
@@ -4,7 +4,7 @@ export default {
// basicHost: "http://yapi.quantgroups.com/mock/329/",
// basicHost: "http://yapi.quantgroups.com/mock/329/",
basicHost
:
"
https://hathaway-mg.liangkebang.net/
"
,
basicHost
:
"
https://hathaway-mg.liangkebang.net/
"
,
// basicHost: "http://192.168.29.211:8964/",
// basicHost: "http://192.168.29.211:8964/",
wxAppId
:
"
wx
7188560d6923088d
"
,
wxAppId
:
"
wx
514de17b23d53a20
"
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=default`
,
// 神策数据请求地址
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=default`
,
// 神策数据请求地址
test
:
false
test
:
false
};
};
src/service/wxJsSdk.js
View file @
02c7f6fb
...
@@ -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