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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< div class = "container" >
<!-- 二级页面 ( 有返回按钮 ) -- >
< mHeader :title ="title" class = "m-header" :isBackShow ="true" > < / mHeader >
< div class = "list-warp" >
< div class = "list"
v-for ="(item, index) in medalBook"
:key ="index" >
< p class = "name" > { { item . planName } } < / p >
< div class = "tab-warp" >
< div class = "medal-book" >
< div class = "content" >
< div class = "txt" >
学员 { { item . name } } , 单位 { { item . orgName } } , 参加并完成 { { item . startTime } } 至 { { item . endTime } } { { item . planName } } 培训课程 , 成绩合格 , 特颁此证 。
< / div >
< div class = "footer" >
< div > { { item . department } } < / div >
< div > { { item . 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/api.js'
export default {
data ( ) {
return {
title : '我的证书' ,
medalBook : [ ]
}
} ,
components : {
mHeader
} ,
created ( ) {
this . _getMyMedalBook ( )
} ,
methods : {
// 获取荣誉证书
_getMyMedalBook ( ) {
Api . my . getMyMedalBook ( ) . then ( res => {
this . medalBook = res . data
} )
}
}
}
< / script >
< style lang = "scss" >
. container {
. m - header {
background - color : # fff ;
}
. list - warp {
padding : calc ( 100 rpx + 30 rpx + var ( -- status - bar - height ) ) 32 rpx 0 ;
. list {
margin - bottom : 48 rpx ;
. name {
color : $uni - text - color ;
font - size : 32 rpx ;
font - weight : 500 ;
margin - bottom : 28 rpx ;
}
. tab - warp {
width : 686 rpx ;
border - radius : 40 rpx ;
box - shadow : 0 12 rpx 24 rpx 2 rpx rgba ( 240 , 240 , 240 , 1 ) ;
padding - bottom : 16 rpx ;
. medal - book {
width : 100 % ;
height : 482 rpx ;
position : relative ;
. content {
position : absolute ;
top : 200 rpx ;
width : 70 % ;
left : 50 % ;
transform : translateX ( - 50 % ) ;
z - index : 2 ;
font - size : 24 rpx ;
color : # 272727 ;
font - family : STSongti - SC - Black , STSongti - SC ;
. footer {
margin - top : 40 rpx ;
display : flex ;
flex - direction : column ;
align - items : flex - end ;
}
}
image {
width : 100 % ;
height : 100 % ;
position : absolute ;
z - index : 1 ;
}
}
. look - medal - book {
margin : 16 rpx 32 rpx 0 auto ;
width : 128 rpx ;
height : 48 rpx ;
line - height : 48 rpx ;
border - radius : 23 rpx ;
background - color : $uni - text - color - active ;
color : # fff ;
font - size : 24 rpx ;
font - weight : 500 ;
padding : 0 ;
}
}
}
}
}
< / style >