diff --git a/components/LuckyPopup/LuckyPopup.vue b/components/LuckyPopup/LuckyPopup.vue index cb431bf..2bc2617 100644 --- a/components/LuckyPopup/LuckyPopup.vue +++ b/components/LuckyPopup/LuckyPopup.vue @@ -147,6 +147,7 @@ import { ref, getCurrentInstance, computed } from "vue"; import calendar from "@/utils/lunar.js"; import { useUserStore } from "@/stores/user"; +import { onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app"; const { proxy } = getCurrentInstance(); const userStore = useUserStore(); @@ -606,6 +607,13 @@ const onShareMoments = () => { uni.showToast({ title: "请点击右上角分享", icon: "none" }); }; +onShareAppMessage(() => { + return { + title: "开启你的每日好运!", + path: "/pages/index/index", + }; +}); + defineExpose({ open, close });