!function(){function e(e,t,n,r,i,a,c){try{var o=e[a](c),s=o.value}catch(u){return void n(u)}o.done?t(s):Promise.resolve(s).then(r,i)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(i,a){var c=t.apply(n,r);function o(t){e(c,i,a,o,s,"next",t)}function s(t){e(c,i,a,o,s,"throw",t)}o(void 0)}))}}var n=document.createElement("style");n.innerHTML="._cashProtocol_ifi2b_1{position:relative}._cashProtocol_ifi2b_1 ._submit_ifi2b_4{width:90%;margin-left:5%;margin-bottom:.4rem;position:absolute;bottom:0;z-index:99}\n",document.head.appendChild(n),System.register(["./index-legacy.088d07fe.js","./index-legacy.e79f682c.js","./index-legacy.666b8d34.js","./index-legacy.0364b3a2.js","./index-legacy.6168d53d.js","./index-legacy.e7620068.js","./use-height-legacy.166530e2.js","./index-legacy.ab524b39.js","./index-legacy.062d49e9.js","./index-legacy.958bfabf.js","./index-legacy.fc0040e4.js","./use-id-legacy.a726c7df.js","./icon_checkbox_default-legacy.e33240bc.js","./index-legacy.3db9a70d.js"],(function(e){"use strict";var n,r,i,a,c,o,s,u,l,f;return{setters:[function(e){n=e.d,r=e.s,i=e.e,a=e.aE,c=e.p,o=e.i,s=e.F,u=e.B,l=e.w},function(e){f=e.U},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var d="_cashProtocol_ifi2b_1",m="_submit_ifi2b_4";e("default",n({name:"cash-protocol",data:function(){return{realStatus:!0,url:""}},mounted:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{console.log(r.user),(n=r.user.data).realName&&n.idCardNo?e.getDetail():e.realStatus=!1}catch(i){}case 1:case"end":return t.stop()}}),t)})))()},methods:{getDetail:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.get("/api-teacher/sysUserContractRecord/queryLatestContractTemplate",{params:{contractType:"WITHDRAW"}});case 3:n=t.sent,e.url=window.location.origin+window.location.pathname+"/pdf/web/viewer.html?file="+encodeURIComponent(n.data.origanalFileUrl)+"&btn=1",t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:case"end":return t.stop()}}),t,null,[[0,7]])})))()},onSubmit:function(){return t(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.get("/api-teacher/sysUserContractRecord/sign",{params:{contractType:"WITHDRAW"}});case 3:setTimeout((function(){a("签署成功")}),100),setTimeout((function(){c({api:"openPageSuccess",content:{page:"WITHDRAW"}})}),1e3),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})))()},onSuccess:function(){this.realStatus=!0,this.getDetail()}},render:function(){return o("div",{class:d},[this.realStatus?o(s,null,[o("iframe",{src:this.url,frameborder:"0",style:{width:"100%",height:"100vh",border:"none"}},null),o(u,{type:"primary",size:"large",block:!0,round:!0,class:m,onClick:this.onSubmit},{default:function(){return[l("我已阅读并同意")]}})]):o(f,{onSuccess:this.onSuccess},null)])}}))}}}))}();
