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.

268 lines
7.1 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">
5 years ago
<a-row>
<a-col :key="server.id" :span="8" v-for="server in services">
<div @click="$router.push(server.path)" class="mr-8 d-flex pointer">
<div class="server-box d-flex fill-width">
<img :src="server.url" style="width:100%" />
5 years ago
</div>
</div>
</a-col>
</a-row>
5 years ago
<a-row class="mt-8 mr-8">
<a-col :span="8" class="fill-width d-flex flex-nowrap flex-row justify-space-between">
<div
:key="platform.id"
@click="$router.push(platform.path)"
class="platform-box"
v-for="platform in platforms"
>
<div class="d-flex flex-column align-center pointer">
<img :src="platform.url" style="width:60%" />
<div class="platform-txt mt-3">{{ platform.firstName }}</div>
<div class="platform-txt">{{ platform.secondName }}</div>
5 years ago
</div>
</div>
</a-col>
</a-row>
<!-- <a-row class="mt-8">
5 years ago
<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>
5 years ago
</a-row>-->
5 years ago
</a-col>
<a-col :span="6">
5 years ago
<div class="white mr-8 d-flex flex-column justify-center">
<index-new-list :i="1" :lists="lists" />
</div>
</a-col>
</a-row>
<a-row class="mt-8">
<a-col :span="24">
5 years ago
<div class="white mr-8 d-flex flex-column justify-center">
<index-new-list :i="0" :lists="lists" />
5 years ago
</div>
</a-col>
5 years ago
<!-- <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>-->
5 years ago
</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',
path: '/NewPlatform/NewService',
url: 'https://www.sxwikionline.com/gateway/greenvalley/uploads/upload/20210119/index06.png',
},
{
id: '02',
chinese: '孵化服务',
english: 'INCUBATION',
path: '/IncubationPlatform/Services',
url: 'https://www.sxwikionline.com/gateway/greenvalley/uploads/upload/20210119/index07.png',
},
{
id: '03',
chinese: '产业服务',
english: 'INDUSTRIAL',
path: '/Industry/Serve',
url: 'https://www.sxwikionline.com/gateway/greenvalley/uploads/upload/20210119/index08.png',
},
5 years ago
],
platforms: [
{
id: '04',
firstName: '创新挑战',
secondName: '',
5 years ago
path: '/Challenge/Solicitation',
url: 'https://www.sxwikionline.com/gateway/greenvalley/uploads/upload/20210119/index01.png',
5 years ago
},
{
id: '05',
5 years ago
firstName: '科技资源',
secondName: '开放共享服务平台',
path: '/NewPlatform/Share',
url: 'https://www.sxwikionline.com/gateway/greenvalley/uploads/upload/20210119/index02.png',
5 years ago
},
{
id: '06',
firstName: '知识产权与技术',
secondName: '转移转化服务平台',
5 years ago
path: '/NewPlatform/Transfer',
url: 'https://www.sxwikionline.com/gateway/greenvalley/uploads/upload/20210119/index03.png',
5 years ago
},
{
id: '07',
5 years ago
firstName: '知识培训',
secondName: '科技人才服务平台',
5 years ago
path: '/NewPlatform/Develop',
5 years ago
url: 'https://www.sxwikionline.com/gateway/greenvalley/uploads/upload/20210119/index04.png',
},
5 years ago
// {
// id: '08',
// firstName: '知识平台',
// secondName: '',
// path: '/Knowledge',
// url: 'https://www.sxwikionline.com/gateway/greenvalley/uploads/upload/20210119/index05.png',
// },
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) {
5 years ago
// console.log(data);
5 years ago
} else {
5 years ago
// console.log(msg);
5 years ago
}
},
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) {
5 years ago
// console.log(data);
5 years ago
} else {
5 years ago
// console.log(msg);
5 years ago
}
},
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 {
5 years ago
width: 20%;
.platform-txt {
font-size: 20px;
}
@media only screen and (max-width: 1400px) {
.platform-txt {
font-size: 18px;
}
}
5 years ago
}
.platform-box div {
transition: all 0.2s ease 0s;
}
.platform-box:hover div {
transform: translate(0, -3px);
}
5 years ago
.server-box:hover img {
5 years ago
transform: translate(0, -3px);
}
5 years ago
.server-box img {
transition: all 0.2s ease 0s;
5 years ago
}
</style>