Commit 820e833d authored by zhanglw's avatar zhanglw

首页供应商

parent 1c27661d
......@@ -427,6 +427,13 @@ export const HttpReq = {
method: 'get'
})
},
// 首页-供应商板块
homePageGetSupplier: function(params) {
return request({
url: '/api/bsw/bigScreen/index/supplier?' + qs.stringify(params, { indices: false }),
method: 'get'
})
},
id: null
}
}
......
......@@ -95,7 +95,7 @@
<img src="@/assets/home_images/locate.png">
</el-col>
<el-col :span="13">
<div class="area">{{ item.area }}</div>
<div class="area">{{ dict.label.area_province[item.area] }}</div>
</el-col>
<el-col :span="8">
<div class="date">{{ item.date }}</div>
......@@ -271,96 +271,7 @@ export default {
imgSrcList: []
}
],
showcaseSuppliers: [
{
isGood: true,
isHot: false,
isStore: false,
title: '中山市三角镇凌创传感器厂',
subTitle: '021-12568***',
area: '天津',
date: '2023-06-12',
imgSrc: '',
imgSrcList: []
},
{
isGood: true,
isHot: true,
isStore: true,
title: '中山市三角镇凌创传感器厂',
subTitle: '021-12568***',
area: '天津',
date: '2023-06-12',
imgSrc: '',
imgSrcList: []
},
{
isGood: false,
isHot: true,
isStore: false,
title: '中山市三角镇凌创传感器厂',
subTitle: '021-12568***',
area: '天津',
date: '2023-06-12',
imgSrc: '',
imgSrcList: []
},
{
isGood: false,
isHot: false,
isStore: true,
title: '中山市三角镇凌创传感器厂',
subTitle: '021-12568***',
area: '天津',
date: '2023-06-12',
imgSrc: '',
imgSrcList: []
},
{
isGood: false,
isHot: true,
isStore: false,
title: '中山市三角镇凌创传感器厂',
subTitle: '021-12568***',
area: '天津',
date: '2023-06-12',
imgSrc: '',
imgSrcList: []
},
{
isGood: false,
isHot: false,
isStore: false,
title: '中山市三角镇凌创传感器厂',
subTitle: '021-12568***',
area: '天津',
date: '2023-06-12',
imgSrc: '',
imgSrcList: []
},
{
isGood: true,
isHot: false,
isStore: false,
title: '中山市三角镇凌创传感器厂',
subTitle: '021-12568***',
area: '天津',
date: '2023-06-12',
imgSrc: '',
imgSrcList: []
},
{
isGood: false,
isHot: false,
isStore: false,
title: '中山市三角镇凌创传感器厂',
subTitle: '021-12568***',
area: '天津',
date: '2023-06-12',
imgSrc: '',
imgSrcList: []
}
],
showcaseSuppliers: [],
topAreas: [],
topSuppliers: [],
topProducts: [],
......@@ -382,6 +293,11 @@ export default {
}).then((res) => {
this.partners = res.data.partners
})
HttpReq.webClientApi.homePageGetSupplier({
preview: false
}).then((res) => {
this.showcaseSuppliers = res.data.showcaseSuppliers
})
const random = (min, max) => {
return Math.floor(Math.random() * (max - min)) + min
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment