|
@@ -166,11 +166,14 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view>
|
|
<view>
|
|
|
<text class="text-gray">考试结果:</text>
|
|
<text class="text-gray">考试结果:</text>
|
|
|
- <text :class="item.resultStatus === 1 ? 'text-green' : 'text-red'">
|
|
|
|
|
- {{ item.resultStatus === 1 ? '通过' : '未通过' }}
|
|
|
|
|
|
|
+ <text :class="item.resultStatus == 2 ? 'text-green' : 'text-red'">
|
|
|
|
|
+ {{ item.resultStatus == 2 ? '通过' : '未通过' }}
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view v-if="item.certificatePath" class="card-actions">
|
|
|
|
|
+ <text class="btn-cert" @click.stop="goToCert(item)">查看证书</text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<view v-if="!scoreList[0] && !scoreLoading" class="empty-tip">暂无成绩记录</view>
|
|
<view v-if="!scoreList[0] && !scoreLoading" class="empty-tip">暂无成绩记录</view>
|
|
|
<view v-if="scoreLoading" class="loading-tip">加载中...</view>
|
|
<view v-if="scoreLoading" class="loading-tip">加载中...</view>
|
|
@@ -364,6 +367,9 @@
|
|
|
goToScoreDetail(item) {
|
|
goToScoreDetail(item) {
|
|
|
// 跳转成绩详情,传递 examId
|
|
// 跳转成绩详情,传递 examId
|
|
|
},
|
|
},
|
|
|
|
|
+ goToCert(item) {
|
|
|
|
|
+ // 跳转证书,传递 certificatePath
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
@@ -616,6 +622,19 @@
|
|
|
font-size 26rpx
|
|
font-size 26rpx
|
|
|
color #333
|
|
color #333
|
|
|
|
|
|
|
|
|
|
+ .card-actions
|
|
|
|
|
+ display flex
|
|
|
|
|
+ gap 16rpx
|
|
|
|
|
+ margin-top 16rpx
|
|
|
|
|
+
|
|
|
|
|
+ .btn-cert
|
|
|
|
|
+ font-size 24rpx
|
|
|
|
|
+ padding 10rpx 20rpx
|
|
|
|
|
+ background #fff7e6
|
|
|
|
|
+ color #d46b08
|
|
|
|
|
+ border 1rpx solid #ffd591
|
|
|
|
|
+ border-radius 12rpx
|
|
|
|
|
+
|
|
|
.empty-tip
|
|
.empty-tip
|
|
|
text-align center
|
|
text-align center
|
|
|
line-height 80rpx
|
|
line-height 80rpx
|