orderStatus-legacy.f44528f2.js 1.9 KB

1
  1. ;(function(){System.register(['./index-legacy.4b2d517a.js','./vendor-legacy.73abbe39.js'],function(exports){'use strict';var state,reactive;return{setters:[function(module){state=module.s;},function(module){reactive=module.a;}],execute:function execute(){var original=function original(){return{orderType:"",orderInfo:{orderNo:"",actualPrice:0,payStatus:true},orderObject:{orderNo:"",actualPrice:0,orderName:"",orderDesc:"",orderType:"",recomUserId:null,orderList:[],activityId:"",couponId:"",discountPrice:0}};};var orderStatus=exports('o',reactive(original()));var resestState=exports('r',function(){Object.assign(orderStatus,original());});var orderInfos=exports('a',function(){var orderList=orderStatus.orderObject.orderList||[];return orderList.map(function(item){var params={goodType:item.orderType,goodName:item.goodsName,recomUserId:item.recomUserId,bizContent:{}};if(item.orderType==="VIDEO"){params.bizContent={videoLessonGroupId:item.courseGroupId,payMoney:item.coursePrice||0};}else if(item.orderType==="LIVE"){params.bizContent={groupId:item.courseGroupId};}else if(item.orderType==="PRACTICE"){var tempTime=item.classTime||[];var classCourse=[];tempTime.forEach(function(time){classCourse.push({classDate:time.classDate,startTime:time.startTime,endTime:time.endTime});});params.bizContent={courseGroupName:item.courseGroupName,courseIntroduce:item.courseIntroduce,subjectId:item.subjectId,singleCourseMinutes:item.singleCourseMinutes,courseNum:item.courseNum,coursePrice:item.coursePrice,teacherId:item.teacherId,classTime:classCourse};}else if(item.orderType==="VIP"){params.bizContent=item.id;}else if(item.orderType==="MUSIC"){params.bizContent={musicSheetId:item.id,actualPrice:item.actualPrice||0,clientType:state.platformType};}else if(item.orderType==="PINAO_ROOM"){params.bizContent=item.id;}else if(item.orderType==="ACTI_REGIST"){params.bizContent={activityId:item.activityId};}return params;});});}};});})();