index-legacy.1bab11bd.js 5.2 KB

1
  1. !function(){function e(e,t,r,i,c,n,o){try{var a=e[n](o),s=a.value}catch(_){return void r(_)}a.done?t(s):Promise.resolve(s).then(i,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.fba2875c.js","./index-legacy.7dcec7b3.js","./icon_discount-legacy.51763f3b.js","./icon_teacher-legacy.42ba77b1.js"],(function(t){"use strict";var r,i,c,n,o,a,s,_,u,m,d,h,l,b;return{setters:[function(e){r=e.d,i=e.w,c=e.x,n=e.f,o=e.y,a=e.n,s=e.j,_=e.z,u=e.B},function(e){m=e.C},function(e){d=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",w="_shareTeacher_bcot3_61",x="_teacherImg_bcot3_69",I="_recommend_bcot3_75",S="_img_bcot3_81",k="_name_bcot3_86",z="_titleTips_bcot3_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,c;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:c=e.sent,r.discounts=c.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(c,n){var o=t.apply(r,i);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(),r=o.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}});a({api:"openAccompanyWebView",content:{url:r,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})}},render:function(){var e=this;return s("div",{class:g},[s("div",{class:f},[s("h2",null,[_("科学的练习有助"),s("br",null,null),_("于水平快速提升")]),s("p",null,[_("你的水平一定能驾驭这首曲子!")])]),s("div",{class:v},[s("div",{class:y},[s("img",{src:d},null),s("div",null,[s("h2",null,[this.musicSheet.musicSheetName]),s("p",null,[_("作曲人: "),this.musicSheet.composer]),1==this.discounts&&s("img",{src:h,class:T},null)])]),s(m,{center:!0,border:!1,class:w},{icon:function(){return s("div",{class:x},[s("img",{src:e.musicSheet.avatar||b,class:S,style:{objectFit:"cover"},crossorigin:"anonymous"},null),s("img",{class:I,src:l},null)])},title:function(){return s("div",null,[s("p",{class:k},[_("这个曲子挺不错!推荐给你~")]),s("p",{class:z},[s("span",null,[e.teacherName]),_(" 老师为您推荐")])])}})]),s("div",{class:["btnGroup"],style:{paddingTop:"60px",margin:"0 28px"}},[s(u,{block:!0,round:!0,type:"primary",onClick:this.onDetail,class:p,color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)"},{default:function(){return[_("打卡小酷Ai开始练习吧!")]}})])])}}))}}}))}();