feat: 视频显示到列表

This commit is contained in:
2026-05-07 10:21:08 +08:00
parent c8a65ee2cb
commit 90a59a3dc5
6 changed files with 150 additions and 30 deletions

View File

@@ -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) {