Commit 8d4acfa6 by yanju

修改话题卡片

parent af4a241d
......@@ -44,7 +44,7 @@
<div class="answer-card__abs" v-if="isMy&&status!==-1">
<div class="container__abs">
<div class="deleteButton" @click="dataDeleteItem(questionId)">
<div class="deleteButton" @click="showAlert(questionId)">
<yun-icon name="delete" size="12px" pb="3px"></yun-icon>
</div>
<nuxt-link :to="{path:'/answer/release',query:{id:questionId}}" tag="div" class="editButton">
......
<template>
<card-container title="话题热搜榜" label="实时更新" more="更多" @listenCardConMore="$router.push('/topic/rank')" >
<card-container width="302px" title="话题热搜榜" label="实时更新" more="更多" @listenCardConMore="$router.push('/topic/rank')" >
<nuxt-link tag="div" :to="'/topic/detail/'+val.topicName" class="topic-content__c" v-for="(val,index) in topicList" :key="val.topicId" >
<p>#{{val.topicName}}#</p>
<h6>{{val.degree}}</h6>
......
......@@ -8,7 +8,7 @@
<yun-avatar :userId="userId" :src="userAvatar" :name="userNick"></yun-avatar>
<div class="header-l__info">
<div class="header-l__info-top">
<p class="name">{{userNick}}</p>
<p class="name" @click="$router.push('/u/'+userId+'/project')">{{userNick}}</p>
<p class="follow1" v-if="followedAuthor&&$store.state.userProfile.userId!==userId" >
<yun-icon name="right"></yun-icon>已关注
</p>
......
......@@ -155,7 +155,7 @@
type:'success',
message:'取消关注成功'
})
if(this.from==='my'){
if(this.from==='notice'){
this.cardId = ''
}
......
......@@ -245,7 +245,7 @@ export default {
blogClass: '',
addFile: {},
userCover: '',
cover: '',
cover: '',
originLink: 'www.blog.com',
way: 1,
allowComment: true,
......
......@@ -14,7 +14,7 @@
>
<empty-card v-if="topicList.length === 0" height="556px"></empty-card>
<topic-card v-for="(val,index) in topicList" :key="val.topicId" :info="val"></topic-card>
<topic-card :from="fromType" v-for="(val,index) in topicList" :key="val.topicId" :info="val"></topic-card>
</card-container>
<div class="pagination">
<pagination style="margin: 0 auto;" ref="pagination" :pages="pages" v-on:listenPageChange="changePage"></pagination>
......@@ -61,6 +61,7 @@ export default {
topicList:[],
pages:1,
hotTopicList:[],
fromType:'',
}
},
created() {
......@@ -117,6 +118,7 @@ export default {
// 关注的话题
dataGetFollowedTopicList(currentPage) {
this.fromType = 'notice';
this.$axios.$get(config.api.get.Topic.myfollowedList,{
params:{
page:currentPage,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment