|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<ListCard
|
|
|
class="subscribe-list"
|
|
|
- :list="subscribeList"
|
|
|
+ :list="setListData"
|
|
|
title="订阅推送"
|
|
|
@clickListItem="clickListItem"
|
|
|
@linkMore="linkMore"
|
|
@@ -70,6 +70,17 @@ export default {
|
|
|
}),
|
|
|
showRecommend() {
|
|
|
return this.isRecommend === '2' || this.isRecommend === '3'
|
|
|
+ },
|
|
|
+ setListData() {
|
|
|
+ if (this.showRecommend) {
|
|
|
+ if (this.subscribeList.length > 9) {
|
|
|
+ return this.subscribeList.slice(0, 9)
|
|
|
+ } else {
|
|
|
+ return this.subscribeList
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ return this.subscribeList
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
data() {
|