Commit 631af7bf by 郑晓

Merge branch 'fix_group_buying_240923' into 'master'

feat(custom): 拼团小程序

See merge request !7
parents 6e782935 632db661
...@@ -93,11 +93,20 @@ export default { ...@@ -93,11 +93,20 @@ export default {
this.loadUrl.includes('/h5-course/my/orderDetail/') this.loadUrl.includes('/h5-course/my/orderDetail/')
) { ) {
if (this.shareMessage.share) { if (this.shareMessage.share) {
console.log("🚀 ~ onShareAppMessage ~ this.shareMessage.share:", this.shareMessage)
try { try {
const courseDetail = this.shareMessage.share const courseDetail = this.shareMessage.share
uni.showLoading({ uni.showLoading({
title: '正在唤起分享', title: '正在唤起分享',
}) })
if (this.shareMessage.weChatInfo && this.shareMessage.weChatInfo.preview) {
uni.hideLoading()
return {
title: this.shareMessage.weChatInfo.name,
imageUrl: this.shareMessage.weChatInfo.preview,
path: getDetailPageUrl(),
}
}
const imageUrl = await this.$refs.ShareCanvas.setGoodsShareCanvas({ const imageUrl = await this.$refs.ShareCanvas.setGoodsShareCanvas({
homeCover: courseDetail.homeCover, homeCover: courseDetail.homeCover,
cardBg: 'https://static.ydlcdn.com/m/images/course/miniapp-share-bg.png', cardBg: 'https://static.ydlcdn.com/m/images/course/miniapp-share-bg.png',
......
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