Commit 18fc87a5 by 李伟康

Merge branch 'SAAS+V4.55.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.55.0

2 parents a8bad93e cc83f432
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</view> </view>
<view class="item-info"> <view class="item-info">
<view class="item-info-label">考试成绩</view> <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>
<view class="item-info"> <view class="item-info">
<view class="item-info-label">课程时长</view> <view class="item-info-label">课程时长</view>
......
...@@ -16,7 +16,10 @@ ...@@ -16,7 +16,10 @@
<view class="course-title">{{ rowData.taskTitle || rowData.taskName }}</view> <view class="course-title">{{ rowData.taskTitle || rowData.taskName }}</view>
<view class="course-info course-progress"> <view class="course-info course-progress">
<view class="info-label">任务进度</view> <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" v-else>
<view class="info-progress-bar" :style="{ width: Math.floor(rowData.taskProgress) + '%' }"></view> <view class="info-progress-bar" :style="{ width: Math.floor(rowData.taskProgress) + '%' }"></view>
<view class="info-progress-text">{{ Math.floor(rowData.taskProgress) }}%</view> <view class="info-progress-text">{{ Math.floor(rowData.taskProgress) }}%</view>
...@@ -64,8 +67,8 @@ ...@@ -64,8 +67,8 @@
<view class="item-title">{{ item.courseName }}</view> <view class="item-title">{{ item.courseName }}</view>
<view class="item-info"> <view class="item-info">
<view class="item-info-label">当前状态</view> <view class="item-info-label">当前状态</view>
<view :class="['item-info-value', item.status === 5 ? '' : 'orange']"> <view :class="['item-info-value', item.status === 5 ? 'green' : 'orange']">
<view v-if="item.status !== 5" class="dot-value"></view> <view class="dot-value" :class="item.status === 5 ? 'green' : 'orange'"></view>
{{ item.status !== 5 ? `${statusMap[item.status]}(${(item.progress * 100) || 0}%)` : '已完成' }} {{ item.status !== 5 ? `${statusMap[item.status]}(${(item.progress * 100) || 0}%)` : '已完成' }}
</view> </view>
</view> </view>
...@@ -330,7 +333,18 @@ export default { ...@@ -330,7 +333,18 @@ export default {
.info-value { .info-value {
color: #666666; 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 { .info-progress {
width: toRpx(410); width: toRpx(410);
height: toRpx(16); height: toRpx(16);
...@@ -346,6 +360,7 @@ export default { ...@@ -346,6 +360,7 @@ export default {
transform: translateY(-50%); transform: translateY(-50%);
} }
.info-progress-bar { .info-progress-bar {
height: 100%; height: 100%;
background: linear-gradient(128.8deg, #75bcff 0%, #2c66f7 100%); background: linear-gradient(128.8deg, #75bcff 0%, #2c66f7 100%);
...@@ -472,7 +487,9 @@ export default { ...@@ -472,7 +487,9 @@ export default {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
&.green {
color: #2CCA74;
}
&.orange { &.orange {
color: #F59619; color: #F59619;
} }
...@@ -481,8 +498,15 @@ export default { ...@@ -481,8 +498,15 @@ export default {
width: toRpx(12); width: toRpx(12);
height: toRpx(12); height: toRpx(12);
border-radius: 50%; border-radius: 50%;
background: #F59619;
// background: #F59619;
margin-right: toRpx(8); 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!