Commit 9201364f by 胡悦

修复bug

1 parent 710265e9
......@@ -27,7 +27,7 @@
</view>
<view class="item-info">
<view class="item-info-label">考试成绩</view>
<view class="item-info-value">{{ item.totalScore ? '已完成' : '待考核'}}</view>
<view class="item-info-value">{{ item.totalScore ? item.totalScore : '待考核'}}</view>
</view>
<view class="item-info">
<view class="item-info-label">课程时长</view>
......
......@@ -16,7 +16,10 @@
<view class="course-title">{{ rowData.taskTitle || rowData.taskName }}</view>
<view class="course-info course-progress">
<view class="info-label">任务进度</view>
<view v-if="completeStatus == 1" class="info-progress-text">已完成</view>
<view v-if="completeStatus == 1" class="info-progress-text green">
<view class="dot-value"></view>
已完成
</view>
<view class="info-progress" v-else>
<view class="info-progress-bar" :style="{ width: Math.floor(rowData.taskProgress) + '%' }"></view>
<view class="info-progress-text">{{ Math.floor(rowData.taskProgress) }}%</view>
......@@ -64,8 +67,8 @@
<view class="item-title">{{ item.courseName }}</view>
<view class="item-info">
<view class="item-info-label">当前状态</view>
<view :class="['item-info-value', item.status === 5 ? '' : 'orange']">
<view v-if="item.status !== 5" class="dot-value"></view>
<view :class="['item-info-value', item.status === 5 ? 'green' : 'orange']">
<view class="dot-value" :class="item.status === 5 ? 'green' : 'orange'"></view>
{{ item.status !== 5 ? `${statusMap[item.status]}(${(item.progress * 100) || 0}%)` : '已完成' }}
</view>
</view>
......@@ -330,7 +333,18 @@ export default {
.info-value {
color: #666666;
}
.green {
display: flex;
align-items: center;
color: #2CCA74;
.dot-value {
width: toRpx(12);
height: toRpx(12);
border-radius: 50%;
background: #2CCA74;
margin-right: toRpx(8);
}
}
.info-progress {
width: toRpx(410);
height: toRpx(16);
......@@ -345,6 +359,7 @@ export default {
right: toRpx(-72);
transform: translateY(-50%);
}
.info-progress-bar {
height: 100%;
......@@ -472,7 +487,9 @@ export default {
display: inline-flex;
align-items: center;
justify-content: center;
&.green {
color: #2CCA74;
}
&.orange {
color: #F59619;
}
......@@ -481,8 +498,15 @@ export default {
width: toRpx(12);
height: toRpx(12);
border-radius: 50%;
background: #F59619;
// background: #F59619;
margin-right: toRpx(8);
&.green {
background: #2CCA74;
}
&.orange {
background: #F59619;
}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!