|
@@ -1,20 +1,22 @@
|
|
|
<template>
|
|
|
- <index-card title="高考资讯" sub-title="最新、最全的高考资讯" more-text="更多" @more="handleMore">
|
|
|
- <el-tabs v-model="activeName" type="card" @tab-click="handleTabChanged">
|
|
|
- <el-tab-pane v-for="type in newsTypes" :key="type" :name="type" :label="type">
|
|
|
- <el-row>
|
|
|
- <el-col v-for="news in getSafeNews(type)" :key="news.id" :span="12">
|
|
|
- <div class="fx-row fx-sta-cen pf f-333 pr40" style="line-height: 35px">
|
|
|
- <i class="el-icon-alarm-clock"></i>
|
|
|
- <span class="ml3">{{ news.sendDate }}</span>
|
|
|
- <span class="ml10 fx-1 text-ellipsis new-title pointer"
|
|
|
- :title="news.title" @click="goNewsWithType(type,news)">
|
|
|
+ <index-card simple title="高考资讯" sub-title="最新、最全的高考资讯" more-text="查看全部" @more="handleMore">
|
|
|
+ <div class="bg-white pd20 rd4" 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">
|
|
|
+ <el-row>
|
|
|
+ <el-col v-for="news in getSafeNews(type)" :key="news.id" :span="12">
|
|
|
+ <div class="fx-row fx-sta-cen pf f-333 pr40" style="line-height: 35px">
|
|
|
+ <i class="el-icon-alarm-clock"></i>
|
|
|
+ <span class="ml3">{{ news.sendDate }}</span>
|
|
|
+ <span class="ml10 fx-1 text-ellipsis new-title pointer"
|
|
|
+ :title="news.title" @click="goNewsWithType(type,news)">
|
|
|
{{ news.title }}</span>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-tab-pane>
|
|
|
- </el-tabs>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </div>
|
|
|
</index-card>
|
|
|
</template>
|
|
|
|
|
@@ -27,7 +29,7 @@ import * as career from '@/api/webApi/career-news'
|
|
|
export default {
|
|
|
mixins: [transferMixin, loginCheckMixin],
|
|
|
name: 'index-card-news',
|
|
|
- components: { IndexCard },
|
|
|
+ components: {IndexCard},
|
|
|
data() {
|
|
|
return {
|
|
|
morePath: '/fuzhu/newGaokaoNews',
|
|
@@ -68,9 +70,9 @@ export default {
|
|
|
await this.loginCheck()
|
|
|
this.transferTo(this.morePath)
|
|
|
},
|
|
|
- async goNewsWithType(type,news) {
|
|
|
+ async goNewsWithType(type, news) {
|
|
|
await this.loginCheck()
|
|
|
- this.transferTo(this.morePath, { type,news })
|
|
|
+ this.transferTo(this.morePath, {type, news})
|
|
|
}
|
|
|
}
|
|
|
}
|