feat: 视频显示到列表
This commit is contained in:
@@ -1,20 +1,14 @@
|
||||
import { Https } from "@/tool/https"
|
||||
import type { SketchDetailResponse } from "./types"
|
||||
|
||||
// 编辑时根据ID获取信息
|
||||
export const fetchListingDetailById = (id) => {
|
||||
return Https.axiosGet("/seller/listing/detail", { params: { id } })
|
||||
}
|
||||
|
||||
interface SketchIDs {
|
||||
designItemIds: Array
|
||||
}
|
||||
interface DetailReturns {
|
||||
clothes: string[]
|
||||
designItemId: number
|
||||
toProductImageUrls: string[]
|
||||
}
|
||||
type SketchIDs = Array<number | string>
|
||||
// 获取designItemId对应的产品图
|
||||
export const fetchSketchDetail = (data: SketchIDs): Array<DetailReturns> => {
|
||||
export const fetchSketchDetail = (data: SketchIDs): Promise<SketchDetailResponse[]> => {
|
||||
let params = "?"
|
||||
data.forEach((id, index) => {
|
||||
if (index === data.length - 1) {
|
||||
|
||||
Reference in New Issue
Block a user