fix: share token
This commit is contained in:
@@ -31,7 +31,9 @@
|
||||
class="notice-swiper-item"
|
||||
@tap="onNoticeTap(tip)"
|
||||
>
|
||||
<text v-if="tip.tag" class="notice-tag">{{ getTagText(tip.tag) }}</text>
|
||||
<text v-if="tip.tag" class="notice-tag">{{
|
||||
getTagText(tip.tag)
|
||||
}}</text>
|
||||
<text class="notice-text">{{ tip.text }}</text>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
@@ -209,15 +211,16 @@ onShareAppMessage(async () => {
|
||||
};
|
||||
});
|
||||
|
||||
onShareTimeline(() => {
|
||||
onShareTimeline(async () => {
|
||||
const shareToken = await getShareToken("index_timeline");
|
||||
return {
|
||||
title: "新年好运已送达 🎊|祝福卡·头像·壁纸",
|
||||
query: `shareToken=${shareToken}`,
|
||||
imageUrl:
|
||||
"https://file.lihailezzc.com/resource/8dd026d76ef7a63d123b7fd698fb989b.png",
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
const getIndexTips = async () => {
|
||||
const res = await getTipsList();
|
||||
noticeList.value = res || [];
|
||||
|
||||
Reference in New Issue
Block a user