mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
Merge branch 'stat' of https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/portal into stat
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<svg-icon style="margin-right: 10px;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>隐藏
|
||||
</span>
|
||||
</p>
|
||||
<h6 class="article-title-info follow-home-title">{{item.info.title || item.contentInfo}}
|
||||
<h6 class="article-title-info follow-home-title" @click="jumpDetail(item)">{{item.info.title || item.contentInfo}}
|
||||
<span class="follow-hide" style="float:right" v-if="!isDynamic && personal && !item.hidden" @click="emitHide(item.id)">
|
||||
<svg-icon style="margin-right: 10px;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>隐藏
|
||||
</span>
|
||||
@@ -66,6 +66,10 @@
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
jumpDetail(item){
|
||||
console.log(item,'item');
|
||||
this.$router.push('/article/detail?id='+item.contentId)
|
||||
},
|
||||
emitHide(id) {
|
||||
this.$emit('hideIndex',id)
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<svg-icon style="margin-right: 10px;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>隐藏
|
||||
</span>
|
||||
</p>
|
||||
<h6 class="note-title-info follow-home-title">{{item.contentInfo}} <span style="color: #333333;font-weight: 400;font-size: 14px;margin-left: 20px;"></span> <span class="score-info" style="margin-left:22px">{{item.score>0?item.score:0}}分</span>
|
||||
<h6 class="note-title-info follow-home-title pointer" @click="jumpDetail(item)">{{item.contentInfo}} <span style="color: #333333;font-weight: 400;font-size: 14px;margin-left: 20px;"></span> <span class="score-info" style="margin-left:22px">{{toScore(item.score)}}分</span>
|
||||
<span class="follow-hide" style="float:right" v-if="!isDynamic && personal && !item.hidden" @click="emitHide(item.id)">
|
||||
<svg-icon style="margin-right: 10px;font-size:22px;padding-top: 4px;" icon-class="eyes"></svg-icon>隐藏
|
||||
</span>
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
<script>
|
||||
import interactBar from "@/components/Portal/interactBar.vue";
|
||||
// import author from "@/components/Portal/authorInfo.vue";
|
||||
import { toScore } from '@/utils/tools.js';
|
||||
export default{
|
||||
name:"NoteList",
|
||||
components: {
|
||||
@@ -55,12 +55,16 @@
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
toScore,
|
||||
noteList:[]
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
methods:{
|
||||
jumpDetail(item){
|
||||
this.$router.push('/course/detail?id='+item.info.courseId)
|
||||
},
|
||||
emitHide(id) {
|
||||
this.$emit('hideIndex',id)
|
||||
},
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
userhobbyInfo() {
|
||||
let $this=this;
|
||||
$this.interestedList=[];
|
||||
apiUserhobby.list(this.pageId).then(res=>{
|
||||
apiUserhobby.list({aid:this.pageId}).then(res=>{
|
||||
if(res.status == 200) {
|
||||
let ids = res.result.map(item=>item.aid);
|
||||
const noReapetIds = [...new Set(ids)];
|
||||
|
||||
Reference in New Issue
Block a user