!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r0&&1===o.pageNo)){e.next=13;break}return e.abrupt("return");case 13:O.list=O.list.concat(o.rows||[]),N.page=o.pageNo+1,O.loading=!1,O.finished=o.pageNo>=o.totalPage,N.page=o.pageNo+1,e.next=23;break;case 20:e.prev=20,e.t0=e.catch(6),O.isError=!0;case 23:O.loading=!1;case 24:case"end":return e.stop()}}),e,null,[[6,20]])})));return function(){return e.apply(this,arguments)}}();l(o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(document,"scroll",(function(e){x().y.value>20?(T.value="rgba(255, 255, 255)",M.value="black",u({api:"backIconChange",content:{iconStyle:"black"}})):(T.value="transparent",M.value="#fff",u({api:"backIconChange",content:{iconStyle:"white"}}))})),e.next=3,L();case 3:return e.next=5,D();case 5:case"end":return e.stop()}}),e)}))));var H=function(){var e=o(regeneratorRuntime.mark((function e(){var n,r,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=O.selectMember,r=O.details,z.orderObject.orderType="TENANT_ALBUM",z.orderObject.orderName=r.name,z.orderObject.orderDesc=r.name,z.orderObject.actualPrice=n.salePrice,z.orderObject.orderNo="",z.orderObject.orderList=[t(t({orderType:"TENANT_ALBUM",goodsName:r.name,actualPrice:n.salePrice,price:n.salePrice},r),n)],e.next=10,f.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"TENANT_ALBUM",bizId:r.id}});case 10:i=e.sent,(a=i.data)?(O.popupStatus=!1,g.confirm({title:"提示",message:"您有一个未支付的订单,是否继续支付?",confirmButtonColor:"#269a93",cancelButtonText:"取消订单",confirmButtonText:"继续支付"}).then(o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:z.orderObject.orderNo=a.orderNo,z.orderObject.actualPrice=a.actualPrice,z.orderObject.discountPrice=a.discountPrice,z.orderObject.paymentConfig=a.paymentConfig,I();case 5:case"end":return e.stop()}}),e)})))).catch((function(){g.close(),G(a.orderNo)}))):I();case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=O.details;n.push({path:"/orderDetail",query:{orderType:"ALBUM",album:e.id}})},G=function(){var e=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.post("/api-student/userOrder/orderCancel/v2",{data:{orderNo:t}});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}();return function(){var e,t,r,o,i,a;return m("div",{class:E.trainTool},[m(C,{position:"top"},{default:function(){return[m(P,{background:T.value,border:!1,isFixed:!1,color:M.value,backIconColor:"white"},null)]}}),m("img",{class:E.bgImg,src:null===(e=O.details)||void 0===e?void 0:e.coverImg},null),m("div",{class:E.musicContent},null),m("div",{class:E.bg},[m("div",{class:E.alumWrap},[m("div",{class:E.img},[m(v,{class:E.image,width:"100%",height:"100%",fit:"cover",src:(null===(t=O.details)||void 0===t?void 0:t.coverImg)||S,errorIcon:S},null),m("span",{class:E.numContent},[m("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAYAAAD6S912AAAAAXNSR0IArs4c6QAAAU9JREFUSEvNlT8sBFEQh79ZHVGJ5E5EJLcqhU6nUEgkFFZzlYpGobhOIoJEIVFsp6ERhWhQnOQ6BYlEpxAFIkG4RJQnCrcjK/7d7e2623vEK9/7zW++l3kzTzC85MNP7ZEUyLTCIEoSoSEyl1JEuBfIgS7Jxe6lr38z1K7RIVVvC6QpHrAWRKy0nG/viU+mcBLf7POOBYEeUdtZVZiIR1YaJbAmnu3cAO0mDIFb8VLOS0kBLAGnH9pao3PcPcDOPnj6pVOKPuG3HWC4D3EzVQFrxoXsQYk2aNjbDRsLiGVFvxrPg7E5OD79wdA/7khAoiWaMv8I1/mAJkhY1WXDRX9g2JmE9XmkQpX16RlmViB7GIoYJEwPIIuToQGaO4Kp5RoMmxthdrzyO/QJ3U04u6rB8P8Vpbz16iF8bz2zw8H4+DI+YI1/Ab/ySdVT2PLYVxYzj1+d5XjBAAAAAElFTkSuQmCC",class:E.iconMenu},null),b("共"),null===(r=O.details)||void 0===r?void 0:r.musicNum,b("首")]),m("div",{class:E.iconPian},[m(v,{class:E.image,width:"100%",height:"100%",fit:"cover",src:null===(o=O.details)||void 0===o?void 0:o.coverImg},null)])]),m("div",{class:E.alumDes},[m("div",{class:[E.alumTitle,"van-ellipsis"]},[null===(i=O.details)||void 0===i?void 0:i.name]),m("div",{class:[E.des,"van-multi-ellipsis--l2"],style:{height:"32px",lineHeight:"16px"}},[null===(a=O.details)||void 0===a?void 0:a.describe])])])]),m("div",{class:E.musicList},[m(A,{color:"var(--van-primary)",background:"transparent",lineWidth:20,shrink:!0,active:O.activeTab,"onUpdate:active":function(e){return O.activeTab=e},onChange:function(e){O.activeTab=e,N.page=1,O.list=[],D()}},{default:function(){return[O.subjectCounts&&m(y,{title:"声部练习",name:"SUBJECT"},null),O.musicCounts&&m(y,{title:"合奏练习",name:"ENSEMBLE"},null),O.ensembleCounts&&m(y,{title:"独奏曲目",name:"MUSIC"},null)]}}),m("div",{class:E.alumnList},[m(j,{loading:O.loading,finished:O.finished,"finished-text":" ",onLoad:D,immediateCheck:!1,error:O.isError},{default:function(){return[O.list&&O.list.length?m(k,{showNumber:!0,list:O.list,onDetail:function(e){n.push({path:"/music-detail",query:{id:e.id}})}},null):!O.loading&&m(_,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})])]),!O.loading&&!O.details.ifBuy&&m(C,{position:"bottom"},{default:function(){return[m("div",{class:E.btnGroup},[m(d,{round:!0,block:!0,color:"#FE2451",onClick:function(){return O.popupStatus=!0}},{default:function(){return[b("购买教程")]}})])]}}),m(p,{show:O.popupStatus,"onUpdate:show":function(e){return O.popupStatus=e},position:"bottom",round:!0,zIndex:9999,"safe-area-inset-bottom":!0,closeable:!1,class:E.popupStatus,onClose:function(){return O.popupStatus=!1}},{default:function(){return[m("div",{class:E.bottom_function},[m("i",{class:E.iconClose,onClick:function(){return O.popupStatus=!1}},null),m("img",{src:"./assets/icon-right-top.1c7d1f37.png",class:E.iconRightTop},null),m("div",{class:E.memberMeal},[m("div",{class:E.titleMeal},[m("span",null,[b("请选择教程购买周期")])]),m("div",{class:E["system-list"]},[O.buyList.map((function(e){return m("div",{class:[E["system-item"],e.status&&E.active],onClick:function(){O.buyList.forEach((function(e){e.status=!1})),e.status=!0,O.selectMember=e}},[m("p",{class:E.title},[e.purchaseCycle,b("个月")]),m("p",{class:E.price},[m("span",null,[b("¥")]),h(e.salePrice,"0,0[.]00")]),m("del",{class:E.originalPrice},[b("¥"),h(e.costPrice,"0,0[.]00")])])}))])]),m("div",{class:E.btnGroup},[m(d,{round:!0,block:!0,class:E.btn,onClick:H},{default:function(){return[b("点击购买")]}})])])]}})])}}}))}}}))}();