1 |
- !function(){function e(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(a,r)}function t(t){return function(){var n=this,a=arguments;return new Promise((function(r,o){var i=t.apply(n,a);function s(t){e(i,r,o,s,c,"next",t)}function c(t){e(i,r,o,s,c,"throw",t)}s(void 0)}))}}var n=document.createElement("style");n.innerHTML='._btnHeader_qv2f4_1{display:flex;align-items:center;height:var(--van-nav-bar-height)}._btnHeader_qv2f4_1 ._iconBack_qv2f4_6{position:relative;padding-left:var(--van-padding-md);font-size:.53333rem;color:#fff;z-index:9}._saveShareImage_qv2f4_13{position:relative;min-height:100vh;overflow:hidden}._saveShareImage_qv2f4_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_qv2f4_28{z-index:-1;position:absolute;left:0;right:0;top:0}._topImage_qv2f4_35{position:absolute;top:0;left:0;right:0}._shareContaienr_qv2f4_41{position:relative;margin:5.65333rem .58667rem 0;padding-top:1.33333rem;padding-bottom:.61333rem;background:#ffffff;border-radius:.48rem;text-align:center}._shareContaienr_qv2f4_41._orchestraContainer_qv2f4_50{margin-top:4.48rem;padding-top:.53333rem}._shareContaienr_qv2f4_41._orchestraContainer_qv2f4_50 ._schoolName_qv2f4_54{font-size:.53333rem;font-weight:500;color:#f67146;line-height:.74667rem}._shareContaienr_qv2f4_41 ._schoolLogo_qv2f4_60{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_qv2f4_41 ._schoolName_qv2f4_54{font-size:.45333rem;font-weight:500;color:#000;line-height:.64rem;padding:0 .8rem}._shareContaienr_qv2f4_41 ._shareType_qv2f4_80{font-size:.4rem;padding:.21333rem 0 .53333rem;color:#000;line-height:.56rem}._shareContaienr_qv2f4_41 ._shareType_qv2f4_80 span{color:#f67146}._shareContaienr_qv2f4_41 ._qrcodeSection_qv2f4_89{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+jFkVksr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zbON184H+fT9s/y+d6jyflmy2c+ej5+6eUEkZ3ifLPkS9lE4kcPMGv0KcX59PM59KlmIkW/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_qv2f4_41 ._memo_qv2f4_97{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_qv2f4_41 ._endTime_qv2f4_109{font-size:.34667rem;color:#666;line-height:.48rem}._shareContaienr_qv2f4_41 ._endTime_qv2f4_109 span{color:#ff8057}._btnGroup_qv2f4_117{margin:.8rem .58667rem .53333rem;display:flex;align-items:center}._btnGroup_qv2f4_117 ._icon_qv2f4_6{font-size:1.01333rem;margin-left:-.16rem}._btnGroup_qv2f4_117 ._btn_qv2f4_1{background:rgba(255,255,255,.4);border-radius:1.04rem;border:.02667rem solid #ff6e00;font-size:.42667rem;color:#fff;line-height:.58667rem}._btnGroup_qv2f4_117 ._btn_qv2f4_1+._btn_qv2f4_1{margin-left:.34667rem}._btnGroup_qv2f4_117 ._btn_qv2f4_1 .van-button__text{display:flex;align-items:center}\n',document.head.appendChild(n),System.register(["./index-legacy.90c82f08.js","./html2canvas.esm-legacy.19f9c2b7.js","./index-legacy.b4ea4876.js","./orchestra-top_bg-legacy.faca911a.js","./index-legacy.84457c4c.js","./index-legacy.eb4bc59e.js"],(function(e){"use strict";var n,a,r,o,i,s,c,l,u,f,p,d,m,v,g,h,_,A,y,b,q,w,x,R,k;return{setters:[function(e){n=e.d,a=e.ah,r=e.ag,o=e.r,i=e.$,s=e.m,c=e.c,l=e.aj,u=e.F,f=e.q,p=e.B,d=e.a5,m=e.bf,v=e.e,g=e.o,h=e.bq,_=e.p,A=e.bD,y=e.bE,b=e.g},function(e){q=e.h},function(e){w=e.O},function(e){x=e.o},function(e){R=e.O},function(e){k=e.I}],execute:function(){var C="_saveShareImage_qv2f4_13",M="_previewSection_qv2f4_28",F="_topImage_qv2f4_35",D="_shareContaienr_qv2f4_41",Z="_orchestraContainer_qv2f4_50",L="_schoolName_qv2f4_54",T="_schoolLogo_qv2f4_60",E="_shareType_qv2f4_80",z="_qrcodeSection_qv2f4_89",N="_memo_qv2f4_97",V="_endTime_qv2f4_109",B="_btnGroup_qv2f4_117",j="_icon_qv2f4_6",S="_btn_qv2f4_1",U="./assets/teacher-top_bg.aed1eb2a.png",G="./assets/manage-top_bg.d67ca762.png",I="./assets/logo@2x.f7671d6b.png";e("default",n({name:"save-share-image",setup:function(){var e=a();r();var n=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}),J=function(){var e=t(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!K.saveLoading){e.next=2;break}return e.abrupt("return");case 2:K.saveLoading=!0,K.image?X():(n=document.getElementById("preview-container"),q(n,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then(function(){var e=t(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.toDataURL("image/png"),K.image=n,X();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){m(),K.saveLoading=!1})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=function(){if(!K.shareLoading)if(K.shareLoading=!0,K.image)H();else{var e=document.getElementById("preview-container");q(e,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then(function(){var e=t(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.toDataURL("image/png"),K.image=n,H();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){m(),K.shareLoading=!1}))}},H=function(){var e=K.image;setTimeout((function(){K.shareLoading=!1}),100),e&&v({api:"shareTripartite",content:{title:"",desc:"",image:e,video:"",type:"image",shareType:"wechat"}},(function(e){e&&e.content&&g(e.content.message||(e.content.status?"分享成功":"分享失败"))}))},X=function(){var e=t(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h({message:"图片生成中...",forbidClick:!0}),setTimeout((function(){K.saveLoading=!1}),100),e.next=4,_({api:"savePicture",content:{base64:K.image}});case 4:"success"===(null==(n=e.sent)||null===(t=n.content)||void 0===t?void 0:t.status)?A("保存成功"):y("保存失败");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=t(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=(b.user.data.schoolInfos||[]).map((function(e){return e.id})).join(","),e.next=4,s.get("/api-school/school/detail/".concat(t),{});case 4:a=e.sent,n.schoolName=a.data.name,n.schoolId=a.data.id,n.schoolLogo=a.data.logo?a.data.logo+"?t="+ +new Date:"","teacher"===n.type?n.url=location.origin+"/orchestra-school/#/companion-teacher-register?id="+a.data.id+"&name="+a.data.name+"&t="+ +new Date:"manage"===n.type&&(n.url=location.origin+"/orchestra-school/#/manage-teacher-register?id="+a.data.id+"&name="+a.data.name+"&t="+ +new Date),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),P=function(){var a=t(regeneratorRuntime.mark((function t(){var a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s.get("/api-school/orchestra/detail/"+e.query.id);case 3:a=t.sent,r=a.data,n.schoolName=r.name,n.schoolId=r.id,n.schoolLogo=r.schoolLogo+"?t="+ +new Date,"GROUP_BUY"===r.orchestraRegisterType?n.url=window.location.origin+"/orchestra-student/#/preGoodsApply?id="+e.query.id:"PARENT_CONFERENCES"===r.orchestraRegisterType?n.url=window.location.origin+"/orchestra-student/#/pre-register-active?id="+e.query.id:n.url=window.location.origin+"/orchestra-student/#/preApply?id="+e.query.id,t.next=13;break;case 11:t.prev=11,t.t0=t.catch(0);case 13:case"end":return t.stop()}}),t,null,[[0,11]])})));return function(){return a.apply(this,arguments)}}();return i(t(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"teacher"===n.type?n.name="乐团伴学老师注册":"manage"===n.type?n.name="乐团管理老师注册":"orchestra"===n.type&&(n.name="乐团报名"),document.title=n.name,e.prev=2,e.next=5,s.get("/api-school/open/paramConfig/queryByParamName",{requestType:"form",params:{paramName:"qr_code_expire_hours"}});case 5:t=e.sent,a=t.data,n.paramValue=a.paramValue,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(2);case 12:"orchestra"===n.type?P():Y();case 13:case"end":return e.stop()}}),e,null,[[2,10]])})))),function(){return c("div",{class:[C]},[c(R,{position:"top",onGetHeight:function(e){n.height=e}},{default:function(){return[c(l,{title:n.name},null)]}}),"teacher"===n.type&&c(k,{src:U,class:F,style:{top:n.height+"px"}},null),"manage"===n.type&&c(k,{src:G,class:F,style:{top:n.height+"px"}},null),"orchestra"===n.type&&c(k,{src:x,class:F,style:{top:n.height+"px"}},null),c("div",{class:[D,"orchestra"===n.type&&Z]},["orchestra"!==n.type?c(u,null,[c("img",{class:[T],src:n.schoolLogo||I,crossorigin:"anonymous",style:{objectFit:"cover"}},null),c("div",{class:L},[n.schoolName]),c("div",{class:E},[f("邀请您成为"),c("span",null,["teacher"===n.type&&"乐团伴学老师","manage"===n.type&&"乐团管理老师"])])]):c(u,null,[c("div",{class:L},[f("乐团报名")]),c("div",{class:E},[n.schoolName])]),c("div",{class:z},[c(w,{text:n.url,logoSize:"small",size:"100%"},null)]),c("div",{class:N},[f("扫描上方二维码完成资料填写")]),"orchestra"!==n.type&&c("div",{class:V},[f("二维码将在"),c("span",null,[n.paramValue,f("小时后")]),f("失效,请及时登记")])]),c("div",{class:B},[c(p,{class:S,round:!0,block:!0,onClick:J},{default:function(){return[c(d,{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:j},null),f("保存图片")]}}),c(p,{class:S,round:!0,block:!0,onClick:O},{default:function(){return[c(d,{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:j},null),f("分享到微信")]}})]),!n.loading&&c("div",{class:[C,M],style:{top:n.height+"px"},id:"preview-container"},["teacher"===n.type&&c(k,{src:U,class:F},null),"manage"===n.type&&c(k,{src:G,class:F},null),"orchestra"===n.type&&c(k,{src:x,class:F},null),c("div",{class:[D,"orchestra"===n.type&&Z]},["orchestra"!==n.type?c(u,null,[c("img",{class:[T],src:n.schoolLogo||I,crossorigin:"anonymous",style:{objectFit:"cover"}},null),c("div",{class:L},[n.schoolName]),c("div",{class:E},[f("邀请您成为"),c("span",null,["teacher"===n.type&&"乐团伴学老师","manage"===n.type&&"乐团管理老师"])])]):c(u,null,[c("div",{class:L},[f("乐团报名")]),c("div",{class:E},[n.schoolName])]),c("div",{class:z},[c(w,{text:n.url,logoSize:"small",size:"100%"},null)]),c("div",{class:N},[f("扫描上方二维码完成资料填写")]),"orchestra"!==n.type&&c("div",{class:V},[f("二维码将在"),c("span",null,[n.paramValue,f("小时后")]),f("失效,请及时登记")])])])])}}}))}}}))}();
|