This commit is contained in:
728
2023-05-31 14:23:05 +08:00
parent f8fb020662
commit 7716edb843
2 changed files with 9 additions and 5 deletions

View File

@ -580,7 +580,7 @@ export async function dst(
if (q.rd) {
t.img.src = q.rd.img
t.intro.innerText = q.rd.intro
goal(t.goal, q.rd.goal.map((g, n) => ({ nam: `${g}\n${q.rd!.prize[n]}`, pct: Math.round(100 * Math.min(1, q.rd!.sale / g)) })))
goal(t.goal, q.rd.goal.map((g, n) => ({ nam: `${g}\n${q.rd?.prize[n] ?? ""}`, pct: Math.round(100 * Math.min(1, q.rd!.sale / g)) })))
}
label(t.idl, `(共${q.dst.length}个)`, true)
ida(t.idl, q.dst.map(d => [`a${d.aid}`, `${q.anam.get(d.aid)}${d.ndst}票)`]), "id")

View File

@ -538,13 +538,17 @@
</section>
<hr>
<section>
<label>目标奖品:</label>
<p class="goal"></p>
<label>活动奖励:</label>
<img class="img" src="https://pic.imgdb.cn/item/6476b7d8f024cca1734cd90c.png" loading="lazy" width="100%">
</section>
<section>
<label>目标:</label>
<p class="goal" style="margin: 2ch 0;"></p>
</section>
<hr>
<section>
<section style="margin-top: 2ch;">
<label>参赛投稿:</label>
<p class="idl"></p>
<p class="idl" style="margin: 2ch 0; line-height: 2;"></p>
</section>
<hr>
<section class="pos flex">