首页,企业需求接口重新对接

This commit is contained in:
”chenxuelian“
2023-05-07 16:51:30 +08:00
parent e81b87f827
commit 7b84933f91
2 changed files with 9 additions and 5 deletions

View File

@@ -65,14 +65,11 @@
methods: {
//获取按点赞量排列的产品列表
getProductsByThumb() {
this.$apiServe.getProductList({
cateId: 0,
tagIds: 0,
sortType: 1,
this.$apiServe.getProductsByCateId({
cateId: '9',
pageSize: this.pageSize,
pageNum: this.pageNum
}).then(res => {
let tags = res.data.data
console.log('企业需求列表', tags);
for (const item of tags) {

View File

@@ -361,6 +361,13 @@ const apiService = {
resolve(service.get(url, data))
})
},
// 获取首页分类
getProductsByCateId(data) {
const url = `/home/plist`
return new Promise((resolve, reject) => {
resolve(service.get(url, data))
})
},
// 搜索发现 热搜
getDiscover() {
const url = `/home/discover`