|
@@ -70,6 +70,20 @@ export const formatOrderDetail = async (item: any, amount?: IAmount) => {
|
|
|
}
|
|
|
}
|
|
|
break
|
|
|
+ case 'ALBUM':
|
|
|
+ {
|
|
|
+ try {
|
|
|
+ const res = await getAlbumDetail(item.bizId)
|
|
|
+ tempList = {
|
|
|
+ orderType: item.goodType,
|
|
|
+ goodName: item.goodName,
|
|
|
+ ...res
|
|
|
+ }
|
|
|
+ } catch (e: any) {
|
|
|
+ throw new Error(e.message)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break
|
|
|
}
|
|
|
tempList.orderType = type
|
|
|
tempList.goodName = item.goodName
|
|
@@ -106,6 +120,18 @@ export const getMusicDetail = async (id: any) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// 获取专辑详情
|
|
|
+export const getAlbumDetail = async (id: any) => {
|
|
|
+ try {
|
|
|
+ const res = await request.post(`/api-teacher/music/album/detail`, {
|
|
|
+ data: { id }
|
|
|
+ })
|
|
|
+ return res.data
|
|
|
+ } catch {
|
|
|
+ throw new Error('获取专辑详情失败')
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
export const tradeOrder = (result: any, callBack?: any) => {
|
|
|
const {
|
|
|
orderNo,
|