1 |
- import{d as o,e as u,z as r,b as n,p as d,i as e,A as i,B as m}from"./index.7994470a.js";import{C as l}from"./index.777f4790.js";import{q as h}from"./index.570461cd.js";import{i as p,a as _,b}from"./icon_discount.535f7618.js";import{i as y}from"./icon_teacher.40b6f077.js";const g="_musicShare_bcot3_1",F="_header_bcot3_5",v="_btnMore_bcot3_23",E="_section_bcot3_29",I="_music_bcot3_1",T="_discount_bcot3_56",A="_shareTeacher_bcot3_61",D="_teacherImg_bcot3_69",S="_recommend_bcot3_75",f="_img_bcot3_81",C="_name_bcot3_86",B="_titleTips_bcot3_91";var t={musicShare:g,header:F,btnMore:v,section:E,music:I,discount:T,shareTeacher:A,teacherImg:D,recommend:S,img:f,name:C,titleTips:B},w=o({name:"share-music-sheet",data(){const s=this.$route.query;return{id:s.id,recomUserId:s.recomUserId,activityId:s.activityId||0,discounts:0,musicSheet:{},teacherName:""}},async mounted(){try{const s=await u.post("/api-teacher/open/musicShareProfit",{data:{bizId:this.id,userId:this.recomUserId}});if(this.musicSheet=s.data.musicSheet||{},this.teacherName=s.data.name||"",this.activityId){const c=await u.post(`/api-student/open/activity/state/${this.activityId}`,{data:{}});this.discounts=c.data.check||0}}catch{}this.onDetail()},methods:{onDetail(){const s=r(),c=n(),a=h.stringifyUrl({url:location.origin+"/accompany",query:{id:this.id,recomUserId:this.$route.query.userType&&this.$route.query.userType=="STUDENT"?"":this.recomUserId,activityId:this.activityId,discounts:this.discounts,client:c.isStudent?"student":"teacher",behaviorId:s}});d({api:"openAccompanyWebView",content:{url:a,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})}},render(){return e("div",{class:t.musicShare},[e("div",{class:t.header},[e("h2",null,[i("\u79D1\u5B66\u7684\u7EC3\u4E60\u6709\u52A9"),e("br",null,null),i("\u4E8E\u6C34\u5E73\u5FEB\u901F\u63D0\u5347")]),e("p",null,[i("\u4F60\u7684\u6C34\u5E73\u4E00\u5B9A\u80FD\u9A7E\u9A6D\u8FD9\u9996\u66F2\u5B50\uFF01")])]),e("div",{class:t.section},[e("div",{class:t.music},[e("img",{src:p},null),e("div",null,[e("h2",null,[this.musicSheet.musicSheetName]),e("p",null,[i("\u4F5C\u66F2\u4EBA: "),this.musicSheet.composer]),this.discounts==1&&e("img",{src:_,class:t.discount},null)])]),e(l,{center:!0,border:!1,class:t.shareTeacher},{icon:()=>e("div",{class:t.teacherImg},[e("img",{src:this.musicSheet.avatar||y,class:t.img,style:{objectFit:"cover"},crossorigin:"anonymous"},null),e("img",{class:t.recommend,src:b},null)]),title:()=>e("div",null,[e("p",{class:t.name},[i("\u8FD9\u4E2A\u66F2\u5B50\u633A\u4E0D\u9519\uFF01\u63A8\u8350\u7ED9\u4F60\uFF5E")]),e("p",{class:t.titleTips},[e("span",null,[this.teacherName]),i(" \u8001\u5E08\u4E3A\u60A8\u63A8\u8350")])])})]),e("div",{class:["btnGroup"],style:{paddingTop:"60px",margin:"0 28px"}},[e(m,{block:!0,round:!0,type:"primary",onClick:this.onDetail,class:t.btnMore,color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)"},{default:()=>[i("\u6253\u5361\u5C0F\u9177Ai\u5F00\u59CB\u7EC3\u4E60\u5427\uFF01")]})])])}});export{w as default};
|