123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <template>
- <div id="roadshow">
- <el-row>
- <el-col :span="24" class="style">
- <el-col :span="24" class="top">
- <top :topInfo="topInfo" @moreBtn="moreBtn"></top>
- </el-col>
- <el-col :span="24" class="down">
- <el-col :span="24" class="list" v-for="(item, index) in list" :key="index" @click.native="toDetail(item._id)">
- <el-col :span="4" class="date">
- <span>{{ item.publish_time || '暂无' }}</span>
- </el-col>
- <el-col :span="20" class="title textOver">
- {{ item.title }}
- </el-col>
- <el-col :span="24" class="brief">
- {{ item.titlejj || '暂无' }}
- </el-col>
- </el-col>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import top from './top.vue';
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- name: 'roadshow',
- props: {
- list: { type: Array },
- },
- components: {
- top,
- },
- data: function() {
- return {
- topInfo: {
- title: '项目路演',
- engTitle: 'roadshow',
- },
- };
- },
- created() {},
- methods: {
- // 查看更多
- moreBtn() {
- this.$router.push({ path: '/market/list', query: { index: 5 } });
- },
- toDetail(id) {
- this.$router.push({ path: '/market/list', query: { index: 5, id } });
- },
- },
- computed: {
- ...mapState(['user']),
- },
- watch: {},
- };
- </script>
- <style lang="less" scoped>
- .style {
- .top {
- height: 50px;
- overflow: hidden;
- }
- .down {
- height: 450px;
- position: relative;
- .list {
- border-bottom: 1px dashed #000;
- border-bottom: 1px dashed #000;
- padding: 12px 0;
- .date {
- text-align: center;
- span {
- background: #044b79;
- padding: 2px 5px 4px 5px;
- font-size: 14px;
- border-radius: 5px;
- font-weight: bold;
- color: #fff;
- }
- }
- .title {
- font-size: 16px;
- font-weight: bold;
- padding: 0 0 0 5px;
- }
- .brief {
- font-size: 14px;
- overflow: hidden;
- text-overflow: ellipsis;
- -webkit-line-clamp: 2;
- word-break: break-all;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- padding: 5px 0 0 0;
- height: 43px;
- }
- }
- .list:last-child {
- border-bottom: none;
- }
- .list:hover {
- cursor: pointer;
- .title {
- color: #409eff;
- }
- }
- }
- }
- </style>
|