Skip to content

Commit

Permalink
更新赞助列表
Browse files Browse the repository at this point in the history
  • Loading branch information
MagmaBlock committed Feb 14, 2024
1 parent ec5c341 commit 6c66079
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
7 changes: 4 additions & 3 deletions src/components/Help/SponsorCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
{{ sponsor.support }}
</div>
</div>
<div class="text-gray-600 dark:text-zinc-400 text-xs px-2 overflow-hidden">
{{ sponsor.message }}
</div>
<div
class="text-gray-600 dark:text-zinc-400 text-xs px-2 overflow-hidden"
v-html="sponsor.message"
></div>
<a
target="_blank"
:href="sponsor.link"
Expand Down
22 changes: 15 additions & 7 deletions src/components/Help/Sponsors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{{ sponsor.support }}
</div>
</template>
{{ sponsor.message || "没有留言" }}
<p v-html="sponsor.message"></p>
<template #action>
<n-a v-if="sponsor.link" :href="sponsor.link" target="_blank"
>查看附加的链接</n-a
Expand All @@ -48,16 +48,17 @@ export default {
{
name: "Arthals",
support: "¥1111.00",
message: "111 大哥真给看吗",
message: "111 大哥真给看吗 <br> (包含非番剧库赞助)",
link: "https://arthals.ink/",
},
{ name: "小林", support: "¥300.00" },
{ name: "Longtianmu", support: "¥240", link: "https://ltm.ink/" },
{
name: "czy0729",
support: "¥199.98",
support: "¥367.98",
message: "(包含非番剧库赞助)",
link: "https://github.com/czy0729",
},
{ name: "小林", support: "¥300.00" },
{ name: "Longtianmu", support: "¥240", link: "https://ltm.ink/" },
{
name: "MicTimo",
support: "¥66.00",
Expand Down Expand Up @@ -92,13 +93,20 @@ export default {
link: "https://arthals.ink/",
},
{ name: "Loliy", support: "¥23.00", message: "喝快乐水" },
{ name: "射命墨瑟", support: "¥9.00", message: "(包含非番剧库赞助)" },
],
};
},
mounted() {
let model = { name: "", support: "", link: "", message: "" }; // 兜底模板防 undefined
this.sponsorsRaw.forEach((sponsor) => {
this.sponsors.push({ ...model, ...sponsor, showModal: ref(false) });
this.sponsors.push({
name: "",
support: "",
link: "",
message: "",
...sponsor,
showModal: ref(false),
});
});
},
components: { SponsorCard },
Expand Down

0 comments on commit 6c66079

Please sign in to comment.