出场顺序:显示预计出场时间和状态样式
- 显示预计出场时间(单位 | 时间) - 状态样式:已完成(绿色)、进行中(橙色)、待出场(灰色) Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
factory-droid[bot]
parent
7c4507c3ed
commit
d8c255d69d
@@ -41,6 +41,8 @@
|
|||||||
<view class="lineup-name">{{ item.playerName }}</view>
|
<view class="lineup-name">{{ item.playerName }}</view>
|
||||||
<view class="lineup-detail">
|
<view class="lineup-detail">
|
||||||
<text class="detail-item">{{ item.organization }}</text>
|
<text class="detail-item">{{ item.organization }}</text>
|
||||||
|
<text class="detail-divider" v-if="item.estimatedTime"> | </text>
|
||||||
|
<text class="detail-item" v-if="item.estimatedTime">{{ item.estimatedTime }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="lineup-status" :class="item.status">
|
<view class="lineup-status" :class="item.status">
|
||||||
@@ -117,6 +119,10 @@ export default {
|
|||||||
getStatusText(status) {
|
getStatusText(status) {
|
||||||
const map = {
|
const map = {
|
||||||
'waiting': '待出场',
|
'waiting': '待出场',
|
||||||
|
'未签到': '待出场',
|
||||||
|
'已完成': '已完成',
|
||||||
|
'进行中': '进行中',
|
||||||
|
'异常': '异常',
|
||||||
'ongoing': '进行中',
|
'ongoing': '进行中',
|
||||||
'finished': '已完成'
|
'finished': '已完成'
|
||||||
}
|
}
|
||||||
@@ -264,17 +270,20 @@ export default {
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lineup-status.finished {
|
.lineup-status.finished,
|
||||||
|
.lineup-status.已完成 {
|
||||||
background-color: #E8F5E9;
|
background-color: #E8F5E9;
|
||||||
color: #4CAF50;
|
color: #4CAF50;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lineup-status.ongoing {
|
.lineup-status.ongoing,
|
||||||
|
.lineup-status.进行中 {
|
||||||
background-color: #FFF3E0;
|
background-color: #FFF3E0;
|
||||||
color: #FF9800;
|
color: #FF9800;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lineup-status.waiting {
|
.lineup-status.waiting,
|
||||||
|
.lineup-status.未签到 {
|
||||||
background-color: #F5F5F5;
|
background-color: #F5F5F5;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user