nextList.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <div id="nextList">
  3. <el-row>
  4. <el-col :span="24" class="style">
  5. <el-col :span="24" class="list" v-for="(item, index) in nextLive" :key="index">
  6. <el-col :span="4" class="left">
  7. <i class="el-icon-video-camera-solid"></i>
  8. <el-button type="primary" size="mini" @click="$router.push({ path: '/userCenter/dock/apply', query: { id: item.id } })">申请</el-button>
  9. </el-col>
  10. <el-col :span="20" class="right">
  11. <p>{{ item.title }}</p>
  12. <p>开始时间:{{ item.start_time }}</p>
  13. <p>报名截止时间:{{ item.join_end }}</p>
  14. <p>简介:{{ item.desc }}</p>
  15. </el-col>
  16. </el-col>
  17. </el-col>
  18. </el-row>
  19. </div>
  20. </template>
  21. <script>
  22. import { mapState, createNamespacedHelpers } from 'vuex';
  23. export default {
  24. name: 'nextList',
  25. props: {
  26. nextLive: null,
  27. },
  28. components: {},
  29. data: function() {
  30. return {};
  31. },
  32. created() {},
  33. methods: {},
  34. computed: {
  35. ...mapState(['user']),
  36. pageTitle() {
  37. return `${this.$route.meta.title}`;
  38. },
  39. },
  40. metaInfo() {
  41. return { title: this.$route.meta.title };
  42. },
  43. };
  44. </script>
  45. <style lang="less" scoped>
  46. .list {
  47. padding: 0 15px 10px 15px;
  48. background-color: #fff;
  49. border-bottom: 1px solid red;
  50. .left {
  51. text-align: center;
  52. i {
  53. font-size: 30px;
  54. padding: 15px 0;
  55. }
  56. }
  57. .right {
  58. font-size: 14px;
  59. color: #666;
  60. padding: 0 10px;
  61. p:first-child {
  62. padding: 5px 0;
  63. color: #000;
  64. }
  65. p:nth-child(2) {
  66. padding: 0 0 5px 0;
  67. }
  68. p:nth-child(3) {
  69. padding: 0 0 5px 0;
  70. }
  71. p:nth-child(4) {
  72. padding: 0;
  73. overflow: hidden;
  74. text-overflow: ellipsis;
  75. -webkit-line-clamp: 3;
  76. word-break: break-all;
  77. display: -webkit-box;
  78. -webkit-box-orient: vertical;
  79. }
  80. }
  81. }
  82. </style>