1 |
- !function(){function e(e,t,n,r,c,a,i){try{var o=e[a](i),u=o.value}catch(s){return void n(s)}o.done?t(u):Promise.resolve(u).then(r,c)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(c,a){var i=t.apply(n,r);function o(t){e(i,c,a,o,u,"next",t)}function u(t){e(i,c,a,o,u,"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.fba2875c.js","./index-legacy.8ed66537.js","./index-legacy.a8eec4ea.js","./index-legacy.fc77fe4f.js","./index-legacy.e7460ea1.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js","./index-legacy.45490234.js","./index-legacy.32d1c54d.js","./index-legacy.7dcec7b3.js","./index-legacy.8921f068.js","./use-id-legacy.db87b112.js","./icon_checkbox_default-legacy.e33240bc.js","./icon_checkbox-tenant-legacy.2501219f.js","./index-legacy.21d121b2.js"],(function(e){"use strict";var n,r,c,a,i,o,u,s,l,f;return{setters:[function(e){n=e.d,r=e.g,c=e.w,a=e.T,i=e.n,o=e.j,u=e.F,s=e.B,l=e.z},function(e){f=e.U},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var d="_cashProtocol_ifi2b_1",g="_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(c){}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,c.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,c.get("/api-teacher/sysUserContractRecord/sign",{params:{contractType:"WITHDRAW"}});case 3:setTimeout((function(){a("签署成功")}),100),setTimeout((function(){i({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(u,null,[o("iframe",{src:this.url,frameborder:"0",style:{width:"100%",height:"100vh",border:"none"}},null),o(s,{type:"primary",size:"large",block:!0,round:!0,class:g,onClick:this.onSubmit},{default:function(){return[l("我已阅读并同意")]}})]):o(f,{onSuccess:this.onSuccess},null)])}}))}}}))}();
|