mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 21:06:42 +08:00
个人主页接口对接
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<div class="put-list">
|
||||
<ul v-if="putList.length > 0">
|
||||
<li class="put-list-index">
|
||||
<h6 class="put-title-info follow-home-title">行管专科 名校直播班
|
||||
<ul v-if="list.length > 0">
|
||||
<li class="put-list-index" v-for="item in list" :key="item.id">
|
||||
<h6 class="put-title-info follow-home-title">{{item.info.title || item.contentInfo}}
|
||||
<span class="portal-time follow-hide" style="float:right">
|
||||
<svg-icon style="margin-right: 10px;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>隐藏
|
||||
</span>
|
||||
</h6>
|
||||
<div class="put-footer">
|
||||
<div style="margin-top:20px;font-size: 14px;color: #666666;">12个回答</div>
|
||||
<el-button class="btn" plain>去回答</el-button>
|
||||
<div style="margin-top:20px;font-size: 14px;color: #666666;">{{item.info.answers}}个回答</div>
|
||||
<el-button class="btn" plain @click="jumpDetail(item.info)">去回答</el-button>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -22,21 +22,32 @@
|
||||
|
||||
<script>
|
||||
import interactBar from "@/components/Portal/interactBar.vue";
|
||||
import author from "@/components/Portal/authorInfo.vue";
|
||||
// import author from "@/components/Portal/authorInfo.vue";
|
||||
export default{
|
||||
name:"PutList",
|
||||
components: {
|
||||
interactBar,
|
||||
// timeShow,
|
||||
author
|
||||
// author
|
||||
},
|
||||
props:{
|
||||
list:{
|
||||
type:Array,
|
||||
default:()=>[]
|
||||
}
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
putList:[{name:1},{name:2}]
|
||||
putList:[]
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
|
||||
jumpDetail(data) {
|
||||
if(!data.id){
|
||||
return;
|
||||
}
|
||||
this.$router.push({ path: '/qa/answer', query: { id: data.id } });
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user