|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <el-card class="explore-item" shadow="never" @click="this.$router.push('/communication/communicationDetail/' + this.communicationVO.id)">
|
|
|
+ <el-card class="explore-item" shadow="never">
|
|
|
|
|
|
<div class="explore-item-star" >
|
|
|
<el-tooltip placement="top-start" effect="light">
|
|
|
@@ -7,20 +7,19 @@
|
|
|
<p style="max-width:500px;">{{starersListString}}收藏了本交流</p>
|
|
|
</template>
|
|
|
<div>
|
|
|
- <el-icon v-if="starred===true" style="font-size: 20px" @click="star()"><Star /></el-icon>
|
|
|
- <el-icon v-if="starred===false" style="font-size: 20px;color: orange" @click="cancelStar()">
|
|
|
+ <el-icon v-if="starred===false" style="font-size: 20px" @click="star()"><Star /></el-icon>
|
|
|
+ <el-icon v-if="starred===true" style="font-size: 20px;color: orange" @click="cancelStar()">
|
|
|
<StarFilled />
|
|
|
</el-icon>
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
|
|
|
- <div class="explore-item-description">
|
|
|
+ <div class="explore-item-description" @click="this.$router.push('/communication/communicationDetail/' + this.communicationVO.id)">
|
|
|
<h1 class="description-title">{{ title}}</h1>
|
|
|
<div style="font-size: 14px;margin-top: 5px">
|
|
|
- <span style="color: var(--el-color-danger)" v-if="type==='puzzle'">难题</span>
|
|
|
- <span style="color: var(--el-color-success)" v-if="type==='event'">活动</span>
|
|
|
- <span style="color: var(--el-color-primary)" v-if="type==='other'">其他</span>
|
|
|
+ <span style="color: var(--el-color-danger)" v-if="type==='PROBLEM'">难题</span>
|
|
|
+ <span style="color: var(--el-color-success)" v-if="type==='NOTICE'">通知</span>
|
|
|
<span style="margin-left: 14px">{{ publisherName }}</span>
|
|
|
<span style="margin-left: 14px">{{ organization }}</span>
|
|
|
<span style="margin-left: 14px">{{ email }}</span>
|
|
|
@@ -71,10 +70,10 @@ export default {
|
|
|
return this.communicationVO.photos === null ? this.$variables.noImgUrl : this.communicationVO.photos;
|
|
|
},
|
|
|
publishTime(){
|
|
|
- return this.communicationVO.publishTime;
|
|
|
+ return this.communicationVO.publishTime.substring(0,9);
|
|
|
},
|
|
|
deadline(){
|
|
|
- return this.communicationVO.deadline;
|
|
|
+ return this.communicationVO.deadline.substring(0,9);
|
|
|
},
|
|
|
starred: {
|
|
|
get(){
|
|
|
@@ -111,6 +110,7 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.fetchData();
|
|
|
+ console.log(this.communicationVO.starred);
|
|
|
}
|
|
|
};
|
|
|
</script>
|