|
@@ -3,7 +3,7 @@
|
|
<div class="container">
|
|
<div class="container">
|
|
<el-row class="mt2rem" :gutter="20">
|
|
<el-row class="mt2rem" :gutter="20">
|
|
<el-col :span="4">
|
|
<el-col :span="4">
|
|
- <category />
|
|
|
|
|
|
+ <category @change="e => $router.push({ path: `/mall`, query: e })" />
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="14">
|
|
<el-col :span="14">
|
|
<el-carousel class="bannerD marquee">
|
|
<el-carousel class="bannerD marquee">
|
|
@@ -107,31 +107,30 @@
|
|
</router-link>
|
|
</router-link>
|
|
</div>
|
|
</div>
|
|
<div class="partTitle ppsj">
|
|
<div class="partTitle ppsj">
|
|
- <span class="orangeLine"></span>品牌商家<span class="more"
|
|
|
|
|
|
+ <span class="orangeLine"></span>品牌商家
|
|
|
|
+ <router-link to="/shops" class="more"
|
|
>more<i class="el-icon-d-arrow-right"></i
|
|
>more<i class="el-icon-d-arrow-right"></i
|
|
- ></span>
|
|
|
|
|
|
+ ></router-link>
|
|
</div>
|
|
</div>
|
|
<div class="ppsjList">
|
|
<div class="ppsjList">
|
|
- <div
|
|
|
|
|
|
+ <router-link
|
|
class="item"
|
|
class="item"
|
|
- v-for="({ defaultImgUrl, primaryBusiness, companyName },
|
|
|
|
|
|
+ v-for="({ defaultImgUrl, primaryBusiness, companyName, id },
|
|
index) in shops"
|
|
index) in shops"
|
|
:key="`ppsjList${index}`"
|
|
:key="`ppsjList${index}`"
|
|
|
|
+ :to="`/shop/${id}`"
|
|
>
|
|
>
|
|
<div class="imgDiv2">
|
|
<div class="imgDiv2">
|
|
<img :src="`${$basePath}${defaultImgUrl}`" alt />
|
|
<img :src="`${$basePath}${defaultImgUrl}`" alt />
|
|
</div>
|
|
</div>
|
|
<div class="name">{{ companyName }}</div>
|
|
<div class="name">{{ companyName }}</div>
|
|
<div class="company">主营商品:{{ primaryBusiness }}</div>
|
|
<div class="company">主营商品:{{ primaryBusiness }}</div>
|
|
- </div>
|
|
|
|
|
|
+ </router-link>
|
|
</div>
|
|
</div>
|
|
<div class="partTitle"><span class="orangeLine"></span>需求供应</div>
|
|
<div class="partTitle"><span class="orangeLine"></span>需求供应</div>
|
|
- <el-row :gutter="20" class="xqgy">
|
|
|
|
- <el-col :span="4">
|
|
|
|
- <category />
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="10" v-for="(info, index) in infos" :key="`info${index}`">
|
|
|
|
- <div class="xqDiv">
|
|
|
|
|
|
+ <div class="xqgy">
|
|
|
|
+ <template v-for="(info, index) in infos">
|
|
|
|
+ <div :key="`info${index}`" class="xqDiv">
|
|
<div class="xqTitle">
|
|
<div class="xqTitle">
|
|
<img
|
|
<img
|
|
:src="
|
|
:src="
|
|
@@ -139,7 +138,7 @@
|
|
"
|
|
"
|
|
alt
|
|
alt
|
|
/>{{ index ? "供应商" : "需求" }}
|
|
/>{{ index ? "供应商" : "需求" }}
|
|
- <router-link :to="`/info?active=${index ? 'supply' : 'demand'}`">
|
|
|
|
|
|
+ <router-link :to="`/info/${index}`">
|
|
<span class="more"
|
|
<span class="more"
|
|
>more<i class="el-icon-d-arrow-right"></i
|
|
>more<i class="el-icon-d-arrow-right"></i
|
|
></span>
|
|
></span>
|
|
@@ -147,7 +146,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<router-link
|
|
<router-link
|
|
- :to="`/info/buyDetail?id=${item.id}`"
|
|
|
|
|
|
+ :to="`/info/${index ? 'sell' : 'buy'}/${item.id}`"
|
|
v-for="item in info"
|
|
v-for="item in info"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
>
|
|
>
|
|
@@ -163,8 +162,9 @@
|
|
</div>
|
|
</div>
|
|
</router-link>
|
|
</router-link>
|
|
</div>
|
|
</div>
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
|
|
+ <div class="t" :key="`info-t${index}`" v-if="index === 0"></div>
|
|
|
|
+ </template>
|
|
|
|
+ </div>
|
|
<!-- 广告位 -->
|
|
<!-- 广告位 -->
|
|
<div class=" mt2rem">
|
|
<div class=" mt2rem">
|
|
<img src="@assets/home_ggw2.png" alt />
|
|
<img src="@assets/home_ggw2.png" alt />
|
|
@@ -185,20 +185,19 @@
|
|
</router-link>
|
|
</router-link>
|
|
</div>
|
|
</div>
|
|
<div class="hyzxDiv" v-if="item">
|
|
<div class="hyzxDiv" v-if="item">
|
|
- <router-link :to="`/newsDetail/${item.noticeId}`">
|
|
|
|
- <div class="topDiv">
|
|
|
|
- <div class="leftDiv">
|
|
|
|
- <div>
|
|
|
|
- <img :src="`${$basePath}${item.fmzFileUrl}`" alt />
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="rightDiv">
|
|
|
|
- <div class="title">{{ item.noticeTitle }}</div>
|
|
|
|
- <div class="content" v-html="item.noticeContent"></div>
|
|
|
|
- <div class="date">
|
|
|
|
- {{ `${item.createTime}`.split(" ")[0] }}
|
|
|
|
- </div>
|
|
|
|
|
|
+ <router-link
|
|
|
|
+ :to="`/newsDetail/${item.noticeId}`"
|
|
|
|
+ class="noticeDetails"
|
|
|
|
+ >
|
|
|
|
+ <div class="img">
|
|
|
|
+ <img :src="`${$basePath}${item.fmzFileUrl}`" alt />
|
|
|
|
+ </div>
|
|
|
|
+ <div class="content">
|
|
|
|
+ <div class="tit">{{ item.noticeTitle }}</div>
|
|
|
|
+ <div class="desc">
|
|
|
|
+ {{ item.noticeOutline }}
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="date">{{ `${item.createTime}`.split(" ")[0] }}</div>
|
|
</div>
|
|
</div>
|
|
</router-link>
|
|
</router-link>
|
|
<ul class="bottomUl">
|
|
<ul class="bottomUl">
|
|
@@ -450,17 +449,29 @@ export default class extends Vue {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.xqgy {
|
|
.xqgy {
|
|
- height: 39rem;
|
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- > div {
|
|
|
|
- height: 100%;
|
|
|
|
|
|
+ // height: 430px;
|
|
|
|
+ background: #fff;
|
|
|
|
+ position: relative;
|
|
|
|
+ .t {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 560px;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ width: 20px;
|
|
|
|
+
|
|
|
|
+ background: #f5f5f5;
|
|
}
|
|
}
|
|
.xqDiv {
|
|
.xqDiv {
|
|
|
|
+ float: left;
|
|
|
|
+ width: 560px;
|
|
height: 100%;
|
|
height: 100%;
|
|
-
|
|
|
|
- background: #fff;
|
|
|
|
- padding: 2rem;
|
|
|
|
|
|
+ margin-left: 20px;
|
|
|
|
+ padding: 20px;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
+ &:first-child {
|
|
|
|
+ margin-left: 0;
|
|
|
|
+ }
|
|
.xqTitle {
|
|
.xqTitle {
|
|
height: 3rem;
|
|
height: 3rem;
|
|
line-height: 3rem;
|
|
line-height: 3rem;
|
|
@@ -509,49 +520,49 @@ export default class extends Vue {
|
|
padding: 1.6rem;
|
|
padding: 1.6rem;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
margin-bottom: 4rem;
|
|
margin-bottom: 4rem;
|
|
- .topDiv {
|
|
|
|
- width: 100%;
|
|
|
|
- display: table;
|
|
|
|
- border: 0.1rem solid #e5e5e5;
|
|
|
|
- .leftDiv {
|
|
|
|
- display: table-cell;
|
|
|
|
- width: 30%;
|
|
|
|
- text-align: center;
|
|
|
|
- vertical-align: top;
|
|
|
|
- div {
|
|
|
|
|
|
+ .noticeDetails {
|
|
|
|
+ height: 100px;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ .img {
|
|
|
|
+ border: 1px solid #e5e5e5;
|
|
|
|
+ width: 120px;
|
|
|
|
+ float: left;
|
|
|
|
+ height: 100%;
|
|
|
|
+ position: relative;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ img {
|
|
width: 80%;
|
|
width: 80%;
|
|
- display: inline-block;
|
|
|
|
- border: 0.1rem solid #e5e5e5;
|
|
|
|
- line-height: 0;
|
|
|
|
- img {
|
|
|
|
- width: 100%;
|
|
|
|
- }
|
|
|
|
|
|
+ max-height: 100%;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 50%;
|
|
|
|
+ left: 50%;
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .rightDiv {
|
|
|
|
- display: table-cell;
|
|
|
|
- width: 70%;
|
|
|
|
- padding-left: 1rem;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- vertical-align: top;
|
|
|
|
- .title {
|
|
|
|
|
|
+ .content {
|
|
|
|
+ float: left;
|
|
|
|
+ margin-left: 20px;
|
|
|
|
+ width: 388px;
|
|
|
|
+ .tit {
|
|
font-size: 1.6rem;
|
|
font-size: 1.6rem;
|
|
color: #333;
|
|
color: #333;
|
|
- height: 3rem;
|
|
|
|
- line-height: 3rem;
|
|
|
|
- overflow: hidden;
|
|
|
|
}
|
|
}
|
|
- .content {
|
|
|
|
- height: 5rem;
|
|
|
|
- line-height: 2.5rem;
|
|
|
|
|
|
+ .desc {
|
|
|
|
+ margin-top: 5px;
|
|
font-size: 1.2rem;
|
|
font-size: 1.2rem;
|
|
color: #666;
|
|
color: #666;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ display: -webkit-box;
|
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
|
+ -webkit-box-orient: vertical;
|
|
}
|
|
}
|
|
.date {
|
|
.date {
|
|
- font-size: 1.2rem;
|
|
|
|
|
|
+ font-size: 12px;
|
|
color: #666;
|
|
color: #666;
|
|
- line-height: 2.4rem;
|
|
|
|
|
|
+ margin-top: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|