| 1 |
- import{u as _,s as y,A as g,n}from"./index-f308ea3a.js";import{u as k}from"./vue-router-0190217c.js";import{a as l,o as x,U as S,V as b,W as h,j as C,X as O,$ as T}from"./vue-15ee4564.js";const A=T("p",null,"当前模块未付费,请前往付费使用",-1),J={__name:"noAccess",setup(N,{expose:c}){const r=_();let{system:i,mods:u,act_mods:w}=y(r);const m=k(),e=l(),s=l(!0),d=()=>{sessionStorage.setItem("isPay",1),u.value=i.value[1].modules,m.push({name:"payOrders"})},p=async()=>{if(e.value==="取消")s.value=!1;else{const o=await g.requested({classname:"system.payorder.payorder",method:"sendMessage",content:{sys_payorderid:0}});o.code===1?n.info({message:"提醒老板付费",description:"已提醒老板付费",onClick:()=>{}}):n.info({message:"提醒老板付费",description:o.msg,onClick:()=>{}})}},t=()=>{console.log(JSON.parse(sessionStorage.getItem("active_account")).usertype),JSON.parse(sessionStorage.getItem("active_account")).usertype==22?e.value="提醒付费":e.value="取消",s.value=!0};return c({visibleShow:t}),x(()=>{t()}),(o,a)=>{const v=S("a-modal");return b(),h("div",null,[C(v,{visible:s.value,"onUpdate:visible":a[0]||(a[0]=f=>s.value=f),title:"付费提醒",okText:"付费",cancelText:e.value,onOk:d,onCancel:p,centered:!0,closable:!1},{default:O(()=>[A]),_:1},8,["visible","cancelText"])])}}};export{J as default};
|