123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <template>
- <div id="index">
- <el-row>
- <el-col :span="24" class="main">
- <div class="w_1200">
- <el-col :span="24" class="one">
- <el-col :span="12" class="left">
- <achieve :list="achieveList"></achieve>
- </el-col>
- <el-col :span="12" class="right">
- <patent :list="patentList"></patent>
- </el-col>
- </el-col>
- <el-col :span="24" class="two">
- <el-image :src="imgUrl"></el-image>
- </el-col>
- <el-col :span="24" class="one">
- <el-col :span="12" class="left">
- <business :list="businessList"></business>
- </el-col>
- <el-col :span="12" class="right">
- <expert :list="expertList"></expert>
- </el-col>
- </el-col>
- <el-col :span="24" class="two">
- <el-image :src="imgUrl"></el-image>
- </el-col>
- <el-col :span="24" class="one">
- <el-col :span="12" class="left">
- <technology :list="technologyList"></technology>
- </el-col>
- <el-col :span="12" class="right">
- <roadshow :list="roadshowList"></roadshow>
- </el-col>
- </el-col>
- </div>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import achieve from './index/achieve.vue';
- import patent from './index/patent.vue';
- import business from './index/business.vue';
- import expert from './index/expert.vue';
- import technology from './index/technology.vue';
- import roadshow from './index/roadshow.vue';
- import { mapState, createNamespacedHelpers } from 'vuex';
- const { mapActions: productIndex } = createNamespacedHelpers('productIndex');
- export default {
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- name: 'index',
- props: {},
- components: {
- achieve,
- patent,
- business,
- expert,
- technology,
- roadshow,
- },
- data: function() {
- return {
- imgUrl: require('@common/src/assets/center/gqxx.png'),
- // 技术成果
- achieveList: [],
- // e专利
- patentList: [],
- // 商务服务
- businessList: [],
- // 专家智库
- expertList: [],
- // 科技需求
- technologyList: [],
- // 项目路演
- roadshowList: [],
- };
- },
- async created() {
- await this.search();
- },
- methods: {
- ...productIndex(['query']),
- async search({ skip = 0, limit = 10, ...info } = {}) {
- let res = await this.query({ ...info });
- if (this.$checkRes(res)) {
- this.$set(this, `achieveList`, res.data.achieve);
- this.$set(this, `technologyList`, res.data.require);
- this.$set(this, `businessList`, res.data.serve);
- this.$set(this, `patentList`, res.data.patent);
- this.$set(this, `expertList`, res.data.expert);
- this.$set(this, `roadshowList`, res.data.roadShow);
- }
- },
- },
- computed: {
- ...mapState(['user']),
- },
- watch: {},
- };
- </script>
- <style lang="less" scoped>
- .main {
- background-image: linear-gradient(#ffffff, #a3d5f6, #ffffff);
- min-height: 557px;
- padding: 10px 0;
- .one {
- margin: 0 0 10px 0;
- .left {
- width: 49%;
- min-height: 530px;
- background: #ffffff;
- padding: 15px;
- border-radius: 20px;
- margin: 0 24px 0 0;
- box-shadow: 0 0 5px #409eff;
- }
- .right {
- width: 49%;
- min-height: 530px;
- background: #ffffff;
- border-radius: 20px;
- padding: 15px;
- box-shadow: 0 0 5px #409eff;
- }
- }
- .two {
- height: 140px;
- overflow: hidden;
- margin: 0 0 10px 0;
- }
- }
- </style>
|