import{d as s,r as a,b as e,a9 as t,f as c,g as l,o,h as n,w as u,i as d,j as _,t as i,k as r,F as p,a as f,aD as m,z as y,O as v,a1 as k,cA as b,_ as x}from"./index-Cg3FU-dV.js";import{_ as g}from"./uni-nav-bar.BXgu2eq7.js";import{_ as j}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-icons.D_sy4NxH.js";/* empty css                                                                  *//* empty css                                                                    */const h=j(s({__name:"index",setup(s){const j=a(!1),h=a(0),C=e();t((s=>{h.value=Number(s.type)}));const w=s=>{b(s).then((s=>{x()})).catch((s=>{}))},B=()=>{const s={key:C.state.app.codeSuccessKey,status:1};w(s)},N=()=>{const s={key:C.state.app.codeSuccessKey,status:0};w(s)};return(s,a)=>{const e=y,t=c(l("uni-nav-bar"),g),b=v,x=k;return o(),n(e,{class:"content"},{default:u((()=>[d(e,{class:"cr-position-header"},{default:u((()=>[d(e,{class:"status_bar"}),d(t,{"left-text":"取消",onClickLeft:N},{default:u((()=>[d(e,{class:"uni-nav-bar-text"},{default:u((()=>[_(i(0===h.value?"扫码失败":"扫码成功"),1)])),_:1})])),_:1})])),_:1}),d(e,{class:"code-content"},{default:u((()=>[d(e,{class:"code-tips"},{default:u((()=>[1===h.value?(o(),r(p,{key:0},[d(b,{class:"image",src:"/work/assets/code-success-BjUxErBO.png",mode:""}),d(e,{class:"code-tips-text"},{default:u((()=>[_("陀螺匠登录确认")])),_:1})],64)):(o(),r(p,{key:1},[d(b,{class:"image",src:"/work/assets/code-filled-BiJN6kzb.png",mode:""}),d(e,{class:"code-tips-text"},{default:u((()=>[_("请认准陀螺匠二维码")])),_:1}),d(e,{class:"filled-text"},{default:u((()=>[_(" 陀螺匠无法处理其他二维码，请扫描网页版登录二维码进行的登录："+i(f(m)),1)])),_:1})],64))])),_:1}),d(e,{class:"code-button"},{default:u((()=>[1===h.value?(o(),r(p,{key:0},[d(x,{class:"button",type:"primary",loading:j.value,onClick:B},{default:u((()=>[_("确认并登录")])),_:1},8,["loading"]),d(x,{class:"button cancel",onClick:N},{default:u((()=>[_("取消登录")])),_:1})],64)):(o(),n(x,{key:1,class:"button",type:"primary",onClick:N},{default:u((()=>[_("返回")])),_:1}))])),_:1})])),_:1})])),_:1})}}}),[["__scopeId","data-v-6df49781"]]);export{h as default};
