Skip to content

Commit

Permalink
fix:的卢
Browse files Browse the repository at this point in the history
  • Loading branch information
fifthThirteen committed Jul 15, 2024
1 parent 01346ab commit aa9c2f2
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/components/horse/HorseBroadcastV2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,6 @@
</div>
</div>
</div>
<div v-if="hasExist" class="m-horse is-chitu">
<div class="u-col u-times">
<div>本CD赤兔已刷新</div>
<div>{{ existData.time }}</div>
</div>
<span class="u-col u-name">{{ existData.map_name }}</span>
<div class="u-col u-horse">
<el-image :src="getImgSrc('赤兔')" class="item"></el-image>
</div>
</div>
<span v-else class="m-horse no-horse">本CD赤兔尚未刷新</span>
<div v-if="diluHasExist" class="m-horse is-dilu">
<div class="u-col u-times">
<div>本周的卢已刷新</div>
Expand All @@ -67,6 +56,17 @@
</div>
</div>
<span v-else class="m-horse no-horse">本周的卢尚未刷新</span>
<div v-if="hasExist" class="m-horse is-chitu">
<div class="u-col u-times">
<div>本CD赤兔已刷新</div>
<div>{{ existData.time }}</div>
</div>
<span class="u-col u-name">{{ existData.map_name }}</span>
<div class="u-col u-horse">
<el-image :src="getImgSrc('赤兔')" class="item"></el-image>
</div>
</div>
<span v-else class="m-horse no-horse">本CD赤兔尚未刷新</span>
</div>
</div>

Expand Down Expand Up @@ -139,7 +139,7 @@ export default {
let column = Math.floor((document.body.clientWidth - 460) / 350);
column = column > 2 ? 2 : column;
let list = this.list || [];
const arr = this.isPhone ? [] : new Array(column * 4 - 1 - list.length).fill({});
const arr = this.isPhone ? [] : new Array(column * 4 - 2 - list.length).fill({});
list = list.sort((a, b) => this.convertTime(a.fromTime) - this.convertTime(b.fromTime));
return list.concat(arr) || [];
},
Expand Down Expand Up @@ -193,6 +193,7 @@ export default {
this.diluExistData = {
map_name: mapName,
time: dayjs.tz(created_at).format("YYYY-MM-DD HH:mm:ss"),
is_dilu: true,
};
}
})
Expand Down

0 comments on commit aa9c2f2

Please sign in to comment.