Commit 632db661 by zhengxiao

feat(custom): 拼团小程序

parent 1980c8b6
......@@ -93,11 +93,20 @@ export default {
this.loadUrl.includes('/h5-course/my/orderDetail/')
) {
if (this.shareMessage.share) {
console.log("🚀 ~ onShareAppMessage ~ this.shareMessage.share:", this.shareMessage)
try {
const courseDetail = this.shareMessage.share
uni.showLoading({
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({
homeCover: courseDetail.homeCover,
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