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.

125 lines
2.9 KiB

5 years ago
<template>
<div>
<rotation />
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
<span @click="$router.push('/register')" class="login-color">注册</span>
<span @click="$router.push('/login')" class="login-color">登录</span> 后通过直接申请或加入购物车进行申请服务 直接申请后在个人中心查看 加入
<span
@click="$router.push('/Cart')"
class="login-color"
>购物车</span> 后可通过顶部菜单栏的购物车查看
</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"
class="item-box"
v-for="(item, index) in list"
>
<img :src="item.picUrl" style="height: 220px; width: 100%; border: 1px solid #ccc" />
<p class="font-24 item-title">{{ item.name }}</p>
<p class="font-24 my-4 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>
import { selService } from 'config/api';
import Rotation from 'components/Rotation/Rotation.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, Rotation, BreadCrumb },
5 years ago
data() {
return {
str: '这是服务界面',
5 years ago
title: '科技创新服务',
typeOfPlatform: '创新平台',
arr: [
{ name: '创新平台', url: '/NewPlatform/NewCore' },
{ name: '科技创新服务', url: '' },
],
5 years ago
list: [],
current: 1,
pageSize: 8,
total: 0,
5 years ago
};
},
created() {
this.getService();
},
methods: {
// 获取服务列表
async getService() {
try {
const params = { param: {} };
const res = await selService(params);
const { code, data, msg } = res.data;
if (code === 200) {
this.list = data;
}
} catch (error) {
console.log(data);
}
},
// 查看 服务 详情
jump(id) {
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-title {
position: absolute;
top: 100px;
width: 100%;
text-align: center;
}
.item-content {
font-size: 16px;
color: rgba(0, 0, 0, 0.65);
}
</style>