|
@@ -124,6 +124,21 @@ export const formatOrderDetail = async (item: any, amount?: IAmount) => {
|
|
|
}
|
|
|
}
|
|
|
break
|
|
|
+ case 'ALBUM':
|
|
|
+ {
|
|
|
+ console.log(item)
|
|
|
+ try {
|
|
|
+ const res = await getAlbumDetail(item.bizId)
|
|
|
+ tempList = {
|
|
|
+ orderType: item.goodType,
|
|
|
+ goodName: item.goodName,
|
|
|
+ ...res
|
|
|
+ }
|
|
|
+ } catch (e: any) {
|
|
|
+ throw new Error(e.message)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ break
|
|
|
case 'ACTI_REGIST':
|
|
|
{
|
|
|
try {
|
|
@@ -209,6 +224,18 @@ export const getMusicActiveTrack = async (id: any) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+export const getAlbumDetail = async (id: any) => {
|
|
|
+ try {
|
|
|
+ const res = await request.post(`${apiSuffix}//music/album/detail`, {
|
|
|
+ data: { id }
|
|
|
+ })
|
|
|
+ return res.data
|
|
|
+ } catch {
|
|
|
+ throw new Error('获取专辑详情失败')
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
export const tradeOrder = (result: any, callBack?: any) => {
|
|
|
const {
|