提交 e8d8ff5a 编写于 作者: 刘英杰's avatar 刘英杰

保存

上级 d044a5a3
import{u as p,f as u,o as l,c as m,a as _,h as k,L as f,i as w,C as d,j as s,G as a,S as y,k as g}from"./index-a7655152.js";const v={style:{display:"flex","justify-content":"center","margin-top":"50%"}},T={__name:"SSO",setup(x){const t=p(),c=async o=>{const e=await y(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){s.set("site-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires);const n=await a();s.set("site-user-info",n.response.role),await t.replace({name:"welcome"})}},r=async o=>{const e=await g(o);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){s.set("site-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires);const n=await a();s.set("site-user-info",n.response.role),await t.replace({name:"welcome"})}},i=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await r(e)},test:async()=>{const e=await d();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){s.set("site-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires);const n=await a();s.set("site-user-info",n.response.role),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return u(()=>{i()}),(o,e)=>{const n=f;return l(),m("div",v,[_(n,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[w(" 登录中")]),_:1})])}}};export{T as default};
import{u as p,f as u,o as l,c as m,a as _,h as k,L as f,i as y,C as w,j as s,G as o,S as d,k as g}from"./index-bc30a3de.js";const v={style:{display:"flex","justify-content":"center","margin-top":"50%"}},O={__name:"SSO",setup(x){const t=p(),c=async a=>{const e=await d(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){s.set("site-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires);const n=await o();s.set("site-user-info",JSON.stringify(n.response)),await t.replace({name:"welcome"})}},i=async a=>{const e=await g(a);if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){s.set("site-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires);const n=await o();s.set("site-user-info",JSON.stringify(n.response)),await t.replace({name:"welcome"})}},r=async()=>{({asc:async()=>{let e={token:t.currentRoute.value.query.token};await c(e)},first:async()=>{let e={sign:t.currentRoute.value.query.sign,code:t.currentRoute.value.query.code,timestamp:t.currentRoute.value.query.timestamp};await i(e)},test:async()=>{const e=await w();if(e===void 0)await t.replace({name:"403"});else if(e.response.access_token.token_content!==""){s.set("site-management-token",e.response.access_token.token_content),s.set("time",e.response.access_token.expires);const n=await o();s.set("site-user-info",JSON.stringify(n.response)),await t.replace({name:"welcome"})}}})[t.currentRoute.value.query.type]()};return u(()=>{r()}),(a,e)=>{const n=f;return l(),m("div",v,[_(n,{size:"38px",color:"#1989fa",vertical:""},{default:k(()=>[y(" 登录中")]),_:1})])}}};export{O as default};
import{u as i,f as l,o as p,c as k,a as _,h as d,j as s,L as m,i as y}from"./index-a7655152.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=i(),a=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links,u=e.currentRoute.value.query.id;await e.push({path:`/${o}`,query:{id:u}})}},c=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links;await e.push({path:`/${o}`})}},r=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await a(n)}else if(Number(e.currentRoute.value.query.type)===1){let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await c(n)}};return l(()=>{r()}),(n,t)=>{const o=m;return p(),k("div",f,[_(o,{size:"38px",color:"#1989fa",vertical:""},{default:d(()=>[y(" 登录中")]),_:1})])}}};export{q as default}; import{u as i,f as l,o as p,c as k,a as _,h as d,j as s,L as m,i as y}from"./index-bc30a3de.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},q={__name:"SSOInfo",setup(v){const e=i(),a=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links,u=e.currentRoute.value.query.id;await e.push({path:`/${o}`,query:{id:u}})}},c=async n=>{const t=await(void 0)(n);if(t.code!==1)await e.replace({name:"403"});else if(t.response.access_token.token_content!==""){s.set("site-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires);let o=e.currentRoute.value.query.links;await e.push({path:`/${o}`})}},r=async()=>{if(Number(e.currentRoute.value.query.type)===2){s.set("token",e.currentRoute.value.query.token);let n={token:s.get("token")};await a(n)}else if(Number(e.currentRoute.value.query.type)===1){let n={sign:e.currentRoute.value.query.sign,code:e.currentRoute.value.query.code,timestamp:e.currentRoute.value.query.timestamp};await c(n)}};return l(()=>{r()}),(n,t)=>{const o=m;return p(),k("div",f,[_(o,{size:"38px",color:"#1989fa",vertical:""},{default:d(()=>[y(" 登录中")]),_:1})])}}};export{q as default};
import{u as I}from"./use-placeholder-93921726.js";import{b,d as R,r as w,t as A,v as s,H as C,a as r,V as o,Z as P,I as L,w as N}from"./index-a7655152.js";const[S,t]=b("nav-bar"),y={title:String,fixed:Boolean,zIndex:A,border:s,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:s};var E=R({name:S,props:y,emits:["clickLeft","clickRight"],setup(e,{emit:l,slots:a}){const c=w(),f=I(c,t),d=n=>l("clickLeft",n),h=n=>l("clickRight",n),x=()=>a.left?a.left():[e.leftArrow&&r(L,{class:t("arrow"),name:"arrow-left"},null),e.leftText&&r("span",{class:t("text")},[e.leftText])],g=()=>a.right?a.right():r("span",{class:t("text")},[e.rightText]),i=()=>{const{title:n,fixed:u,border:v,zIndex:T}=e,k=C(T),B=e.leftArrow||e.leftText||a.left,m=e.rightText||a.right;return r("div",{ref:c,style:k,class:[t({fixed:u}),{[P]:v,"van-safe-area-top":e.safeAreaInsetTop}]},[r("div",{class:t("content")},[B&&r("div",{class:[t("left"),e.clickable?o:""],onClick:d},[x()]),r("div",{class:[t("title"),"van-ellipsis"]},[a.title?a.title():n]),m&&r("div",{class:[t("right"),e.clickable?o:""],onClick:h},[g()])])])};return()=>e.fixed&&e.placeholder?f(i):i()}});const z=N(E);export{z as N}; import{u as I}from"./use-placeholder-bccf71d4.js";import{b,d as R,r as w,t as A,v as s,H as C,a as r,W as o,$ as P,I as L,w as N}from"./index-bc30a3de.js";const[S,t]=b("nav-bar"),y={title:String,fixed:Boolean,zIndex:A,border:s,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:s};var E=R({name:S,props:y,emits:["clickLeft","clickRight"],setup(e,{emit:l,slots:a}){const c=w(),f=I(c,t),d=n=>l("clickLeft",n),h=n=>l("clickRight",n),x=()=>a.left?a.left():[e.leftArrow&&r(L,{class:t("arrow"),name:"arrow-left"},null),e.leftText&&r("span",{class:t("text")},[e.leftText])],g=()=>a.right?a.right():r("span",{class:t("text")},[e.rightText]),i=()=>{const{title:n,fixed:u,border:v,zIndex:T}=e,k=C(T),B=e.leftArrow||e.leftText||a.left,m=e.rightText||a.right;return r("div",{ref:c,style:k,class:[t({fixed:u}),{[P]:v,"van-safe-area-top":e.safeAreaInsetTop}]},[r("div",{class:t("content")},[B&&r("div",{class:[t("left"),e.clickable?o:""],onClick:d},[x()]),r("div",{class:[t("title"),"van-ellipsis"]},[a.title?a.title():n]),m&&r("div",{class:[t("right"),e.clickable?o:""],onClick:h},[g()])])])};return()=>e.fixed&&e.placeholder?f(i):i()}});const z=N(E);export{z as N};
import{b as z,d as L,r as I,g as A,l as N,n as H,p as F,q as K,f as q,s as V,a as t,t as y,v as C,m as O,x as S,y as G,z as J,A as Q,B as $,I as E,w as T,D as Y,E as Z,H as W,J as X,K as ee,M as te,N as ne,O as D,P as ae,_ as oe,u as se,Q as le,o as ce,c as ie,R as n,h as o,i as g,T as re,U as de}from"./index-bc30a3de.js";import{r as ue,u as fe,C as _e,a as ve}from"./index-b14ce5de.js";import{u as me}from"./use-placeholder-bccf71d4.js";const[he,k]=z("image"),xe={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:y,height:y,radius:y,lazyLoad:Boolean,iconSize:y,showError:C,errorIcon:O("photo-fail"),iconPrefix:String,showLoading:C,loadingIcon:O("photo")};var be=L({name:he,props:xe,emits:["load","error"],setup(e,{emit:h,slots:d}){const _=I(!1),u=I(!0),i=I(),{$Lazyload:f}=A().proxy,c=N(()=>{const a={width:S(e.width),height:S(e.height)};return G(e.radius)&&(a.overflow="hidden",a.borderRadius=S(e.radius)),a});H(()=>e.src,()=>{_.value=!1,u.value=!0});const w=a=>{u.value&&(u.value=!1,h("load",a))},s=()=>{const a=new Event("load");Object.defineProperty(a,"target",{value:i.value,enumerable:!0}),w(a)},l=a=>{_.value=!0,u.value=!1,h("error",a)},r=(a,P,B)=>B?B():t(E,{name:a,size:e.iconSize,class:P,classPrefix:e.iconPrefix},null),m=()=>{if(u.value&&e.showLoading)return t("div",{class:k("loading")},[r(e.loadingIcon,k("loading-icon"),d.loading)]);if(_.value&&e.showError)return t("div",{class:k("error")},[r(e.errorIcon,k("error-icon"),d.error)])},p=()=>{if(_.value||!e.src)return;const a={alt:e.alt,class:k("img"),style:{objectFit:e.fit,objectPosition:e.position}};return e.lazyLoad?J(t("img",$({ref:i},a),null),[[Q("lazy"),e.src]]):t("img",$({ref:i,src:e.src,onLoad:w,onError:l},a),null)},x=({el:a})=>{const P=()=>{a===i.value&&u.value&&s()};i.value?P():V(P)},b=({el:a})=>{a===i.value&&!_.value&&l()};return f&&F&&(f.$on("loaded",x),f.$on("error",b),K(()=>{f.$off("loaded",x),f.$off("error",b)})),q(()=>{V(()=>{var a;(a=i.value)!=null&&a.complete&&!e.lazyLoad&&s()})}),()=>{var a;return t("div",{class:k({round:e.round,block:e.block}),style:c.value},[p(),m(),(a=d.default)==null?void 0:a.call(d)])}}});const ge=T(be),[M,R]=z("tabbar"),we={route:Boolean,fixed:C,border:C,zIndex:y,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:Z(0),safeAreaInsetBottom:{type:Boolean,default:null}},U=Symbol(M);var pe=L({name:M,props:we,emits:["change","update:modelValue"],setup(e,{emit:h,slots:d}){const _=I(),{linkChildren:u}=Y(U),i=me(_,R),f=()=>{var s;return(s=e.safeAreaInsetBottom)!=null?s:e.fixed},c=()=>{var s;const{fixed:l,zIndex:r,border:m}=e;return t("div",{ref:_,role:"tablist",style:W(r),class:[R({fixed:l}),{[X]:m,"van-safe-area-bottom":f()}]},[(s=d.default)==null?void 0:s.call(d)])};return u({props:e,setActive:(s,l)=>{ee(e.beforeChange,{args:[s],done(){h("update:modelValue",s),h("change",s),l()}})}}),()=>e.fixed&&e.placeholder?i(c):c()}});const ye=T(pe),[Pe,j]=z("tabbar-item"),ke=te({},ue,{dot:Boolean,icon:String,name:y,badge:y,badgeProps:Object,iconPrefix:String});var Ie=L({name:Pe,props:ke,emits:["click"],setup(e,{emit:h,slots:d}){const _=fe(),u=A().proxy,{parent:i,index:f}=ne(U);if(!i)return;const c=N(()=>{var l;const{route:r,modelValue:m}=i.props;if(r&&"$route"in u){const{$route:p}=u,{to:x}=e,b=ae(x)?x:{path:x};return!!p.matched.find(a=>{const P="path"in b&&b.path===a.path,B="name"in b&&b.name===a.name;return P||B})}return((l=e.name)!=null?l:f.value)===m}),w=l=>{var r;c.value||i.setActive((r=e.name)!=null?r:f.value,_),h("click",l)},s=()=>{if(d.icon)return d.icon({active:c.value});if(e.icon)return t(E,{name:e.icon,classPrefix:e.iconPrefix},null)};return()=>{var l;const{dot:r,badge:m}=e,{activeColor:p,inactiveColor:x}=i.props,b=c.value?p:x;return t("div",{role:"tab",class:j({active:c.value}),style:{color:b},tabindex:0,"aria-selected":c.value,onClick:w},[t(D,$({dot:r,class:j("icon"),content:m},e.badgeProps),{default:s}),t("div",{class:j("text")},[(l=d.default)==null?void 0:l.call(d,{active:c.value})])])}}});const Be=T(Ie);const v=e=>(re("data-v-acee992e"),e=e(),de(),e),Ce={class:"container1"},Se={class:"header flex justify-center content-start flex-wrap"},je={class:"mb-3 flex w-full h-[50px] rounded-[8px]"},$e={class:"w-1/2 h-full mt-1 ml-1"},ze={class:"w-1/2 h-full flex justify-end items-center"},Le=v(()=>n("div",{class:"mx-2"},[n("div",{class:"font-bold ml flex justify-end"},"张老师"),n("div",{class:"text-[14px] text-neutral-400"},"asc20231227")],-1)),Ae={class:"mb-3 w-full flex flex-nowrap justify-between"},Ee={class:"flex flex-nowrap mb-3 w-full h-[90px] bg-white rounded-[8px]"},Te={class:"w-1/3 h-full flex justify-center items-center"},Ve=v(()=>n("div",{class:"child"},null,-1)),Oe=v(()=>n("div",{class:"text-[14px] mt-1"},"审批中",-1)),Re={class:"w-1/3 h-full flex-wrap flex justify-center items-center"},Ne=v(()=>n("div",{class:"child"},null,-1)),De=v(()=>n("div",{class:"text-[14px] mt-1"},"待使用",-1)),Me={class:"w-1/3 h-full flex justify-center items-center"},Ue=v(()=>n("div",{class:"child"},null,-1)),He=v(()=>n("div",{class:"text-[14px] mt-1"},"使用中",-1)),Fe={class:"mb-3 w-full"},Ke=v(()=>n("span",{class:"mx-2"},"加时活动",-1)),qe={class:"mb-3 w-full"},Ge=v(()=>n("span",null,"被邀请",-1)),Je={class:"mb-3 w-full"},Qe=v(()=>n("span",null,"待评价",-1)),Ye=v(()=>n("span",null,"已评价",-1)),Ze={class:"mb-3 w-full"},We=v(()=>n("span",null,"已结束",-1)),Xe={class:"footer"},et={__name:"index",setup(e){A().appContext.config.globalProperties,se();const h=I(0),d=i=>{},_=le("backAscHome"),u=()=>{console.log("🚀🚀🚀,",_)};return(i,f)=>{const c=E,w=ge,s=ve,l=_e,r=D,m=Be,p=ye;return ce(),ie("div",Ce,[n("div",Se,[n("div",je,[n("div",$e,[n("div",{onClick:u,style:{background:"white"},class:"child flex justify-center items-center"},[t(c,{style:{"font-size":"22px","font-weight":"bold"},name:"wap-home-o"})])]),n("div",ze,[Le,n("div",null,[t(w,{round:"",width:"40px",height:"40px",src:"https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"})])])]),n("div",Ae,[t(l,{inset:"",class:"w-[45%]"},{default:o(()=>[t(s,{class:"w-full h-[75px]",title:"单元格",value:"内容"})]),_:1}),t(l,{inset:"",class:"w-[45%]"},{default:o(()=>[t(s,{class:"w-full h-[75px]",title:"单元格",value:"内容"})]),_:1})]),n("div",Ee,[n("div",Te,[t(r,{content:235},{default:o(()=>[Ve,Oe]),_:1})]),n("div",Re,[t(r,{content:5},{default:o(()=>[Ne,De]),_:1})]),n("div",Me,[t(r,{content:15},{default:o(()=>[Ue,He]),_:1})])]),n("div",Fe,[t(l,{inset:""},{default:o(()=>[t(s,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:o(()=>[t(c,{name:"chat-o"})]),title:o(()=>[Ke]),value:o(()=>[g(" 1 ")]),_:1})]),_:1})]),n("div",qe,[t(l,{inset:""},{default:o(()=>[t(s,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:o(()=>[t(c,{name:"chat-o"})]),title:o(()=>[Ge]),value:o(()=>[g(" 1 ")]),_:1})]),_:1})]),n("div",Je,[t(l,{inset:""},{default:o(()=>[t(s,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:o(()=>[t(c,{name:"chat-o"})]),title:o(()=>[Qe]),value:o(()=>[g(" 1 ")]),_:1}),t(s,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:o(()=>[t(c,{name:"chat-o"})]),title:o(()=>[Ye]),value:o(()=>[g(" 1 ")]),_:1})]),_:1})]),n("div",Ze,[t(l,{inset:""},{default:o(()=>[t(s,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:o(()=>[t(c,{name:"chat-o"})]),title:o(()=>[We]),value:o(()=>[g(" 1 ")]),_:1})]),_:1})])]),n("div",Xe,[t(p,{modelValue:h.value,"onUpdate:modelValue":f[0]||(f[0]=x=>h.value=x),onChange:d},{default:o(()=>[t(m,{icon:"home-o"},{default:o(()=>[g("活动管理")]),_:1}),t(m,{icon:"search"},{default:o(()=>[g("钥匙管理")]),_:1}),t(m,{icon:"friends-o"},{default:o(()=>[g("场地管理")]),_:1})]),_:1},8,["modelValue"])])])}}},ot=oe(et,[["__scopeId","data-v-acee992e"]]);export{ot as default};
import{g as D,b as C,M as I,d as S,a as l,m as O,t as f,v as w,$ as b,y as v,I as h,w as x,F as T,B as R,J as V}from"./index-a7655152.js";const A={to:[String,Object],url:String,replace:Boolean};function G({to:e,url:t,replace:r,$router:a}){e&&a?a[r?"replace":"push"](e):t&&(r?location.replace(t):location.href=t)}function q(){const e=D().proxy;return()=>G(e)}const[z,c]=C("cell"),F={tag:O("div"),icon:String,size:String,title:f,value:f,label:f,center:Boolean,isLink:Boolean,border:w,required:Boolean,iconPrefix:String,valueClass:b,labelClass:b,titleClass:b,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}},M=I({},F,A);var N=S({name:z,props:M,setup(e,{slots:t}){const r=q(),a=()=>{if(t.label||v(e.label))return l("div",{class:[c("label"),e.labelClass]},[t.label?t.label():e.label])},s=()=>{var n;if(t.title||v(e.title)){const i=(n=t.title)==null?void 0:n.call(t);return Array.isArray(i)&&i.length===0?void 0:l("div",{class:[c("title"),e.titleClass],style:e.titleStyle},[i||l("span",null,[e.title]),a()])}},o=()=>{const n=t.value||t.default;if(n||v(e.value))return l("div",{class:[c("value"),e.valueClass]},[n?n():l("span",null,[e.value])])},k=()=>{if(t.icon)return t.icon();if(e.icon)return l(h,{name:e.icon,class:c("left-icon"),classPrefix:e.iconPrefix},null)},B=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const n=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return l(h,{name:n,class:c("right-icon")},null)}};return()=>{var n;const{tag:i,size:u,center:y,border:_,isLink:L,required:$}=e,d=(n=e.clickable)!=null?n:L,g={center:y,required:$,clickable:d,borderless:!_};return u&&(g[u]=!!u),l(i,{class:c(g),role:d?"button":void 0,tabindex:d?0:void 0,onClick:r},{default:()=>{var m;return[k(),s(),o(),B(),(m=t.extra)==null?void 0:m.call(t)]}})}}});const K=x(N),[j,P]=C("cell-group"),E={title:String,inset:Boolean,border:w};var J=S({name:j,inheritAttrs:!1,props:E,setup(e,{slots:t,attrs:r}){const a=()=>{var o;return l("div",R({class:[P({inset:e.inset}),{[V]:e.border&&!e.inset}]},r),[(o=t.default)==null?void 0:o.call(t)])},s=()=>l("div",{class:P("title",{inset:e.inset})},[t.title?t.title():e.title]);return()=>e.title||t.title?l(T,null,[s(),a()]):a()}});const Q=x(J);export{Q as C,K as a,A as r,q as u};
import{b as z,d as L,r as k,g as E,l as N,n as F,p as K,q,f as G,s as A,a as t,t as y,v as C,m as O,x as S,y as H,z as J,A as Q,B as j,I as T,w as V,D as Y,E as Z,H as W,J as X,K as ee,M as te,N as ne,O as D,P as ae,_ as oe,u as se,o as le,c as ce,Q as n,h as o,i as w,R as ie,T as re}from"./index-a7655152.js";import{r as de,u as ue,C as fe,a as _e}from"./index-3de1802f.js";import{u as ve}from"./use-placeholder-93921726.js";const[he,I]=z("image"),me={src:String,alt:String,fit:String,position:String,round:Boolean,block:Boolean,width:y,height:y,radius:y,lazyLoad:Boolean,iconSize:y,showError:C,errorIcon:O("photo-fail"),iconPrefix:String,showLoading:C,loadingIcon:O("photo")};var xe=L({name:he,props:me,emits:["load","error"],setup(e,{emit:m,slots:r}){const _=k(!1),u=k(!0),i=k(),{$Lazyload:v}=E().proxy,l=N(()=>{const a={width:S(e.width),height:S(e.height)};return H(e.radius)&&(a.overflow="hidden",a.borderRadius=S(e.radius)),a});F(()=>e.src,()=>{_.value=!1,u.value=!0});const h=a=>{u.value&&(u.value=!1,m("load",a))},c=()=>{const a=new Event("load");Object.defineProperty(a,"target",{value:i.value,enumerable:!0}),h(a)},s=a=>{_.value=!0,u.value=!1,m("error",a)},d=(a,P,B)=>B?B():t(T,{name:a,size:e.iconSize,class:P,classPrefix:e.iconPrefix},null),x=()=>{if(u.value&&e.showLoading)return t("div",{class:I("loading")},[d(e.loadingIcon,I("loading-icon"),r.loading)]);if(_.value&&e.showError)return t("div",{class:I("error")},[d(e.errorIcon,I("error-icon"),r.error)])},p=()=>{if(_.value||!e.src)return;const a={alt:e.alt,class:I("img"),style:{objectFit:e.fit,objectPosition:e.position}};return e.lazyLoad?J(t("img",j({ref:i},a),null),[[Q("lazy"),e.src]]):t("img",j({ref:i,src:e.src,onLoad:h,onError:s},a),null)},g=({el:a})=>{const P=()=>{a===i.value&&u.value&&c()};i.value?P():A(P)},b=({el:a})=>{a===i.value&&!_.value&&s()};return v&&K&&(v.$on("loaded",g),v.$on("error",b),q(()=>{v.$off("loaded",g),v.$off("error",b)})),G(()=>{A(()=>{var a;(a=i.value)!=null&&a.complete&&!e.lazyLoad&&c()})}),()=>{var a;return t("div",{class:I({round:e.round,block:e.block}),style:l.value},[p(),x(),(a=r.default)==null?void 0:a.call(r)])}}});const be=V(xe),[M,R]=z("tabbar"),ge={route:Boolean,fixed:C,border:C,zIndex:y,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:Z(0),safeAreaInsetBottom:{type:Boolean,default:null}},U=Symbol(M);var we=L({name:M,props:ge,emits:["change","update:modelValue"],setup(e,{emit:m,slots:r}){const _=k(),{linkChildren:u}=Y(U),i=ve(_,R),v=()=>{var c;return(c=e.safeAreaInsetBottom)!=null?c:e.fixed},l=()=>{var c;const{fixed:s,zIndex:d,border:x}=e;return t("div",{ref:_,role:"tablist",style:W(d),class:[R({fixed:s}),{[X]:x,"van-safe-area-bottom":v()}]},[(c=r.default)==null?void 0:c.call(r)])};return u({props:e,setActive:(c,s)=>{ee(e.beforeChange,{args:[c],done(){m("update:modelValue",c),m("change",c),s()}})}}),()=>e.fixed&&e.placeholder?i(l):l()}});const pe=V(we),[ye,$]=z("tabbar-item"),Pe=te({},de,{dot:Boolean,icon:String,name:y,badge:y,badgeProps:Object,iconPrefix:String});var Ie=L({name:ye,props:Pe,emits:["click"],setup(e,{emit:m,slots:r}){const _=ue(),u=E().proxy,{parent:i,index:v}=ne(U);if(!i)return;const l=N(()=>{var s;const{route:d,modelValue:x}=i.props;if(d&&"$route"in u){const{$route:p}=u,{to:g}=e,b=ae(g)?g:{path:g};return!!p.matched.find(a=>{const P="path"in b&&b.path===a.path,B="name"in b&&b.name===a.name;return P||B})}return((s=e.name)!=null?s:v.value)===x}),h=s=>{var d;l.value||i.setActive((d=e.name)!=null?d:v.value,_),m("click",s)},c=()=>{if(r.icon)return r.icon({active:l.value});if(e.icon)return t(T,{name:e.icon,classPrefix:e.iconPrefix},null)};return()=>{var s;const{dot:d,badge:x}=e,{activeColor:p,inactiveColor:g}=i.props,b=l.value?p:g;return t("div",{role:"tab",class:$({active:l.value}),style:{color:b},tabindex:0,"aria-selected":l.value,onClick:h},[t(D,j({dot:d,class:$("icon"),content:x},e.badgeProps),{default:c}),t("div",{class:$("text")},[(s=r.default)==null?void 0:s.call(r,{active:l.value})])])}}});const ke=V(Ie);const f=e=>(ie("data-v-290dd25c"),e=e(),re(),e),Be={class:"container1"},Ce={class:"header flex justify-center content-start flex-wrap"},Se={class:"mb-3 flex w-full h-[50px] rounded-[8px]"},$e=f(()=>n("div",{class:"w-1/2 h-full mt-1 ml-1"},[n("div",{style:{background:"white"},class:"child"})],-1)),je={class:"w-1/2 h-full flex justify-end items-center"},ze=f(()=>n("div",{class:"mx-2"},[n("div",{class:"font-bold ml flex justify-end"},"张老师"),n("div",{class:"text-[14px] text-neutral-400"},"asc20231227")],-1)),Le={class:"mb-3 w-full flex flex-nowrap justify-between"},Ee={class:"flex flex-nowrap mb-3 w-full h-[90px] bg-white rounded-[8px]"},Te={class:"w-1/3 h-full flex justify-center items-center"},Ve=f(()=>n("div",{class:"child"},null,-1)),Ae=f(()=>n("div",{class:"text-[14px] mt-1"},"审批中",-1)),Oe={class:"w-1/3 h-full flex-wrap flex justify-center items-center"},Re=f(()=>n("div",{class:"child"},null,-1)),Ne=f(()=>n("div",{class:"text-[14px] mt-1"},"待使用",-1)),De={class:"w-1/3 h-full flex justify-center items-center"},Me=f(()=>n("div",{class:"child"},null,-1)),Ue=f(()=>n("div",{class:"text-[14px] mt-1"},"使用中",-1)),Fe={class:"mb-3 w-full"},Ke=f(()=>n("span",{class:"mx-2"},"加时活动",-1)),qe={class:"mb-3 w-full"},Ge=f(()=>n("span",null,"被邀请",-1)),He={class:"mb-3 w-full"},Je=f(()=>n("span",null,"待评价",-1)),Qe=f(()=>n("span",null,"已评价",-1)),Ye={class:"mb-3 w-full"},Ze=f(()=>n("span",null,"已结束",-1)),We={class:"footer"},Xe={__name:"index",setup(e){const m=E();se();const r=k(0),_=u=>{console.log("3🚀🚀🚀,",m)};return(u,i)=>{const v=be,l=_e,h=fe,c=D,s=T,d=ke,x=pe;return le(),ce("div",Be,[n("div",Ce,[n("div",Se,[$e,n("div",je,[ze,n("div",null,[t(v,{round:"",width:"40px",height:"40px",src:"https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"})])])]),n("div",Le,[t(h,{inset:"",class:"w-[45%]"},{default:o(()=>[t(l,{class:"w-full h-[75px]",title:"单元格",value:"内容"})]),_:1}),t(h,{inset:"",class:"w-[45%]"},{default:o(()=>[t(l,{class:"w-full h-[75px]",title:"单元格",value:"内容"})]),_:1})]),n("div",Ee,[n("div",Te,[t(c,{content:235},{default:o(()=>[Ve,Ae]),_:1})]),n("div",Oe,[t(c,{content:5},{default:o(()=>[Re,Ne]),_:1})]),n("div",De,[t(c,{content:15},{default:o(()=>[Me,Ue]),_:1})])]),n("div",Fe,[t(h,{inset:""},{default:o(()=>[t(l,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:o(()=>[t(s,{name:"chat-o"})]),title:o(()=>[Ke]),value:o(()=>[w(" 1 ")]),_:1})]),_:1})]),n("div",qe,[t(h,{inset:""},{default:o(()=>[t(l,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:o(()=>[t(s,{name:"chat-o"})]),title:o(()=>[Ge]),value:o(()=>[w(" 1 ")]),_:1})]),_:1})]),n("div",He,[t(h,{inset:""},{default:o(()=>[t(l,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:o(()=>[t(s,{name:"chat-o"})]),title:o(()=>[Je]),value:o(()=>[w(" 1 ")]),_:1}),t(l,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:o(()=>[t(s,{name:"chat-o"})]),title:o(()=>[Qe]),value:o(()=>[w(" 1 ")]),_:1})]),_:1})]),n("div",Ye,[t(h,{inset:""},{default:o(()=>[t(l,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:o(()=>[t(s,{name:"chat-o"})]),title:o(()=>[Ze]),value:o(()=>[w(" 1 ")]),_:1})]),_:1})])]),n("div",We,[t(x,{modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=p=>r.value=p),onChange:_},{default:o(()=>[t(d,{icon:"home-o"},{default:o(()=>[w("活动管理")]),_:1}),t(d,{icon:"search"},{default:o(()=>[w("钥匙管理")]),_:1}),t(d,{icon:"friends-o"},{default:o(()=>[w("场地管理")]),_:1})]),_:1},8,["modelValue"])])])}}},at=oe(Xe,[["__scopeId","data-v-290dd25c"]]);export{at as default};
import{b as h,d as b,a,U as w,v as k,m as B,V as S,I as N,w as I,u as P,W as T,f as V,o as D,c as E,Q as c,h as e,F,X as o,Y as i,i as L}from"./index-a7655152.js";import{C as z,a as A}from"./index-3de1802f.js";import{N as M}from"./index-4f40e7f9.js";import"./use-placeholder-93921726.js";const[R,g]=h("tag"),j={size:String,mark:Boolean,show:k,type:B("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var q=b({name:R,props:j,emits:["close"],setup(n,{slots:d,emit:t}){const u=l=>{l.stopPropagation(),t("close",l)},_=()=>n.plain?{color:n.textColor||n.color,borderColor:n.color}:{color:n.textColor,background:n.color},p=()=>{var l;const{type:m,mark:s,plain:r,round:f,size:y,closeable:x}=n,C={mark:s,plain:r,round:f};y&&(C[y]=y);const v=x&&a(N,{name:"cross",class:[g("close"),S],onClick:u},null);return a("span",{style:_(),class:g([C,m])},[(l=d.default)==null?void 0:l.call(d),v])};return()=>a(w,{name:n.closeable?"van-fade":void 0},{default:()=>[n.show?p():null]})}});const G=I(q);const H={class:"container"},W={__name:"index",setup(n){const d=P();let t=T({data:{}});const u=async()=>{const l=await(void 0)({id:d.currentRoute.value.query.id});t.data=l.response};V(()=>{u()});const _=()=>d.push({name:"signList"});return(p,l)=>{const m=M,s=G,r=A,f=z;return D(),E(F,null,[a(m,{title:"值班信息","left-text":"返回","left-arrow":"",onClickLeft:_}),c("div",H,[a(f,{class:"cardContainer",inset:""},{default:e(()=>[a(r,{class:"cardContent",title:o(t).data.username},{extra:e(()=>[a(s,{type:"primary",plain:""},{default:e(()=>[c("span",null,i(o(t).data.card_name),1)]),_:1}),a(s,{color:"#7232dd",type:"primary",plain:"",style:{"margin-left":"10px"}},{default:e(()=>[L(i(["值班教师","值班领导"][o(t).data.is_lead]),1)]),_:1})]),_:1},8,["title"]),a(r,{class:"cardContent",title:"手机号"},{extra:e(()=>[a(s,{type:"primary",plain:""},{default:e(()=>[c("span",null,i(o(t).data.mobile),1)]),_:1})]),_:1}),a(r,{class:"cardContent",title:"日期"},{extra:e(()=>[a(s,{type:"primary",plain:""},{default:e(()=>[c("span",null,i(o(t).data.watch_date),1)]),_:1})]),_:1}),a(r,{class:"cardContent",title:"时段"},{extra:e(()=>[a(s,{type:"primary",plain:"",style:{"margin-left":"10px"}},{default:e(()=>[c("span",null,i(o(t).data.watch_hour_time),1)]),_:1})]),_:1}),a(r,{class:"cardContent",title:"类型"},{extra:e(()=>[a(s,{type:"primary",plain:""},{default:e(()=>[c("span",null,i(o(t).data.watchtypename+"-"+o(t).data.dept_name+"-"+o(t).data.campusname),1)]),_:1})]),_:1})]),_:1})])],64)}}};export{W as default}; import{b as h,d as b,a,V as w,v as k,m as B,W as S,I as N,w as I,u as P,X as T,f as V,o as D,c as E,R as c,h as e,F,Y as o,Z as i,i as L}from"./index-bc30a3de.js";import{C as R,a as z}from"./index-b14ce5de.js";import{N as A}from"./index-1dc17fab.js";import"./use-placeholder-bccf71d4.js";const[M,g]=h("tag"),j={size:String,mark:Boolean,show:k,type:B("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var q=b({name:M,props:j,emits:["close"],setup(n,{slots:d,emit:t}){const u=l=>{l.stopPropagation(),t("close",l)},_=()=>n.plain?{color:n.textColor||n.color,borderColor:n.color}:{color:n.textColor,background:n.color},p=()=>{var l;const{type:m,mark:s,plain:r,round:f,size:y,closeable:x}=n,C={mark:s,plain:r,round:f};y&&(C[y]=y);const v=x&&a(N,{name:"cross",class:[g("close"),S],onClick:u},null);return a("span",{style:_(),class:g([C,m])},[(l=d.default)==null?void 0:l.call(d),v])};return()=>a(w,{name:n.closeable?"van-fade":void 0},{default:()=>[n.show?p():null]})}});const G=I(q);const H={class:"container"},Y={__name:"index",setup(n){const d=P();let t=T({data:{}});const u=async()=>{const l=await(void 0)({id:d.currentRoute.value.query.id});t.data=l.response};V(()=>{u()});const _=()=>d.push({name:"signList"});return(p,l)=>{const m=A,s=G,r=z,f=R;return D(),E(F,null,[a(m,{title:"值班信息","left-text":"返回","left-arrow":"",onClickLeft:_}),c("div",H,[a(f,{class:"cardContainer",inset:""},{default:e(()=>[a(r,{class:"cardContent",title:o(t).data.username},{extra:e(()=>[a(s,{type:"primary",plain:""},{default:e(()=>[c("span",null,i(o(t).data.card_name),1)]),_:1}),a(s,{color:"#7232dd",type:"primary",plain:"",style:{"margin-left":"10px"}},{default:e(()=>[L(i(["值班教师","值班领导"][o(t).data.is_lead]),1)]),_:1})]),_:1},8,["title"]),a(r,{class:"cardContent",title:"手机号"},{extra:e(()=>[a(s,{type:"primary",plain:""},{default:e(()=>[c("span",null,i(o(t).data.mobile),1)]),_:1})]),_:1}),a(r,{class:"cardContent",title:"日期"},{extra:e(()=>[a(s,{type:"primary",plain:""},{default:e(()=>[c("span",null,i(o(t).data.watch_date),1)]),_:1})]),_:1}),a(r,{class:"cardContent",title:"时段"},{extra:e(()=>[a(s,{type:"primary",plain:"",style:{"margin-left":"10px"}},{default:e(()=>[c("span",null,i(o(t).data.watch_hour_time),1)]),_:1})]),_:1}),a(r,{class:"cardContent",title:"类型"},{extra:e(()=>[a(s,{type:"primary",plain:""},{default:e(()=>[c("span",null,i(o(t).data.watchtypename+"-"+o(t).data.dept_name+"-"+o(t).data.campusname),1)]),_:1})]),_:1})]),_:1})])],64)}}};export{Y as default};
:root{--van-tabbar-height: 50px;--van-tabbar-z-index: 1;--van-tabbar-background: var(--van-background-2)}.van-tabbar{z-index:var(--van-tabbar-z-index);display:flex;box-sizing:content-box;width:100%;height:var(--van-tabbar-height);background:var(--van-tabbar-background)}.van-tabbar--fixed{position:fixed;bottom:0;left:0}:root{--van-tabbar-item-font-size: var(--van-font-size-sm);--van-tabbar-item-text-color: var(--van-text-color);--van-tabbar-item-active-color: var(--van-primary-color);--van-tabbar-item-active-background: var(--van-background-2);--van-tabbar-item-line-height: 1;--van-tabbar-item-icon-size: 22px;--van-tabbar-item-icon-margin-bottom: var(--van-padding-base)}.van-tabbar-item{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;color:var(--van-tabbar-item-text-color);font-size:var(--van-tabbar-item-font-size);line-height:var(--van-tabbar-item-line-height);cursor:pointer}.van-tabbar-item__icon{margin-bottom:var(--van-tabbar-item-icon-margin-bottom);font-size:var(--van-tabbar-item-icon-size)}.van-tabbar-item__icon .van-icon{display:block}.van-tabbar-item__icon .van-badge{margin-top:var(--van-padding-base)}.van-tabbar-item__icon img{display:block;height:20px}.van-tabbar-item--active{color:var(--van-tabbar-item-active-color);background-color:var(--van-tabbar-item-active-background)}:root{--van-image-placeholder-text-color: var(--van-text-color-2);--van-image-placeholder-font-size: var(--van-font-size-md);--van-image-placeholder-background: var(--van-background);--van-image-loading-icon-size: 32px;--van-image-loading-icon-color: var(--van-gray-4);--van-image-error-icon-size: 32px;--van-image-error-icon-color: var(--van-gray-4)}.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:var(--van-radius-max)}.van-image--round .van-image__img{border-radius:inherit}.van-image--block{display:block}.van-image__img,.van-image__error,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-image-placeholder-text-color);font-size:var(--van-image-placeholder-font-size);background:var(--van-image-placeholder-background)}.van-image__loading-icon{color:var(--van-image-loading-icon-color);font-size:var(--van-image-loading-icon-size)}.van-image__error-icon{color:var(--van-image-error-icon-color);font-size:var(--van-image-error-icon-size)}.child[data-v-290dd25c]{width:40px;height:40px;background:#f2f3f5;border-radius:4px}[data-v-290dd25c] .van-cell-group--inset{margin:0;border-radius:var(--van-cell-group-inset-radius);overflow:hidden}[data-v-290dd25c] .van-tabbar{z-index:var(--van-tabbar-z-index);display:flex;box-sizing:content-box;width:100%;height:80px;background:var(--van-tabbar-background)} :root{--van-tabbar-height: 50px;--van-tabbar-z-index: 1;--van-tabbar-background: var(--van-background-2)}.van-tabbar{z-index:var(--van-tabbar-z-index);display:flex;box-sizing:content-box;width:100%;height:var(--van-tabbar-height);background:var(--van-tabbar-background)}.van-tabbar--fixed{position:fixed;bottom:0;left:0}:root{--van-tabbar-item-font-size: var(--van-font-size-sm);--van-tabbar-item-text-color: var(--van-text-color);--van-tabbar-item-active-color: var(--van-primary-color);--van-tabbar-item-active-background: var(--van-background-2);--van-tabbar-item-line-height: 1;--van-tabbar-item-icon-size: 22px;--van-tabbar-item-icon-margin-bottom: var(--van-padding-base)}.van-tabbar-item{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;color:var(--van-tabbar-item-text-color);font-size:var(--van-tabbar-item-font-size);line-height:var(--van-tabbar-item-line-height);cursor:pointer}.van-tabbar-item__icon{margin-bottom:var(--van-tabbar-item-icon-margin-bottom);font-size:var(--van-tabbar-item-icon-size)}.van-tabbar-item__icon .van-icon{display:block}.van-tabbar-item__icon .van-badge{margin-top:var(--van-padding-base)}.van-tabbar-item__icon img{display:block;height:20px}.van-tabbar-item--active{color:var(--van-tabbar-item-active-color);background-color:var(--van-tabbar-item-active-background)}:root{--van-image-placeholder-text-color: var(--van-text-color-2);--van-image-placeholder-font-size: var(--van-font-size-md);--van-image-placeholder-background: var(--van-background);--van-image-loading-icon-size: 32px;--van-image-loading-icon-color: var(--van-gray-4);--van-image-error-icon-size: 32px;--van-image-error-icon-color: var(--van-gray-4)}.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:var(--van-radius-max)}.van-image--round .van-image__img{border-radius:inherit}.van-image--block{display:block}.van-image__img,.van-image__error,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-image-placeholder-text-color);font-size:var(--van-image-placeholder-font-size);background:var(--van-image-placeholder-background)}.van-image__loading-icon{color:var(--van-image-loading-icon-color);font-size:var(--van-image-loading-icon-size)}.van-image__error-icon{color:var(--van-image-error-icon-color);font-size:var(--van-image-error-icon-size)}.child[data-v-acee992e]{width:40px;height:40px;background:#f2f3f5;border-radius:4px}[data-v-acee992e] .van-cell-group--inset{margin:0;border-radius:var(--van-cell-group-inset-radius);overflow:hidden}[data-v-acee992e] .van-tabbar{z-index:var(--van-tabbar-z-index);display:flex;box-sizing:content-box;width:100%;height:80px;background:var(--van-tabbar-background)}
import{g as v,b as w,d as G,a as e,e as k,m as M,w as B}from"./index-a7655152.js";let S=0;function C(){const d=v(),{name:a="unknown"}=(d==null?void 0:d.type)||{};return`${a}-${++S}`}const[b,s]=w("empty"),z={image:M("default"),imageSize:[Number,String,Array],description:String};var A=G({name:b,props:z,setup(d,{slots:a}){const x=()=>{const l=a.description?a.description():d.description;if(l)return e("p",{class:s("description")},[l])},F=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=C(),r=l=>`${f}-${l}`,t=l=>`url(#${r(l)})`,n=(l,o,D)=>e("stop",{"stop-color":l,offset:`${o}%`,"stop-opacity":D},null),i=(l,o)=>[n(l,0),n(o,100)],u=l=>[e("defs",null,[e("radialGradient",{id:r(l),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[n("#EBEDF0",0),n("#F2F3F5",100,.3)])]),e("ellipse",{fill:t(l),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:r("a"),x1:"64%",y1:"100%",x2:"64%"},[n("#FFF",0,.5),n("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:t("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:t("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:r("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[n("#F2F3F5",0,.3),n("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:t("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:t("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:r(1),x1:"64%",y1:"100%",x2:"64%"},[n("#FFF",0,.5),n("#F2F3F5",100)]),e("linearGradient",{id:r(2),x1:"50%",x2:"50%",y2:"84%"},[n("#EBEDF0",0),n("#DCDEE0",100,0)]),e("linearGradient",{id:r(3),x1:"100%",x2:"100%",y2:"100%"},[i("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:r(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[n("#EBEDF0",0),n("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:t(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:t(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:t(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:t(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:t(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:t(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(5)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:r(6)},[i("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:r(7)},[i("#EAEDF1","#DCDEE0")])]),c(),h(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:t(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:t(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:t(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(8)},[i("#EAEDF1","#DCDEE0")])]),c(),h(),u("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:t(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:r(9)},[i("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:r(10)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(11)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(12)},[i("#FFF","#F7F8FA")])]),c(),h(),u("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:t(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:t(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:t(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:t(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:t(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var l;if(a.image)return a.image();const o={error:E,search:p,network:y,default:g};return((l=o[d.image])==null?void 0:l.call(o))||e("img",{src:d.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(d.imageSize)},[m()]),x(),F()])}});const $=B(A);export{$ as E}; import{g as v,b as w,d as G,a as e,e as k,m as M,w as B}from"./index-bc30a3de.js";let S=0;function C(){const d=v(),{name:a="unknown"}=(d==null?void 0:d.type)||{};return`${a}-${++S}`}const[b,s]=w("empty"),z={image:M("default"),imageSize:[Number,String,Array],description:String};var A=G({name:b,props:z,setup(d,{slots:a}){const x=()=>{const l=a.description?a.description():d.description;if(l)return e("p",{class:s("description")},[l])},F=()=>{if(a.default)return e("div",{class:s("bottom")},[a.default()])},f=C(),r=l=>`${f}-${l}`,t=l=>`url(#${r(l)})`,n=(l,o,D)=>e("stop",{"stop-color":l,offset:`${o}%`,"stop-opacity":D},null),i=(l,o)=>[n(l,0),n(o,100)],u=l=>[e("defs",null,[e("radialGradient",{id:r(l),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[n("#EBEDF0",0),n("#F2F3F5",100,.3)])]),e("ellipse",{fill:t(l),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)],c=()=>[e("defs",null,[e("linearGradient",{id:r("a"),x1:"64%",y1:"100%",x2:"64%"},[n("#FFF",0,.5),n("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M36 131V53H16v20H2v58h34z",fill:t("a")},null),e("path",{d:"M123 15h22v14h9v77h-31V15z",fill:t("a")},null)])],h=()=>[e("defs",null,[e("linearGradient",{id:r("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[n("#F2F3F5",0,.3),n("#F2F3F5",100)])]),e("g",{opacity:".8"},[e("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:t("b")},null),e("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:t("b")},null)])],y=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{id:r(1),x1:"64%",y1:"100%",x2:"64%"},[n("#FFF",0,.5),n("#F2F3F5",100)]),e("linearGradient",{id:r(2),x1:"50%",x2:"50%",y2:"84%"},[n("#EBEDF0",0),n("#DCDEE0",100,0)]),e("linearGradient",{id:r(3),x1:"100%",x2:"100%",y2:"100%"},[i("#EAEDF0","#DCDEE0")]),e("radialGradient",{id:r(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[n("#EBEDF0",0),n("#FFF",100,0)])]),e("g",{fill:"none"},[c(),e("path",{fill:t(4),d:"M0 139h160v21H0z"},null),e("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:t(2)},null),e("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[e("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:t(3)},null),e("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:t(3)},null),e("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:t(3)},null),e("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:t(3)},null)]),e("g",{transform:"translate(31 105)"},[e("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),e("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),e("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])]),g=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(5)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:r(6)},[i("#EAEDF1","#DCDEE0")]),e("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:r(7)},[i("#EAEDF1","#DCDEE0")])]),c(),h(),e("g",{transform:"translate(36 50)",fill:"none"},[e("g",{transform:"translate(8)"},[e("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),e("rect",{fill:t(5),width:"64",height:"66",rx:"2"},null),e("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),e("g",{transform:"translate(15 17)",fill:t(6)},[e("rect",{width:"34",height:"6",rx:"1"},null),e("path",{d:"M0 14h34v6H0z"},null),e("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),e("rect",{fill:t(7),y:"61",width:"88",height:"28",rx:"1"},null),e("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])]),E=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(8)},[i("#EAEDF1","#DCDEE0")])]),c(),h(),u("c"),e("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:t(8)},null)]),p=()=>e("svg",{viewBox:"0 0 160 160"},[e("defs",null,[e("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:r(9)},[i("#EEE","#D8D8D8")]),e("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:r(10)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(11)},[i("#F2F3F5","#DCDEE0")]),e("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:r(12)},[i("#FFF","#F7F8FA")])]),c(),h(),u("d"),e("g",{transform:"rotate(-45 113 -4)",fill:"none"},[e("rect",{fill:t(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),e("rect",{fill:t(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),e("circle",{stroke:t(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),e("circle",{fill:t(12),cx:"27",cy:"27",r:"16"},null),e("path",{d:"M37 7c-8 0-15 5-16 12",stroke:t(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])]),m=()=>{var l;if(a.image)return a.image();const o={error:E,search:p,network:y,default:g};return((l=o[d.image])==null?void 0:l.call(o))||e("img",{src:d.image},null)};return()=>e("div",{class:s()},[e("div",{class:s("image"),style:k(d.imageSize)},[m()]),x(),F()])}});const $=B(A);export{$ as E};
import{g as I,b as C,M as $,d as S,a as l,m as O,t as f,v as w,a0 as b,y as v,I as h,w as x,F as T,B as R,J as V}from"./index-bc30a3de.js";const A={to:[String,Object],url:String,replace:Boolean};function G({to:e,url:t,replace:r,$router:a}){e&&a?a[r?"replace":"push"](e):t&&(r?location.replace(t):location.href=t)}function q(){const e=I().proxy;return()=>G(e)}const[z,c]=C("cell"),F={tag:O("div"),icon:String,size:String,title:f,value:f,label:f,center:Boolean,isLink:Boolean,border:w,required:Boolean,iconPrefix:String,valueClass:b,labelClass:b,titleClass:b,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}},M=$({},F,A);var N=S({name:z,props:M,setup(e,{slots:t}){const r=q(),a=()=>{if(t.label||v(e.label))return l("div",{class:[c("label"),e.labelClass]},[t.label?t.label():e.label])},s=()=>{var n;if(t.title||v(e.title)){const i=(n=t.title)==null?void 0:n.call(t);return Array.isArray(i)&&i.length===0?void 0:l("div",{class:[c("title"),e.titleClass],style:e.titleStyle},[i||l("span",null,[e.title]),a()])}},o=()=>{const n=t.value||t.default;if(n||v(e.value))return l("div",{class:[c("value"),e.valueClass]},[n?n():l("span",null,[e.value])])},k=()=>{if(t.icon)return t.icon();if(e.icon)return l(h,{name:e.icon,class:c("left-icon"),classPrefix:e.iconPrefix},null)},B=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const n=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return l(h,{name:n,class:c("right-icon")},null)}};return()=>{var n;const{tag:i,size:u,center:y,border:_,isLink:L,required:D}=e,d=(n=e.clickable)!=null?n:L,g={center:y,required:D,clickable:d,borderless:!_};return u&&(g[u]=!!u),l(i,{class:c(g),role:d?"button":void 0,tabindex:d?0:void 0,onClick:r},{default:()=>{var m;return[k(),s(),o(),B(),(m=t.extra)==null?void 0:m.call(t)]}})}}});const K=x(N),[j,P]=C("cell-group"),E={title:String,inset:Boolean,border:w};var J=S({name:j,inheritAttrs:!1,props:E,setup(e,{slots:t,attrs:r}){const a=()=>{var o;return l("div",R({class:[P({inset:e.inset}),{[V]:e.border&&!e.inset}]},r),[(o=t.default)==null?void 0:o.call(t)])},s=()=>l("div",{class:P("title",{inset:e.inset})},[t.title?t.title():e.title]);return()=>e.title||t.title?l(T,null,[s(),a()]):a()}});const Q=x(J);export{Q as C,K as a,A as r,q as u};
import{u as n,o as c,c as s,a as e,F as m}from"./index-a7655152.js";import{E as p}from"./index-4be6ab6d.js";import{N as _}from"./index-4f40e7f9.js";import"./use-placeholder-93921726.js";const v={__name:"index",setup(i){const t=n(),o=()=>t.replace({name:"welcome"});return(l,f)=>{const r=_,a=p;return c(),s(m,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{v as default}; import{u as n,o as c,c as s,a as e,F as m}from"./index-bc30a3de.js";import{E as p}from"./index-73a275ae.js";import{N as _}from"./index-1dc17fab.js";import"./use-placeholder-bccf71d4.js";const v={__name:"index",setup(i){const t=n(),o=()=>t.replace({name:"welcome"});return(l,f)=>{const r=_,a=p;return c(),s(m,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"异常"})],64)}}};export{v as default};
import{u as n,o as c,c as s,a as e,F as m}from"./index-a7655152.js";import{E as p}from"./index-4be6ab6d.js";import{N as _}from"./index-4f40e7f9.js";import"./use-placeholder-93921726.js";const v={__name:"index",setup(i){const t=n(),o=()=>t.replace({name:"welcome"});return(l,f)=>{const r=_,a=p;return c(),s(m,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{v as default}; import{u as n,o as c,c as s,a as e,F as m}from"./index-bc30a3de.js";import{E as p}from"./index-73a275ae.js";import{N as _}from"./index-1dc17fab.js";import"./use-placeholder-bccf71d4.js";const v={__name:"index",setup(i){const t=n(),o=()=>t.replace({name:"welcome"});return(l,f)=>{const r=_,a=p;return c(),s(m,null,[e(r,{"left-text":"返回","left-arrow":"",onClickLeft:o}),e(a,{style:{width:"100%",height:"100%"},image:"error",description:"暂无权限!"})],64)}}};export{v as default};
import{r as n,f as h,s as i,a0 as r,n as u,a1 as c,a2 as l,a3 as d,a as g}from"./index-a7655152.js";const p=(a,s)=>{const t=n(),e=()=>{t.value=d(a).height};return h(()=>{if(i(e),s)for(let o=1;o<=3;o++)setTimeout(e,100*o)}),r(()=>i(e)),u([c,l],e),t};function v(a,s){const t=p(a,!0);return e=>g("div",{class:s("placeholder"),style:{height:t.value?`${t.value}px`:void 0}},[e()])}export{v as u}; import{r as n,f as h,s as i,a1 as r,n as u,a2 as c,a3 as l,a4 as d,a as g}from"./index-bc30a3de.js";const p=(a,s)=>{const t=n(),e=()=>{t.value=d(a).height};return h(()=>{if(i(e),s)for(let o=1;o<=3;o++)setTimeout(e,100*o)}),r(()=>i(e)),u([c,l],e),t};function v(a,s){const t=p(a,!0);return e=>g("div",{class:s("placeholder"),style:{height:t.value?`${t.value}px`:void 0}},[e()])}export{v as u};
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg"/> <link rel="icon" type="image/svg+xml" href="./vite.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>场地管理</title> <title>场地管理</title>
<script type="module" crossorigin src="./assets/index-a7655152.js"></script> <script type="module" crossorigin src="./assets/index-bc30a3de.js"></script>
<link rel="stylesheet" href="./assets/index-1870b917.css"> <link rel="stylesheet" href="./assets/index-1870b917.css">
</head> </head>
<body> <body>
......
...@@ -32,7 +32,7 @@ export function RefreshToken(data) { ...@@ -32,7 +32,7 @@ export function RefreshToken(data) {
export function CheckLoginTest(data) { export function CheckLoginTest(data) {
//test token //test token
return requestGet(`/api/Login/CheckLoginTest?card="asc666"`, data) return requestGet(`/api/Login/CheckLoginTest?card=asc666`, data)
} }
import {createApp} from 'vue' import {createApp, getCurrentInstance} from 'vue'
import './style.css' import './style.css'
import App from './App.vue' import App from './App.vue'
import router from "./router/index.js"; import router from "./router/index.js";
...@@ -7,6 +7,11 @@ import VueCookies from 'vue-cookies' ...@@ -7,6 +7,11 @@ import VueCookies from 'vue-cookies'
import VConsole from 'vconsole'; import VConsole from 'vconsole';
import * as api from "../src/api/index.js" import * as api from "../src/api/index.js"
const backAscHome = () => {
const userInfo = getCurrentInstance().appContext.config.globalProperties.$cookies
console.log("🚀🚀🚀,", userInfo);
window.location.href = "/TeacherMobOA";
}
const tabChange = (e) => { const tabChange = (e) => {
let object = { let object = {
"0": () => router.push({ "0": () => router.push({
...@@ -27,7 +32,8 @@ const app = createApp(App) ...@@ -27,7 +32,8 @@ const app = createApp(App)
const vConsole = new VConsole(); const vConsole = new VConsole();
app.config.globalProperties.$cookies = VueCookies app.config.globalProperties.$cookies = VueCookies
app.config.globalProperties.asc = api app.config.globalProperties.asc = api
app.config.globalProperties.tabChange = 12312312
app.provide('backAscHome', backAscHome)
app.use(router) app.use(router)
......
...@@ -25,7 +25,7 @@ const getTokenAction = async (date) => { ...@@ -25,7 +25,7 @@ const getTokenAction = async (date) => {
Cookies.set('site-management-token', res.response.access_token.token_content) Cookies.set('site-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires) Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo() const user = await api.GetTokenInfo()
Cookies.set('site-user-info', user.response.role) Cookies.set('site-user-info', JSON.stringify(user.response))
await router.replace({ await router.replace({
name: 'welcome' name: 'welcome'
}) })
...@@ -41,7 +41,7 @@ const getTokenActionWx = async (date) => { ...@@ -41,7 +41,7 @@ const getTokenActionWx = async (date) => {
Cookies.set('site-management-token', res.response.access_token.token_content) Cookies.set('site-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires) Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo() const user = await api.GetTokenInfo()
Cookies.set('site-user-info', user.response.role) Cookies.set('site-user-info', JSON.stringify(user.response))
await router.replace({ await router.replace({
name: 'welcome' name: 'welcome'
}) })
...@@ -76,7 +76,7 @@ const getToken = async () => { ...@@ -76,7 +76,7 @@ const getToken = async () => {
Cookies.set('site-management-token', res.response.access_token.token_content) Cookies.set('site-management-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires) Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo() const user = await api.GetTokenInfo()
Cookies.set('site-user-info', user.response.role) Cookies.set('site-user-info', JSON.stringify(user.response))
await router.replace({ await router.replace({
name: 'welcome' name: 'welcome'
}) })
......
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
<div class="header flex justify-center content-start flex-wrap "> <div class="header flex justify-center content-start flex-wrap ">
<div class="mb-3 flex w-full h-[50px] rounded-[8px]"> <div class="mb-3 flex w-full h-[50px] rounded-[8px]">
<div class="w-1/2 h-full mt-1 ml-1"> <div class="w-1/2 h-full mt-1 ml-1">
<div style="background: white" class="child"/> <div @click="back" style="background: white" class="child flex justify-center items-center">
<van-icon style="font-size: 22px;font-weight: bold" name="wap-home-o"/>
</div>
</div> </div>
<div class="w-1/2 h-full flex justify-end items-center"> <div class="w-1/2 h-full flex justify-end items-center">
<div class="mx-2"> <div class="mx-2">
...@@ -130,16 +132,21 @@ ...@@ -130,16 +132,21 @@
</div> </div>
</template> </template>
<script setup> <script setup>
import {getCurrentInstance, ref, watch} from "vue" import {getCurrentInstance, inject, ref, watch} from "vue"
import {useRouter} from "vue-router"; import {useRouter} from "vue-router";
const asc = getCurrentInstance() const asc = getCurrentInstance().appContext.config.globalProperties;
const router = useRouter() const router = useRouter()
const active = ref(0); const active = ref(0);
const tabChange = (e) => { const tabChange = (e) => {
console.log("3🚀🚀🚀,", asc)
}
}
const backAscHome = inject('backAscHome')
const back = () => {
//返回asc 主界面
backAscHome
console.log("🚀🚀🚀,", backAscHome)
}
</script> </script>
<style scoped> <style scoped>
.child { .child {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或