123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- <template>
- <div id="zhuanti">
- <el-row>
- <el-col :span="24" class="info">
- <el-tabs type="border-card">
- <el-tab-pane>
- <span slot="label">专题研讨</span>
- <el-col :span="24" class="list">
- <ul>
- <li
- class="zhuantiList"
- v-for="(item, index) in ztytList"
- :key="index"
- @click="$router.push({ path: '/service/servicedetail', query: { id: item.id } })"
- >
- <el-col :span="20" class="title textOver">{{ item.title }}</el-col>
- <el-col :span="4" class="date textOver">{{
- item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || ''
- }}</el-col>
- </li>
- </ul>
- <el-col class="more" :span="24"><el-link :underline="false" @click="moreClick()">查看更多</el-link></el-col>
- </el-col>
- </el-tab-pane>
- <el-tab-pane>
- <span slot="label">技术问答</span>
- <el-col :span="24" class="list">
- <ul>
- <li
- class="zhuantiList"
- v-for="(item, index) in jswdList"
- :key="index"
- @click="$router.push({ path: '/service/servicedetail', query: { id: item.id } })"
- >
- <el-col :span="20" class="title textOver">{{ item.title }}</el-col>
- <el-col :span="4" class="date textOver">{{
- item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || ''
- }}</el-col>
- </li>
- </ul>
- <el-col class="more" :span="24"><el-link :underline="false" @click="moreClick()">查看更多</el-link></el-col>
- </el-col>
- </el-tab-pane>
- <el-tab-pane>
- <span slot="label">行业研究</span>
- <el-col :span="24" class="list">
- <ul>
- <li
- class="zhuantiList"
- v-for="(item, index) in hyyjList"
- :key="index"
- @click="$router.push({ path: '/service/servicedetail', query: { id: item.id } })"
- >
- <el-col :span="20" class="title textOver">{{ item.title }}</el-col>
- <el-col :span="4" class="date textOver">{{
- item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || ''
- }}</el-col>
- </li>
- </ul>
- <el-col class="more" :span="24"><el-link :underline="false" @click="moreClick()">查看更多</el-link></el-col>
- </el-col>
- </el-tab-pane>
- <el-tab-pane>
- <span slot="label">科技培训</span>
- <el-col :span="24" class="list">
- <ul>
- <li
- class="zhuantiList"
- v-for="(item, index) in kjpxList"
- :key="index"
- @click="$router.push({ path: '/service/servicedetail', query: { id: item.id } })"
- >
- <el-col :span="20" class="title textOver">{{ item.title }}</el-col>
- <el-col :span="4" class="date textOver">{{
- item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || ''
- }}</el-col>
- </li>
- </ul>
- <el-col class="more" :span="24"><el-link :underline="false" @click="moreClick()">查看更多</el-link></el-col>
- </el-col>
- </el-tab-pane>
- </el-tabs>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- export default {
- name: 'zhuanti',
- props: {
- ztytList: null, //专题研讨
- jswdList: null, //技术问答
- hyyjList: null, //行业研究
- kjpxList: null, //科技培训
- },
- components: {},
- data: () => ({}),
- created() {},
- computed: {},
- methods: {
- moreClick() {
- this.$router.push({ path: '/service/servicelist' });
- },
- },
- };
- </script>
- <style lang="less" scoped>
- ul {
- padding: 0;
- margin: 0;
- }
- li {
- padding: 0;
- margin: 0;
- color: #999;
- }
- .info {
- padding: 20px;
- height: 300px;
- overflow: hidden;
- }
- /deep/.el-tabs--border-card {
- border: none;
- box-shadow: none;
- }
- /deep/.el-tabs--border-card > .el-tabs__header {
- background-color: transparent;
- border-bottom: none;
- margin: 0 0 10px 0;
- }
- /deep/.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
- color: #2c3350;
- border-right-color: transparent;
- border-left-color: transparent;
- }
- /deep/.el-tabs__item {
- padding: 0 15px 0 0;
- font-size: 22px;
- font-weight: bold;
- }
- /deep/.el-tabs--top.el-tabs--border-card > .el-tabs__header .el-tabs__item:nth-child(2) {
- padding-left: 0;
- }
- /deep/.el-tabs--border-card > .el-tabs__content {
- padding: 0;
- }
- .list {
- height: 220px;
- overflow: hidden;
- }
- .list ul {
- min-height: 30px;
- max-height: 180px;
- overflow: hidden;
- padding: 0 0 0 20px;
- }
- .list ul li {
- padding: 0 0 9px 0;
- }
- .list ul li .date {
- display: inline-block;
- width: 90px;
- text-align: left;
- font-size: 16px;
- color: #60626e;
- }
- .list ul li .title {
- display: inline-block;
- font-size: 16px;
- color: #60626e;
- width: 610px;
- margin: 0 20px 0 0;
- }
- .list ul li:hover .date {
- color: #215299;
- }
- .list ul li:hover .title {
- color: #215299;
- }
- .more {
- height: 30px;
- line-height: 25px;
- text-align: center;
- background: #f5f5f5;
- }
- .more .el-link {
- font-size: 16px;
- color: #60626e;
- }
- </style>
|