123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <template>
- <div id="nextList">
- <el-row>
- <el-col :span="24" class="style">
- <el-col :span="24" class="list" v-for="(item, index) in nextLive" :key="index">
- <el-col :span="4" class="left">
- <i class="el-icon-video-camera-solid"></i>
- <el-button type="primary" size="mini" @click="$router.push({ path: '/userCenter/dock/apply', query: { id: item.id } })">申请</el-button>
- </el-col>
- <el-col :span="20" class="right">
- <p>{{ item.title }}</p>
- <p>开始时间:{{ item.start_time }}</p>
- <p>报名截止时间:{{ item.join_end }}</p>
- <p>简介:{{ item.desc }}</p>
- </el-col>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- name: 'nextList',
- props: {
- nextLive: null,
- },
- components: {},
- data: function() {
- return {};
- },
- created() {},
- methods: {},
- computed: {
- ...mapState(['user']),
- pageTitle() {
- return `${this.$route.meta.title}`;
- },
- },
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- };
- </script>
- <style lang="less" scoped>
- .list {
- padding: 0 15px 10px 15px;
- background-color: #fff;
- border-bottom: 1px solid red;
- .left {
- text-align: center;
- i {
- font-size: 30px;
- padding: 15px 0;
- }
- }
- .right {
- font-size: 14px;
- color: #666;
- padding: 0 10px;
- p:first-child {
- padding: 5px 0;
- color: #000;
- }
- p:nth-child(2) {
- padding: 0 0 5px 0;
- }
- p:nth-child(3) {
- padding: 0 0 5px 0;
- }
- p:nth-child(4) {
- padding: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- -webkit-line-clamp: 3;
- word-break: break-all;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- }
- }
- }
- </style>
|