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

保存

上级 fba7ada9
流水线 #23311 已通过 ,包含阶段
in 1 minute 和 5 second
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-755d84b6.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 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 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-755d84b6.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-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{b as h,d as b,a,T as w,t as k,m as B,K as N,I as S,w as T,u as I,M as P,f as E,o as D,c as F,E as c,h as e,F as L,N as o,O as i,i as M}from"./index-755d84b6.js";import{C as V,a as z}from"./index-ac8abf91.js";import{N as A}from"./index-d1cc5195.js";import"./use-placeholder-781f9b94.js";const[K,g]=h("tag"),O={size:String,mark:Boolean,show:k,type:B("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var R=b({name:K,props:O,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(S,{name:"cross",class:[g("close"),N],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 j=T(R);const q={class:"container"},U={__name:"index",setup(n){const d=I();let t=P({data:{}});const u=async()=>{const l=await(void 0)({id:d.currentRoute.value.query.id});t.data=l.response};E(()=>{u()});const _=()=>d.push({name:"signList"});return(p,l)=>{const m=A,s=j,r=z,f=V;return D(),F(L,null,[a(m,{title:"值班信息","left-text":"返回","left-arrow":"",onClickLeft:_}),c("div",q,[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(()=>[M(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{U 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{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{b as k,d as y,r as S,l as E,t as P,n as I,p as R,a as e,q as j,B as z,s as M,w as V,v as D,g as q,x as F,y as G,z as H,A as J,I as A,D as K,_ as U,o as Y,c as Z,E as s,h as t,i as _,H as L,J as Q}from"./index-755d84b6.js";import{r as W,u as X,C as ee,a as te}from"./index-ac8abf91.js";import{u as ae}from"./use-placeholder-781f9b94.js";const[T,B]=k("tabbar"),ne={route:Boolean,fixed:P,border:P,zIndex:I,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:R(0),safeAreaInsetBottom:{type:Boolean,default:null}},$=Symbol(T);var se=y({name:T,props:ne,emits:["change","update:modelValue"],setup(a,{emit:f,slots:d}){const m=S(),{linkChildren:o}=E($),n=ae(m,B),r=()=>{var c;return(c=a.safeAreaInsetBottom)!=null?c:a.fixed},l=()=>{var c;const{fixed:i,zIndex:u,border:h}=a;return e("div",{ref:m,role:"tablist",style:j(u),class:[B({fixed:i}),{[z]:h,"van-safe-area-bottom":r()}]},[(c=d.default)==null?void 0:c.call(d)])};return o({props:a,setActive:(c,i)=>{M(a.beforeChange,{args:[c],done(){f("update:modelValue",c),f("change",c),i()}})}}),()=>a.fixed&&a.placeholder?n(l):l()}});const oe=V(se),[le,w]=k("tabbar-item"),ce=D({},W,{dot:Boolean,icon:String,name:I,badge:I,badgeProps:Object,iconPrefix:String});var ie=y({name:le,props:ce,emits:["click"],setup(a,{emit:f,slots:d}){const m=X(),o=q().proxy,{parent:n,index:r}=F($);if(!n)return;const l=G(()=>{var i;const{route:u,modelValue:h}=n.props;if(u&&"$route"in o){const{$route:g}=o,{to:p}=a,v=K(p)?p:{path:p};return!!g.matched.find(C=>{const O="path"in v&&v.path===C.path,N="name"in v&&v.name===C.name;return O||N})}return((i=a.name)!=null?i:r.value)===h}),x=i=>{var u;l.value||n.setActive((u=a.name)!=null?u:r.value,m),f("click",i)},c=()=>{if(d.icon)return d.icon({active:l.value});if(a.icon)return e(A,{name:a.icon,classPrefix:a.iconPrefix},null)};return()=>{var i;const{dot:u,badge:h}=a,{activeColor:g,inactiveColor:p}=n.props,v=l.value?g:p;return e("div",{role:"tab",class:w({active:l.value}),style:{color:v},tabindex:0,"aria-selected":l.value,onClick:x},[e(H,J({dot:u,class:w("icon"),content:h},a.badgeProps),{default:c}),e("div",{class:w("text")},[(i=d.default)==null?void 0:i.call(d,{active:l.value})])])}}});const re=V(ie);const b=a=>(L("data-v-2285d508"),a=a(),Q(),a),de={class:"container1"},ue={class:"header flex justify-center content-start flex-wrap"},_e={class:"mb-3 w-full"},fe={class:"mb-3 w-full"},me={class:"mb-3 w-full"},ve={class:"mb-3 w-full"},he=b(()=>s("span",null,"已结束",-1)),pe={class:"mb-3 w-full"},be=b(()=>s("span",null,"已结束",-1)),xe={class:"mb-3 w-full"},ge=b(()=>s("span",null,"已结束",-1)),we=b(()=>s("span",null,"已结束",-1)),Ie={class:"mb-3 w-full"},Ce=b(()=>s("span",null,"已结束",-1)),Pe={class:"footer"},Be={__name:"index",setup(a){const f=S(0);return(d,m)=>{const o=te,n=ee,r=A,l=re,x=oe;return Y(),Z("div",de,[s("div",ue,[s("div",_e,[e(n,{inset:""},{default:t(()=>[e(o,{class:"w-full h-[55px]",title:"单元格",value:"内容"})]),_:1})]),s("div",fe,[e(n,{inset:""},{default:t(()=>[e(o,{class:"w-full h-[75px]",title:"单元格",value:"内容"})]),_:1})]),s("div",me,[e(n,{inset:""},{default:t(()=>[e(o,{class:"w-full h-[90px]",title:"单元格",value:"内容"})]),_:1})]),s("div",ve,[e(n,{inset:""},{default:t(()=>[e(o,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:t(()=>[e(r,{name:"chat-o"})]),title:t(()=>[he]),value:t(()=>[_(" 1 ")]),_:1})]),_:1})]),s("div",pe,[e(n,{inset:""},{default:t(()=>[e(o,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:t(()=>[e(r,{name:"chat-o"})]),title:t(()=>[be]),value:t(()=>[_(" 1 ")]),_:1})]),_:1})]),s("div",xe,[e(n,{inset:""},{default:t(()=>[e(o,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:t(()=>[e(r,{name:"chat-o"})]),title:t(()=>[ge]),value:t(()=>[_(" 1 ")]),_:1}),e(o,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:t(()=>[e(r,{name:"chat-o"})]),title:t(()=>[we]),value:t(()=>[_(" 1 ")]),_:1})]),_:1})]),s("div",Ie,[e(n,{inset:""},{default:t(()=>[e(o,{"is-link":"",class:"w-full h-[50px] flex items-center"},{icon:t(()=>[e(r,{name:"chat-o"})]),title:t(()=>[Ce]),value:t(()=>[_(" 1 ")]),_:1})]),_:1})])]),s("div",Pe,[e(x,{modelValue:f.value,"onUpdate:modelValue":m[0]||(m[0]=c=>f.value=c)},{default:t(()=>[e(l,{icon:"home-o"},{default:t(()=>[_("活动管理")]),_:1}),e(l,{icon:"search"},{default:t(()=>[_("钥匙管理")]),_:1}),e(l,{icon:"friends-o"},{default:t(()=>[_("场地管理")]),_:1})]),_:1},8,["modelValue"])])])}}},Ve=U(Be,[["__scopeId","data-v-2285d508"]]);export{Ve 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)}[data-v-2285d508] .van-cell-group--inset{margin:0;border-radius:var(--van-cell-group-inset-radius);overflow:hidden}[data-v-2285d508] .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-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)}
import{u as n,o as c,c as s,a as e,F as m}from"./index-755d84b6.js";import{E as p}from"./index-896036cb.js";import{N as _}from"./index-d1cc5195.js";import"./use-placeholder-781f9b94.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{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{u as n,o as c,c as s,a as e,F as m}from"./index-755d84b6.js";import{E as p}from"./index-896036cb.js";import{N as _}from"./index-d1cc5195.js";import"./use-placeholder-781f9b94.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{g as I,b as C,v as $,d as S,a as l,m as O,n as f,t as w,Q as b,R as v,I as h,w as x,F as R,A as T,B as A}from"./index-755d84b6.js";const V={to:[String,Object],url:String,replace:Boolean};function G({to:e,url:n,replace:r,$router:a}){e&&a?a[r?"replace":"push"](e):n&&(r?location.replace(n):location.href=n)}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}},N=$({},F,V);var j=S({name:z,props:N,setup(e,{slots:n}){const r=q(),a=()=>{if(n.label||v(e.label))return l("div",{class:[c("label"),e.labelClass]},[n.label?n.label():e.label])},s=()=>{var t;if(n.title||v(e.title)){const i=(t=n.title)==null?void 0:t.call(n);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 t=n.value||n.default;if(t||v(e.value))return l("div",{class:[c("value"),e.valueClass]},[t?t():l("span",null,[e.value])])},k=()=>{if(n.icon)return n.icon();if(e.icon)return l(h,{name:e.icon,class:c("left-icon"),classPrefix:e.iconPrefix},null)},B=()=>{if(n["right-icon"])return n["right-icon"]();if(e.isLink){const t=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return l(h,{name:t,class:c("right-icon")},null)}};return()=>{var t;const{tag:i,size:u,center:_,border:y,isLink:L,required:D}=e,d=(t=e.clickable)!=null?t:L,g={center:_,required:D,clickable:d,borderless:!y};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=n.extra)==null?void 0:m.call(n)]}})}}});const J=x(j),[E,P]=C("cell-group"),M={title:String,inset:Boolean,border:w};var Q=S({name:E,inheritAttrs:!1,props:M,setup(e,{slots:n,attrs:r}){const a=()=>{var o;return l("div",T({class:[P({inset:e.inset}),{[A]:e.border&&!e.inset}]},r),[(o=n.default)==null?void 0:o.call(n)])},s=()=>l("div",{class:P("title",{inset:e.inset})},[n.title?n.title():e.title]);return()=>e.title||n.title?l(R,null,[s(),a()]):a()}});const K=x(Q);export{K as C,J as a,V as r,q as u};
import{u as I}from"./use-placeholder-781f9b94.js";import{b,d as R,r as w,n as A,t as s,q as C,a as r,K as o,P,I as L,w as N}from"./index-755d84b6.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{r as h,f as n,U as i,V as r,W as u,X as c,Y as l,Z as d,a as g}from"./index-755d84b6.js";const p=(s,o)=>{const t=h(),e=()=>{t.value=d(s).height};return n(()=>{if(i(e),o)for(let a=1;a<=3;a++)setTimeout(e,100*a)}),r(()=>i(e)),u([c,l],e),t};function v(s,o){const t=p(s,!0);return e=>g("div",{class:o("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,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};
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<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-755d84b6.js"></script> <script type="module" crossorigin src="./assets/index-a7655152.js"></script>
<link rel="stylesheet" href="./assets/index-9e8cb7af.css"> <link rel="stylesheet" href="./assets/index-1870b917.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -2322,9 +2322,9 @@ ...@@ -2322,9 +2322,9 @@
} }
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "4.4.9", "version": "4.5.1",
"resolved": "https://registry.npmmirror.com/vite/-/vite-4.4.9.tgz", "resolved": "https://registry.npmmirror.com/vite/-/vite-4.5.1.tgz",
"integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", "integrity": "sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"esbuild": "^0.18.10", "esbuild": "^0.18.10",
...@@ -4165,9 +4165,9 @@ ...@@ -4165,9 +4165,9 @@
} }
}, },
"vite": { "vite": {
"version": "4.4.9", "version": "4.5.1",
"resolved": "https://registry.npmmirror.com/vite/-/vite-4.4.9.tgz", "resolved": "https://registry.npmmirror.com/vite/-/vite-4.5.1.tgz",
"integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", "integrity": "sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==",
"dev": true, "dev": true,
"requires": { "requires": {
"esbuild": "^0.18.10", "esbuild": "^0.18.10",
......
...@@ -7,11 +7,28 @@ import VueCookies from 'vue-cookies' ...@@ -7,11 +7,28 @@ 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 tabChange = (e) => {
let object = {
"0": () => router.push({
name: 'welcome'
}),
"1": () => router.push({
name: 'keyManagement'
}),
"2": () => router.push({
name: 'activityManager'
}),
}
object[e]()
}
const app = createApp(App) const app = createApp(App)
//使用测试按钮Vxonsole //使用测试按钮Vxonsole
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.use(router) app.use(router)
app.mount('#app') app.mount('#app')
<template>
<div class="container1">
<div class="header flex justify-center content-start flex-wrap ">
<div class="mb-3 flex w-full h-[50px] rounded-[8px]">
<div class="w-1/2 h-full mt-1 ml-1">
<div style="background: white" class="child"/>
</div>
<div class="w-1/2 h-full flex justify-end items-center">
<div class="mx-2">
<div class="font-bold ml flex justify-end">张老师</div>
<div class="text-[14px] text-neutral-400">asc20231227</div>
</div>
<div>
<van-image
round
width="40px"
height="40px"
src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
/>
</div>
</div>
</div>
<div class="mb-3 w-full flex flex-nowrap justify-between">
<van-cell-group inset class="w-[45%] ">
<van-cell class="w-full h-[75px]" title="单元格" value="内容"/>
</van-cell-group>
<van-cell-group inset class="w-[45%] ">
<van-cell class="w-full h-[75px]" title="单元格" value="内容"/>
</van-cell-group>
</div>
<div class="flex flex-nowrap mb-3 w-full h-[90px] bg-white rounded-[8px]">
<div class="w-1/3 h-full flex justify-center items-center">
<van-badge :content="235">
<div class="child"/>
<div class="text-[14px] mt-1">审批中</div>
</van-badge>
</div>
<div class="w-1/3 h-full flex-wrap flex justify-center items-center">
<van-badge :content="5">
<div class="child"/>
<div class="text-[14px] mt-1">待使用</div>
</van-badge>
</div>
<div class="w-1/3 h-full flex justify-center items-center">
<van-badge :content="15">
<div class="child"/>
<div class="text-[14px] mt-1">使用中</div>
</van-badge>
</div>
</div>
<div class="mb-3 w-full">
<van-cell-group inset>
<van-cell is-link class="w-full h-[50px] flex items-center">
<template #icon>
<van-icon name="chat-o"/>
</template>
<template #title>
<span class="mx-2">加时活动</span>
</template>
<template #value>
1
</template>
</van-cell>
</van-cell-group>
</div>
<div class="mb-3 w-full">
<van-cell-group inset>
<van-cell is-link class="w-full h-[50px] flex items-center">
<template #icon>
<van-icon name="chat-o"/>
</template>
<template #title>
<span>被邀请</span>
</template>
<template #value>
1
</template>
</van-cell>
</van-cell-group>
</div>
<div class="mb-3 w-full">
<van-cell-group inset>
<van-cell is-link class="w-full h-[50px] flex items-center">
<template #icon>
<van-icon name="chat-o"/>
</template>
<template #title>
<span>待评价</span>
</template>
<template #value>
1
</template>
</van-cell>
<van-cell is-link class="w-full h-[50px] flex items-center">
<template #icon>
<van-icon name="chat-o"/>
</template>
<template #title>
<span>已评价</span>
</template>
<template #value>
1
</template>
</van-cell>
</van-cell-group>
</div>
<div class="mb-3 w-full">
<van-cell-group inset>
<van-cell is-link class="w-full h-[50px] flex items-center">
<template #icon>
<van-icon name="chat-o"/>
</template>
<template #title>
<span>已结束</span>
</template>
<template #value>
1
</template>
</van-cell>
</van-cell-group>
</div>
</div>
<div class="footer ">
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o">活动管理</van-tabbar-item>
<van-tabbar-item icon="search">钥匙管理</van-tabbar-item>
<van-tabbar-item icon="friends-o">场地管理</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script setup>
import {ref, watch} from "vue"
const active = ref(2);
</script>
<style scoped>
.child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 4px;
}
>>> .van-cell-group--inset {
margin: 0;
border-radius: var(--van-cell-group-inset-radius);
overflow: hidden;
}
>>> .van-tabbar {
z-index: var(--van-tabbar-z-index);
display: flex;
box-sizing: content-box;
width: 100%;
height: 80px;
background: var(--van-tabbar-background);
}
</style>
<template>
<div class="container1">
<div class="header flex justify-center content-start flex-wrap ">
<div class="mb-3 flex w-full h-[50px] rounded-[8px]">
<div class="w-1/2 h-full mt-1 ml-1">
<div style="background: white" class="child"/>
</div>
<div class="w-1/2 h-full flex justify-end items-center">
<div class="mx-2">
<div class="font-bold ml flex justify-end">张老师</div>
<div class="text-[14px] text-neutral-400">asc20231227</div>
</div>
<div>
<van-image
round
width="40px"
height="40px"
src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
/>
</div>
</div>
</div>
<div class="mb-3 w-full flex flex-nowrap justify-between">
<van-cell-group inset class="w-[45%] ">
<van-cell class="w-full h-[75px]" title="单元格" value="内容"/>
</van-cell-group>
<van-cell-group inset class="w-[45%] ">
<van-cell class="w-full h-[75px]" title="单元格" value="内容"/>
</van-cell-group>
</div>
<div class="flex flex-nowrap mb-3 w-full h-[90px] bg-white rounded-[8px]">
<div class="w-1/3 h-full flex justify-center items-center">
<van-badge :content="235">
<div class="child"/>
<div class="text-[14px] mt-1">审批中</div>
</van-badge>
</div>
<div class="w-1/3 h-full flex-wrap flex justify-center items-center">
<van-badge :content="5">
<div class="child"/>
<div class="text-[14px] mt-1">待使用</div>
</van-badge>
</div>
<div class="w-1/3 h-full flex justify-center items-center">
<van-badge :content="15">
<div class="child"/>
<div class="text-[14px] mt-1">使用中</div>
</van-badge>
</div>
</div>
<div class="mb-3 w-full">
<van-cell-group inset>
<van-cell is-link class="w-full h-[50px] flex items-center">
<template #icon>
<van-icon name="chat-o"/>
</template>
<template #title>
<span class="mx-2">加时活动</span>
</template>
<template #value>
1
</template>
</van-cell>
</van-cell-group>
</div>
<div class="mb-3 w-full">
<van-cell-group inset>
<van-cell is-link class="w-full h-[50px] flex items-center">
<template #icon>
<van-icon name="chat-o"/>
</template>
<template #title>
<span>被邀请</span>
</template>
<template #value>
1
</template>
</van-cell>
</van-cell-group>
</div>
<div class="mb-3 w-full">
<van-cell-group inset>
<van-cell is-link class="w-full h-[50px] flex items-center">
<template #icon>
<van-icon name="chat-o"/>
</template>
<template #title>
<span>待评价</span>
</template>
<template #value>
1
</template>
</van-cell>
<van-cell is-link class="w-full h-[50px] flex items-center">
<template #icon>
<van-icon name="chat-o"/>
</template>
<template #title>
<span>已评价</span>
</template>
<template #value>
1
</template>
</van-cell>
</van-cell-group>
</div>
<div class="mb-3 w-full">
<van-cell-group inset>
<van-cell is-link class="w-full h-[50px] flex items-center">
<template #icon>
<van-icon name="chat-o"/>
</template>
<template #title>
<span>已结束</span>
</template>
<template #value>
1
</template>
</van-cell>
</van-cell-group>
</div>
</div>
<div class="footer ">
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o">活动管理</van-tabbar-item>
<van-tabbar-item icon="search">钥匙管理</van-tabbar-item>
<van-tabbar-item icon="friends-o">场地管理</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script setup>
import {ref, watch} from "vue"
const active = ref(1);
</script>
<style scoped>
.child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 4px;
}
>>> .van-cell-group--inset {
margin: 0;
border-radius: var(--van-cell-group-inset-radius);
overflow: hidden;
}
>>> .van-tabbar {
z-index: var(--van-tabbar-z-index);
display: flex;
box-sizing: content-box;
width: 100%;
height: 80px;
background: var(--van-tabbar-background);
}
</style>
<template> <template>
<div class="container1"> <div class="container1">
<div class="header flex justify-center content-start flex-wrap "> <div class="header flex justify-center content-start flex-wrap ">
<div class="mb-3 w-full"> <div class="mb-3 flex w-full h-[50px] rounded-[8px]">
<van-cell-group inset> <div class="w-1/2 h-full mt-1 ml-1">
<van-cell class="w-full h-[55px]" title="单元格" value="内容"/> <div style="background: white" class="child"/>
</van-cell-group>
</div> </div>
<div class="mb-3 w-full"> <div class="w-1/2 h-full flex justify-end items-center">
<van-cell-group inset> <div class="mx-2">
<div class="font-bold ml flex justify-end">张老师</div>
<div class="text-[14px] text-neutral-400">asc20231227</div>
</div>
<div>
<van-image
round
width="40px"
height="40px"
src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
/>
</div>
</div>
</div>
<div class="mb-3 w-full flex flex-nowrap justify-between">
<van-cell-group inset class="w-[45%] ">
<van-cell class="w-full h-[75px]" title="单元格" value="内容"/> <van-cell class="w-full h-[75px]" title="单元格" value="内容"/>
</van-cell-group> </van-cell-group>
</div> <van-cell-group inset class="w-[45%] ">
<div class="mb-3 w-full"> <van-cell class="w-full h-[75px]" title="单元格" value="内容"/>
<van-cell-group inset>
<van-cell class="w-full h-[90px]" title="单元格" value="内容"/>
</van-cell-group> </van-cell-group>
</div> </div>
<div class="flex flex-nowrap mb-3 w-full h-[90px] bg-white rounded-[8px]">
<div class="w-1/3 h-full flex justify-center items-center">
<van-badge :content="235">
<div class="child"/>
<div class="text-[14px] mt-1">审批中</div>
</van-badge>
</div>
<div class="w-1/3 h-full flex-wrap flex justify-center items-center">
<van-badge :content="5">
<div class="child"/>
<div class="text-[14px] mt-1">待使用</div>
</van-badge>
</div>
<div class="w-1/3 h-full flex justify-center items-center">
<van-badge :content="15">
<div class="child"/>
<div class="text-[14px] mt-1">使用中</div>
</van-badge>
</div>
</div>
<div class="mb-3 w-full"> <div class="mb-3 w-full">
<van-cell-group inset> <van-cell-group inset>
<van-cell is-link class="w-full h-[50px] flex items-center"> <van-cell is-link class="w-full h-[50px] flex items-center">
...@@ -23,7 +55,7 @@ ...@@ -23,7 +55,7 @@
<van-icon name="chat-o"/> <van-icon name="chat-o"/>
</template> </template>
<template #title> <template #title>
<span>已结束</span> <span class="mx-2">加时活动</span>
</template> </template>
<template #value> <template #value>
1 1
...@@ -38,7 +70,7 @@ ...@@ -38,7 +70,7 @@
<van-icon name="chat-o"/> <van-icon name="chat-o"/>
</template> </template>
<template #title> <template #title>
<span>已结束</span> <span>被邀请</span>
</template> </template>
<template #value> <template #value>
1 1
...@@ -53,7 +85,7 @@ ...@@ -53,7 +85,7 @@
<van-icon name="chat-o"/> <van-icon name="chat-o"/>
</template> </template>
<template #title> <template #title>
<span>已结束</span> <span>待评价</span>
</template> </template>
<template #value> <template #value>
1 1
...@@ -64,7 +96,7 @@ ...@@ -64,7 +96,7 @@
<van-icon name="chat-o"/> <van-icon name="chat-o"/>
</template> </template>
<template #title> <template #title>
<span>已结束</span> <span>已评价</span>
</template> </template>
<template #value> <template #value>
1 1
...@@ -89,7 +121,7 @@ ...@@ -89,7 +121,7 @@
</div> </div>
</div> </div>
<div class="footer "> <div class="footer ">
<van-tabbar v-model="active"> <van-tabbar v-model="active" @change="tabChange">
<van-tabbar-item icon="home-o">活动管理</van-tabbar-item> <van-tabbar-item icon="home-o">活动管理</van-tabbar-item>
<van-tabbar-item icon="search">钥匙管理</van-tabbar-item> <van-tabbar-item icon="search">钥匙管理</van-tabbar-item>
<van-tabbar-item icon="friends-o">场地管理</van-tabbar-item> <van-tabbar-item icon="friends-o">场地管理</van-tabbar-item>
...@@ -98,15 +130,23 @@ ...@@ -98,15 +130,23 @@
</div> </div>
</template> </template>
<script setup> <script setup>
import {ref, watch} from "vue" import {getCurrentInstance, ref, watch} from "vue"
import {useRouter} from "vue-router";
const asc = getCurrentInstance()
const router = useRouter()
const active = ref(0); const active = ref(0);
const tabChange = (e) => {
console.log("3🚀🚀🚀,", asc)
}
</script> </script>
<style scoped> <style scoped>
:root { .child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 4px;
} }
>>> .van-cell-group--inset { >>> .van-cell-group--inset {
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
} }
.header { .header {
@apply w-full h-[calc(100vh-50px)] bg-red-900 @apply w-full h-[calc(100vh-50px)]
p-3.5 p-3.5 overflow-y-auto
} }
.footer { .footer {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或