2025-07-16 14:27:17 +08:00

368 lines
9.2 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="mainBox">
<div class="header">
<div class="logowx"><img src="../../assets/kyy/simple_logonew.png" alt=""></div>
<div class="btnStyle" @click="$router.push('/login')"> 登录/注册</div>
</div>
<div class="banner" style="background: #f8f9fe">
<div class="block">
<el-carousel height="180px">
<el-carousel-item style="height:180px;" class="banner-item">
<img src="../../assets/kyy/banner01.png">
</el-carousel-item>
<el-carousel-item style="height: 180px;" class="banner-item">
<img src="../../assets/kyy/temporaryPic/bann2.png">
</el-carousel-item>
<el-carousel-item style="height: 180px;" class="banner-item">
<img src="../../assets/kyy/temporaryPic/banner5.jpg">
</el-carousel-item>
</el-carousel>
</div>
<div class="title">
<span @click="changePRoductType('0')" :class="{currentTitle:productType==='0'}"
style="display: inline-block;margin-right: 30px;position: relative">供给信息</span>
<span @click="changePRoductType('1')" style="position: relative"
:class="{currentTitle:productType==='1'}">需求信息</span>
</div>
<ul class="showUl">
<li @click="goDetail(item)" v-for="(item,index) in showData" :key="index">
<span>{{ item.supplytitle ? item.supplytitle : item.demandtitle }}</span>
<span class="address"> <img style="width: 16px;height: 16px;margin-right: 5px" src="./img/address.svg"
alt="">{{ item.provincename }}</span>
<span class="timeStyle">
{{ item.supplybegin ? item.supplybegin : item.demandend }}</span>
</li>
</ul>
</div>
<div style="background: #f8f9fe" class="lookMore">
<span class="word" @click="$router.push('/login')"> 查看更多</span>
</div>
<div class="apS">
模型广场
</div>
<ul class="aiStyle">
<li>
<img src="./img/zp.svg" alt="">
<span class="aiName">智谱</span>
</li>
<li>
<img src="./img/xh.svg" alt="">
<span class="aiName">讯飞星火</span>
</li>
<li>
<img src="./img/qw.svg" alt="">
<span class="aiName">千问</span>
</li>
<li>
<img src="./img/db.jpg" alt="">
<span class="aiName">豆包大模型</span>
</li>
<li>
<img src="./img/wxyy.svg" alt="">
<span class="aiName">文心一言</span>
</li>
<li>
<img src="./img/lc.svg" alt="">
<span class="aiName">浪潮千业大模型</span>
</li>
</ul>
<div class="lookMore">
<span class="word" @click="$router.push('/login')"> 查看更多</span>
</div>
<div class="footerBox">
<!-- <div>-->
<!-- <div class="logowx"><img src="../../assets/kyy/simple_logonew.png" alt=""></div>-->
<!-- </div>-->
<span>版权所有 © 2023开元云北京科技有限公司 </span>
</div>
</div>
</template>
<script>
import {reqWxGjList, reqWxXqList} from "@/api/otherApi/wx";
export default {
name: "wxPage",
data() {
return {
showData: [
// {id: '1', name: '213', address: '全国', time: '2024-06-12'},
// {id: '2', name: '213', address: '全国', time: '2024-06-12'},
// {id: '3', name: '213', address: '全国', time: '2024-06-12'},
// {id: '4', name: '213', address: '全国', time: '2024-06-12'},
// {id: '5', name: '213', address: '全国', time: '2024-06-12'},
// {id: '6', name: '213', address: '全国', time: '2024-06-12'},
// {id: '7', name: '213', address: '全国', time: '2024-06-12'},
// {id: '8', name: '213', address: '全国', time: '2024-06-12'},
// {id: '9', name: '213', address: '全国', time: '2024-06-12'},
// {id: '10', name: '213', address: '全国', time: '2024-06-12'},
// {id: '11', name: '213', address: '全国', time: '2024-06-12'},
// {id: '12', name: '213', address: '全国', time: '2024-06-12'},
],
GjData: [
// {id: '1', name: '213', address: '全国', time: '2024-06-12'},
// {id: '2', name: '213', address: '全国', time: '2024-06-12'},
// {id: '3', name: '213', address: '全国', time: '2024-06-12'},
// {id: '4', name: '213', address: '全国', time: '2024-06-12'},
// {id: '5', name: '213', address: '全国', time: '2024-06-12'},
// {id: '6', name: '213', address: '全国', time: '2024-06-12'},
// {id: '7', name: '213', address: '全国', time: '2024-06-12'},
// {id: '8', name: '213', address: '全国', time: '2024-06-12'},
// {id: '9', name: '213', address: '全国', time: '2024-06-12'},
// {id: '10', name: '213', address: '全国', time: '2024-06-12'},
// {id: '11', name: '213', address: '全国', time: '2024-06-12'},
// {id: '12', name: '213', address: '全国', time: '2024-06-12'},
],
XqData: [
// {id: '1', name: '撒旦发个是', address: '全df国', time: '2024-06-12'},
// {id: '2', name: '撒旦发个', address: '全国', time: '2024-06-12'},
// {id: '3', name: '第三方个', address: '全sdfg国', time: '2024-06-12'},
// {id: '4', name: '撒旦发个', address: '全国', time: '2024-06-12'},
// {id: '5', name: 'sdfg收到费', address: '全国', time: '2024-06-12'},
// {id: '6', name: '213', address: '全国', time: '2024-06-12'},
// {id: '7', name: '213', address: '全国', time: '2024-06-12'},
],
productType: '0'
}
},
mounted() {
reqWxGjList().then(res => {
if (res.status) {
this.GjData = res.data.splice(0, 8)
this.showData = this.GjData
}
})
reqWxXqList().then(res => {
if (res.status) {
this.XqData = res.data.splice(0, 10)
}
})
},
methods: {
goDetail(item) {
this.$router.push({
path: "/wxDetailPage",
query: {
dataObj: item,
productType: this.productType
}
})
},
changePRoductType(value) {
this.showData = []
this.productType = value
if (value === '0') {
this.showData = this.GjData
} else {
this.showData = this.XqData
}
}
}
}
</script>
<style scoped lang="scss">
.mainBox {
width: 100%;
height: 100vh;
overflow-y: auto;
}
.header {
position: fixed;
top: 0;
z-index: 1002;
background: #fff;
//border: 1px solid red;
width: 100%;
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
}
.el-carousel__item h3 {
color: #475669;
font-size: 14px;
opacity: 0.75;
line-height: 150px;
margin: 0;
}
.el-carousel__item:nth-child(2n) {
background-color: #99a9bf;
}
.el-carousel__item:nth-child(2n+1) {
background-color: #d3dce6;
}
.banner {
margin-top: 60px;
img {
width: 100%;
height: 100%;
background-position: center;
}
}
.showUl {
//border: 1px solid red;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
padding: 0 !important;
margin-bottom: 0 !important;
li {
width: 85%;
position: relative;
font-size: 20px;
font-weight: 500;
color: #3d3d3d;
margin: 0 20px;
height: 110px;
padding: 16px 24px 22px 28px;
border: 2px solid transparent;
box-shadow: 0 3px 12px #00000012;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: flex-start;
margin-bottom: 18px;
}
}
.title {
height: 70px;
display: flex;
align-items: center;
justify-content: center;
//border: 1px solid red;
}
.timeStyle {
position: absolute;
top: 30px;
right: 20px;
font-size: 14px;
color: #8a8c8f;
}
.address {
margin-top: 15px;
font-size: 16px;
}
.lookMore {
width: 100%;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
padding: 15px 0;
font-weight: 700;
color: #5757cf;
}
.logowx {
width: 100px;
height: 100%;
//border: 1px solid red;
}
.btnStyle {
height: 100%;
padding: 0 10px;
//border: 1px solid red;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
background: #0749f2;
}
.currentTitle {
&::after {
content: "";
position: absolute;
bottom: -14px;
left: calc(50% - 18px);
width: 36px;
height: 6px;
background: linear-gradient(90deg, #1b5bff 23%, #ff0d73 108%);
}
}
.word {
//border: 1px solid red;
padding: 5px 8px;
}
.aiStyle {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
* {
padding: 0;
margin: 0;
list-style: none;
}
//padding: 0 ;
padding: 0 15px !important;
li {
width: 120px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
//border: 1px solid red;
margin-bottom: 10px;
img {
width: 80px;
height: 80px;
}
}
}
.aiName {
margin-top: 15px;
}
.footerBox {
margin-top: 15px;
width: 100%;
height: 70px;
background: #18202f;
color: white;
display: flex;
justify-content: center;
align-items: center;
}
.apS {
font-size: 35px;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
margin: 25px 0;
}
</style>