1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <template>
- <div id="cause">
- <el-row>
- <el-col :span="24">
- <el-tabs v-model="activeName" type="border-card">
- <el-tab-pane v-for="(item, index) in enterList" :key="index">
- <span slot="label">{{ item.title }}</span>
- <el-col :span="24" v-for="(tag, index) in item.children" :key="index" class="enterList">
- <el-col :span="20" class="title textOver">
- <el-link :underline="false" @click="$router.push({ path: `/info/detail?id=${tag.id}` })">{{ tag.title }} </el-link>
- </el-col>
- <el-col :span="4" class="time">
- {{ tag.publish_time }}
- </el-col>
- </el-col>
- </el-tab-pane>
- </el-tabs>
- <el-link :inderline="false" class="moreLink" :style="`color:${Color}`" @click="moreClick()">MORE<i class="el-icon-video-play"></i> </el-link>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- export default {
- name: 'cause',
- props: {
- enterList: null,
- },
- components: {},
- data: () => ({
- activeName: '',
- Color: '#850000',
- }),
- created() {},
- computed: {},
- methods: {
- moreClick() {
- this.$router.push({ path: `/info/list/${this.enterList[this.activeName].id}` });
- },
- },
- };
- </script>
- <style lang="less" scoped>
- .moreLink {
- position: absolute;
- top: 10px;
- right: 10px;
- color: #850000;
- }
- /deep/.el-tabs__header {
- margin: 0;
- }
- /deep/.el-tabs--border-card > .el-tabs__content {
- padding: 0;
- }
- .talksList {
- padding: 12px 10px;
- border-bottom: 1px dashed #ccc;
- }
- .talksList .title .el-link {
- font-size: 18px;
- }
- .textOver {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .enterList {
- padding: 10px;
- border-bottom: 1px dashed #ccc;
- }
- .enterList .title .el-link {
- font-size: 18px;
- }
- .enterList .time {
- font-size: 18px;
- text-align: right;
- }
- .teacherList {
- padding: 10px;
- border-bottom: 1px dashed #ccc;
- }
- .teacherList .title .el-link {
- font-size: 18px;
- }
- .teacherList .time {
- font-size: 18px;
- text-align: right;
- }
- </style>
|