|  | @@ -11,7 +11,7 @@ const apiSuffix =
 | 
	
		
			
				|  |  |  // VIDEO: '视频课',
 | 
	
		
			
				|  |  |  // VIP: '开通会员',
 | 
	
		
			
				|  |  |  // MUSIC: '单曲点播'
 | 
	
		
			
				|  |  | -export const formatOrderDetail = async (item: any) => {
 | 
	
		
			
				|  |  | +export const formatOrderDetail = async (item: any, couponAmount?: number) => {
 | 
	
		
			
				|  |  |    const type = item.goodType
 | 
	
		
			
				|  |  |    let tempList: any = {}
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -88,7 +88,10 @@ export const formatOrderDetail = async (item: any) => {
 | 
	
		
			
				|  |  |              goodName: item.goodName,
 | 
	
		
			
				|  |  |              id: item.id,
 | 
	
		
			
				|  |  |              title: memberType[res.period] || '',
 | 
	
		
			
				|  |  | -            price: res.salePrice || item.actualPrice,
 | 
	
		
			
				|  |  | +            // 判断是否有优惠金额
 | 
	
		
			
				|  |  | +            price: couponAmount
 | 
	
		
			
				|  |  | +              ? Number((res.salePrice - couponAmount).toFixed(2))
 | 
	
		
			
				|  |  | +              : res.salePrice || item.actualPrice,
 | 
	
		
			
				|  |  |              startTime: dayjs(res.startTime).format('YYYY-MM-DD'),
 | 
	
		
			
				|  |  |              endTime: dayjs(res.endTime).format('YYYY-MM-DD')
 | 
	
		
			
				|  |  |            }
 | 
	
	
		
			
				|  | @@ -204,7 +207,8 @@ export const tradeOrder = (result: any, callBack?: any) => {
 | 
	
		
			
				|  |  |      orderDesc,
 | 
	
		
			
				|  |  |      orderName,
 | 
	
		
			
				|  |  |      orderType,
 | 
	
		
			
				|  |  | -    orderDetailList
 | 
	
		
			
				|  |  | +    orderDetailList,
 | 
	
		
			
				|  |  | +    couponAmount // 优惠金额
 | 
	
		
			
				|  |  |    } = result
 | 
	
		
			
				|  |  |    orderStatus.orderObject.orderType = orderType
 | 
	
		
			
				|  |  |    orderStatus.orderObject.orderName = orderName
 | 
	
	
		
			
				|  | @@ -215,7 +219,7 @@ export const tradeOrder = (result: any, callBack?: any) => {
 | 
	
		
			
				|  |  |    orderStatus.orderObject.orderList = []
 | 
	
		
			
				|  |  |    try {
 | 
	
		
			
				|  |  |      orderDetailList.forEach(async (item: any) => {
 | 
	
		
			
				|  |  | -      await formatOrderDetail(item)
 | 
	
		
			
				|  |  | +      await formatOrderDetail(item, couponAmount)
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  |      callBack && callBack()
 | 
	
		
			
				|  |  |    } catch {
 |