!function(){function e(e,n,t,r,o,a,c){try{var s=e[a](c),i=s.value}catch(u){return void t(u)}s.done?n(i):Promise.resolve(i).then(r,o)}function n(n){return function(){var t=this,r=arguments;return new Promise((function(o,a){var c=n.apply(t,r);function s(n){e(c,o,a,s,i,"next",n)}function i(n){e(c,o,a,s,i,"throw",n)}s(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(["./html2canvas.esm-legacy.19f9c2b7.js","./index-legacy.5d6d69c8.js","./index-legacy.39e1ca8a.js"],(function(e){"use strict";var t,r,o,a,c,s,i,u,l,d,v,g,f,p,b,m;return{setters:[function(e){t=e.h},function(e){r=e.d,o=e.ag,a=e.r,c=e.c,s=e.aj,i=e.a5,u=e.F,l=e.be,d=e.bp,v=e.p,g=e.bC,f=e.bD,p=e.f,b=e.e},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",r({name:"follow-account",setup:function(){var e=o(),r=a({saveLoading:!1,image:null,shareLoading:!1}),A=function(){var e=n(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.saveLoading){e.next=2;break}return e.abrupt("return");case 2:r.saveLoading=!0,r.image?h():(o=document.getElementById("preview-container"),t(o,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then(function(){var e=n(regeneratorRuntime.mark((function e(n){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=n.toDataURL("image/png"),r.image=t,h();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()).catch((function(){l(),r.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,t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d({message:"图片生成中...",forbidClick:!0}),setTimeout((function(){r.saveLoading=!1}),100),e.next=4,v({api:"savePicture",content:{base64:r.image}});case 4:"success"===(null==(t=e.sent)||null===(n=t.content)||void 0===n?void 0:n.status)?g("保存成功"):f("保存失败");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){p().isApp?b({api:"goBack"}):e.back()};return function(){return c(u,null,[c("div",{class:w.followAccount},[c(s,{background:"transparent",style:"position: fixed; width: 100%;z-index: 999;top: 0;left: 0;"},{content:function(){return c("div",{class:w.btnHeader,onClick:D},[c(i,{name:"arrow-left",class:w.iconBack},null)])}}),c(m,{src:"./assets/content1.352a4b32.png",class:w.content1},null),c(m,{src:"./assets/content2.f6b3efac.png",class:w.content2},null),c("div",{class:w.saveQrcode,onClick:A},null),c("div",{id:"preview-container",class:w.followQrcode},[c(m,{src:"./assets/qrcode.fa941852.jpg"},null)])])])}}}))}}}))}();
