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
5700fc7f
Commit
5700fc7f
authored
Nov 13, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
44d7518c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
activityDetail.vue
src/views/activityDetail.vue
+49
-0
No files found.
src/views/activityDetail.vue
View file @
5700fc7f
...
...
@@ -83,6 +83,55 @@ export default {
this
.
detailImgUrl
=
response
.
data
.
detailImgUrl
this
.
qualifications
=
response
.
data
.
qualifications
})
let
_url
=
document
.
location
.
href
.
split
(
'#'
)[
0
]
request
({
url
:
'/api/MarketingToolApi/Wechat/getSignPackage'
,
method
:
'post'
,
data
:
{
url
:
_url
,
token
:
localStorage
.
getItem
(
"token"
)
}
}).
then
(
response
=>
{
this
.
appId
=
response
.
data
.
appId
this
.
nonceStr
=
response
.
data
.
nonceStr
this
.
signature
=
response
.
data
.
signature
this
.
timestamp
=
response
.
data
.
timestamp
wx
.
config
({
debug
:
true
,
// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId
:
this
.
appId
,
// 必填,公众号的唯一标识
timestamp
:
this
.
timestamp
,
// 必填,生成签名的时间戳
nonceStr
:
this
.
nonceStr
,
// 必填,生成签名的随机串
signature
:
this
.
signature
,
// 必填,签名
jsApiList
:
[
'updateAppMessageShareData'
,
'updateTimelineShareData'
]
// 必填,需要使用的JS接口列表
})
let
me
=
this
wx
.
ready
(
function
(){
// 自定义“分享给朋友”及“分享到QQ”按钮的分享内容(1.4.0)
wx
.
updateAppMessageShareData
({
title
:
me
.
title
,
// 分享标题
desc
:
''
,
// 分享描述
link
:
_url
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
me
.
detailImgUrl
,
// 分享图标
success
:
function
()
{
// 设置成功
}
})
// 自定义“分享到朋友圈”及“分享到QQ空间”按钮的分享内容
wx
.
updateTimelineShareData
({
title
:
me
.
title
,
// 分享标题
link
:
_url
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
me
.
detailImgUrl
,
// 分享图标
success
:
function
()
{
// 设置成功
}
})
})
wx
.
error
(
function
(
res
){})
})
},
methods
:
{
toApply
(){
...
...
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