替换ui优化首页魔盒任务

This commit is contained in:
Dragon
2024-03-27 14:42:00 +08:00
parent 700c523190
commit bfac90f0d5
6 changed files with 4 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 463 KiB

After

Width:  |  Height:  |  Size: 455 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 KiB

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 441 KiB

After

Width:  |  Height:  |  Size: 414 KiB

View File

@@ -39,7 +39,7 @@
<div class="time">3分鐘倒計時: <span class="sp1">03</span><span class="sp2">00</span></div>
<div class="text">用戶在送出第一個奇幻魔盒後開啓3分鐘倒計時<br>在此期間內點亮所有禮物,可獲得<b>【愚人慶典】</b>禮物*1</div>
<div class="giftBoxs">
<div class="">
<!-- <div class="">
<img src="./images/pageBox1Gift1.png" alt="">
撲克士兵
</div>
@@ -58,7 +58,7 @@
<div>
<img src="./images/pageBox1Gift5.png" alt="">
奇趣雜技
</div>
</div> -->
</div>
</div>
<!-- 奇幻榜 -->

View File

@@ -74,9 +74,10 @@ function getTaskUser () {
$('.page1 .box1 .giftBoxs div').remove();
var str = '';
res.data[0].children.forEach((res, i) => {
var img = res.taskIcon.split("|");
str += `
<div class="${res.completed ? 'act' : ''}">
<img src = "${res.taskIcon}" alt = "" >
<img src = "${res.completed ? img[1] : img[0]}" alt = "" >
${res.taskName}
</div >
`