You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
2.9 KiB
Vue

<template>
<div class="container">
<!-- 二级页面 有返回按钮 -->
<mHeader :title="title" class="m-header" :isBackShow="true"></mHeader>
<div class="warpper">
<div class="title">考试分数<span class="score">{{ rate }}</span></div>
<div class="medal">
<p class="name">{{ exam.planName }}</p>
<div class="tab-warp">
<div class="medal-book">
<div class="content">
<div class="txt">
学员 {{ exam.name }}单位 {{ exam.orgName }}参加并完成{{ exam.startTime }}{{exam.endTime}}{{ exam.planName }}培训课程成绩合格特颁此证
</div>
<div class="footer">
<div>{{ exam.department }}</div>
<div>{{ exam.examTime }}</div>
</div>
</div>
<image src="../../static/images/my/my-medal-book.png"></image>
</div>
<button class="look-medal-book">查看证书</button>
</div>
</div>
</div>
</div>
</template>
<script>
import mHeader from '../components/mHeader/index'
import Api from '../../api/exam.js'
export default {
data () {
return {
title: '考试详情',
rate: 0,
exam: {}
}
},
components: {
mHeader
},
onLoad(options) {
this.rate = options.rate
this._getMedalBook(options.planId)
},
methods: {
_getMedalBook (planId) {
const params = {
planId
}
Api.exam.getMedalBook(params).then(res => {
this.exam = res.data
})
}
}
}
</script>
<style lang="scss">
.container {
.m-header {
background-color: #fff;
}
.warpper {
padding: calc(100rpx + 30rpx + var(--status-bar-height)) 32rpx 0;
.title {
margin-bottom: 28rpx;
color: $uni-text-color;
font-size: 32rpx;
font-weight: 500;
span {
color: $uni-text-color-active;
}
}
.medal {
.name {
color: $uni-text-color;
font-size: 32rpx;
font-weight: 500;
margin-bottom: 28rpx;
}
.tab-warp {
width: 686rpx;
border-radius: 40rpx;
box-shadow: 0 12rpx 24rpx 2rpx rgba(240, 240, 240, 1);
padding-bottom: 16rpx;
.medal-book {
width: 100%;
height: 482rpx;
position: relative;
.content {
position: absolute;
top: 200rpx;
width: 70%;
left: 50%;
transform: translateX(-50%);
z-index: 2;
font-size: 24rpx;
color: #272727;
font-family: STSongti-SC-Black, STSongti-SC;
.footer {
margin-top: 40rpx;
display: flex;
flex-direction: column;
align-items: flex-end;
}
}
image {
width: 100%;
height: 100%;
position: absolute;
z-index: 1;
}
}
.look-medal-book {
margin: 16rpx 32rpx 0 auto;
width: 128rpx;
height: 48rpx;
line-height: 48rpx;
border-radius: 23rpx;
background-color: $uni-text-color-active;
color: #fff;
font-size: 24rpx;
font-weight: 500;
padding: 0;
}
}
}
}
}
</style>