index-legacy.d9b77e6c.js 5.3 KB

1
  1. !function(){function e(e,t,n,r,a,i,o){try{var c=e[i](o),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,a)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(a,i){var o=t.apply(n,r);function c(t){e(o,a,i,c,u,"next",t)}function u(t){e(o,a,i,c,u,"throw",t)}c(void 0)}))}}var n=document.createElement("style");n.innerHTML='._cashProtocol_1ufde_1{position:relative}._cashProtocol_1ufde_1 ._submit_1ufde_4{width:85%;margin-left:5%;margin-bottom:.4rem;position:absolute;bottom:0;height:1.17333rem;line-height:1.17333rem;z-index:99}._dialogPopup_1ufde_14{width:84%;border-radius:.21333rem}._dialogSection_1ufde_18{padding:.48rem}._dialogSection_1ufde_18 ._dialogTitle_1ufde_21{display:flex;align-items:center;font-size:.48rem;font-weight:500;color:#333;line-height:.8rem}._dialogSection_1ufde_18 ._dialogTitle_1ufde_21:before{content:"";width:.10667rem;height:.45333rem;background:linear-gradient(180deg,#59E5D5 0%,#2DC7AA 100%);border-radius:.08rem;margin-right:.18667rem}._dialogSection_1ufde_18 ._dialogContent_1ufde_37{padding-top:.53333rem;padding-bottom:.85333rem;font-size:.37333rem;color:#666;line-height:.53333rem}._dialogSection_1ufde_18 ._dialogBtn_1ufde_44{display:block;width:3.04rem;height:1.06667rem;font-size:.42667rem;margin:0 auto}\n',document.head.appendChild(n),System.register(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.8069d9ea.js","./index-legacy.87bcd48f.js","./index-legacy.4f8bc5f4.js","./index-legacy.2a290207.js","./index-legacy.f8f0c467.js","./index-legacy.7df716cf.js","./index-legacy.5e551733.js","./index-legacy.4e5c868b.js","./index-legacy.610f0a70.js","./index-legacy.78ce4f6b.js","./use-id-legacy.54528695.js","./icon_checkbox-legacy.6421631e.js","./icon_checkbox_default-legacy.9f3738fd.js","./icon_checkbox-tenant-legacy.b4d3b7a3.js","./index-legacy.6f523508.js","./index-legacy.69a58442.js","./index-legacy.bbc2b10e.js"],(function(e){"use strict";var n,r,a,i,o,c,u,s,d,l,f,g,h;return{setters:[function(e){n=e.d,r=e.y,a=e.g,i=e.f,o=e.n,c=e.j,u=e.F,s=e.B,d=e.A,l=e.aS},function(e){f=e.U},function(e){g=e.C},function(e){h=e.T},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var _="_cashProtocol_1ufde_1",m="_submit_1ufde_4",p="_dialogPopup_1ufde_14",y="_dialogSection_1ufde_18",b="_dialogTitle_1ufde_21",v="_dialogContent_1ufde_37",x="_dialogBtn_1ufde_44";e("default",n({name:"cash-protocol",data:function(){return{dialogStatus:!1,realStatus:!0,url:"",signStatus:""}},mounted:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.get("/api-teacher/sysUserContractRecord/checkContractSignV2?contractType=WITHDRAW");case 3:n=t.sent,i=n.data,e.signStatus=i,(o=a.user.data).realName&&o.idCardNo?e.getDetail():e.realStatus=!1,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}}),t,null,[[0,10]])})))()},methods:{getDetail:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,"SUCCESS"!==e.signStatus){t.next=8;break}return t.next=4,r.get("/api-teacher/sysUserContractRecord/querySignContract",{params:{contractType:"WITHDRAW"}});case 4:n=t.sent,e.url=window.location.origin+window.location.pathname+"/pdf/web/viewer.html?file="+encodeURIComponent(n.data)+"&btn=1",t.next=12;break;case 8:return t.next=10,r.get("/api-teacher/sysUserContractRecord/queryLatestContractTemplate",{params:{contractType:"WITHDRAW"}});case 10:a=t.sent,e.url=window.location.origin+window.location.pathname+"/pdf/web/viewer.html?file="+encodeURIComponent(a.data.origanalFileUrl)+"&btn=1";case 12:t.next=16;break;case 14:t.prev=14,t.t0=t.catch(0);case 16:case"end":return t.stop()}}),t,null,[[0,14]])})))()},onSubmit:function(){var e=this;return t(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.get("/api-teacher/sysUserContractRecord/sign",{params:{contractType:"WITHDRAW"}});case 3:e.dialogStatus=!0,t.next=8;break;case 6:t.prev=6,t.t0=t.catch(0);case 8:case"end":return t.stop()}}),t,null,[[0,6]])})))()},onSuccess:function(){this.realStatus=!0,this.getDetail()},onBack:function(){i().isApp?o({api:"goBack"}):this.$router.back()}},render:function(){var e=this;return c("div",{class:_},[c(h,{position:"top"},{default:function(){return[c(g,null,null)]}}),this.realStatus?c(u,null,[c("iframe",{src:this.url,frameborder:"0",style:{width:"100%",height:"calc(100vh - var(--header-height))",border:"none"}},null),"NOT_SIGN"===this.signStatus?c(s,{type:"primary",size:"large",block:!0,round:!0,class:m,onClick:this.onSubmit},{default:function(){return[d("我已阅读并同意")]}}):""]):c(f,{hideHeader:!0,onSuccess:this.onSuccess},null),c(l,{show:this.dialogStatus,"onUpdate:show":function(t){return e.dialogStatus=t},round:!0,class:p},{default:function(){return[c("div",{class:y},[c("div",{class:b},[d("提示")]),c("div",{class:v},[d("结算协议签署中,签署成功后即可申请结算")]),c(s,{round:!0,type:"primary",class:x,onClick:function(){return e.onBack()}},{default:function(){return[d("我知道了")]}})])]}})])}}))}}}))}();