You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
2.8 KiB

5 years ago
<template>
<div>
5 years ago
<banner :show-page="showPage" />
5 years ago
<h-nav />
5 years ago
<div class="inner">
<bread-crumb :arr="arr" />
</div>
<div class="flow-path">
<div class="flow-title">服务流程</div>
<div class="flow-content">
5 years ago
<img src="~assets/image.png" style="width:100%" />
5 years ago
</div>
</div>
<div class="inner d-flex flex-wrap" style="margin: 60px auto">
5 years ago
<div
:class="(index + 1) % 4 === 0 ? 'margin-0' : ''"
:key="index"
5 years ago
class="item-box mb-8"
5 years ago
v-for="(item, index) in list"
>
<img :src="item.picUrl" style="height: 220px; width: 100%; border: 1px solid #ccc" />
5 years ago
<p class="font-24 my-4">{{ item.name }}</p>
<p class="font-16 my-4 textColor line-height-30 item-content">{{ item.intro }}</p>
5 years ago
<p
@click="jump(item.id)"
class="font-16 baseColor"
style="text-align: right; cursor: pointer"
>了解更多</p>
</div>
</div>
5 years ago
</div>
</template>
<script>
5 years ago
import { mapMutations } from 'vuex';
import { selService } from 'config/api';
5 years ago
import Banner from 'components/Banner/Banner.vue';
5 years ago
import HNav from './../components/HNav.vue';
5 years ago
import BreadCrumb from 'components/BreadCrumb/BreadCrumb.vue';
5 years ago
export default {
name: 'Service',
5 years ago
components: { HNav, Banner, BreadCrumb },
5 years ago
data() {
return {
str: '这是服务界面',
5 years ago
title: '创新服务',
5 years ago
typeOfPlatform: '创新平台',
arr: [
{ name: '创新平台', url: '/NewPlatform/NewCore' },
5 years ago
{ name: '创新服务', url: '/NewPlatform/NewService' },
5 years ago
],
5 years ago
showPage: 33,
5 years ago
list: [],
current: 1,
pageSize: 8,
total: 0,
5 years ago
};
},
created() {
this.getService();
},
methods: {
5 years ago
...mapMutations('home', ['setServiceArr']),
// 获取服务列表
async getService() {
try {
5 years ago
const params = { param: { serviceType: 1 } };
const res = await selService(params);
const { code, data, msg } = res.data;
if (code === 200) {
this.list = data;
}
} catch (error) {
console.log(data);
}
},
// 查看 服务 详情
jump(id) {
5 years ago
this.setServiceArr([]);
this.setServiceArr(this.arr);
this.$router.push({
path: '/NewPlatform/ServiceDet',
name: 'ServiceDet',
params: { id },
});
},
},
5 years ago
};
</script>
<style lang="stylus" scoped>
5 years ago
.inner {
margin: 10px auto 15px;
}
.pagination {
margin: 40px 0;
text-align: right;
}
.item-box {
position: relative;
width: 20.5%;
margin-right: 6%;
border-radius: 4px;
}
.margin-0 {
margin-right: 0 !important;
}
.item-content {
5 years ago
display: -webkit-box;
overflow: hidden;
white-space: normal !important;
text-overflow: ellipsis;
word-wrap: break-word;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
height: 60px;
5 years ago
}
</style>