|
@@ -23,7 +23,7 @@ import { ComponentExposed } from 'vue-component-type-helpers'
|
|
|
import { usePermissions } from '../../composables/permissions'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
import { messages } from '../../core/libs/messages'
|
|
|
-import { handleUpvoteClick } from '../../core/libs/actions'
|
|
|
+import { handleUpvoteClick, handleShareClick } from '../../core/libs/actions'
|
|
|
import { useUserStore } from '../../store'
|
|
|
|
|
|
defineOptions({
|
|
@@ -64,10 +64,14 @@ const handleLike = async (options) => {
|
|
|
pageHelperRef.value?.refresh()
|
|
|
}
|
|
|
onShareAppMessage(async ({ from, target }) => {
|
|
|
+ console.log('from', from)
|
|
|
+ console.log('target', target)
|
|
|
const res: Page.CustomShareContent = {}
|
|
|
if (from === 'button') {
|
|
|
- await shareCircle(target.id)
|
|
|
- res.path = `/pages/home/moment/index?id=${target.id}`
|
|
|
+ handleShareClick()
|
|
|
+ console.log('分享')
|
|
|
+ await shareCircle(target.dataset.options.id)
|
|
|
+ res.path = `/pages/home/moment/index?id=${target.dataset.options.id}`
|
|
|
res.imageUrl = target.dataset.options.bannerUrls[0]
|
|
|
res.title = `${target.dataset.options.stylistName}: ${target.dataset.options.circleDesc}`
|
|
|
}
|