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.

221 lines
5.5 KiB

5 years ago
<!--
Copyright (c) 2020.
author: bin
email: binbin0314@126.com
-->
<template>
<div>
5 years ago
<rotation />
5 years ago
<div class="inner">
<a-row>
<a-col :span="18">
<a-row>
<a-col :key="server.id" :span="8" v-for="server in services">
5 years ago
<div @click="$router.push(server.url)" class="base-bg mr-8 d-flex pointer">
5 years ago
<div class="server-box pa-5 mb-3 d-flex flex-column white--text fill-width">
<span class="font-big">{{ server.chinese }}</span>
<span class="font-small">{{ server.english }}</span>
<span class="font-small">SERVICE</span>
<div class="d-flex flex-nowrap">
<div class="flex-1"></div>
<a-icon class="font-24" type="arrow-right" />
</div>
</div>
</div>
</a-col>
</a-row>
<a-row class="mt-8">
<a-col :span="12">
<div class="white mr-8 d-flex flex-column justify-center">
<index-new-list :i="0" :lists="lists" />
</div>
</a-col>
<a-col :span="12">
<div class="white mr-8 d-flex flex-column justify-center">
<index-new-list :i="1" :lists="lists" />
</div>
</a-col>
</a-row>
</a-col>
<a-col :span="6">
<div
:key="platform.id"
5 years ago
@click="$router.push(platform.url)"
class="second-base-bg white--text platform-box mb-8 d-flex flex-column justify-center align-center pointer"
5 years ago
v-for="platform in platforms"
>
<div class="font-small font-bold">{{ platform.firstName }}</div>
<div class="font-small font-bold">{{ platform.secondName }}</div>
</div>
</a-col>
</a-row>
</div>
</div>
</template>
<script>
5 years ago
import { mapState, mapActions } from 'vuex';
5 years ago
import Rotation from 'components/Rotation/Rotation.vue';
5 years ago
import IndexNewList from 'components/Index/IndexNewList.vue';
import { frontSearchFriend, frontSearchCompany } from 'config/api';
5 years ago
export default {
5 years ago
components: { Rotation, IndexNewList },
5 years ago
data() {
5 years ago
return {
services: [
5 years ago
{ id: '01', chinese: '创新服务', english: 'INNOVATIVE', url: '/NewPlatform/NewService' },
{ id: '02', chinese: '孵化服务', english: 'INCUBATION', url: '/IncubationPlatform/Services' },
{ id: '03', chinese: '产业服务', english: 'INDUSTRIAL', url: '/Industry/Serve' },
5 years ago
],
platforms: [
{
id: '04',
firstName: '创新挑战',
secondName: '',
5 years ago
url: '/Challenge/Solicitation',
5 years ago
},
{
id: '05',
firstName: '科技资源开放共享',
secondName: '服务平台',
5 years ago
url: '/NewPlatform/Share',
5 years ago
},
{
id: '06',
firstName: '知识产权与技术',
secondName: '转移转化服务平台',
5 years ago
url: '/NewPlatform/Transfer',
5 years ago
},
{
id: '07',
5 years ago
firstName: '知识培训与科技人才',
secondName: '服务平台',
5 years ago
url: '/NewPlatform/NewService',
5 years ago
},
],
lists: [
{
id: 1,
name: '行业资讯',
news: [],
},
{
id: 2,
name: '活动公告',
news: [],
},
],
};
},
5 years ago
computed: mapState('home', ['actList', 'actIpCon', 'actCurrent']),
5 years ago
created() {
this.getData1();
this.getData2();
5 years ago
this.getIndustryInfoLists();
this.getFrontLists();
5 years ago
},
methods: {
5 years ago
...mapActions('home', ['getIndustryInfoList', 'getFrontList']),
// 查询衍生企业
5 years ago
async getData1() {
const params = {
param: {
pageNum: 1,
pageSize: 5,
type: 1,
typeOfPlatform: 1,
},
};
const res = await frontSearchFriend(params);
5 years ago
const { data, code, msg } = res.data;
if (code === 200) {
console.log(data);
} else {
console.log(msg);
}
},
5 years ago
// 查询合作伙伴
5 years ago
async getData2() {
const params = {
param: {
pageNum: 1,
pageSize: 5,
type: 2,
typeOfPlatform: 2,
},
};
const res = await frontSearchCompany(params);
5 years ago
const { data, code, msg } = res.data;
if (code === 200) {
console.log(data);
} else {
console.log(msg);
}
},
5 years ago
// 获取行业资讯列表
async getIndustryInfoLists() {
const params = {
param: {
pageNum: 1,
pageSize: 3,
},
};
const res = await this.getIndustryInfoList(params);
this.lists[0].news = res.list;
},
// 获取活动公告列表
async getFrontLists() {
const params = {
param: {
activityType: [],
pageNum: 1,
pageSize: 3,
title: '',
},
};
const res = await this.getFrontList(params);
this.lists[1].news = res.list;
},
5 years ago
},
};
</script>
5 years ago
<style lang="less" scoped>
5 years ago
.inner {
margin: 40px auto;
}
.platform-box {
height: 100px;
}
.platform-box div {
transition: all 0.2s ease 0s;
}
.platform-box:hover div {
transform: translate(0, -3px);
}
.server-box span {
transition: all 0.2s ease 0s;
}
.server-box div {
transition: all 0.2s ease 0s;
}
.server-box:hover span {
transform: translate(0, -3px);
}
.server-box:hover div {
transform: translate(0, -3px);
}
</style>