1 |
- !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;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?e(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t,r,i,n,s,c){try{var o=e[s](c),a=o.value}catch(u){return void r(u)}o.done?t(a):Promise.resolve(a).then(i,n)}function n(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var c=e.apply(t,r);function o(e){i(c,n,s,o,a,"next",e)}function a(e){i(c,n,s,o,a,"throw",e)}o(void 0)}))}}var s=document.createElement("style");s.innerHTML='._accountRechargeTimer_1ujj6_1{min-height:100vh;overflow:hidden;background:url(./assets/paino_bg.e80620af.png) center top no-repeat;background-size:contain}._userMins_1ujj6_7{padding:.8rem .85333rem .74667rem;color:#fff;font-size:.37333rem}._userMins_1ujj6_7 ._userLastMins_1ujj6_12{font-size:.74667rem;font-weight:700;line-height:1.06667rem}._userMins_1ujj6_7 ._userLastMins_1ujj6_12 span{font-size:.37333rem;font-weight:400}._userMins_1ujj6_7 ._userTips_1ujj6_21{display:flex;align-items:center}._userMins_1ujj6_7 img{margin-right:.16rem;width:.37333rem;height:.37333rem}._selectTimers_1ujj6_30{border-radius:.45333rem .45333rem 0 0;background-color:#f7f8f9}._selectTimers_1ujj6_30 ._selectTitle_1ujj6_34{display:block;height:.72rem;padding:.32rem 0 0 .53333rem}._lastMin_1ujj6_39{display:flex;align-items:center;margin:.26667rem .37333rem 0;padding:.34667rem .37333rem;background:url(./assets/select_timers_bg.9b852a17.png) center top no-repeat #ffe7c4;background-size:cover;border-radius:.21333rem;font-size:.42667rem;color:#814014;line-height:.58667rem}._lastMin_1ujj6_39 span{font-weight:600}._lastMin_1ujj6_39 img{width:.64rem;height:.58667rem;margin-right:.21333rem}._memberItem_1ujj6_59{margin:.37333rem .37333rem 0}._memberItem_1ujj6_59 ._rTitle_1ujj6_62{padding:.37333rem 0;display:flex;align-items:center;font-size:.42667rem;color:#333;font-weight:500}._memberItem_1ujj6_59 ._rTitle_1ujj6_62:before{margin-right:.21333rem;content:" ";display:inline-block;width:.10667rem;height:.45333rem;background:linear-gradient(180deg,#59e5d5 0%,#2dc7aa 100%);border-radius:.08rem}._system-list_1ujj6_79::-webkit-scrollbar{display:none}._system-list_1ujj6_79{width:100%;overflow-x:auto;overflow-y:hidden;display:flex;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:content-box;padding-bottom:.26667rem;margin-bottom:.26667rem}._system-item_1ujj6_94{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1 0 auto;width:2.66667rem;min-height:3.09333rem;box-sizing:border-box;background:linear-gradient(215deg,#ffe7c4 0%,rgba(250,211,156,.21) 100%);border-radius:.26667rem;border:.02667rem solid #b1652e;margin-right:.21333rem}._system-item_1ujj6_94 ._title_1ujj6_108{font-size:.42667rem;font-weight:500;color:#666;line-height:.58667rem}._system-item_1ujj6_94 ._tips_1ujj6_114{font-size:.32rem;color:#666;line-height:.45333rem}._system-item_1ujj6_94 ._price_1ujj6_119{padding-top:.26667rem;font-size:.64rem;font-weight:500;color:#dc9362;line-height:.58667rem}._system-item_1ujj6_94 ._price_1ujj6_119 span{font-size:.42667rem}._system-item_1ujj6_94 ._originalPrice_1ujj6_129{color:#999;font-size:.34667rem;line-height:1}._system-item_1ujj6_94._active_1ujj6_134{background:linear-gradient(215deg,#ffe7c4 0%,rgba(250,211,156,.21) 100%);border:.02667rem solid #b1652e;position:relative}._system-item_1ujj6_94._active_1ujj6_134 ._title_1ujj6_108,._system-item_1ujj6_94._active_1ujj6_134 ._tips_1ujj6_114{color:#814014}._system-item_1ujj6_94._active_1ujj6_134 ._price_1ujj6_119{color:#b1652e}._system-item_1ujj6_94._active_1ujj6_134 ._originalPrice_1ujj6_129{color:#937059}._system-item_1ujj6_94._active_1ujj6_134:before{content:" ";background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAAsCAYAAAC9rDzHAAAAAXNSR0IArs4c6QAACr9JREFUeNrtnOtvW+Udx6tpb/Z6L/cP7M1abWMUGIwyGGOANA2J+0BIoxcovdJSBAM6bimrQK16A0ILlEHFwkrq2I7tXJybY8eOE19ysX3s41uc2HGc+Jo41+9+z+PkJGmgjS+pasmP9FXkc05Ojp9Pfncnm65s34yKbqiypCjJRqqR7djyau2OzVuPHt30k02FrMqG3hyq3b45KHv+V1V1u7b8ogKw3C30+c1nLz/7y59XAJa3onU7tzxeAVj+Oqc9uu2nFYDlrB1b5J0Hbv9ZBWCZQ/xBS6xsTnm50wrAMteaxKayKeWXna4qMcrlwWW7fgPdh9t/9Lz2X49C+/ajkO38NX/ddWY/Ym4LV90Lt2zos9UfeRC6z4/DZuiGSxyHGJqBNzgFtzuKfr0RhosnoDrycOl+JtWJJQcY0MsQNCiKVut7T611Gy/eghFrCxYWFtD/v5M/+PPHRTvYinms/LXlq3ewtOS7b90QcMrDD8CsksMzPE9agDs0B8/QLDzBGYjBLMRAFr7AFPyBSQT8Kdg1CgL5YEmKfaljU6o3Mz83i1Is47mDa+6tevkexINO6Rp3w1erzje98Vfp3OCVMzcEoPbkIQgEx03whKE5CMFZCP4ZCL4sBC8dFzPwiGmIYgo+MQm/mECQSYhAd+pI8R6J2m4lBTg6YEDUYSxIE77+awJkUuz9PaLObuk6l/Iz6Zyg/lI6vrAwj4X5eW6t0rH5+VXyNH5d1HvVkUt0D89xcK7ALFy+aTjFLJyeSTjdGbiENARXEm5nAh7nBLzOcfhJQVcMISGGEc8Y9GffKLp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3H6Ovj/HXLDYyN8quM549UBDEjnf/gVhHL8Zbuzm4iUY94o06JBo6kCSlKL6lCVqGSogcuKZlcHUKzJBm5UrMKevRdfTpovd8ExsKsuFgKQDavz1ekqn8VHyUTxqkFF77rfSLYTi1J2eRRx9ZFfvyXStLjbyb5ydeQZySkniznsDpkNK0IUWxLU3KqLQ5V8ksTpkDN1NXjxkZgZPJMVcnx7xcDvsHu0tiNHwqz8bzpbLC7uojPI2P9OkQ6e/MSyMWLRx1H/OscuU9O0/sWsxM5Wum9AOXT/JJfTYZo2n73LoB5puFrmluv/0c4hptzuIYvPpmZAjaJMW3ZYtT5sBdqcMcaV5Wh9nay+h688mS1cUcIPuATCnrwY1QGw1hVYfuvf6M8KWtUO67E/UH7uZJjorGTOrD9/H6cqVYvC32mVT77oZQ/W9ylc05V8ksTqGmGFefc5XM4hi4KzLSFfjPHIV6z10l3ZflT6fRR9Uqn7kssPlAIC3kEkNfnEbqcg3BI0uTyZCpuYTIhROwvr8TmiKTlesCZB8WLWVRX9GN0dWf0n6isillDHAR4rnKxpQxQPYnTOxPmSqbU6YA2WJ/TFiBWMYAJUusuNPyBXhVYlPJTssVoFRi7OB1YrayaWUIcGmxjg1ru5Wqd1rRDQa4tHgDnKYY/N9Ebd/83eJQOFqx0Buv/wMoP/kCpx4+0gAAAABJRU5ErkJggg==) center center no-repeat;background-size:cover;width:1.49333rem;height:.58667rem;position:absolute;top:0;right:0}._reminder_1ujj6_159{margin:0 .37333rem 2.13333rem;padding:.32rem;background:#ffffff;border-radius:.26667rem}._reminder_1ujj6_159 ._h2_1ujj6_166{display:flex;font-size:.42667rem;font-weight:500;color:#1a1a1a;line-height:.58667rem;padding-bottom:.26667rem}._reminder_1ujj6_159 ._h2_1ujj6_166 img{width:.37333rem;height:.42667rem;margin-top:.05333rem;margin-right:.18667rem}._reminder_1ujj6_159 p{font-size:.37333rem;color:#696969;line-height:.56rem;margin-bottom:.53333rem}._reminder_1ujj6_159 p:last-child{margin-bottom:0}._btnGroup_1ujj6_189{position:fixed;bottom:0;left:0;right:0;z-index:100;background-color:#fff;display:flex;align-items:center;padding:.32rem .42667rem;justify-content:space-between;border-top:.02667rem solid #f0f0f0}._btnGroup_1ujj6_189 ._btn_1ujj6_189{padding:0 .74667rem;color:#fff!important}._btnGroup_1ujj6_189 ._priceSection_1ujj6_206{display:flex;align-items:center;font-size:.42667rem;color:#1a1a1a}._btnGroup_1ujj6_189 ._priceSection_1ujj6_206 ._price_1ujj6_119{font-size:.48rem;font-weight:700;color:#ff3535}._btnGroup_1ujj6_189 ._priceSection_1ujj6_206 ._price_1ujj6_119 ._priceUnit_1ujj6_217{font-size:.37333rem}\n',document.head.appendChild(s),System.register(["./title_timers-legacy.563f8ecd.js","./icon_name_active-legacy.98cddefe.js","./icon_tips-legacy.1911ff27.js","./index-legacy.78c8492b.js","./index-legacy.f8641610.js","./orderStatus-legacy.43d498d4.js","./index-legacy.a9cc406e.js","./index-legacy.90f7f902.js","./use-height-legacy.be763bb2.js"],(function(e){"use strict";var r,i,s,c,o,a,u,m,l,_,j,g,d,p,f,b,h,y,v,T,x,A,w,k,z,O,M,I,C,P;return{setters:[function(e){r=e._,i=e.a,s=e.b,c=e.c,o=e.d,a=e.e,u=e.f,m=e.g,l=e.h,_=e.i,j=e.j,g=e.k,d=e.m,p=e.n,f=e.o,b=e.p},function(e){h=e._,y=e.a,v=e.b},function(e){T=e._},function(e){x=e.C},function(e){A=e.d,w=e.e,k=e.p,z=e.i,O=e.bE,M=e.A,I=e.B},function(e){C=e.o},function(e){P=e.a},function(){},function(){}],execute:function(){var R={accountRechargeTimer:"_accountRechargeTimer_1ujj6_1",userMins:"_userMins_1ujj6_7",userLastMins:"_userLastMins_1ujj6_12",userTips:"_userTips_1ujj6_21",selectTimers:"_selectTimers_1ujj6_30",selectTitle:"_selectTitle_1ujj6_34",lastMin:"_lastMin_1ujj6_39",memberItem:"_memberItem_1ujj6_59",rTitle:"_rTitle_1ujj6_62","system-list":"_system-list_1ujj6_79","system-item":"_system-item_1ujj6_94",title:"_title_1ujj6_108",tips:"_tips_1ujj6_114",price:"_price_1ujj6_119",originalPrice:"_originalPrice_1ujj6_129",active:"_active_1ujj6_134",reminder:"_reminder_1ujj6_159",h2:"_h2_1ujj6_166",btnGroup:"_btnGroup_1ujj6_189",btn:"_btn_1ujj6_189",priceSection:"_priceSection_1ujj6_206",priceUnit:"_priceUnit_1ujj6_217"},F=e("getAssetsHomeFile",(function(e){var t="../images/".concat(e);return{"../images/icon_arrow.png":r,"../images/icon_class_plan.png":i,"../images/icon_education.png":h,"../images/icon_education_active.png":y,"../images/icon_freeze_timer.png":s,"../images/icon_invite_student.png":c,"../images/icon_last_timer.png":o,"../images/icon_message.png":a,"../images/icon_music_account.png":u,"../images/icon_name_active.png":v,"../images/icon_num.png":m,"../images/icon_timers.png":l,"../images/icon_tips.png":T,"../images/logo.png":_,"../images/paino_bg.png":j,"../images/room_bg.png":g,"../images/select_timers.png":d,"../images/select_timers_bg.png":p,"../images/share_bg.png":f,"../images/title_timers.png":b}[t].default}));e("default",A({name:"accountRechargeTimer",data:function(){return{list:[],selectItem:{},remain:{frozenTime:0,remainTime:0,studentCount:0},background:"transparent",color:"#fff"}},mounted:function(){var e=this;return n(regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._init();case 3:return t.next=5,w.post("/api-teacher/pianoRoomSettings/list",{data:{}});case 5:r=t.sent,e.list=r.data||[],e.list.length>0&&(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",k({api:"backIconChange",content:{iconStyle:"black"}}),document.removeEventListener("scroll",this.scrollInit)},methods:{scrollInit:function(){P().y.value>30?(this.background="#fff",this.color="#333",k({api:"backIconChange",content:{iconStyle:"black"}})):(this.background="transparent",this.color="#fff",k({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,w.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(x,{backIconColor:"white",border:!1,background:this.background,color:this.color},null),z("div",{class:R.userMins},[z("p",{class:R.userLastMins},[O(this.remain.remainTime),z("span",null,[M("分钟")])]),z("p",{class:R.userTips},[z("img",{src:F("icon_timers.png")},null),M("您的琴房剩余时长")])]),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,[M("已选"),O(this.selectItem.times),M("分钟")])," ",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,[M("¥")]),t.salePrice]),z("del",{class:R.originalPrice},[M("¥"),t.originalPrice]),z("p",{class:R.title},[t.times,M("分钟")])])}))])])]),z("div",{class:R.reminder},[z("div",{class:R.h2},[z("img",{src:F("icon_tips.png")},null),z("span",null,[M("温馨提醒")])]),z("p",null,[M("1、云酷琴房时长按课程学生人数扣减,以45分钟1对2课程为例,课程结束后将消耗时长:2人*45分钟=90分钟;")]),z("p",null,[M("2、每节线上课平台赠送10分钟免费时长,分别为课前5分钟及课后5分钟,赠送时长不计算费用;")]),z("p",null,[M("3、课程消耗时长按排课人数计算,无论实际到课人数是否为排课人数,都会按照排课人数扣费;")]),z("p",null,[M("4、课程结束后费用立即结算;")]),z("p",null,[M("5、琴房时长不足时,您将无法排课,请确保琴房剩 余时长充足;")]),z("p",null,[M("6、琴房时长一经购买不予退费。")])]),z("div",{class:R.btnGroup},[z("div",{class:R.priceSection},[M("支付金额:"),z("div",{class:R.price},[z("span",{class:R.priceUnit},[M("¥")]),z("span",{class:R.priceNum},[this.selectItem.salePrice])])]),z(I,{color:"linear-gradient(360deg, #FF0909 0%, #FF4D4D 69%, #FF7B7B 100%)",round:!0,class:R.btn,onClick:this.onSubmit},{default:function(){return[M("立即支付")]}})])])}}))}}}))}();
|