import{d as V,G as x,L as _,R as m,b as A,l as h,S as k,C as R,_ as T,c as t,h as i,e as o,g as n,f as a,t as w,w as r,x as $,i as y,j as c,I as b,k as l}from"./index-BGEOEKbF.js";const I=V({name:"PcMy",setup(){const e=x.user;_.heartbeat(3e4),_.log_ac("page",{data:"PcMy"}),m.renew();const s=A({loging:!1,logout_showing:!1,dlg_logout:()=>{s.logout_showing=!0},get_wx_info:()=>{e.get_wx_info()},login:()=>{h.emit("wx-login",{})},logout:()=>{e.logout(),x.my_clound.close(),s.logout_showing=!1},checkVer:()=>{k.post("/EXE/version",{}).then(d=>{k.post("/py/call",{module:"mod",func:"checkUpdate",args:[d.data],options:{center:1}}).then(()=>{h.emit("显示新版本",{})}).catch(C=>{})})}});return{isQt:R.isQt,user:e,ROLE:m,D:s}}}),L={class:"flex-v flex-1 flex-stretch"},N={key:0,class:"rows flex-1 flex-v bk-f8"},P={class:"flex-1 flex-cc"},Q={class:"bk-f box-ccc radius pa-3"},S={key:1,class:"flex-v flex-1 flex-stretch bk-e"},H={class:"rows flex-v bk-f8 v-scroll"},M={class:"flex row pointer"},G={key:0,class:"icon flex-cc"},J=["src"],O={key:1,class:"icon flex-cc"},j={class:"flex-1 flex-v flex-top"},U={class:"b900"},X={key:0,class:"text-orange-"},q={class:"h12 text-8"},z={class:"text-info"},K={class:"text-8 h14 text-left pa-5"},W={class:"flex-cc pa-2"},Y={class:"fixed-back flex-cc"},Z={class:"pa-5 bk-f radius"};function ss(e,s,d,C,es,os){var g;const f=c("TianJiaTell"),D=c("RoleAdmin"),p=c("v-btn"),F=c("HomeQrcodes"),B=c("CopyRight"),E=b("copyable"),v=b("color");return l(),t("div",L,[e.user.has_token()?a("",!0):(l(),t("div",N,[i(f,{class:"text-8 h14 text-left pa-5"}),o("div",P,[o("div",Q,[o("div",{class:"h14 pa-3 pointer",onClick:s[0]||(s[0]=(...u)=>e.D.login&&e.D.login(...u))},s[4]||(s[4]=[n("立即"),o("span",{class:"text-info px-1"},"登录",-1),n("，即可使用 “天加快模” 云模型")]))])])])),e.user.has_token()?(l(),t("div",S,[o("div",H,[o("div",M,[e.user.wx.headimgurl?(l(),t("div",G,[o("img",{class:"headimg",src:e.user.wx.headimgurl},null,8,J)])):a("",!0),e.user.wx.headimgurl?a("",!0):(l(),t("div",O,s[5]||(s[5]=[o("svg",null,[o("use",{"xlink:href":"#svg-user-line"})],-1)]))),o("div",j,[o("h3",U,[n(w(((g=e.user.wx)==null?void 0:g.nickname)||"[匿名]"),1),e.ROLE.isTH?(l(),t("span",X,"（天华 VIP 用户）")):a("",!0)]),o("div",q,[s[6]||(s[6]=n(" 我的ID: ")),o("span",z,w(e.user.token.uid),1)])])]),r((l(),t("div",K,[a("",!0),i(f,{css:"text-8 h14 text-left pa-5"})])),[[E]]),s[10]||(s[10]=o("div",{class:"flex-1"},null,-1)),i(D,{class:"my-2 pa-3 w-25em"}),s[11]||(s[11]=o("div",{class:"flex-1"},null,-1)),o("div",W,[r((l(),t("div",{class:"h12 py-1 px-3 box-ccc radius",onClick:s[1]||(s[1]=(...u)=>e.D.dlg_logout&&e.D.dlg_logout(...u))},s[7]||(s[7]=[n("退出登录")]))),[[v,"#ccc"]]),s[9]||(s[9]=o("div",{class:"px-4"},null,-1)),r((l(),t("div",{class:"h12 py-1 px-3 box-ccc radius",onClick:s[2]||(s[2]=(...u)=>e.D.checkVer&&e.D.checkVer(...u))},s[8]||(s[8]=[n("检查新版本")]))),[[v,"#ccc"]])])])])):a("",!0),r(o("div",Y,[o("div",Z,[i(p,{class:"mr-3 my-5",color:"primary",onClick:e.D.logout},{default:y(()=>s[12]||(s[12]=[n("退出登录")])),_:1},8,["onClick"]),i(p,{class:"ml-3 my-5",color:"#ccc",onClick:s[3]||(s[3]=u=>e.D.logout_showing=!1)},{default:y(()=>s[13]||(s[13]=[n("取消")])),_:1})])],512),[[$,e.D.logout_showing]]),i(F,{class:"flex flex-around bt-ccc pt-2 h12"}),i(B,{class:"h12 py-2 bt-ccc"})])}const ls=T(I,[["render",ss],["__scopeId","data-v-31232faa"]]);export{ls as default};
