index-legacy.1b412f5d.js 21 KB

1
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t,n,i,r,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))}}var o=document.createElement("style");o.innerHTML='._musicContent_1tq9g_1{position:absolute;top:0;height:7.06667rem;width:100%;padding-top:1.46667rem;z-index:10;background-color:rgba(0,0,0,.2);backdrop-filter:blur(.53333rem);-webkit-backdrop-filter:blur(.53333rem)}._bgImg_1tq9g_12{position:absolute;left:0;top:0;width:100%;height:7.06667rem;-o-object-fit:cover;object-fit:cover;filter:blur(.53333rem);backdrop-filter:blur(.58667rem);-webkit-backdrop-filter:blur(.53333rem)}._bg_1tq9g_12{position:relative;height:100%;padding:.42667rem .42667rem .32rem;z-index:11}._alumWrap_1tq9g_29{position:relative;display:flex;align-items:center;flex-direction:column;margin-bottom:2.02667rem}._alumWrap_1tq9g_29 ._img_1tq9g_36{width:3.14667rem;height:3.14667rem;flex-shrink:0;border-radius:.16rem;position:relative;z-index:9;--van-image-error-icon-size: 3.14667rem}._alumWrap_1tq9g_29 ._iconPian_1tq9g_45{position:absolute;right:-1.06667rem;top:.21333rem;z-index:-1;width:2.93333rem;height:2.93333rem;display:flex;align-items:center;justify-content:center;background:url(./assets/icon-pian.371e4e6a.png) no-repeat center;background-size:contain}._alumWrap_1tq9g_29 ._iconPian_1tq9g_45 .van-image{width:1.6rem!important;height:1.6rem!important;border-radius:50%;overflow:hidden}._alumWrap_1tq9g_29 ._numContent_1tq9g_64{position:absolute;right:.10667rem;bottom:.10667rem;display:flex;align-items:center;background:rgba(255,255,255,.8);border-radius:.10667rem;font-size:.32rem;font-weight:500;color:#000;padding:.05333rem .08rem}._alumWrap_1tq9g_29 ._numContent_1tq9g_64 ._iconMenu_1tq9g_77{margin-top:-.05333rem;width:.26667rem;height:.32rem;margin-right:.10667rem}._alumWrap_1tq9g_29 ._alumTitle_1tq9g_83{font-size:.42667rem;font-weight:600;color:#fff;line-height:.64rem;padding-bottom:.21333rem}._alumWrap_1tq9g_29 ._alumDes_1tq9g_90{position:absolute;bottom:-2.13333rem;z-index:99;width:calc(100% - 2.56rem);padding-top:.42667rem;text-align:center}._alumWrap_1tq9g_29 ._alumDes_1tq9g_90 ._des_1tq9g_98{font-size:.32rem;color:rgba(255,255,255,.5)}._musicList_1tq9g_102{position:relative;z-index:12;background-color:#fff;border-radius:.42667rem;min-height:40vh;--van-cell-background-color: transparent;--van-cell-font-size: .42667rem;--van-cell-text-color: #333;--van-cell-value-color: #999;--van-cell-icon-size: .26667rem}._musicList_1tq9g_102 .van-tab{font-size:.42667rem!important;margin-top:.4rem;color:#999}._musicList_1tq9g_102 .van-tab--active{font-size:.42667rem!important;color:#131415}._musicList_1tq9g_102 .van-tabs__line{width:.64rem;height:.10667rem;background:linear-gradient(90deg,#FF3C81 0%,rgba(255,118,166,.5) 100%)!important;border-radius:.96rem .96rem 0 0}._musicList_1tq9g_102 .van-tab--shrink{padding:0 .32rem}._musicList_1tq9g_102 .van-button--plain.van-button--primary{background-color:transparent}._musicList_1tq9g_102 .van-sticky--fixed .van-tabs{background-color:#fff}._musicList_1tq9g_102 ._alumnList_1tq9g_138{padding:0 .4rem}._btnGroup_1tq9g_141{padding-bottom:calc(.32rem + env(safe-area-inset-bottom))}._btnGroup_1tq9g_141 .van-button{font-size:.48rem;font-weight:500}._system-list_1tq9g_148::-webkit-scrollbar{display:none}._system-list_1tq9g_148{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;margin-bottom:.66667rem;height:auto;transition:all .2s}._system-list_1tq9g_148._systemHide_1tq9g_164{height:0;transition:all .2s;margin-bottom:0}._system-item_1tq9g_169{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1 0 auto;width:2.56rem;min-height:3.2rem;box-sizing:border-box;background:#ffffff;border-radius:.32rem;border:.02667rem solid #e5e5e5;margin-left:.26667rem}._system-item_1tq9g_169:last-child{margin-right:.26667rem}._system-item_1tq9g_169 ._title_1tq9g_186{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._system-item_1tq9g_169 ._price_1tq9g_192{color:#ef2f56;font-size:.66667rem;line-height:1.5;font-family:DINAlternate-Bold,DINAlternate;font-weight:700}._system-item_1tq9g_169 ._price_1tq9g_192 span{font-size:.42667rem}._system-item_1tq9g_169 ._originalPrice_1tq9g_202{color:#999;font-size:.34667rem}._system-item_1tq9g_169._active_1tq9g_206{background:linear-gradient(223deg,#FEECE3 0%,#FEE4E3 52%,#FFDCE6 100%);border:.02667rem solid #FF4264;position:relative}._system-item_1tq9g_169._active_1tq9g_206 ._title_1tq9g_186,._system-item_1tq9g_169._active_1tq9g_206 ._originalPrice_1tq9g_202{color:#ef2f56}._system-item_1tq9g_169._active_1tq9g_206:before{content:" ";font:.37333rem/1 vant-icon;width:.72rem;height:.48rem;position:absolute;top:-.02667rem;right:-.02667rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAAkCAMAAAD1hTl/AAABfVBMVEUAAAD/mXn/NWD/N2D/mXr/NmH/OWT/PGL/mXn/mHn/mXj/NWD/knf/hXT/QGP/kHf/PmP/P2P/NWD/mXn/NmH/k3b/m3n/M2D/N2D/mXr/kXr/nID/OWP/mWb/M2b/S2b/lHj/lHf/SWX/O2L/lXj/h3T/j3f/i3b/QGT/NWH/mHz/nHj/////UWf/TWb/aW3/VGj/SWX/RGT/QWP/hnT/bW7/gXP/PmL/cW//YGv/hHP/iHX/enH/Zmz/ZGz/RmT/e3H/d3D/c2//kXf/i3X/b27/Ymv/jnb/Xmr/OWH/WGn/f3L/Vmj/S2X/a23/O2H/XWr/T2b/j3b/fnL/fXH/dnD/dXD/W2n/lHf/lXj/jHX/Wmn/NmD/l3j/SGT/+/v/8fH/NGD/0tT/hIv/mXj/9vb/4uP/vL7/t7v/iZP/5ef/zMz/qav/o6v/opz/j5b/mJL/d4b/c4H/hnz/c3b/7ev/3Nv/xsX/rrT/nKf/r6T/joX/e3n/bHf/ZXc+jsR6AAAALHRSTlMA8/PLaGgX9syO/Pz28tu2to6OdXVXUFAlGRYSEgUF+PPr6+vb28iPV1clJE8FSC0AAAKvSURBVDjLfZVXWxpBFIZHqXaNmhij6T0rTSEsElBBgaAhQaNJRGlBwd7Sy2/3nNkZzhbgXPBwse/zvXxnZmF+j2dmxud7u731Pq2uxN54vcHgcnjp42J0YSMbGhh4MvRsfJJZxr/m+QDcKnDp9EoMuHeIbSK3ng1F5ubnk6mn9jtmjHM+4GSc4LQ45JJfUvn+ntsGLO4HTeBWNU6LI03AOJdI3B+d1mGBuF4T45qaUdAMCc184tNn9ysDZtUMNjXXpSZyXTcJC3BNHie4NprA9dolNhswaaqkSW0mNc2dr3aJzQbiu8ABhpxV86SkKCUZt9MrPF8DZ9BUjUv/U1MU5TfkpTSu66XApCbFkebiwh5Qh9im1HRPc4zH7bZb+j5Q3y4jsk3kRhFzAadrk84mYMvhs6KiFM94m6SJ5+VRrqWmxv0tQVhdWzq12QPYYM6oeV6tXjQ1K0B9N5xNHgfnejgDnIhD7gCe/Ck0j+B77VIuD7k814Tl3cgAh3FC87wIzzY4VsWvJ7C8qEnTzdiLQiYHHC39WIH1/gMuiN3/aF4hfZuTzFmAOEOb+IMqsHTs/uAqjEsnzRTXHGfMBpyhzf9Y37F6Cp/FqjxjyFEcdOkog6Zsk7fSQKCB8BGdTdKEuCHGprotmnVFm4rX6wXMqvmYQZdls+b2HqdKV7g80qTlPQDM2U2aIu6iiNipWHrYfGPz/QxmrFwo0NI59wuofVWeTasmYndtQpOW7qvXDlXjFYpGN8QLCeIYzoTQpFbMLySzJuNzqw/jSJOuUKy1JtPGQZq6G7sl4kgzKzSZ5Pr0bVrem+Y2gRCe3S00AaM2N3WarDkTNqnpp5tu/TdBjjDcw5iLbjqPa9dmZI7pxzni6qS5RG0y40w5bDyuoya0ySzjfD4yPPjw3lrHpV8D6bCnb6bRe7YAAAAASUVORK5CYII=) no-repeat center;background-size:contain}._bottom_function_1tq9g_228{background:url(./assets/price-bg.b133ab24.png) no-repeat top center #fff;background-size:contain;box-shadow:inset 0 .02667rem #fff;border-radius:.42667rem .42667rem 0 0}._bottom_function_1tq9g_228 ._iconRightTop_1tq9g_234{position:absolute;top:-1.36rem;right:.24rem;width:3.84rem;height:4.10667rem}._bottom_function_1tq9g_228 ._iconClose_1tq9g_241{position:absolute;top:-1.36rem;right:.24rem;width:.85333rem;height:.85333rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAb1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8v0wLRAAAAJHRSTlMA+i316gUgEJmEP8RKGNzRoloLzXlWNjLg/Lu1m3RxXzooJcZjPZSlAAACH0lEQVRYw5zS246iQBSF4VVWl0JxdhjAs+387/+ME+hEAwhCf1cEWIvaYWuOSx51/UicfmEfh6f0QOeQnsJ4vyp9OxoGzPG2tGMbWAAbnS9F7H1cXM7Rz51guySeGyANfW9y58MUMPmnClfa9rW73ri31bZ0mvGdgQm208MZyL41qbAQbTRjE4EtNCEEc9UHVwPh+/EDaCp9VDUQOI0FkCVaIMkgeHv+aKdFdtGbKQrIdlpol0Ex+H+WJtFiSYPt/U2XYSqtUBkyp5cSrlrlCqWetpZIK0XY18bmmI1W2hjy5wEMgVYLMNve5Vqvz+4tuX4hx+7VusFdfYl3w93xozW7w02tI6n6asu//vubL5pRQ8qxm8CMFrsE/uz6efAaCDHtDPH4UWW6hn7+a3QCD3HXY50G/j4bXvnxpjjbnf1EJE00zOaliJOklLMmG2bzOpNK7sBF0w1zeV04OCVQaLrBz+RVQKIHxJpuYCavGB6qwWuqYT4vD/X/0ssYBUAgiIGFaCHaHfgA/f8bLQeOuWpqScDbbDZZECAoPjuB/wLzZ5qrX+ARHQ+DP6KPEf0MFOVjdCGhHxTlQkLKjp9UbVJmmRwPgy8T6+x4Z2Cd3VAO8DC8uxmKW9r4wMNwmqW5qV7gYdhuNVW39Wscs8uNx2y9HpZ82upxzee9BowccWrIqjGvBs0adXvY7nG/F45eeXrp6rWvF89efXv5zvX/BxK1Tone0ldGAAAAAElFTkSuQmCC) no-repeat center;background-size:contain;display:inline-block;z-index:99}._popupStatus_1tq9g_252{overflow-y:initial}._memberMeal_1tq9g_255 ._titleMeal_1tq9g_255{display:flex;align-items:center;justify-content:space-between;font-size:.48rem;font-weight:600;color:#131415;line-height:.58667rem;padding:.69333rem .64rem .69333rem .34667rem}._memberMeal_1tq9g_255 ._titleMeal_1tq9g_255 ._iconArrowLine_1tq9g_265{display:inline-block;width:.37333rem;height:.37333rem;background:url(./images/icon-arrow-line.png) no-repeat center;background-size:contain}._btnGroup_1tq9g_141{display:flex;align-items:center;padding:0 .42667rem .32rem;justify-content:space-between}._btnGroup_1tq9g_141 ._btn_1tq9g_141{padding:0 .58667rem;height:1.17333rem;color:#fff!important;background:linear-gradient(270deg,#FF204B 0%,#FE5B71 100%);border-radius:1.04rem;font-size:.48rem;font-weight:700;border:none}._btnGroup_1tq9g_141 ._btn_1tq9g_141 ._unit_1tq9g_288{font-size:.37333rem}._btnGroup_1tq9g_141 ._priceSection_1tq9g_291{display:flex;align-items:center;font-size:.42667rem;color:#1a1a1a}._btnGroup_1tq9g_141 ._priceSection_1tq9g_291 ._price_1tq9g_192{font-size:.48rem;font-weight:700;color:#ff3535}._btnGroup_1tq9g_141 ._priceSection_1tq9g_291 ._price_1tq9g_192 ._priceUnit_1tq9g_302{font-size:.37333rem}\n',document.head.appendChild(o),System.register(["./index-legacy.b903c881.js","./index-legacy.5b93d63d.js","./index-legacy.8abefd50.js","./index-legacy.ae2ce69e.js","./index-legacy.ba78f33e.js","./index-legacy.f52c26b4.js","./index-legacy.909b3c1c.js","./index-legacy.885c229f.js","./index-legacy.8e85fa65.js","./index-legacy.1c1000df.js","./orderStatus-legacy.d4b782c6.js","./use-id-legacy.29724920.js","./use-tab-status-legacy.a19d344b.js","./use-refs-legacy.14daae14.js","./index-legacy.77670d98.js","./icon-xin2-legacy.d521c9ab.js"],(function(e){"use strict";var n,i,o,a,s,c,u,l,m,g,d,_,p,b,f,h,v,q,y,A,j,C,S,T,w,x,P,k;return{setters:[function(e){n=e.d,i=e.O,o=e.P,a=e.S,s=e.Q,c=e.g,u=e.U,l=e.n,m=e.j,g=e.F,d=e.C,_=e.B,p=e.z,b=e.aR,f=e.bz,h=e.w,v=e.D},function(e){q=e.I},function(e){y=e.S},function(){},function(e){A=e.T,j=e.a},function(e){C=e.L},function(e){S=e.T},function(e){T=e.C},function(e){w=e.a,x=e.b},function(e){P=e.S},function(e){k=e.o},function(){},function(){},function(){},function(){},function(){}],execute:function(){var z={musicContent:"_musicContent_1tq9g_1",bgImg:"_bgImg_1tq9g_12",bg:"_bg_1tq9g_12",alumWrap:"_alumWrap_1tq9g_29",img:"_img_1tq9g_36",iconPian:"_iconPian_1tq9g_45",numContent:"_numContent_1tq9g_64",iconMenu:"_iconMenu_1tq9g_77",alumTitle:"_alumTitle_1tq9g_83",alumDes:"_alumDes_1tq9g_90",des:"_des_1tq9g_98",musicList:"_musicList_1tq9g_102",alumnList:"_alumnList_1tq9g_138",btnGroup:"_btnGroup_1tq9g_141","system-list":"_system-list_1tq9g_148",systemHide:"_systemHide_1tq9g_164","system-item":"_system-item_1tq9g_169",title:"_title_1tq9g_186",price:"_price_1tq9g_192",originalPrice:"_originalPrice_1tq9g_202",active:"_active_1tq9g_206",bottom_function:"_bottom_function_1tq9g_228",iconRightTop:"_iconRightTop_1tq9g_234",iconClose:"_iconClose_1tq9g_241",popupStatus:"_popupStatus_1tq9g_252",memberMeal:"_memberMeal_1tq9g_255",titleMeal:"_titleMeal_1tq9g_255",iconArrowLine:"_iconArrowLine_1tq9g_265",btn:"_btn_1tq9g_141",unit:"_unit_1tq9g_288",priceSection:"_priceSection_1tq9g_291",priceUnit:"_priceUnit_1tq9g_302"},E="./assets/icon-album-cover.101d7fe7.png";e("default",n({name:"train-tool",setup:function(){var e=sessionStorage.getItem("tool-subject-type");sessionStorage.removeItem("tool-subject-type");var n=i(),M=o(),N=a("rgba(55, 205, 177, 0)"),L=a("#fff"),W=s({details:{},buy:n.query.buy,albumId:n.query.albumId||null,activeTab:n.query.subjectType||"SUBJECT",loading:!1,finished:!1,isError:!1,list:[],popupStatus:!1,selectMember:{},buyList:[{purchaseCycle:6,salePrice:0,costPrice:0,status:!0},{purchaseCycle:12,salePrice:0,costPrice:0,status:!1},{purchaseCycle:18,salePrice:0,costPrice:0,status:!1},{purchaseCycle:24,salePrice:0,costPrice:0,status:!1}],ensembleCounts:!1,musicCounts:!1,subjectCounts:!1,tenantAlbumStatus:0,ablumStatus:!1,heightV:0}),H=s({page:1,rows:20}),B=a("STUDENT"===c.platformType?"/api-student":"/api-teacher"),I=function(){var i=r(regeneratorRuntime.mark((function i(){var r,o,a;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,r=B.value+"/userTenantAlbumRecord/detail",W.albumId&&(r=r+"?albumId="+W.albumId),i.next=5,h.post(r);case 5:o=i.sent,a=o.data,W.details=a||{},W.tenantAlbumStatus=a.tenantAlbumStatus,W.ablumStatus=a.status,W.buyList.forEach((function(e,t){e.salePrice=(t+1)*a.salePrice,e.costPrice=(t+1)*a.costPrice})),W.selectMember=t({},W.buyList[0]),W.ensembleCounts=!(a.ensembleCounts<=0),W.subjectCounts=!(a.subjectCounts<=0),W.musicCounts=!(a.musicCounts<=0),W.subjectCounts?W.activeTab="SUBJECT":W.musicCounts?W.activeTab="MUSIC":W.ensembleCounts&&(W.activeTab="ENSEMBLE"),"SUBJECT"==n.query.subjectType&&W.subjectCounts?W.activeTab="SUBJECT":"MUSIC"==n.query.subjectType&&W.musicCounts?W.activeTab="MUSIC":"ENSEMBLE"==n.query.subjectType&&W.ensembleCounts&&(W.activeTab="ENSEMBLE"),"SUBJECT"==e&&W.subjectCounts?W.activeTab="SUBJECT":"MUSIC"==e&&W.musicCounts?W.activeTab="MUSIC":"ENSEMBLE"==e&&W.ensembleCounts&&(W.activeTab="ENSEMBLE"),i.next=22;break;case 20:i.prev=20,i.t0=i.catch(0);case 22:case"end":return i.stop()}}),i,null,[[0,20]])})));return function(){return i.apply(this,arguments)}}(),O=function(){var e=r(regeneratorRuntime.mark((function e(){var n,i,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!W.loading){e.next=2;break}return e.abrupt("return");case 2:return console.log(W.details,"state.details"),W.loading=!0,W.isError=!1,n=t({albumId:W.details.id||null,subjectType:W.activeTab},H),e.prev=6,e.next=9,h.post("".concat(B.value,"/tenantAlbumMusic/page"),{data:n});case 9:if(i=e.sent,r=i.data,!(W.list.length>0&&1===r.pageNo)){e.next=13;break}return e.abrupt("return");case 13:W.list=W.list.concat(r.rows||[]),H.page=r.pageNo+1,W.loading=!1,W.finished=r.pageNo>=r.totalPage,H.page=r.pageNo+1,e.next=23;break;case 20:e.prev=20,e.t0=e.catch(6),W.isError=!0;case 23:W.loading=!1;case 24:case"end":return e.stop()}}),e,null,[[6,20]])})));return function(){return e.apply(this,arguments)}}();u(r(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?(N.value="rgba(255, 255, 255)",L.value="black",l({api:"backIconChange",content:{iconStyle:"black"}})):(N.value="transparent",L.value="#fff",l({api:"backIconChange",content:{iconStyle:"white"}}))})),W.loading=!0,e.next=4,I();case 4:return e.next=6,O();case 6:W.loading=!1;case 7:case"end":return e.stop()}}),e)}))));var D=function(){var e=r(regeneratorRuntime.mark((function e(){var n,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=W.selectMember,i=W.details,k.orderObject.orderType="TENANT_ALBUM",k.orderObject.orderName=i.name,k.orderObject.orderDesc=i.name,k.orderObject.actualPrice=n.salePrice,k.orderObject.orderNo="",k.orderObject.orderList=[t(t({orderType:"TENANT_ALBUM",goodsName:i.name,actualPrice:n.salePrice,price:n.salePrice},i),n)],e.next=10,h.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"TENANT_ALBUM",bizId:i.id}});case 10:o=e.sent,(a=o.data)?(W.popupStatus=!1,v.confirm({title:"提示",message:"您有一个未支付的订单,是否继续支付?",theme:"round-button",className:"confirm-button-group",cancelButtonText:"取消订单",confirmButtonText:"继续支付"}).then(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:k.orderObject.orderNo=a.orderNo,k.orderObject.actualPrice=a.actualPrice,k.orderObject.discountPrice=a.discountPrice,k.orderObject.paymentConfig=t(t({},a.paymentConfig),{},{paymentVendor:a.paymentVendor,paymentVersion:a.paymentVersion}),U();case 5:case"end":return e.stop()}}),e)})))).catch((function(){v.close(),X(a.orderNo)}))):U();case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=W.details;M.push({path:"/orderDetail",query:{orderType:"ALBUM",album:e.id}})},X=function(){var e=r(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,h.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,n,i,r;return m("div",{class:z.trainTool},[0!==W.tenantAlbumStatus&&W.ablumStatus||"1"==W.buy?m(g,null,[m(S,{position:"top",onBarHeight:function(e){console.log(e,"height",e),W.heightV=e}},{default:function(){return[m(T,{background:N.value,border:!1,isFixed:!1,color:L.value,backIconColor:"white"},null)]}}),m("img",{class:z.bgImg,src:null===(e=W.details)||void 0===e?void 0:e.coverImg},null),m("div",{class:z.musicContent},null),m("div",{class:z.bg},[m("div",{class:z.alumWrap},[m("div",{class:z.img},[m(q,{class:z.image,width:"100%",height:"100%",fit:"cover",src:(null===(t=W.details)||void 0===t?void 0:t.coverImg)||E,errorIcon:E},null),m("div",{class:z.iconPian},[m(q,{class:z.image,width:"100%",height:"100%",fit:"cover",src:(null===(n=W.details)||void 0===n?void 0:n.coverImg)||E},null)])]),m("div",{class:z.alumDes},[m("div",{class:[z.alumTitle,"van-ellipsis"]},[null===(i=W.details)||void 0===i?void 0:i.name]),m("div",{class:[z.des,"van-multi-ellipsis--l2"],style:{height:"32px",lineHeight:"16px"}},[null===(r=W.details)||void 0===r?void 0:r.describe])])])]),m("div",{class:z.musicList},[m(y,{position:"top",offsetTop:W.heightV},{default:function(){return[m(A,{color:"var(--van-primary)",background:"transparent",lineWidth:20,shrink:!0,active:W.activeTab,"onUpdate:active":function(e){return W.activeTab=e},onChange:function(e){W.activeTab=e,H.page=1,W.list=[],O()}},{default:function(){return[W.subjectCounts&&m(j,{title:"声部练习",name:"SUBJECT"},null),W.musicCounts&&m(j,{title:"独奏曲目",name:"MUSIC"},null),W.ensembleCounts&&m(j,{title:"合奏练习",name:"ENSEMBLE"},null)]}})]}}),m("div",{class:z.alumnList},[m(C,{loading:W.loading,finished:W.finished,"finished-text":" ",onLoad:O,immediateCheck:!1,error:W.isError},{default:function(){return[W.list&&W.list.length?m(P,{showNumber:!0,list:W.list,onDetail:function(e){sessionStorage.setItem("tool-subject-type",W.activeTab),M.push({path:"/music-detail",query:{id:e.id}})}},null):!W.loading&&m(d,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}})])]),"STUDENT"===c.platformType&&"1"!=W.buy&&m(S,{position:"bottom"},{default:function(){var e;return[m("div",{class:z.btnGroup},[m(_,{round:!0,block:!0,disabled:(null===(e=W.details)||void 0===e?void 0:e.musicNum)<=0,color:"linear-gradient(270deg, #FF204B 0%, #FE5B71 100%)",onClick:function(){return W.popupStatus=!0}},{default:function(){return[p("购买教程")]}})])]}})]):m(g,null,[m(S,{position:"top",onBarHeight:function(e){console.log(e,"height",e),W.heightV=e}},{default:function(){return[m(T,{border:!1,isFixed:!1},null)]}}),!W.loading&&m("div",{style:{height:"calc(100vh - var(--header-height))",display:"flex",alignItems:"center"}},[m(d,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)])]),m(b,{show:W.popupStatus,"onUpdate:show":function(e){return W.popupStatus=e},position:"bottom",round:!0,zIndex:9999,"safe-area-inset-bottom":!0,closeable:!1,class:z.popupStatus,onClose:function(){return W.popupStatus=!1}},{default:function(){return[m("div",{class:z.bottom_function},[m("i",{class:z.iconClose,onClick:function(){return W.popupStatus=!1}},null),m("img",{src:"./assets/icon-right-top.1c7d1f37.png",class:z.iconRightTop},null),m("div",{class:z.memberMeal},[m("div",{class:z.titleMeal},[m("span",null,[p("请选择教程购买周期")])]),m("div",{class:z["system-list"]},[W.buyList.map((function(e){return m("div",{class:[z["system-item"],e.status&&z.active],onClick:function(){W.buyList.forEach((function(e){e.status=!1})),e.status=!0,W.selectMember=e}},[m("p",{class:z.title},[e.purchaseCycle,p("个月")]),m("p",{class:z.price},[m("span",null,[p("¥")]),f(e.salePrice,"0,0[.]00")]),e.salePrice<e.costPrice&&m("del",{class:z.originalPrice},[p("¥"),f(e.costPrice,"0,0[.]00")])])}))])]),m("div",{class:z.btnGroup},[m(_,{round:!0,block:!0,class:z.btn,onClick:D},{default:function(){return[p("点击购买")]}})])])]}})])}}}))}}}))}();