!function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function t(t){for(var i=1;i0&&(i=e.list[0],e.selectItem=i),document.addEventListener("scroll",e.scrollInit,!1),t.next=13;break;case 11:t.prev=11,t.t0=t.catch(0);case 13:case"end":return t.stop()}}),t,null,[[0,11]])})))()},unmounted:function(){this.background="#fff",this.color="#333",w({api:"backIconChange",content:{iconStyle:"black"}}),document.removeEventListener("scroll",this.scrollInit)},methods:{scrollInit:function(){P().y.value>30?(this.background="#fff",this.color="#333",w({api:"backIconChange",content:{iconStyle:"black"}})):(this.background="transparent",this.color="#fff",w({api:"backIconChange",content:{iconStyle:"white"}}))},_init:function(){var e=this;return n(regeneratorRuntime.mark((function t(){var r,i,n,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,A.get("/api-teacher/courseSchedule/selectRemainTime");case 3:r=t.sent,i=r.data||{},n=i.frozenTime,s=i.remainTime,c=i.studentCount,e.remain={frozenTime:n||0,remainTime:s||0,studentCount:c||0},t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])})))()},onSubmit:function(){var e=this;return n(regeneratorRuntime.mark((function r(){var i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:i=e.selectItem,C.orderObject.orderType="PIANO_ROOM",C.orderObject.orderName=i.times+"分钟琴房时长充值",C.orderObject.orderDesc=i.times+"分钟琴房时长充值",C.orderObject.actualPrice=i.salePrice,C.orderObject.orderNo="",C.orderObject.orderList=[t({orderType:"PIANO_ROOM",goodsName:i.times+"分钟琴房时长充值"},i)],e.$router.push({path:"/orderDetail",query:{orderType:"PIANO_ROOM",pinaoId:i.id}});case 8:case"end":return r.stop()}}),r)})))()}},render:function(){var e=this;return z("div",{class:R.accountRechargeTimer},[z(I,{backIconColor:"white",border:!1,background:this.background,color:this.color},null),z("div",{class:R.userMins},[z("p",{class:R.userLastMins},[k(this.remain.remainTime),z("span",null,[O("分钟")])]),z("p",{class:R.userTips},[z("img",{src:F("icon_timers.png")},null),O("您的琴房剩余时长")])]),z("div",{class:R.selectTimers},[z("img",{src:F("title_timers.png"),class:R.selectTitle,alt:""},null),z("div",{class:R.lastMin},[z("img",{src:F("icon_music_account.png")},null),z("p",null,[this.selectItem.times&&z("b",null,[O("已选"),k(this.selectItem.times),O("分钟")])," ",this.selectItem.description])]),z("div",{class:R.memberItem},[z("div",{class:R["system-list"]},[this.list.map((function(t){return z("div",{class:[R["system-item"],t.id===e.selectItem.id&&R.active],style:{borderRadius:"11px"},onClick:function(){e.selectItem=t}},[z("p",{class:R.price},[z("span",null,[O("¥")]),t.salePrice]),z("del",{class:R.originalPrice},[O("¥"),t.originalPrice]),z("p",{class:R.title},[t.times,O("分钟")])])}))])])]),z("div",{class:R.reminder},[z("div",{class:R.h2},[z("img",{src:F("icon_tips.png")},null),z("span",null,[O("温馨提醒")])]),z("p",null,[O("1、云酷琴房时长按课程学生人数扣减,以45分钟1对2课程为例,课程结束后将消耗时长:2人*45分钟=90分钟;")]),z("p",null,[O("2、每节线上课平台赠送10分钟免费时长,分别为课前5分钟及课后5分钟,赠送时长不计算费用;")]),z("p",null,[O("3、课程消耗时长按排课人数计算,无论实际到课人数是否为排课人数,都会按照排课人数扣费;")]),z("p",null,[O("4、课程结束后费用立即结算;")]),z("p",null,[O("5、琴房时长不足时,您将无法排课,请确保琴房剩 余时长充足;")]),z("p",null,[O("6、琴房时长一经购买不予退费。")])]),z("div",{class:R.btnGroup},[z("div",{class:R.priceSection},[O("支付金额:"),z("div",{class:R.price},[z("span",{class:R.priceUnit},[O("¥")]),z("span",{class:R.priceNum},[this.selectItem.salePrice])])]),z(M,{color:"linear-gradient(360deg, #FF0909 0%, #FF4D4D 69%, #FF7B7B 100%)",round:!0,class:R.btn,onClick:this.onSubmit},{default:function(){return[O("立即支付")]}})])])}}))}}}))}();