|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <index-card simple title="热门资讯" more-text="查看全部" @more="handleMore">
|
|
|
+ <index-card simple title="热门资讯" more-text="查看全部" class="width100" @more="handleMore">
|
|
|
<div class="bg-white pd20 rd8" style="height: 270px">
|
|
|
<el-tabs v-model="activeName" type="card" @tab-click="handleTabChanged">
|
|
|
<el-tab-pane v-for="type in newsTypes" :key="type" :name="type" :label="type">
|
|
@@ -30,6 +30,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
morePaths: {
|
|
|
+ '中考资讯': {name: 'NewsMiddleExam'},
|
|
|
'中考分数线': {name: 'NewsParentSchool'},
|
|
|
'中考学生辅导': {name: 'NewsMiddleAssistant'},
|
|
|
'中考政策': {name: 'NewsHeartClass'}
|
|
@@ -49,7 +50,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getTypes() {
|
|
|
- this.newsTypes = ['中考学生辅导', '中考分数线', '中考政策']
|
|
|
+ this.newsTypes = ['中考资讯', '中考分数线', '中考政策']
|
|
|
this.activeName = this.newsTypes.first()
|
|
|
this.getList(this.activeName)
|
|
|
},
|