!function(){function e(e,n,t,r,o,a,s){try{var i=e[a](s),c=i.value}catch(u){return void t(u)}i.done?n(c):Promise.resolve(c).then(r,o)}function n(n){return function(){var t=this,r=arguments;return new Promise((function(o,a){var s=n.apply(t,r);function i(n){e(s,o,a,i,c,"next",n)}function c(n){e(s,o,a,i,c,"throw",n)}i(void 0)}))}}var t=document.createElement("style");t.innerHTML='._btnHeader_ruvwe_1{display:flex;align-items:center;height:var(--van-nav-bar-height)}._btnHeader_ruvwe_1 ._iconBack_ruvwe_6{position:relative;padding-left:var(--van-padding-md);font-size:.53333rem;color:#fff;z-index:9}._followAccount_ruvwe_13{position:relative;min-height:100vh;background:url(./assets/top_bg.fe3e4dd8.png) no-repeat top center,url(./assets/bottom_bg.b617db3d.png) no-repeat bottom center,url(./assets/bg.2e8f9208.png) repeat center center;background-color:#5cbd75;background-size:100%;padding:11.81333rem .53333rem 0;overflow:hidden}._followAccount_ruvwe_13:before{content:" ";position:absolute;width:1.33333rem;height:1.25333rem;background:url(data:image/png;base64,[encoded data, 4796 characters]) no-repeat center center;background-size:contain;left:0;top:17.06667rem;z-index:1}._followAccount_ruvwe_13 ._content2_ruvwe_33{padding:.8rem 0}._followAccount_ruvwe_13 ._saveQrcode_ruvwe_36{background:url(./assets/btn.25bca511.png) no-repeat center center;background-size:contain;width:8rem;height:1.33333rem;margin:0 auto;margin-bottom:1.86667rem}._followAccount_ruvwe_13 ._followQrcode_ruvwe_44{position:absolute;top:0;left:0;z-index:-1;background-color:#fff}\n',document.head.appendChild(t),System.register(["./index-legacy.9e093f2b.js","./html2canvas.esm-legacy.19f9c2b7.js","./index-legacy.a09a7405.js"],(function(e){"use strict";var t,r,o,a,s,i,c,u,l,d,v,g,f,p,b,m;return{setters:[function(e){t=e.d,r=e.ag,o=e.r,a=e.c,s=e.aj,i=e.a5,c=e.F,u=e.bj,l=e.bt,d=e.p,v=e.bF,g=e.bG,f=e.f,p=e.e},function(e){b=e.h},function(e){m=e.I}],execute:function(){var w={btnHeader:"_btnHeader_ruvwe_1",iconBack:"_iconBack_ruvwe_6",followAccount:"_followAccount_ruvwe_13",content2:"_content2_ruvwe_33",saveQrcode:"_saveQrcode_ruvwe_36",followQrcode:"_followQrcode_ruvwe_44"};e("default",t({name:"follow-account",setup:function(){var e=r(),t=o({saveLoading:!1,image:null,shareLoading:!1}),A=function(){var e=n(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.saveLoading){e.next=2;break}return e.abrupt("return");case 2:t.saveLoading=!0,t.image?h():(r=document.getElementById("preview-container"),b(r,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then(function(){var e=n(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.toDataURL("image/png"),t.image=r,h();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()).catch((function(){u(),t.saveLoading=!1})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=n(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l({message:"图片生成中...",forbidClick:!0}),setTimeout((function(){t.saveLoading=!1}),100),e.next=4,d({api:"savePicture",content:{base64:t.image}});case 4:"success"===(null==(r=e.sent)||null===(n=r.content)||void 0===n?void 0:n.status)?v("已保存到相册"):g("保存失败");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){f().isApp?p({api:"goBack"}):e.back()};return function(){return a(c,null,[a("div",{class:w.followAccount},[a(s,{background:"transparent",style:"position: fixed; width: 100%;z-index: 999;top: 0;left: 0;"},{content:function(){return a("div",{class:w.btnHeader,onClick:D},[a(i,{name:"arrow-left",class:w.iconBack},null)])}}),a(m,{src:"./assets/content1.352a4b32.png",class:w.content1},null),a(m,{src:"./assets/content2.f6b3efac.png",class:w.content2},null),a("div",{class:w.saveQrcode,onClick:A},null),a("div",{id:"preview-container",class:w.followQrcode},[a(m,{src:"./assets/qrcode.fa941852.jpg"},null)])])])}}}))}}}))}();
