index-legacy.e300d255.js 13 KB

1
  1. !function(){var e=document.createElement("style");e.innerHTML='._btnHeader_3lqnz_1{display:flex;align-items:center;height:var(--van-nav-bar-height)}._btnHeader_3lqnz_1 ._iconBack_3lqnz_6{position:relative;padding-left:var(--van-padding-md);font-size:.53333rem;color:#fff;z-index:9}._saveShareImage_3lqnz_13{position:relative;min-height:100vh;overflow:hidden}._saveShareImage_3lqnz_13:before{content:" ";background:linear-gradient(134deg,#ff906c 0%,#ff602d 100%);position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}._previewSection_3lqnz_28{z-index:-1;position:absolute;left:0;right:0;top:0;height:80vh!important;overflow:hidden}._previewSection_3lqnz_28:before{content:" ";background:linear-gradient(134deg,#ff906c 0%,#ff602d 100%);position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}._topImage_3lqnz_47{position:absolute;top:0;left:0;right:0}._shareContaienr_3lqnz_53{position:relative;margin:5.65333rem .58667rem 0;padding-top:1.33333rem;padding-bottom:.61333rem;background:#ffffff;border-radius:.48rem;text-align:center}._shareContaienr_3lqnz_53._orchestraContainer_3lqnz_62{margin-top:4.48rem;padding-top:.53333rem}._shareContaienr_3lqnz_53._orchestraContainer_3lqnz_62 ._schoolName_3lqnz_66{font-size:.53333rem;font-weight:500;color:#f67146;line-height:.74667rem}._shareContaienr_3lqnz_53 ._schoolLogo_3lqnz_72{position:absolute;left:50%;top:0;margin-top:-1.01333rem;margin-left:-1.01333rem;width:2.02667rem;height:2.02667rem;border-radius:50%;overflow:hidden;border:.08rem solid #fff;background-color:#fff}._shareContaienr_3lqnz_53 ._schoolName_3lqnz_66{font-size:.45333rem;font-weight:500;color:#000;line-height:.64rem;padding:0 .8rem}._shareContaienr_3lqnz_53 ._shareType_3lqnz_92{font-size:.4rem;padding:.21333rem 0 .53333rem;color:#000;line-height:.56rem}._shareContaienr_3lqnz_53 ._shareType_3lqnz_92 span{color:#f67146}._shareContaienr_3lqnz_53 ._qrcodeSection_3lqnz_101{width:3.46667rem;height:3.46667rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAT4AAAE8CAMAAABuLi0JAAAA/FBMVEUAAAD////////////Z2dnY2NjZ2dnY2NjZ2dna2trf39/a2tra2trZ2dna2trZ2dna2tra2trc3Nze3t7a2tra2tra2tra2tra2tra2trb29vs7Oza2tra2trZ2dnb29va2tr////////b29v////a2tra2trt7e3d3d3Z2dna2trZ2dn////a2tra2tra2tr////////////////a2tra2tra2tr////Z2dn////////////a2tr////Z2dna2tra2tr////////////////Z2dn////h4eHY2Nj////////////////////////////////////Z2dn8/PzmZWJ/AAAAUXRSTlMA7LG29CZRuf5fBOR862P7PTAYEqNX1I6BRikIxPawBsHmvbCidE0eDu5uavDQubN6ZF8y2J6X9t/X08/Ixr6lh25nWVM2JAyllZSOiYBHQi3EpmOeAAAHMElEQVR42uzaWU/qQBjG8UdP1dICLWUXEVRkcVfcox6FuMVoMu/3/zAnJtMFmMI0OVfl/V2VhKt/ZqbTThFjLV89rdiGSRHOZbaBFDo8diiOadiV02p+DQnUr2xSa6ew31/SYF/VoaVYsyleFmlTJk12rbg4XtWgeS6RNqekzaguCJjP0XxNpM0xJZDLI57XpkUqSJttSqTtIUbdH3pLtfatUzK5OpQOTVropIXUuaZkzEMo1FT/bBoRg+N9CymU2RoYcZomzaphRpYmVarlQh8M/UK5Wlm0hOUnKg+eN8EiNp8HFGHmMcF1KGRk38GmvGcNCjkuIoo2hbY9MAVvm0J2Ub33cQ7AYhw4FNhDoEsBow4Wq25QoAupcUu+pgs2h9sk323DH5PkM7tgc3VN8slVrmWTrwa2QI18dgu/MuR7SOVDxX/2QL4MfrVJcgpgCxUcktoA0DNJKoFpKJFk9gDsB7/4QU3LpknSPoANkp7AtDyRtAFYRrgSKlnD0Vdn9c+SWe18jYYWlDIkGRYKJJkeFH46R2JpHXV+oOCZJBVQnneKMb4XS+5+jFkVksrIxt9333YFE7tv8ffeLK7DyynjJZ62UUfj2Dfz12HJPCadCSadYVI+nLF74Tye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59PM59KlmIkW/2Q3Op5uvYZN85+7oD4/z6ebzZLM77MtxlfPp5luVzfaxxvn+Pt8a5+N8iTjffOF8nE8b55svnI/zaftv+TYClmBDM99lwBJcaubbDFiCzaR8LTnmIb0ELMELpLxs1kJOjg6ko4AlOILkyGY5nMkxDakbsARdSGnZ7Cwcc1BuAjbmBoo6senwHBegDAI2ZgClEN4XGTkKH1KVN78xG1VIvpDNMjANOaegPARsxAOUlCxmmAgXv1so5lXAYq5MKLfh2gd01OmtQHk/D1jE+TuUijq7HQBdEbl7efdLdoSEe1d08aEpH90MQocBUw4RyriyVzP+JaRrcL9p9XBN8bu2YZFUQsRwN2AfdoeIKJFkNfBphySxhYgn/vXyYfMJEVuCpB25JV+QVPcQNVz6BeZqiCivTtJFVSUlxSgj5q29xL/uv7XfEFM2SNmC0iLF3cGI48Fr+/vSab8OjjGi75LSQihrUWjdB0vgr1PIyiLCcylkdJ7BRjx3DAq5HmIcQRHb9xWwiMq9TRHCwYg0xRWK+UwPDL1MvliguDTGlGicqBsR23sdEwsoVds2JqkLGldCgr6gqfYbWDinNBvRR6KyTVOlsWhWaTZ2GRP4TZrmBIumRTNp+pjMselrdSyaPZqB7eBL2aKxZG/fAWkzillMky1ZS/Xty5Mmq5SFlvLppIK1KhbOnVa70zJmsOIUDwqWISjCPUkvYD2gv+fSJMKwCgdFZwXJfgJ+cPco4Ts4hgAAAABJRU5ErkJggg==) no-repeat center center;background-size:contain;margin:0 auto;padding:.37333rem}._shareContaienr_3lqnz_53 ._memo_3lqnz_109{display:inline-block;margin:.45333rem 0 .29333rem;background:linear-gradient(135deg,#ff9c63 0%,#ff7144 100%);border-radius:.48rem;font-size:.42667rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fff;line-height:.58667rem;padding:.16rem .42667rem}._shareContaienr_3lqnz_53 ._endTime_3lqnz_121{font-size:.34667rem;color:#666;line-height:.48rem}._shareContaienr_3lqnz_53 ._endTime_3lqnz_121 span{color:#ff8057}._btnGroup_3lqnz_129{margin:.8rem .58667rem .53333rem;display:flex;align-items:center}._btnGroup_3lqnz_129 ._icon_3lqnz_6{font-size:1.01333rem;margin-left:-.16rem}._btnGroup_3lqnz_129 ._btn_3lqnz_1{background:rgba(255,255,255,.4);border-radius:1.04rem;border:.02667rem solid #ff6e00;font-size:.42667rem;color:#fff;line-height:.58667rem}._btnGroup_3lqnz_129 ._btn_3lqnz_1+._btn_3lqnz_1{margin-left:.34667rem}._btnGroup_3lqnz_129 ._btn_3lqnz_1 .van-button__text{display:flex;align-items:center}\n',document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./html2canvas.esm-legacy.d2000231.js","./index-legacy.1aa8291a.js","./orchestra-top_bg-legacy.faca911a.js","./index-legacy.ad813f4d.js","./index-legacy.fecc738b.js"],(function(e){"use strict";var a,n,t,o,r,l,i,s,c,d,m,g,h,p,f,u,_,A,v,z,b,y,q,w,C;return{setters:[function(e){a=e.d,n=e.ah,t=e.ag,o=e.r,r=e.$,l=e.m,i=e.c,s=e.aj,c=e.F,d=e.q,m=e.B,g=e.a5,h=e.bj,p=e.e,f=e.o,u=e.bv,_=e.p,A=e.bG,v=e.bH,z=e.g},function(e){b=e.h},function(e){y=e.O},function(e){q=e.o},function(e){w=e.O},function(e){C=e.I}],execute:function(){var x="_saveShareImage_3lqnz_13",M="_previewSection_3lqnz_28",k="_topImage_3lqnz_47",F="_shareContaienr_3lqnz_53",D="_orchestraContainer_3lqnz_62",Z="_schoolName_3lqnz_66",L="_schoolLogo_3lqnz_72",R="_shareType_3lqnz_92",T="_qrcodeSection_3lqnz_101",V="_memo_3lqnz_109",S="_endTime_3lqnz_121",j="_btnGroup_3lqnz_129",B="_icon_3lqnz_6",N="_btn_3lqnz_1",E="./assets/teacher-top_bg.aed1eb2a.png",U="./assets/manage-top_bg.d67ca762.png",I="./assets/logo@2x.f7671d6b.png";e("default",a({name:"save-share-image",setup(){const e=n();t();const a=o({type:e.query.type,height:0,paramValue:2,schoolName:"",schoolId:"",url:null,schoolLogo:"",loading:!1,name:""}),K=o({saveLoading:!1,image:null,shareLoading:!1}),G=async()=>{if(!K.saveLoading)if(K.saveLoading=!0,K.image)O();else{const e=document.getElementById("preview-container");b(e,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then((async e=>{const a=e.toDataURL("image/png");K.image=a,console.log(a),O()})).catch((()=>{h(),K.saveLoading=!1}))}},J=()=>{if(!K.shareLoading)if(K.shareLoading=!0,K.image)H();else{const e=document.getElementById("preview-container");b(e,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then((async e=>{const a=e.toDataURL("image/png");K.image=a,H()})).catch((()=>{h(),K.shareLoading=!1}))}},H=()=>{const e=K.image;setTimeout((()=>{K.shareLoading=!1}),100),e&&p({api:"shareTripartite",content:{title:"",desc:"",image:e,video:"",type:"image",shareType:"wechat"}},(e=>{e&&e.content&&f(e.content.message||(e.content.status?"分享成功":"分享失败"))}))},O=async()=>{var e;u({message:"图片生成中...",forbidClick:!0}),setTimeout((()=>{K.saveLoading=!1}),100);const a=await _({api:"savePicture",content:{base64:K.image}});"success"===(null==a||null===(e=a.content)||void 0===e?void 0:e.status)?A("保存成功"):v("保存失败")};return r((async()=>{"teacher"===a.type?a.name="乐团伴学老师注册":"manage"===a.type?a.name="乐团管理老师注册":"orchestra"===a.type&&(a.name="乐团报名"),document.title=a.name;try{const{data:e}=await l.get("/api-school/open/paramConfig/queryByParamName",{requestType:"form",params:{paramName:"qr_code_expire_hours"}});a.paramValue=e.paramValue}catch{}"orchestra"===a.type?(async()=>{try{const n=await l.get("/api-school/orchestra/detail/"+e.query.id);a.schoolName=n.data.name,a.schoolId=n.data.id,a.schoolLogo=n.data.schoolLogo+"@base@tag=imgScale&w=570?t="+ +new Date,a.url=window.location.origin+"/orchestra-student/#/preApply?id="+e.query.id}catch{}})():(async()=>{try{const e=(z.user.data.schoolInfos||[]).map((e=>e.id)).join(","),n=await l.get(`/api-school/school/detail/${e}`,{});a.schoolName=n.data.name,a.schoolId=n.data.id,a.schoolLogo=n.data.logo?n.data.logo+"@base@tag=imgScale&w=570?t="+ +new Date:"","teacher"===a.type?a.url=location.origin+"/orchestra-school/#/companion-teacher-register?id="+n.data.id+"&name="+n.data.name+"&t="+ +new Date:"manage"===a.type&&(a.url=location.origin+"/orchestra-school/#/manage-teacher-register?id="+n.data.id+"&name="+n.data.name+"&t="+ +new Date)}catch{}})()})),()=>i("div",{class:[x]},[i(w,{position:"top",onGetHeight:e=>{a.height=e}},{default:()=>[i(s,{title:a.name},null)]}),"teacher"===a.type&&i(C,{src:E,class:k,style:{top:a.height+"px"}},null),"manage"===a.type&&i(C,{src:U,class:k,style:{top:a.height+"px"}},null),"orchestra"===a.type&&i(C,{src:q,class:k,style:{top:a.height+"px"}},null),i("div",{class:[F,"orchestra"===a.type&&D]},["orchestra"!==a.type?i(c,null,[i("img",{class:[L],src:a.schoolLogo||I,crossorigin:"anonymous",style:{objectFit:"cover"}},null),i("div",{class:Z},[a.schoolName]),i("div",{class:R},[d("邀请您成为"),i("span",null,["teacher"===a.type&&"乐团伴学老师","manage"===a.type&&"乐团管理老师"])])]):i(c,null,[i("div",{class:Z},[d("乐团报名")]),i("div",{class:R},[a.schoolName])]),i("div",{class:T},[i(y,{text:a.url,logoSize:"small",size:"100%"},null)]),i("div",{class:V},[d("扫描上方二维码完成资料填写")]),"orchestra"!==a.type&&i("div",{class:S},[d("二维码将在"),i("span",null,[a.paramValue,d("小时后")]),d("失效,请及时登记")])]),i("div",{class:j},[i(m,{class:N,round:!0,block:!0,onClick:G},{default:()=>[i(g,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAMAAADwSaEZAAAAilBMVEUAAAD////////////+/v7////+/v7////////////////////////+/v7////////////////////////////////////9/f3////////////////////////////////+/v7////+/v7////////////////////////////////9/f3////+/v4G95Y1AAAALXRSTlMACTZV8QX86k7KKSUN+c+lcEgc4Na8m5I1Mi0T8+3awb+3sYp5Z1tDPCIZhYJUHFgjAAABR0lEQVRYw+3V15KDIBiG4d8ERGNJjy3Z9LrL/d/epgzjEfqhHGV4D5F5BkZQcrlcLhcev+cDXcXMiBqNmWxKZA/YmviyLRaglgTyp9gefYkkYgQbS6wTYHEGYiGA3SXYGsDyejo7Di+rRKt57dhAqhbvw1kIG1gSfQYCG9hejcwtYJkaWVrAxmoktYCpIx5ZeZsreuVtrWByPyA+TWVfTKXuvBWsVo9RfFvawZJAfVD6bDNcbl6X9Erv+KEHlo6ewJ8vcvXQ23bG5tXncj5JVRx2xFiN1FULI6zllzGbd8EmmgmRMMdWpKvcmGIhJ22BKXalhhaGWEUNHQyxiBpKDbFf0neThlgyGeq6CAMMCMUKGOPt2Ay1GAEJENshWAZiZwR7MMj64YQU+IDFSsKaivZ1lYQWn8J106p2Z05Gedo4uVwu15f3D+OJ24iJRosgAAAAAElFTkSuQmCC",class:B},null),d("保存图片")]}),i(m,{class:N,round:!0,block:!0,onClick:J},{default:()=>[i(g,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAMAAADwSaEZAAAAn1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8Kd3m4AAAANHRSTlMA/fnsCBD06NLazbkW46eVj2A4CwXVycSim4AxKCHdroiEeWdUShluPhzui3VyW0K9tX3v38nzcAAAAfJJREFUWMPt1dmWojAUBdATBkFBUMBZy3meuqrP/39bVzehRRdE0HpkP90sQibuJahUKpVKCaOz19A1alZj0B7jHZvhB9M6ZxcvMlsaH2lHE6+4NpnFuqC8o2AOP0JJfeb7ZaCUFlWmKGNFyfbqTIje1JLhEcWZ8iWxBKIpY7UrEHbkgwCFzRlr4NtaNvr4dpKNLooydMY+0lv+TE/DHQpaM9F3MelQGoYIdEqDFz6lsAT/0+KhLMefzRcoyGG++mKMyXr7NV+0AwMF2PlDrTDym5Q0px3hmTpzDMKdI5jWPBlQ6zKT1jZago/sEZQ8ZhFt186eAypbZlm4HWYSSyhMRNavIuoyh1iVzA0xHiZn7hxkZDkyhw8u8gWCj6abmqzXEKYdF5uJsFegHnw+WicL+wIQx/7teDXV0owG79UMO0kFE5t6vDIXZtJvCYXNB+90TUFJ79Zk9LuXRPSgsu8wzRtRqQElc8qUwY5KdTzxyZv+iEpdPNHkjWMKqvSh9m9jljxjHR2qXKDmk82tAYxXp1lrFs6poBtQs5rLdJe9xnxnqI2XEe7MFIkRoSTDzt3kBKVt6sxUC/CCfeZoeoCXhIOMO2CCV617fODhDUFfp1T7m9GHCG8ZXxaz1rA9Alxf4xU/ZuK18IP2qFQqlUoBfwBY2/iSCspkkQAAAABJRU5ErkJggg==",class:B},null),d("分享到微信")]})]),!a.loading&&i("div",{class:[M],style:{top:a.height+"px"},id:"preview-container"},["teacher"===a.type&&i(C,{src:E,class:k},null),"manage"===a.type&&i(C,{src:U,class:k},null),"orchestra"===a.type&&i(C,{src:q,class:k},null),i("div",{class:[F,"orchestra"===a.type&&D]},["orchestra"!==a.type?i(c,null,[i("img",{class:[L],src:a.schoolLogo||I,crossorigin:"anonymous",style:{objectFit:"cover"}},null),i("div",{class:Z},[a.schoolName]),i("div",{class:R},[d("邀请您成为"),i("span",null,["teacher"===a.type&&"乐团伴学老师","manage"===a.type&&"乐团管理老师"])])]):i(c,null,[i("div",{class:Z},[d("乐团报名")]),i("div",{class:R},[a.schoolName])]),i("div",{class:T},[i(y,{text:a.url,logoSize:"small",size:"100%"},null)]),i("div",{class:V},[d("扫描上方二维码完成资料填写")]),"orchestra"!==a.type&&i("div",{class:S},[d("二维码将在"),i("span",null,[a.paramValue,d("小时后")]),d("失效,请及时登记")])])])])}}))}}}))}();