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