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