123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604 |
- <template>
- <div id="index">
- <el-col :span="24" class="main">
- <el-col :span="24" class="marketTop">
- <el-col :span="12" class="left">
- <el-col :span="1" class="leftTitle">
- <p>科<br />技<br />产<br />品</p>
- <p></p>
- </el-col>
- <el-col :span="23" class="infoLeft">
- <el-col :span="12" class="productList" v-for="(item, index) in productList" :key="index" @click.native="productDetail(item.id)">
- <el-image :src="item.image[0].url"></el-image>
- <p class="textOver">{{ item.name }}</p>
- </el-col>
- </el-col>
- <el-col :span="24" class="leftListDown"><span></span><span @click="toProductList">MORE</span></el-col>
- </el-col>
- <el-col :span="12" class="right">
- <el-col :span="24" class="rightListTop"><span @click="toTecList">MORE</span><span></span></el-col>
- <el-col :span="23" class="infoRight">
- <el-col :span="24" class="tecList" v-for="(item, index) in tecList" :key="index">
- <span></span>
- <span class="textOver" @click="tecDetail(item.id)">{{ item.name }}</span>
- <span>对接</span>
- <span>{{ item.meta | getDate }}</span>
- </el-col>
- </el-col>
- <el-col :span="1" class="rightTitle">
- <p></p>
- <p>技<br />术<br />供<br />求</p>
- </el-col>
- </el-col>
- <el-col :span="24">
- <el-image :src="gongqiuImage" class="gongqiuImage"></el-image>
- </el-col>
- </el-col>
- <el-col :span="24" class="marketDown">
- <el-col :span="24" class="downMain">
- <el-col :span="12" class="left">
- <el-col :span="24" class="downLeftTop">
- <el-image :src="downLeftTopImage"></el-image>
- <span class="topText">
- <span>服务供求</span>
- <span
- ><p>S</p>
- <p>ervice</p></span
- >
- <span @click="toServiceList">更多</span>
- </span>
- </el-col>
- <el-col :span="24" class="downLeftInfo">
- <el-col :span="24" class="bankingList" v-for="(item, index) in serviceList" :key="index" @click.native="serviceDetail(item.id)">
- <el-col :span="10">
- <el-image :src="item.image[0].url"></el-image>
- </el-col>
- <el-col :span="14">
- <span class="textOver">{{ item.name }}</span>
- <span>{{ item.introduction }}</span>
- </el-col>
- </el-col>
- </el-col>
- </el-col>
- <el-col :span="12" class="right">
- <el-col :span="24" class="downLeftTop">
- <el-image :src="downLeftTopImage"></el-image>
- <span class="topText">
- <span>金融供求</span>
- <span
- ><p>B</p>
- <p>anking</p></span
- >
- <span>更多</span>
- </span>
- </el-col>
- <el-col :span="24" class="downRightImage">
- <el-image :src="serviceImage"></el-image>
- </el-col>
- <el-col :span="24">
- <el-col :span="24" class="downRightList" v-for="(item, index) in bankingList" :key="index">
- <span></span>
- <span>{{ item.title }}</span>
- </el-col>
- </el-col>
- </el-col>
- </el-col>
- </el-col>
- <el-col :span="24" class="marketNew">
- <el-col :span="24" class="downLeftTop">
- <el-image :src="downLeftTopImage"></el-image>
- <span class="topTexts">
- <span>最新发布</span>
- <span
- ><p>N</p>
- <p>ewing</p></span
- >
- <span @click="fabu()">我要发布</span>
- </span>
- <el-col :span="24" class="downLeftInfos">
- <el-col :span="12" class="bankingLists" v-for="(item, index) in newList" :key="index" @click.native="productDetail(item.id)">
- <el-col :span="10">
- <el-image :src="item.image[0].url"></el-image>
- </el-col>
- <el-col :span="12">
- <span class="textOvers">{{ item.name }}</span>
- <span>{{ item.introduction }}</span>
- </el-col>
- </el-col>
- </el-col>
- </el-col>
- </el-col>
- </el-col>
- </div>
- </template>
- <script>
- import _ from 'lodash';
- import { mapActions, mapState, createNamespacedHelpers } from 'vuex';
- const { mapActions: product } = createNamespacedHelpers('marketproduct');
- const { mapActions: talentExperts } = createNamespacedHelpers('talentExperts');
- var moment = require('moment');
- export default {
- name: 'index',
- props: {},
- components: {},
- data: () => ({
- gongqiuImage: require('@/assets/live/main2.png'),
- downLeftTopImage: require('@/assets/live/square_big.png'),
- serviceImage: require('@/assets/live/service_picture_one.jpg'),
- productList: [],
- tecList: [],
- bankingList: [
- {
- image:
- 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1588061253920&di=18e7a68061c9debd24a2db64967b891c&imgtype=0&src=http%3A%2F%2Fbpic.588ku.com%2Fback_pic%2F03%2F51%2F81%2F1257923ada49020.jpg',
- title: '测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据',
- content:
- '测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据',
- },
- {
- image:
- 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1588061253920&di=18e7a68061c9debd24a2db64967b891c&imgtype=0&src=http%3A%2F%2Fbpic.588ku.com%2Fback_pic%2F03%2F51%2F81%2F1257923ada49020.jpg',
- title: '测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据',
- content:
- '测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据',
- },
- {
- image:
- 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1588061253920&di=18e7a68061c9debd24a2db64967b891c&imgtype=0&src=http%3A%2F%2Fbpic.588ku.com%2Fback_pic%2F03%2F51%2F81%2F1257923ada49020.jpg',
- title: '测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据',
- content:
- '测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据',
- },
- {
- image:
- 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1588061253920&di=18e7a68061c9debd24a2db64967b891c&imgtype=0&src=http%3A%2F%2Fbpic.588ku.com%2Fback_pic%2F03%2F51%2F81%2F1257923ada49020.jpg',
- title: '测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据',
- content:
- '测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据测试型数据测试型数测试型数测试型数据',
- },
- ],
- serviceList: [],
- newList: [],
- }),
- created() {
- this.search();
- },
- filters: {
- getDate(meta) {
- let createdAt = _.get(meta, `createdAt`);
- let date = new Date(createdAt)
- .toLocaleDateString()
- .replace('/', '-')
- .replace('/', '-');
- return date;
- },
- },
- computed: {
- pageTitle() {
- return `${this.$route.meta.title}`;
- },
- },
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- methods: {
- ...product(['query']),
- ...talentExperts({ expertQuery: 'query' }),
- async search() {
- let res = await this.query({ skip: 0, limit: 4, totaltype: '0' });
- if (this.$checkRes(res)) this.$set(this, `tecList`, res.data);
- res = await this.query({ skip: 0, limit: 4, totaltype: '1' });
- if (this.$checkRes(res)) this.$set(this, `productList`, res.data);
- if (this.$checkRes(res)) this.$set(this, `newList`, res.data);
- res = await this.query({ skip: 0, limit: 4, totaltype: '2' });
- if (this.$checkRes(res)) this.$set(this, `serviceList`, res.data);
- // res = await this.expertQuery({ skip: 0, limit: 4 });
- // if (this.$checkRes(res)) this.$set(this, `expertsList`, res.data);
- },
- toProductList() {
- // window.location.href = 'http://free.liaoningdoupo.com/platweb/supermaket/supermarketlist?totaltype=1';
- window.open('http://free.liaoningdoupo.com/platweb/supermaket/supermarketlist?totaltype=1');
- },
- productDetail(id) {
- // window.location.href = 'http://free.liaoningdoupo.com/platweb/supermaket/supermarketdetail?totaltype=2&&?&id=' + id + '';
- window.open('http://free.liaoningdoupo.com/platweb/supermaket/supermarketdetail?totaltype=2&&?&id=' + id + '');
- },
- toTecList() {
- // window.location.href = 'http://free.liaoningdoupo.com/platweb/supermaket/supermarketlist?totaltype=0';
- window.open('http://free.liaoningdoupo.com/platweb/supermaket/supermarketlist?totaltype=0');
- },
- tecDetail(id) {
- // window.location.href = 'http://free.liaoningdoupo.com/platweb/supermaket/supermarketdetail?totaltype=0&&?&id=' + id + '';
- window.open('//free.liaoningdoupo.com/platweb/supermaket/supermarketdetail?totaltype=0&&?&id=' + id + '');
- },
- toServiceList() {
- // window.location.href = 'http://free.liaoningdoupo.com/platweb/supermaket/supermarketlist?totaltype=2';
- window.open('http://free.liaoningdoupo.com/platweb/supermaket/supermarketlist?totaltype=2');
- },
- serviceDetail(id) {
- // window.location.href = 'http://free.liaoningdoupo.com/platweb/supermaket/supermarketdetail?totaltype=2&&?&id=' + id + '';
- window.open('http://free.liaoningdoupo.com/platweb/supermaket/supermarketdetail?totaltype=2&&?&id=' + id + '');
- },
- fabu() {
- // window.location.href = 'http://free.liaoningdoupo.com/platweb/enterprise/enterprisexuqiu';
- window.open('http://free.liaoningdoupo.com/platweb/enterprise/enterprisexuqiu');
- },
- },
- };
- </script>
- <style lang="less" scoped>
- .gongqiuImage {
- width: 100%;
- height: 100%;
- }
- .main {
- width: 100%;
- margin: 20px auto;
- float: none;
- }
- .marketTop {
- width: 80%;
- margin: 20px auto;
- float: none;
- }
- .left {
- float: left;
- height: 500px;
- margin: 10px 0 20px 0;
- overflow: hidden;
- }
- .leftTitle {
- text-align: center;
- position: relative;
- }
- .leftTitle p:first-child {
- font-size: 18px;
- color: #044b79;
- font-weight: bold;
- }
- .leftTitle p:last-child {
- float: left;
- width: 2px;
- height: 402px;
- background-color: #044b79;
- margin: 0 5px;
- position: absolute;
- left: 9px;
- }
- .infoLeft {
- height: 480px;
- padding: 0 10px;
- }
- .productList {
- position: relative;
- margin: 0 10px 10px 0;
- width: 48%;
- height: 220px;
- }
- .productList:nth-child(2n) {
- margin: 0 0 10px 0;
- }
- .productList .el-image {
- width: 100%;
- height: 220px;
- }
- .productList p {
- position: absolute;
- text-align: center;
- bottom: 0;
- height: 50px;
- line-height: 50px;
- text-indent: 5px;
- // padding: 0 10px;
- background: #044b799f;
- color: #fff;
- width: 100%;
- font-size: 18px;
- }
- .leftListDown {
- position: relative;
- }
- .leftListDown span:first-child {
- display: inline-block;
- width: 80%;
- height: 3px;
- background: rgba(4, 75, 121, 0.37);
- margin: 0 10px 0 0;
- position: absolute;
- left: -10px;
- top: 10px;
- }
- .leftListDown span:last-child {
- font-size: 16px;
- float: right;
- padding: 0 15px 0 0;
- color: #044b79;
- font-weight: 700;
- cursor: pointer;
- }
- .right {
- float: right;
- height: 500px;
- overflow: hidden;
- margin: 10px 0 20px 0;
- }
- .rightListTop {
- position: relative;
- }
- .rightListTop span:first-child {
- font-size: 16px;
- float: left;
- padding: 0 0 0 15px;
- color: #044b79;
- font-weight: 700;
- cursor: pointer;
- }
- .rightListTop span:last-child {
- display: inline-block;
- width: 80%;
- height: 3px;
- background: rgba(4, 75, 121, 0.37);
- margin: 0 10px 0 0;
- position: absolute;
- right: -10px;
- top: 10px;
- }
- .infoRight {
- height: 480px;
- padding: 0 10px;
- }
- .tecList {
- padding: 0 15px;
- margin: 10px 0 10px 0;
- }
- .tecList span:first-child {
- display: inline-block;
- width: 10px;
- height: 10px;
- background: #2188c6;
- border-radius: 90px;
- }
- .tecList span:nth-child(2n) {
- display: inline-block;
- width: 80%;
- font-size: 18px;
- padding: 0 15px;
- }
- .tecList span:nth-child(3n) {
- display: inline-block;
- width: 10%;
- text-align: center;
- background-color: #044b79;
- color: #ffffff;
- font-size: 16px;
- padding: 3px 0px;
- }
- .tecList span:last-child {
- display: block;
- width: 120px;
- text-align: left;
- padding: 5px 0 5px 25px;
- font-size: 14px;
- }
- .rightTitle {
- text-align: center;
- }
- .rightTitle p:first-child {
- width: 2px;
- height: 370px;
- background: #044b79;
- position: relative;
- left: 10px;
- top: -20px;
- }
- .rightTitle p:last-child {
- font-size: 18px;
- font-weight: bold;
- color: #044b79;
- }
- .marketDown {
- height: 550px;
- overflow: hidden;
- margin: 20px 0 20px 0;
- background: #e9edf6;
- padding-top: 30px;
- }
- .downMain {
- width: 80%;
- float: none;
- height: 550px;
- margin: 0 auto;
- }
- .downLeftTop .el-image {
- width: 40px;
- }
- .topTexts {
- width: 100%;
- border-bottom: 2.5px solid #044b79;
- display: inline-block;
- position: relative;
- top: -10px;
- margin: 0 0 0 5px;
- }
- .topTexts span:first-child {
- font-size: 24px;
- font-weight: 700;
- color: #000000;
- padding: 0 10px;
- top: 4px;
- }
- .topTexts span p:first-child {
- font-weight: 800;
- font-size: 34px;
- color: #92959a;
- top: 11px;
- display: inline-block;
- }
- .topTexts span p:last-child {
- display: inline-block;
- font-weight: 700;
- font-size: 18px;
- color: #92959a;
- }
- .topTexts span:last-child {
- float: right;
- font-size: 16px;
- font-weight: 700;
- color: #044b79;
- position: relative;
- top: 20px;
- cursor: pointer;
- }
- .topText {
- width: 89%;
- border-bottom: 2.5px solid #044b79;
- display: inline-block;
- position: relative;
- top: -10px;
- margin: 0 0 0 5px;
- }
- .topText span:first-child {
- font-size: 24px;
- font-weight: 700;
- color: #000000;
- padding: 0 10px;
- top: 4px;
- }
- .topText span p:first-child {
- font-weight: 800;
- font-size: 34px;
- color: #92959a;
- top: 11px;
- display: inline-block;
- }
- .topText span p:last-child {
- display: inline-block;
- font-weight: 700;
- font-size: 18px;
- color: #92959a;
- }
- .topText span:last-child {
- float: right;
- font-size: 16px;
- font-weight: 700;
- color: #044b79;
- position: relative;
- top: 20px;
- cursor: pointer;
- }
- .bankingLists {
- height: 152px;
- }
- .bankingLists .el-image {
- width: 100%;
- height: 130px;
- display: inline-block;
- }
- .bankingLists span {
- margin: 0 5px 0 5px;
- display: inline-block;
- width: 80%;
- font-size: 18px;
- padding: 0 0 0 10px;
- color: #044b79;
- font-weight: 700;
- }
- .bankingLists span:last-child {
- margin: 10px 0 0 5px;
- font-size: 16px;
- overflow: hidden;
- text-overflow: ellipsis;
- -webkit-line-clamp: 4;
- word-break: break-all;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- padding: 0 0 0 10px;
- color: #666;
- line-height: 25px;
- font-weight: 400;
- }
- .bankingList {
- height: 152px;
- }
- .bankingList .el-image {
- width: 100%;
- height: 130px;
- display: inline-block;
- }
- .bankingList span {
- margin: 0 5px 0 5px;
- display: inline-block;
- width: 80%;
- font-size: 18px;
- padding: 0 0 0 10px;
- color: #044b79;
- font-weight: 700;
- }
- .bankingList span:last-child {
- margin: 10px 0 0 5px;
- font-size: 16px;
- overflow: hidden;
- text-overflow: ellipsis;
- -webkit-line-clamp: 4;
- word-break: break-all;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- padding: 0 0 0 10px;
- color: #666;
- line-height: 25px;
- font-weight: 400;
- }
- .downRightImage {
- float: none;
- width: 85%;
- margin: 0 auto;
- }
- .downRightImage .el-image {
- height: 200px;
- width: 100%;
- }
- .downRightList {
- float: none;
- width: 85%;
- margin: 10px auto;
- height: 50px;
- font-size: 16px;
- line-height: 35px;
- }
- .downRightList span:first-child {
- display: inline-block;
- width: 10px;
- height: 10px;
- background: #2188c6;
- border-radius: 90px;
- margin: 10px;
- }
- .downRightList span:last-child {
- width: 80%;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- display: inline-block;
- }
- .marketNew {
- float: none;
- width: 80%;
- margin: 30px auto;
- height: 400px;
- }
- .downLeftInfos {
- height: 330px;
- }
- </style>
|