|
@@ -0,0 +1,115 @@
|
|
|
+<template>
|
|
|
+ <div class="timeline-container">
|
|
|
+ <div class="timeline-content">
|
|
|
+ <div class="timeline-entry-list">
|
|
|
+ <div class="article">
|
|
|
+ <div class="article-title">
|
|
|
+ 表彰详情
|
|
|
+ <!-- {{ data.title }} -->
|
|
|
+ </div>
|
|
|
+ <div class="author-info-block">
|
|
|
+ <div class="meta-box">
|
|
|
+ {{ data.createTime }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="markdown-body" v-html="data.content"></div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <SiderInfo></SiderInfo>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import { commendDetail } from "@/api/allApi";
|
|
|
+import SiderInfo from '@/components/SiderInfo.vue'
|
|
|
+export default{
|
|
|
+components: {
|
|
|
+ SiderInfo
|
|
|
+},
|
|
|
+data() {
|
|
|
+ return {
|
|
|
+ data:{},
|
|
|
+ };
|
|
|
+},
|
|
|
+created(){
|
|
|
+ this.getDataInfo(this.$route.query.id,this.$route.query.loginId);
|
|
|
+},
|
|
|
+methods:{
|
|
|
+ getDataInfo(id,loginId){
|
|
|
+ commendDetail({commendId:id,loginId:loginId}).then(response => {
|
|
|
+ this.data = response.data.data;
|
|
|
+ }).catch(() => {})
|
|
|
+ },
|
|
|
+},
|
|
|
+}
|
|
|
+</script>
|
|
|
+<style scoped>
|
|
|
+.userInfo{
|
|
|
+ width: 65px;
|
|
|
+ position: absolute;
|
|
|
+ top: 37%;
|
|
|
+ left: 46%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ align-content: center;
|
|
|
+}
|
|
|
+.timeline-container{
|
|
|
+ margin: 0 auto;
|
|
|
+}
|
|
|
+.timeline-entry-list{
|
|
|
+ margin-right: 17.5rem;
|
|
|
+ border-radius: 2px;
|
|
|
+ width: 720px;
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.timeline-entry-list .article{
|
|
|
+ border-radius: 4px 4px 0 0;
|
|
|
+ position: relative;
|
|
|
+ padding-top: 2.667rem;
|
|
|
+ z-index: 1;
|
|
|
+ overflow: hidden;
|
|
|
+ background-color: #fff;
|
|
|
+ padding-left: 2.67rem;
|
|
|
+ padding-right: 2.67rem;
|
|
|
+ margin-bottom: 2rem;
|
|
|
+ box-sizing: border-box;
|
|
|
+}
|
|
|
+.article .article-title{
|
|
|
+ margin: 0 0 1rem;
|
|
|
+ font-size: 1.2rem;
|
|
|
+ font-weight: 600;
|
|
|
+ line-height: 1.31;
|
|
|
+ color: #252933;
|
|
|
+}
|
|
|
+.article .author-info-block{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: 1.667rem
|
|
|
+}
|
|
|
+.article .markdown-body {
|
|
|
+ overflow: hidden;
|
|
|
+ line-height: 1.75;
|
|
|
+ font-size: 15px;
|
|
|
+ /* background-image: linear-gradient(90deg,rgba(72,42,10,.05) 5%,rgba(72,42,10,0) 0),linear-gradient(1turn,rgba(72,42,10,.05) 5%,rgba(72,42,10,0) 0); */
|
|
|
+ background-size: 20px 20px;
|
|
|
+ background-position: 50%;
|
|
|
+ padding-top: 0!important;
|
|
|
+ min-height: 280px;
|
|
|
+}
|
|
|
+.markdown-body img {
|
|
|
+ max-width: 100%;
|
|
|
+}
|
|
|
+.markdown-body p {
|
|
|
+ color: #412c0c;
|
|
|
+ letter-spacing: 1px;
|
|
|
+ font-weight: 400;
|
|
|
+}
|
|
|
+.author-info-block .meta-box{
|
|
|
+ font-size: 1rem;
|
|
|
+ color: #8a919f;
|
|
|
+ margin-top: 2px;
|
|
|
+ line-height: 22px;
|
|
|
+}
|
|
|
+</style>
|