|
|
@@ -44,8 +44,15 @@
|
|
|
font-weight: 400;
|
|
|
color: rgba(107,121,142,1);
|
|
|
line-height: 20px;
|
|
|
+ overflow: hidden;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
}
|
|
|
}
|
|
|
+.item:hover{
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
@@ -53,8 +60,8 @@
|
|
|
<el-container>
|
|
|
<el-header>
|
|
|
<div class="header">
|
|
|
- <img class="logo" src="../assets/logo.png" alt="">
|
|
|
- <div class="siteTitle">中科院期刊微信公众号集中管理平台</div>
|
|
|
+ <!-- <img class="logo" src="../assets/logo.png" alt="">
|
|
|
+ <div class="siteTitle">中科院期刊微信公众号集中管理平台</div> -->
|
|
|
</div>
|
|
|
<div class="nav">
|
|
|
<router-link v-for='(item,index) in inDate' :key='index' :class="item.act?'active':''" :to="item.to" @click.native='active(index)'>
|
|
|
@@ -62,7 +69,7 @@
|
|
|
</router-link>
|
|
|
<div class="setting">
|
|
|
<div style="display:inline-block;" @click="drawer=true">
|
|
|
- <el-badge :value="12">
|
|
|
+ <el-badge :value="info.notices.length" v-if="info.notices.length">
|
|
|
<i class="el-icon-message-solid" style="font-size:22px;"></i>
|
|
|
</el-badge>
|
|
|
</div>
|
|
|
@@ -119,7 +126,8 @@
|
|
|
:visible.sync="drawer"
|
|
|
direction="rtl"
|
|
|
size="15%"
|
|
|
- :before-close="handleClose">
|
|
|
+ :wrapperClosable="true"
|
|
|
+ >
|
|
|
<div style="position:relative;padding:10px 0px;">
|
|
|
<div class="notification-header notification-header-01" id="closeNotification" @click="drawer=false">
|
|
|
<i class="el-icon-arrow-right"></i>
|
|
|
@@ -127,25 +135,10 @@
|
|
|
<h3 class="notificationTitle">消息中心</h3>
|
|
|
</div>
|
|
|
<div class="nitification-container">
|
|
|
- <div class="item">
|
|
|
- <h4>消息标题</h4>
|
|
|
- <p class="desc">消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容</p>
|
|
|
- </div>
|
|
|
- <div class="item">
|
|
|
- <h4>消息标题</h4>
|
|
|
- <p class="desc">消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容</p>
|
|
|
- </div>
|
|
|
- <div class="item">
|
|
|
- <h4>消息标题</h4>
|
|
|
- <p class="desc">消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容</p>
|
|
|
- </div>
|
|
|
- <div class="item">
|
|
|
- <h4>消息标题</h4>
|
|
|
- <p class="desc">消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容</p>
|
|
|
- </div>
|
|
|
- <div class="item">
|
|
|
- <h4>消息标题</h4>
|
|
|
- <p class="desc">消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容</p>
|
|
|
+ <div class="item" v-for="(item,index) in info.notices" :key="index" @click='$router.push({path:"/message/message/detail",query:{id:item.id}})'>
|
|
|
+ <h4>{{item.name}}</h4>
|
|
|
+ <p v-html="item.content" class="desc">{{item.content}}</p>
|
|
|
+ <p style="font-size:12px;color: rgba(107,121,142,1);text-align:right;">{{item.ctime}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-drawer>
|
|
|
@@ -174,7 +167,7 @@ export default {
|
|
|
checkedCompany:'',
|
|
|
menuList:[],
|
|
|
path:'',
|
|
|
- info:{},
|
|
|
+ info:{notices:[]},
|
|
|
community_list:[],
|
|
|
community:{},
|
|
|
menu:[],
|
|
|
@@ -222,13 +215,13 @@ export default {
|
|
|
},
|
|
|
initNav(){
|
|
|
let data = [
|
|
|
- { act: true, to: '/index/index', name: '首页' },
|
|
|
- { act: false, to: '/journal/journal', name: '群刊导览' },
|
|
|
+ // { act: true, to: '/index/index', name: '首页' },
|
|
|
+ // { act: false, to: '/journal/journal', name: '群刊导览' },
|
|
|
{ act: false, to: '/learning/activity', name: '学术交流' },
|
|
|
- { act: false, to: '/article/article', name: '精品导读' },
|
|
|
- { act: false, to: '/conference/conference', name: '会议系统' },
|
|
|
+ // { act: false, to: '/article/article', name: '精品导读' },
|
|
|
+ // { act: false, to: '/conference/conference', name: '会议系统' },
|
|
|
{ act: false, to: '/message/message', name: '信息管理' },
|
|
|
- { act: false, to: '/system/account', name: '系统管理' },
|
|
|
+ // { act: false, to: '/system/account', name: '系统管理' },
|
|
|
];
|
|
|
let mod = this.$route.path.split("/")[1];
|
|
|
this.$router.options.routes.forEach((element,i) => {
|