Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-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
group-buy-ui
Commits
2455bc00
Commit
2455bc00
authored
Sep 24, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:测试app分享
parent
00f60057
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
utils.service.js
src/service/utils.service.js
+4
-3
index.vue
src/views/goodsList/index.vue
+3
-2
No files found.
src/service/utils.service.js
View file @
2455bc00
...
...
@@ -365,16 +365,17 @@ export function setAppTitleColor(bgcolor = '#fff') {
});
}
export
function
appShareEventChange
({
title
,
desc
,
link
,
imgUrl
})
{
export
function
appShareEventChange
({
title
,
desc
,
link
,
imgUrl
,
posterUrl
})
{
const
data
=
{
event
:
'
showShareView
'
,
data
:
{
platform
:
[
'
weChat
'
,
'
timeLine
'
,
'
QQ
'
,
'
QQZone
'
,
'
CopyLink
'
],
//依次分别是微信、朋友圈、QQ好友、QQ空间、复制链接
platform
:
[
'
weChat
'
,
'
timeLine
'
,
'
QQ
'
,
'
CopyLink
'
,
'
GeneratePoster
'
],
//依次分别是微信、朋友圈、QQ好友、QQ空间、复制链接
shareDic
:
{
title
,
desc
,
link
,
// 页面地址
imgUrl
// 图片地址
imgUrl
,
// 图片地址
posterUrl
}
}
};
...
...
src/views/goodsList/index.vue
View file @
2455bc00
...
...
@@ -137,7 +137,7 @@ export default {
goodsShareInfo
:
{
immediate
:
false
,
handler
(
val
)
{
this
.
onShareEventChange
(
val
);
this
.
$route
.
name
===
'
groupBuyList
'
&&
this
.
onShareEventChange
(
val
);
}
}
},
...
...
@@ -195,7 +195,8 @@ export default {
},
async
openShareEvent
()
{
const
activity_id
=
this
.
activityId
;
this
.
$store
.
dispatch
(
'
goods_share_open
'
);
const
shareInfo
=
await
this
.
getShareData
();
this
.
$store
.
dispatch
(
'
goods_share_open
'
,
shareInfo
);
registeredEvents
(
'
H5_GroupZeroYuanPurchaseActivityPageSharePopupBtnClick
'
,
{
activity_id
});
...
...
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