1 |
- !function(){function e(e,t,i,r,c,n,o){try{var a=e[n](o),s=a.value}catch(_){return void i(_)}a.done?t(s):Promise.resolve(s).then(r,c)}var t=document.createElement("style");t.innerHTML="._musicShare_bcot3_1{min-height:100vh;background:linear-gradient(194deg,#d8f8f3 0%,#ffffff 100%)}._musicShare_bcot3_1 ._header_bcot3_5{background:url(./assets/music-share-banner.68667815.png) no-repeat top center;background-size:cover;height:9.22667rem;padding:.69333rem .58667rem 0}._musicShare_bcot3_1 ._header_bcot3_5 h2{font-size:.90667rem;font-weight:600;color:#333;line-height:1.12rem}._musicShare_bcot3_1 ._header_bcot3_5 p{padding-top:.26667rem;font-size:.4rem;color:#666;line-height:.56rem}._btnMore_bcot3_23 .van-button__text{font-size:.48rem;font-weight:500;color:#fff;line-height:.66667rem}._section_bcot3_29{background-color:#fff;margin:-2.56rem .42667rem 0;border-radius:.26667rem;overflow:hidden}._section_bcot3_29 ._music_bcot3_1{padding:.58667rem;display:flex;align-items:center}._section_bcot3_29 ._music_bcot3_1 img{width:2.72rem;height:2.13333rem;margin-right:.58667rem}._section_bcot3_29 ._music_bcot3_1 h2{font-size:.37333rem;font-weight:600;color:#333;line-height:.53333rem;padding-bottom:.16rem}._section_bcot3_29 ._music_bcot3_1 p{color:#6a6a6a;line-height:.45333rem}._section_bcot3_29 ._music_bcot3_1 ._discount_bcot3_56{height:.48rem;width:auto;margin-top:.21333rem}._shareTeacher_bcot3_61{margin:.26667rem .37333rem .48rem;width:auto;padding:.32rem;background:linear-gradient(270deg,#baffe7 0%,#c0dcff 100%);border-radius:.24rem;color:#333}._shareTeacher_bcot3_61 ._teacherImg_bcot3_69{margin-right:.32rem;position:relative;width:1.06667rem;text-align:center}._shareTeacher_bcot3_61 ._recommend_bcot3_75{position:absolute;height:.37333rem;left:0;bottom:.08rem}._shareTeacher_bcot3_61 ._img_bcot3_81{width:.88rem;height:.88rem;border-radius:50%}._shareTeacher_bcot3_61 ._name_bcot3_86{font-size:.45333rem;font-weight:500;line-height:.64rem}._shareTeacher_bcot3_61 ._titleTips_bcot3_91{font-size:.32rem;line-height:.48rem}\n",document.head.appendChild(t),System.register(["./index-legacy.b2528a15.js","./index-legacy.207dc8c2.js","./index-legacy.c610561c.js","./icon_discount-legacy.51763f3b.js","./icon_teacher-legacy.42ba77b1.js"],(function(t){"use strict";var i,r,c,n,o,a,s,_,u,d,m,h,l,b;return{setters:[function(e){i=e.d,r=e.e,c=e.z,n=e.b,o=e.p,a=e.i,s=e.A,_=e.B},function(e){u=e.C},function(e){d=e.q},function(e){m=e.i,h=e.a,l=e.b},function(e){b=e.i}],execute:function(){var g="_musicShare_bcot3_1",f="_header_bcot3_5",p="_btnMore_bcot3_23",v="_section_bcot3_29",y="_music_bcot3_1",T="_discount_bcot3_56",x="_shareTeacher_bcot3_61",I="_teacherImg_bcot3_69",S="_recommend_bcot3_75",w="_img_bcot3_81",k="_name_bcot3_86",z="_titleTips_bcot3_91";t("default",i({name:"share-music-sheet",data:function(){var e=this.$route.query;return{id:e.id,recomUserId:e.recomUserId,activityId:e.activityId||0,discounts:0,musicSheet:{},teacherName:""}},mounted:function(){var t,i=this;return(t=regeneratorRuntime.mark((function e(){var t,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.post("/api-teacher/open/musicShareProfit",{data:{bizId:i.id,userId:i.recomUserId}});case 3:if(t=e.sent,i.musicSheet=t.data.musicSheet||{},i.teacherName=t.data.name||"",!i.activityId){e.next=11;break}return e.next=9,r.post("/api-student/open/activity/state/".concat(i.activityId),{data:{}});case 9:c=e.sent,i.discounts=c.data.check||0;case 11:e.next=15;break;case 13:e.prev=13,e.t0=e.catch(0);case 15:i.onDetail();case 16:case"end":return e.stop()}}),e,null,[[0,13]])})),function(){var i=this,r=arguments;return new Promise((function(c,n){var o=t.apply(i,r);function a(t){e(o,c,n,a,s,"next",t)}function s(t){e(o,c,n,a,s,"throw",t)}a(void 0)}))})()},methods:{onDetail:function(){var e=c(),t=n(),i=d.stringifyUrl({url:location.origin+"/accompany",query:{id:this.id,recomUserId:this.$route.query.userType&&"STUDENT"==this.$route.query.userType?"":this.recomUserId,activityId:this.activityId,discounts:this.discounts,client:t.isStudent?"student":"teacher",behaviorId:e}});o({api:"openAccompanyWebView",content:{url:i,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})}},render:function(){var e=this;return a("div",{class:g},[a("div",{class:f},[a("h2",null,[s("科学的练习有助"),a("br",null,null),s("于水平快速提升")]),a("p",null,[s("你的水平一定能驾驭这首曲子!")])]),a("div",{class:v},[a("div",{class:y},[a("img",{src:m},null),a("div",null,[a("h2",null,[this.musicSheet.musicSheetName]),a("p",null,[s("作曲人: "),this.musicSheet.composer]),1==this.discounts&&a("img",{src:h,class:T},null)])]),a(u,{center:!0,border:!1,class:x},{icon:function(){return a("div",{class:I},[a("img",{src:e.musicSheet.avatar||b,class:w,style:{objectFit:"cover"},crossorigin:"anonymous"},null),a("img",{class:S,src:l},null)])},title:function(){return a("div",null,[a("p",{class:k},[s("这个曲子挺不错!推荐给你~")]),a("p",{class:z},[a("span",null,[e.teacherName]),s(" 老师为您推荐")])])}})]),a("div",{class:["btnGroup"],style:{paddingTop:"60px",margin:"0 28px"}},[a(_,{block:!0,round:!0,type:"primary",onClick:this.onDetail,class:p,color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)"},{default:function(){return[s("打卡小酷Ai开始练习吧!")]}})])])}}))}}}))}();
|