新增搜索出的产品列表

This commit is contained in:
clay
2022-12-25 16:49:38 +08:00
parent fd6f5b5390
commit d3c83c4c7d
8 changed files with 87 additions and 19 deletions

View File

@@ -196,10 +196,10 @@ const apiService = {
})
},
// 获取产品列表
getProducts(data) {
const url = `/home/product`
getProducts() {
const url = `/home/product?sortType=1&pageSize=4&pageNum=1`
return new Promise((resolve, reject) => {
resolve(service.get(url, data))
resolve(service.get(url))
})
},
// 获取产品详情
@@ -232,7 +232,7 @@ const apiService = {
},
// 获取认证厂家详情
getCertifiedCjDetail(id) {
const url = `/news/fdetail?fId=1`
const url = `/news/fdetail?fId=${id}`
return new Promise((resolve, reject) => {
resolve(service.get(url, id))
})