Commit 8d4acfa6 by yanju

修改话题卡片

parent af4a241d
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<div class="answer-card__abs" v-if="isMy&&status!==-1"> <div class="answer-card__abs" v-if="isMy&&status!==-1">
<div class="container__abs"> <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> <yun-icon name="delete" size="12px" pb="3px"></yun-icon>
</div> </div>
<nuxt-link :to="{path:'/answer/release',query:{id:questionId}}" tag="div" class="editButton"> <nuxt-link :to="{path:'/answer/release',query:{id:questionId}}" tag="div" class="editButton">
......
<template> <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" > <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> <p>#{{val.topicName}}#</p>
<h6>{{val.degree}}</h6> <h6>{{val.degree}}</h6>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<yun-avatar :userId="userId" :src="userAvatar" :name="userNick"></yun-avatar> <yun-avatar :userId="userId" :src="userAvatar" :name="userNick"></yun-avatar>
<div class="header-l__info"> <div class="header-l__info">
<div class="header-l__info-top"> <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" > <p class="follow1" v-if="followedAuthor&&$store.state.userProfile.userId!==userId" >
<yun-icon name="right"></yun-icon>已关注 <yun-icon name="right"></yun-icon>已关注
</p> </p>
......
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
type:'success', type:'success',
message:'取消关注成功' message:'取消关注成功'
}) })
if(this.from==='my'){ if(this.from==='notice'){
this.cardId = '' this.cardId = ''
} }
......
...@@ -245,7 +245,7 @@ export default { ...@@ -245,7 +245,7 @@ export default {
blogClass: '', blogClass: '',
addFile: {}, addFile: {},
userCover: '', userCover: '',
cover: '', cover: '',
originLink: 'www.blog.com', originLink: 'www.blog.com',
way: 1, way: 1,
allowComment: true, allowComment: true,
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
> >
<empty-card v-if="topicList.length === 0" height="556px"></empty-card> <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> </card-container>
<div class="pagination"> <div class="pagination">
<pagination style="margin: 0 auto;" ref="pagination" :pages="pages" v-on:listenPageChange="changePage"></pagination> <pagination style="margin: 0 auto;" ref="pagination" :pages="pages" v-on:listenPageChange="changePage"></pagination>
...@@ -61,6 +61,7 @@ export default { ...@@ -61,6 +61,7 @@ export default {
topicList:[], topicList:[],
pages:1, pages:1,
hotTopicList:[], hotTopicList:[],
fromType:'',
} }
}, },
created() { created() {
...@@ -117,6 +118,7 @@ export default { ...@@ -117,6 +118,7 @@ export default {
// 关注的话题 // 关注的话题
dataGetFollowedTopicList(currentPage) { dataGetFollowedTopicList(currentPage) {
this.fromType = 'notice';
this.$axios.$get(config.api.get.Topic.myfollowedList,{ this.$axios.$get(config.api.get.Topic.myfollowedList,{
params:{ params:{
page:currentPage, 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