- 在 goods API 中添加 artworkDetail函数,用于获取艺术品详情 - 在首页的 ItemList 组件中调用 artworkDetail 获取详情信息- 移除首页中未使用的 useRect 和 itemDetail 组件
23 lines
588 B
JavaScript
23 lines
588 B
JavaScript
import { getHttp } from '~/api/http.js'
|
|
|
|
export async function artworkList(data) {
|
|
const http = getHttp()
|
|
return await http('/api/v1/m/auction/default/artwork/list', {
|
|
method: 'POST',
|
|
body: data,
|
|
})
|
|
}
|
|
export async function defaultDetail(data) {
|
|
const http = getHttp()
|
|
return await http('/api/v1/m/auction/default/detail', {
|
|
method: 'POST',
|
|
body: data,
|
|
})
|
|
}
|
|
export async function artworkDetail(data) {
|
|
const http = getHttp()
|
|
return await http('/api/v1/m/artwork/detail', {
|
|
method: 'POST',
|
|
body: data,
|
|
})
|
|
} |