Commit 29d61aeb authored by 劳琪峰's avatar 劳琪峰

chore: 迭代1015

parent c91c66a3
...@@ -96,7 +96,7 @@ async function initComponent() { ...@@ -96,7 +96,7 @@ async function initComponent() {
await updateInvitationInfo() await updateInvitationInfo()
updateShareData({ updateShareData({
path: '/activities/1015/home?invitationCode=' + invitationInfo.value.invitationCode, pathWithCode: '/activities/1015/home?invitationCode=' + invitationInfo.value.invitationCode,
}) })
const {unclaimedPrizes} = invitationInfo.value const {unclaimedPrizes} = invitationInfo.value
......
...@@ -86,20 +86,22 @@ const bgStyle = computed(() => { ...@@ -86,20 +86,22 @@ const bgStyle = computed(() => {
}) })
// 定义分享函数 // 定义分享函数
const getShareData = (type) => { const getShareData = (event) => {
console.log('getShareData 被调用', type) console.log('getShareData 被调用', event)
const {title, imageUrl, path} = shareData.value const {title, imageUrl, path, pathWithCode} = shareData.value
const pathToUse = event.from == 'button' ? pathWithCode : path
console.log('分享参数:', { console.log('分享参数:', {
title, title,
path, pathToUse,
imageUrl, imageUrl,
}) })
return { return {
title, title,
path, path: pathToUse,
imageUrl, imageUrl,
} }
} }
......
{ {
"background": { "background": {
"image": "https://course.feihe.com/momclub-picture/activity/1015/v2/home/bg.jpg", "image": "https://course.feihe.com/momclub-picture/activity/1015/v2/home/bg2.jpg",
"style": { "style": {
"backgroundPosition": { "backgroundPosition": {
"y": "calc(4937rpx + 845rpx)" "y": "calc(4937rpx + 845rpx)"
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
"appId": "wx4205ec55b793245e" "appId": "wx4205ec55b793245e"
}, },
"type": 2, "type": 2,
"url": "subPackages/shopMainProcess/product/index?productId=662389781175669644&skuId=662389781175669645&entrySource=xmh_wechatmp_activity_1015ppz" "url": "subPackages/shopMainProcess/product/index?productId=523207922066495151&skuId=523207922066495152&entrySource=xmh_wechatmp_activity_1015ppz"
} }
} }
}, },
...@@ -481,7 +481,7 @@ ...@@ -481,7 +481,7 @@
"appId": "wx4205ec55b793245e" "appId": "wx4205ec55b793245e"
}, },
"type": 2, "type": 2,
"url": "subPackages/shopMainProcess/product/index?productId=548984197069284758&skuId=548984197069284759&entrySource=xmh_wechatmp_activity_1015ppz" "url": "subPackages/shopMainProcess/product/index?productId=810599134194852228&skuId=814341426202304584&entrySource=xmh_wechatmp_activity_1015ppz"
} }
} }
}, },
...@@ -507,7 +507,7 @@ ...@@ -507,7 +507,7 @@
"appId": "wx4205ec55b793245e" "appId": "wx4205ec55b793245e"
}, },
"type": 2, "type": 2,
"url": "subPackages/shopMainProcess/product/index?productId=792232869316748776&skuId=792232869316748777&entrySource=xmh_wechatmp_activity_1015ppz" "url": "subPackages/shopMainProcess/product/index?productId=792231885605659449&skuId=792231885605659449&entrySource=xmh_wechatmp_activity_1015ppz"
} }
} }
}, },
...@@ -533,7 +533,7 @@ ...@@ -533,7 +533,7 @@
"appId": "wx4205ec55b793245e" "appId": "wx4205ec55b793245e"
}, },
"type": 2, "type": 2,
"url": "subPackages/shopMainProcess/product/index?productId=704050114989893289&skuId=704050114989893290&entrySource=xmh_wechatmp_activity_1015ppz" "url": "subPackages/shopMainProcess/product/index?productId=701593489939273114&skuId=701593489939273115&entrySource=xmh_wechatmp_activity_1015ppz"
} }
} }
} }
......
This diff is collapsed.
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