Commit 2455bc00 authored by beisir's avatar beisir

feat:测试app分享

parent 00f60057
...@@ -365,16 +365,17 @@ export function setAppTitleColor(bgcolor = '#fff') { ...@@ -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 = { const data = {
event: 'showShareView', event: 'showShareView',
data: { data: {
platform: ['weChat', 'timeLine', 'QQ', 'QQZone', 'CopyLink'], //依次分别是微信、朋友圈、QQ好友、QQ空间、复制链接 platform: ['weChat', 'timeLine', 'QQ', 'CopyLink', 'GeneratePoster'], //依次分别是微信、朋友圈、QQ好友、QQ空间、复制链接
shareDic: { shareDic: {
title, title,
desc, desc,
link, // 页面地址 link, // 页面地址
imgUrl // 图片地址 imgUrl, // 图片地址
posterUrl
} }
} }
}; };
......
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
goodsShareInfo: { goodsShareInfo: {
immediate: false, immediate: false,
handler(val) { handler(val) {
this.onShareEventChange(val); this.$route.name === 'groupBuyList' && this.onShareEventChange(val);
} }
} }
}, },
...@@ -195,7 +195,8 @@ export default { ...@@ -195,7 +195,8 @@ export default {
}, },
async openShareEvent() { async openShareEvent() {
const activity_id = this.activityId; 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', { registeredEvents('H5_GroupZeroYuanPurchaseActivityPageSharePopupBtnClick', {
activity_id activity_id
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment