1 |
- import{s as a}from"./index.f45ba589.js";import{a as n}from"./vendor.2bcdc9cf.js";const c=()=>({orderType:"",orderInfo:{orderNo:"",actualPrice:0,payStatus:!0},orderObject:{orderNo:"",actualPrice:0,orderName:"",orderDesc:"",orderType:"",recomUserId:null,orderList:[],activityId:"",couponId:"",discountPrice:0}}),d=n(c()),I=()=>{Object.assign(d,c())},T=()=>(d.orderObject.orderList||[]).map(e=>{const r={goodType:e.orderType,goodName:e.goodsName,recomUserId:e.recomUserId,bizContent:{}};if(e.orderType==="VIDEO")r.bizContent={videoLessonGroupId:e.courseGroupId,payMoney:e.coursePrice||0};else if(e.orderType==="LIVE")r.bizContent={groupId:e.courseGroupId};else if(e.orderType==="PRACTICE"){const t=e.classTime||[],s=[];t.forEach(o=>{s.push({classDate:o.classDate,startTime:o.startTime,endTime:o.endTime})}),r.bizContent={courseGroupName:e.courseGroupName,courseIntroduce:e.courseIntroduce,subjectId:e.subjectId,singleCourseMinutes:e.singleCourseMinutes,courseNum:e.courseNum,coursePrice:e.coursePrice,teacherId:e.teacherId,classTime:s}}else e.orderType==="VIP"?r.bizContent=e.id:e.orderType==="MUSIC"?r.bizContent={musicSheetId:e.id,actualPrice:e.actualPrice||0,clientType:a.platformType}:e.orderType==="PINAO_ROOM"?r.bizContent=e.id:e.orderType==="ACTI_REGIST"&&(r.bizContent={activityId:e.activityId});return r});export{T as a,d as o,I as r};
|