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

save

上级 87c8b719
流水线 #34381 已通过 ,包含阶段
in 4 minute 和 56 second
......@@ -8,7 +8,7 @@ stages:
build:
stage: publish
script:
# - remove-item -Force -Recurse D:\ASC_web\A00051\occupancyManagement\wx1*
- xcopy "dist" "D:\ASC_web\A00051\occupancyManagement\wx\" /s/e/y/
- remove-item -Force -Recurse D:/ASC_web/A00051/devicesManagement/wx*
- xcopy "dist" "D:\ASC_web\A00051\devicesManagement\wx\" /s/e/y/
only:
- wx
- wx
\ No newline at end of file
<template>
<div class="user-layout">
<div class="content">
<router-view></router-view>
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/userContent1">首页</van-tabbar-item>
<van-tabbar-item icon="search" to="/userContent2">搜索</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
display: flex;
flex-direction: column;
height: 100vh;
}
.content {
flex: 1;
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
/* 容器的大小是100vh - 64px */
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
\ No newline at end of file
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
/* 容器的大小是100vh - 64px */
height: 100vh;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
\ No newline at end of file
<template>
<div class="user-layout">
<div class="content">
<router-view></router-view>
</div>
<div class="tabbar">
<!-- 这里可以添加你的tabbar组件 -->
<view-ui-tabbar></view-ui-tabbar>
</div>
</div>
</template>
<script>
import ViewUiTabbar from '@/components/common/ViewUiTabbar.vue';
export default {
name: 'UserLayout',
components: {
ViewUiTabbar,
},
};
</script>
<style scoped>
.user-layout {
display: flex;
flex-direction: column;
height: 100vh;
}
.content {
flex: 1;
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<div class="content">
<router-view></router-view>
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/userContent1">首页</van-tabbar-item>
<van-tabbar-item icon="search" to="/userContent2">搜索</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
components: {
[Tabbar.name]: Tabbar,
[TabbarItem.name]: TabbarItem,
},
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
display: flex;
flex-direction: column;
height: 100vh;
}
.content {
flex: 1;
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<div class="content">
<router-view></router-view>
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/userContent1">首页</van-tabbar-item>
<van-tabbar-item icon="search" to="/userContent2">搜索</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
}
.content {
flex: 1;
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<div class="content">
<router-view></router-view>
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/userContent1">首页</van-tabbar-item>
<van-tabbar-item icon="search" to="/userContent2">搜索</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
width: 100%;
height: calc(100v - 50px);
overflow: auto;
}
.content {
flex: 1;
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<div class="content">
<router-view></router-view>
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/userContent1">首页</van-tabbar-item>
<van-tabbar-item icon="search" to="/userContent2">搜索</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
width: 100%;
height: calc(100v - 50px);
overflow: auto;
}
.content {
flex: 1;
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<script setup>
import wx from "weixin-js-sdk";
import {
defineAsyncComponent,
getCurrentInstance,
inject,
ref,
watch,
onMounted,
computed,
nextTick,
reactive, onUnmounted
} from "vue"
import {useRouter} from "vue-router";
import * as hooks from "@/hooks/index.js";
import * as api from "@/api/dist/controller/index.js";
import {useUserInfo} from "@/store/modules/user.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const userInfo = useUserInfo()
const user = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/user.vue'))
const admin = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/admin.vue'))
const adminNoGoodRecord = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/adminNoGoodRecord.vue'))
const asc = getCurrentInstance().appContext.config.globalProperties;
const router = useRouter()
const active = ref(0);
const show = ref(false)
const init = reactive({
role: userInfo.userInfo.role,
channel: {},
active: 0,
columns: [],
placeTypeName: [],
flow: {
array: []
},
count: {}
})
onMounted(() => {
document.title = '主页'
})
const onSubmit = (values) => {
console.log('submit', values);
};
const getImage = (imageKey) => {
return asc.hooks.getImage(imageKey)
}
const tabChange = (e) => {
asc.tabChange(e)
}
const backAscHome = inject('backAscHome')
const gotoPath = (path) => {
hooks.go2Router(path)
}
const close = () => show.value = false
const back = () => {
//返回asc 主界面
backAscHome()
}
function getTabBarIndex(index) {
//获取地址tabBar的index
init.active = index
}
function getCurRole(role) {
//获取当前权限
init.role = role
}
//栏目入口
function handleInterview(key) {
const strategy = {
'individualBooking': () => {
//散客预约
router.push({
name: 'welcome',
})
},
'teamAppointmentNoApproved': () => {
//团队未审批
router.push({
name: 'teamAppointment-noApproval',
})
},
'teamAppointmentApproved': () => {
//团队已审批
router.push({
name: 'teamAppointment-approval',
})
},
'teamAppointment-allDataRecord': () => {
//所有团队预约记录
router.push({
name: 'teamAppointment-allDataRecord',
})
},
'officialAppointmentsHaveBeenNoApproved': () => {
//公务未审批
router.push({
name: 'officialAppointment-noApproval',
})
},
'officialAppointmentsHaveBeenApproved': () => {
//公务已审批
router.push({
name: 'officialAppointment-approval',
})
},
}
strategy[key]()
}
</script>
<template>
<!-- user-->
<div class="container1 flex" >
<div class="header flex justify-center content-start flex-wrap ">
<!--头部-->
<div class="mb-3 w-full">
<userHeader @getCurRole="getCurRole"></userHeader>
</div>
<!--栏目背景-->
<div class="w-full h-[128px] py-2 relative">
<van-image width="100%" height="100%" :src="hooks.getImage('colBg2')"></van-image>
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
<span class="text-2xl font-bold text-white">设备管理</span>
</div>
</div>
<!--栏目-->
<div class="w-full h-[calc(100%-258px)] ">
<div>
<div class="list">
<p class="w-full h-[40] list-item-font">散客预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('individualBooking')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
</div>
<div class="list">
<p class="w-full h-[40] list-item-font">团队预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointment-allDataRecord')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentNoApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">待审批</span>
</template>
</van-cell>
</div>
<!-- 转专业 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">已审批</span>
</template>
</van-cell>
</div>
</div>
</div>
</div>
<!-- 版本号 -->
<!-- version -->
<div class="w-[96%] ccFlex mt-10 p-3 h-3 text-center"
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250116 1.0.1
</div>
</div>
</div>
</template>
<style scoped>
.currentAppointment {
background-image: url("@/static/occupyingASeat/bg.png");
background-size: cover;
}
.aaa {
background-image: url("@/static/icon/changlanse.png");
background-size: cover;
}
.bbb {
background-image: url("@/static/icon/1.png");
background-size: cover;
}
.child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 12px;
}
> > > .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>
<style lang="less" scoped>
/deep/ .van-tabs__wrap {
overflow: hidden;
border-radius: 8px;
}
.list {
/deep/ &-item {
margin: 16px 0;
border-radius: 12px;
overflow: hidden;
&-font {
font-size: 20px;
font-family: 黑体;
font-weight: 600;
color: rgba(0, 0, 0, .6);
}
}
/deep/ .van-cell {
line-height: 48px;
display: flex;
align-items: center;
.image {
width: 25px;
height: 25px;
}
.van-cell__title {
display: flex;
align-items: center;
.custom-title {
font-size: 16px;
padding-left: 10px;
}
}
.van-cell__value {
font-size: 16px;
}
&::after {
content: none;
}
}
.van-cell .van-cell__value {
font-size: 18px;
color: #3488ff;
}
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.block {
width: 120px;
height: 120px;
background-color: #fff;
}
</style>
\ No newline at end of file
<script setup>
import wx from "weixin-js-sdk";
import {
defineAsyncComponent,
getCurrentInstance,
inject,
ref,
watch,
onMounted,
computed,
nextTick,
reactive, onUnmounted
} from "vue"
import {useRouter} from "vue-router";
import * as hooks from "@/hooks/index.js";
import * as api from "@/api/dist/controller/index.js";
import {useUserInfo} from "@/store/modules/user.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const userInfo = useUserInfo()
const user = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/user.vue'))
const admin = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/admin.vue'))
const adminNoGoodRecord = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/adminNoGoodRecord.vue'))
const asc = getCurrentInstance().appContext.config.globalProperties;
const router = useRouter()
const active = ref(0);
const show = ref(false)
const init = reactive({
role: userInfo.userInfo.role,
channel: {},
active: 0,
columns: [],
placeTypeName: [],
flow: {
array: []
},
count: {}
})
onMounted(() => {
document.title = '主页'
})
const onSubmit = (values) => {
console.log('submit', values);
};
const getImage = (imageKey) => {
return asc.hooks.getImage(imageKey)
}
const tabChange = (e) => {
asc.tabChange(e)
}
const backAscHome = inject('backAscHome')
const gotoPath = (path) => {
hooks.go2Router(path)
}
const close = () => show.value = false
const back = () => {
//返回asc 主界面
backAscHome()
}
function getTabBarIndex(index) {
//获取地址tabBar的index
init.active = index
}
function getCurRole(role) {
//获取当前权限
init.role = role
}
//栏目入口
function handleInterview(key) {
const strategy = {
'individualBooking': () => {
//散客预约
router.push({
name: 'welcome',
})
},
'teamAppointmentNoApproved': () => {
//团队未审批
router.push({
name: 'teamAppointment-noApproval',
})
},
'teamAppointmentApproved': () => {
//团队已审批
router.push({
name: 'teamAppointment-approval',
})
},
'teamAppointment-allDataRecord': () => {
//所有团队预约记录
router.push({
name: 'teamAppointment-allDataRecord',
})
},
'officialAppointmentsHaveBeenNoApproved': () => {
//公务未审批
router.push({
name: 'officialAppointment-noApproval',
})
},
'officialAppointmentsHaveBeenApproved': () => {
//公务已审批
router.push({
name: 'officialAppointment-approval',
})
},
}
strategy[key]()
}
</script>
<template>
<!-- user-->
<div class="container1 flex" >
<div class="header flex justify-center content-start flex-wrap ">
<!--头部-->
<div class="mb-3 w-full">
<userHeader @getCurRole="getCurRole"></userHeader>
</div>
<!--栏目背景-->
<div class="w-full h-[128px] py-2 relative">
<van-image width="100%" height="100%" :src="hooks.getImage('colBg2')"></van-image>
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
<span class="text-2xl font-bold text-white italic" style="font-family: 'Microsoft YaHei', sans-serif;">设备管理</span>
</div>
</div>
<!--栏目-->
<div class="w-full h-[calc(100%-258px)] ">
<div>
<div class="list">
<p class="w-full h-[40] list-item-font">散客预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('individualBooking')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
</div>
<div class="list">
<p class="w-full h-[40] list-item-font">团队预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointment-allDataRecord')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentNoApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">待审批</span>
</template>
</van-cell>
</div>
<!-- 转专业 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">已审批</span>
</template>
</van-cell>
</div>
</div>
</div>
</div>
<!-- 版本号 -->
<!-- version -->
<div class="w-[96%] ccFlex mt-10 p-3 h-3 text-center"
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250116 1.0.1
</div>
</div>
</div>
</template>
<style scoped>
.currentAppointment {
background-image: url("@/static/occupyingASeat/bg.png");
background-size: cover;
}
.aaa {
background-image: url("@/static/icon/changlanse.png");
background-size: cover;
}
.bbb {
background-image: url("@/static/icon/1.png");
background-size: cover;
}
.child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 12px;
}
> > > .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>
<style lang="less" scoped>
/deep/ .van-tabs__wrap {
overflow: hidden;
border-radius: 8px;
}
.list {
/deep/ &-item {
margin: 16px 0;
border-radius: 12px;
overflow: hidden;
&-font {
font-size: 20px;
font-family: 黑体;
font-weight: 600;
color: rgba(0, 0, 0, .6);
}
}
/deep/ .van-cell {
line-height: 48px;
display: flex;
align-items: center;
.image {
width: 25px;
height: 25px;
}
.van-cell__title {
display: flex;
align-items: center;
.custom-title {
font-size: 16px;
padding-left: 10px;
}
}
.van-cell__value {
font-size: 16px;
}
&::after {
content: none;
}
}
.van-cell .van-cell__value {
font-size: 18px;
color: #3488ff;
}
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.block {
width: 120px;
height: 120px;
background-color: #fff;
}
</style>
\ No newline at end of file
<script setup>
import wx from "weixin-js-sdk";
import {
defineAsyncComponent,
getCurrentInstance,
inject,
ref,
watch,
onMounted,
computed,
nextTick,
reactive, onUnmounted
} from "vue"
import {useRouter} from "vue-router";
import * as hooks from "@/hooks/index.js";
import * as api from "@/api/dist/controller/index.js";
import {useUserInfo} from "@/store/modules/user.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const userInfo = useUserInfo()
const user = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/user.vue'))
const admin = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/admin.vue'))
const adminNoGoodRecord = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/adminNoGoodRecord.vue'))
const asc = getCurrentInstance().appContext.config.globalProperties;
const router = useRouter()
const active = ref(0);
const show = ref(false)
const init = reactive({
role: userInfo.userInfo.role,
channel: {},
active: 0,
columns: [],
placeTypeName: [],
flow: {
array: []
},
count: {}
})
onMounted(() => {
document.title = '主页'
})
const onSubmit = (values) => {
console.log('submit', values);
};
const getImage = (imageKey) => {
return asc.hooks.getImage(imageKey)
}
const tabChange = (e) => {
asc.tabChange(e)
}
const backAscHome = inject('backAscHome')
const gotoPath = (path) => {
hooks.go2Router(path)
}
const close = () => show.value = false
const back = () => {
//返回asc 主界面
backAscHome()
}
function getTabBarIndex(index) {
//获取地址tabBar的index
init.active = index
}
function getCurRole(role) {
//获取当前权限
init.role = role
}
//栏目入口
function handleInterview(key) {
const strategy = {
'individualBooking': () => {
//散客预约
router.push({
name: 'welcome',
})
},
'teamAppointmentNoApproved': () => {
//团队未审批
router.push({
name: 'teamAppointment-noApproval',
})
},
'teamAppointmentApproved': () => {
//团队已审批
router.push({
name: 'teamAppointment-approval',
})
},
'teamAppointment-allDataRecord': () => {
//所有团队预约记录
router.push({
name: 'teamAppointment-allDataRecord',
})
},
'officialAppointmentsHaveBeenNoApproved': () => {
//公务未审批
router.push({
name: 'officialAppointment-noApproval',
})
},
'officialAppointmentsHaveBeenApproved': () => {
//公务已审批
router.push({
name: 'officialAppointment-approval',
})
},
}
strategy[key]()
}
</script>
<template>
<!-- user-->
<div class="container1 flex" >
<div class="header flex justify-center content-start flex-wrap ">
<!--头部-->
<div class="mb-3 w-full">
<userHeader @getCurRole="getCurRole"></userHeader>
</div>
<!--栏目背景-->
<div class="w-full h-[128px] py-2 relative">
<van-image width="100%" height="100%" :src="hooks.getImage('colBg2')"></van-image>
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
<span class="text-4xl font-bold text-white italic" style="font-family: 'Microsoft YaHei', sans-serif;">设备管理</span>
</div>
</div>
<!--栏目-->
<div class="w-full h-[calc(100%-258px)] ">
<div>
<div class="list">
<p class="w-full h-[40] list-item-font">散客预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('individualBooking')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
</div>
<div class="list">
<p class="w-full h-[40] list-item-font">团队预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointment-allDataRecord')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentNoApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">待审批</span>
</template>
</van-cell>
</div>
<!-- 转专业 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">已审批</span>
</template>
</van-cell>
</div>
</div>
</div>
</div>
<!-- 版本号 -->
<!-- version -->
<div class="w-[96%] ccFlex mt-10 p-3 h-3 text-center"
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250116 1.0.1
</div>
</div>
</div>
</template>
<style scoped>
.currentAppointment {
background-image: url("@/static/occupyingASeat/bg.png");
background-size: cover;
}
.aaa {
background-image: url("@/static/icon/changlanse.png");
background-size: cover;
}
.bbb {
background-image: url("@/static/icon/1.png");
background-size: cover;
}
.child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 12px;
}
> > > .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>
<style lang="less" scoped>
/deep/ .van-tabs__wrap {
overflow: hidden;
border-radius: 8px;
}
.list {
/deep/ &-item {
margin: 16px 0;
border-radius: 12px;
overflow: hidden;
&-font {
font-size: 20px;
font-family: 黑体;
font-weight: 600;
color: rgba(0, 0, 0, .6);
}
}
/deep/ .van-cell {
line-height: 48px;
display: flex;
align-items: center;
.image {
width: 25px;
height: 25px;
}
.van-cell__title {
display: flex;
align-items: center;
.custom-title {
font-size: 16px;
padding-left: 10px;
}
}
.van-cell__value {
font-size: 16px;
}
&::after {
content: none;
}
}
.van-cell .van-cell__value {
font-size: 18px;
color: #3488ff;
}
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.block {
width: 120px;
height: 120px;
background-color: #fff;
}
</style>
\ No newline at end of file
<script setup>
import wx from "weixin-js-sdk";
import {
defineAsyncComponent,
getCurrentInstance,
inject,
ref,
watch,
onMounted,
computed,
nextTick,
reactive, onUnmounted
} from "vue"
import {useRouter} from "vue-router";
import * as hooks from "@/hooks/index.js";
import * as api from "@/api/dist/controller/index.js";
import {useUserInfo} from "@/store/modules/user.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const userInfo = useUserInfo()
const user = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/user.vue'))
const admin = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/admin.vue'))
const adminNoGoodRecord = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/adminNoGoodRecord.vue'))
const asc = getCurrentInstance().appContext.config.globalProperties;
const router = useRouter()
const active = ref(0);
const show = ref(false)
const init = reactive({
role: userInfo.userInfo.role,
channel: {},
active: 0,
columns: [],
placeTypeName: [],
flow: {
array: []
},
count: {}
})
onMounted(() => {
document.title = '主页'
})
const onSubmit = (values) => {
console.log('submit', values);
};
const getImage = (imageKey) => {
return asc.hooks.getImage(imageKey)
}
const tabChange = (e) => {
asc.tabChange(e)
}
const backAscHome = inject('backAscHome')
const gotoPath = (path) => {
hooks.go2Router(path)
}
const close = () => show.value = false
const back = () => {
//返回asc 主界面
backAscHome()
}
function getTabBarIndex(index) {
//获取地址tabBar的index
init.active = index
}
function getCurRole(role) {
//获取当前权限
init.role = role
}
//栏目入口
function handleInterview(key) {
const strategy = {
'individualBooking': () => {
//散客预约
router.push({
name: 'welcome',
})
},
'teamAppointmentNoApproved': () => {
//团队未审批
router.push({
name: 'teamAppointment-noApproval',
})
},
'teamAppointmentApproved': () => {
//团队已审批
router.push({
name: 'teamAppointment-approval',
})
},
'teamAppointment-allDataRecord': () => {
//所有团队预约记录
router.push({
name: 'teamAppointment-allDataRecord',
})
},
'officialAppointmentsHaveBeenNoApproved': () => {
//公务未审批
router.push({
name: 'officialAppointment-noApproval',
})
},
'officialAppointmentsHaveBeenApproved': () => {
//公务已审批
router.push({
name: 'officialAppointment-approval',
})
},
}
strategy[key]()
}
</script>
<template>
<!-- user-->
<div class="container1 flex" >
<div class="header flex justify-center content-start flex-wrap ">
<!--头部-->
<div class="mb-3 w-full">
<userHeader @getCurRole="getCurRole"></userHeader>
</div>
<!--栏目背景-->
<div class="w-full h-[128px] py-2 relative">
<van-image width="100%" height="100%" :src="hooks.getImage('colBg2')"></van-image>
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
<span class="text-3xl font-bold text-white italic" style="font-family: 'Microsoft YaHei', sans-serif;">设备管理</span>
</div>
</div>
<!--栏目-->
<div class="w-full h-[calc(100%-258px)] ">
<div>
<div class="list">
<p class="w-full h-[40] list-item-font">散客预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('individualBooking')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
</div>
<div class="list">
<p class="w-full h-[40] list-item-font">团队预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointment-allDataRecord')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentNoApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">待审批</span>
</template>
</van-cell>
</div>
<!-- 转专业 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">已审批</span>
</template>
</van-cell>
</div>
</div>
</div>
</div>
<!-- 版本号 -->
<!-- version -->
<div class="w-[96%] ccFlex mt-10 p-3 h-3 text-center"
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250116 1.0.1
</div>
</div>
</div>
</template>
<style scoped>
.currentAppointment {
background-image: url("@/static/occupyingASeat/bg.png");
background-size: cover;
}
.aaa {
background-image: url("@/static/icon/changlanse.png");
background-size: cover;
}
.bbb {
background-image: url("@/static/icon/1.png");
background-size: cover;
}
.child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 12px;
}
> > > .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>
<style lang="less" scoped>
/deep/ .van-tabs__wrap {
overflow: hidden;
border-radius: 8px;
}
.list {
/deep/ &-item {
margin: 16px 0;
border-radius: 12px;
overflow: hidden;
&-font {
font-size: 20px;
font-family: 黑体;
font-weight: 600;
color: rgba(0, 0, 0, .6);
}
}
/deep/ .van-cell {
line-height: 48px;
display: flex;
align-items: center;
.image {
width: 25px;
height: 25px;
}
.van-cell__title {
display: flex;
align-items: center;
.custom-title {
font-size: 16px;
padding-left: 10px;
}
}
.van-cell__value {
font-size: 16px;
}
&::after {
content: none;
}
}
.van-cell .van-cell__value {
font-size: 18px;
color: #3488ff;
}
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.block {
width: 120px;
height: 120px;
background-color: #fff;
}
</style>
\ No newline at end of file
<script setup>
import wx from "weixin-js-sdk";
import {
defineAsyncComponent,
getCurrentInstance,
inject,
ref,
watch,
onMounted,
computed,
nextTick,
reactive, onUnmounted
} from "vue"
import {useRouter} from "vue-router";
import * as hooks from "@/hooks/index.js";
import * as api from "@/api/dist/controller/index.js";
import {useUserInfo} from "@/store/modules/user.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const userInfo = useUserInfo()
const user = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/user.vue'))
const admin = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/admin.vue'))
const adminNoGoodRecord = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/adminNoGoodRecord.vue'))
const asc = getCurrentInstance().appContext.config.globalProperties;
const router = useRouter()
const active = ref(0);
const show = ref(false)
const init = reactive({
role: userInfo.userInfo.role,
channel: {},
active: 0,
columns: [],
placeTypeName: [],
flow: {
array: []
},
count: {}
})
onMounted(() => {
document.title = '主页'
})
const onSubmit = (values) => {
console.log('submit', values);
};
const getImage = (imageKey) => {
return asc.hooks.getImage(imageKey)
}
const tabChange = (e) => {
asc.tabChange(e)
}
const backAscHome = inject('backAscHome')
const gotoPath = (path) => {
hooks.go2Router(path)
}
const close = () => show.value = false
const back = () => {
//返回asc 主界面
backAscHome()
}
function getTabBarIndex(index) {
//获取地址tabBar的index
init.active = index
}
function getCurRole(role) {
//获取当前权限
init.role = role
}
//栏目入口
function handleInterview(key) {
const strategy = {
'individualBooking': () => {
//散客预约
router.push({
name: 'welcome',
})
},
'teamAppointmentNoApproved': () => {
//团队未审批
router.push({
name: 'teamAppointment-noApproval',
})
},
'teamAppointmentApproved': () => {
//团队已审批
router.push({
name: 'teamAppointment-approval',
})
},
'teamAppointment-allDataRecord': () => {
//所有团队预约记录
router.push({
name: 'teamAppointment-allDataRecord',
})
},
'officialAppointmentsHaveBeenNoApproved': () => {
//公务未审批
router.push({
name: 'officialAppointment-noApproval',
})
},
'officialAppointmentsHaveBeenApproved': () => {
//公务已审批
router.push({
name: 'officialAppointment-approval',
})
},
}
strategy[key]()
}
</script>
<template>
<!-- user-->
<div class="container1 flex" >
<div class="header flex justify-center content-start flex-wrap ">
<!--头部-->
<div class="mb-3 w-full">
<userHeader @getCurRole="getCurRole"></userHeader>
</div>
<!--栏目背景-->
<div class="w-full h-[128px] py-2 relative">
<van-image width="100%" height="100%" :src="hooks.getImage('colBg2')"></van-image>
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
<span class="text-3xl font-bold text-white italic" style="font-family: 'Microsoft YaHei', sans-serif;">设备管理</span>
</div>
</div>
<!--栏目-->
<div class="w-full h-[calc(100%-258px)] ">
<div>
<div class="list">
<p class="w-full h-[40] list-item-font">散客预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('individualBooking')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
</div>
<div class="list">
<p class="w-full h-[40] list-item-font">团队预约</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointment-allDataRecord')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentNoApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">待审批</span>
</template>
</van-cell>
</div>
<!-- 转专业 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">已审批</span>
</template>
</van-cell>
</div>
</div>
</div>
</div>
<!-- 版本号 -->
<!-- version -->
<div class="w-[96%] ccFlex mt-10 p-3 h-3 text-center"
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250116 1.0.1
</div>
</div>
</div>
</template>
<style scoped>
.currentAppointment {
background-image: url("@/static/occupyingASeat/bg.png");
background-size: cover;
}
.aaa {
background-image: url("@/static/icon/changlanse.png");
background-size: cover;
}
.bbb {
background-image: url("@/static/icon/1.png");
background-size: cover;
}
.child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 12px;
}
> > > .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>
<style lang="less" scoped>
/deep/ .van-tabs__wrap {
overflow: hidden;
border-radius: 8px;
}
.list {
/deep/ &-item {
margin: 16px 0;
border-radius: 12px;
overflow: hidden;
&-font {
font-size: 20px;
font-family: 黑体;
font-weight: 600;
color: rgba(0, 0, 0, .6);
}
}
/deep/ .van-cell {
line-height: 48px;
display: flex;
align-items: center;
.image {
width: 25px;
height: 25px;
}
.van-cell__title {
display: flex;
align-items: center;
.custom-title {
font-size: 16px;
padding-left: 10px;
}
}
.van-cell__value {
font-size: 16px;
}
&::after {
content: none;
}
}
.van-cell .van-cell__value {
font-size: 18px;
color: #3488ff;
}
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.block {
width: 120px;
height: 120px;
background-color: #fff;
}
</style>
\ No newline at end of file
<template>
<div class="user-layout">
<div class="content">
<router-view></router-view>
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/userContent1">首页</van-tabbar-item>
<van-tabbar-item icon="search" to="/userContent2">搜索</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
display: flex;
flex-direction: column;
height: 100vh;
}
.content {
flex: 1;
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<div class="content">
<router-view></router-view>
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/userContent1">首页</van-tabbar-item>
<van-tabbar-item icon="search" to="/userContent2">搜索</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
display: flex;
flex-direction: column;
height: 100vh;
}
.content {
/* 容器的大小是100vh - 64px */
height: calc(100vh - 64px);
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
display: flex;
flex-direction: column;
height: 100vh;
}
.content {
/* 容器的大小是100vh - 64px */
height: calc(100vh - 64px);
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
display: flex;
flex-direction: column;
height: 100vh;
}
.content {
/* 容器的大小是100vh - 64px */
height: calc(100vh - 64px);
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
display: flex;
flex-direction: column;
height: 100vh;
}
.content {
/* 容器的大小是100vh - 64px */
height: calc(100vh - 50px);
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
/* 容器的大小是100vh - 64px */
height: calc(100vh - 50px);
overflow: auto;
}
.content {
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
/* 容器的大小是100vh - 64px */
height: calc(100vh - 50px);
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
/* 容器的大小是100vh - 64px */
height: calc(100vh - 50px);
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
/* 容器的大小是100vh - 64px */
height: calc(100vh - 50px);
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
/* 容器的大小是100vh - 64px */
height: calc(100vh - 50px);
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
/* 容器的大小是100vh - 64px */
height: calc(100v - 50px);
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
/* 容器的大小是100vh - 64px */
height: calc(100v - 50px);
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
/* 容器的大小是100vh - 64px */
width: 100%;
height: calc(100v - 50px);
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
/* 容器的大小是100vh - 64px */
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<h1 class="title">用户中心</h1>
<p class="description">在这里管理您的个人信息和活动</p>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
/* 容器的大小是100vh - 64px */
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<div class="content">
<router-view></router-view>
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/userContent1">首页</van-tabbar-item>
<van-tabbar-item icon="search" to="/userContent2">搜索</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
display: flex;
flex-direction: column;
height: 100vh;
}
.content {
flex: 1;
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<div class="content">
<router-view></router-view>
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/userContent1">首页</van-tabbar-item>
<van-tabbar-item icon="search" to="/userContent2">搜索</van-tabbar-item>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
display: flex;
flex-direction: column;
height: 100vh;
}
.content {
flex: 1;
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<template>
<div class="user-layout">
<div class="content">
<router-view></router-view>
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/userContent1">首页</van-tabbar-item>
<van-tabbar-item icon="search" to="/userContent2">搜索</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
display: flex;
flex-direction: column;
height: 100vh;
}
.content {
flex: 1;
overflow: auto;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: routes,
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'selectPlaceType',
path: '/selectPlaceType',
component: () => import('../../components/flow/selectPlaceType.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'user',
path: '/user',
component: () => import('../../components/flow/selectPlaceType.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('../../components/userLayout.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/userLayout.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/userLayout.vue'),
},
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/userLayout.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/userLayout.vue'),
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/userLayout.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/userLayout/user'),
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/adminLayout.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/userLayout/user.vue'),
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/adminLayout.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/admin/user.vue'),
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/adminLayout.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/layO/user.vue'),
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/adminLayout.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/layout/user.vue'),
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/adminLayout.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/layout/user.vue'),
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/layout/user.vue'),
children:[
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin.vue'),
},
]
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/layout/user.vue'),
children:[
{
//外接流程场地类型选择框
name: 'userContent1',
path: '/userContent1',
component: () => import('@/pages/test/layout/admin.vue'),
},
]
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/layout/user.vue'),
children:[
{
//外接流程场地类型选择框
name: 'userContent1',
path: '/userContent1',
component: () => import('@/pages/test/layout/userContent1.vue'),
},
]
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/layout/user.vue'),
children:[
{
//外接流程场地类型选择框
name: 'userContent1',
path: '/userContent1',
component: () => import('@/pages/test/layout/userContent1.vue'),
},
{
//外接流程场地类型选择框
name: 'userContent2',
path: '/userContent2',
component: () => import('@/pages/test/layout/userContent2.vue'),
},
]
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
redirect:{path:'/userContent1'},
component: () => import('@/pages/test/layout/user.vue'),
children:[
{
//外接流程场地类型选择框
name: 'userContent1',
path: '/userContent1',
component: () => import('@/pages/test/layout/userContent1.vue'),
},
{
//外接流程场地类型选择框
name: 'userContent2',
path: '/userContent2',
component: () => import('@/pages/test/layout/userContent2.vue'),
},
]
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/layout/user.vue'),
redirect:{path:'/userContent1'},
children:[
{
//外接流程场地类型选择框
name: 'userContent1',
path: '/userContent1',
component: () => import('@/pages/test/layout/userContent1.vue'),
},
{
//外接流程场地类型选择框
name: 'userContent2',
path: '/userContent2',
component: () => import('@/pages/test/layout/userContent2.vue'),
},
]
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/layout/user.vue'),
redirect:{path:'/userContent1'},
children:[
{
//外接流程场地类型选择框
name: 'userContent1',
path: '/userContent1',
component: () => import('@/pages/test/layout/userContent1.vue'),
},
{
//外接流程场地类型选择框
name: 'userContent2',
path: '/userContent2',
component: () => import('@/pages/test/layout/userContent2.vue'),
},
]
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('../../pages/test/layout/user.vue'),
redirect:{path:'/userContent1'},
children:[
{
//外接流程场地类型选择框
name: 'userContent1',
path: '/userContent1',
component: () => import('@/pages/test/layout/userContent1.vue'),
},
{
//外接流程场地类型选择框
name: 'userContent2',
path: '/userContent2',
component: () => import('@/pages/test/layout/userContent2.vue'),
},
]
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/layout/user.vue'),
redirect:{path:'/userContent1'},
children:[
{
//外接流程场地类型选择框
name: 'userContent1',
path: '/userContent1',
component: () => import('@/pages/test/layout/userContent1.vue'),
},
{
//外接流程场地类型选择框
name: 'userContent2',
path: '/userContent2',
component: () => import('@/pages/test/layout/userContent2.vue'),
},
]
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/layout/user.vue'),
redirect:{path:'/userContent1'},
children:[
{
//外接流程场地类型选择框
name: 'userContent1',
path: '/userContent1',
component: () => import('@/pages/test/layout/userContent1.vue'),
},
{
//外接流程场地类型选择框
name: 'userContent2',
path: '/userContent2',
component: () => import('@/pages/test/layout/userContent2.vue'),
},
]
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('../pages/test/layout/user.vue'),
redirect:{path:'/userContent1'},
children:[
{
//外接流程场地类型选择框
name: 'userContent1',
path: '/userContent1',
component: () => import('../pages/test/layout/userContent1.vue'),
},
{
//外接流程场地类型选择框
name: 'userContent2',
path: '/userContent2',
component: () => import('@/pages/test/layout/userContent2.vue'),
},
]
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('../pages/test/layout/admin.vue'),
},
...routes
],
})
/**
* 路由白名单数据
* */
const routingBlacklistAndWhitelist = [
'403', 'et', 'scanRoomQrcode', 'downloadTransfer'
]
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
const userInfo = useUserInfo()
if (!routingBlacklistAndWhitelist.includes(to.name)) {
if (!userInfo.getToken() || !userInfo.getUserInfo()) next({name: '403'}) //没有token和用户信息跳转到 403
else next()
} else next()
});
export default router
......@@ -3,8 +3,9 @@
</script>
<template>
<router-view></router-view>
<transition name="fade" mode="out-in">
<router-view />
</transition>
</template>
<style>
......
......@@ -49,16 +49,17 @@ onMounted(() => {
label: conf.roleStatus[cur]
}
})
})
</script>
<template>
<div class=" flex items-center w-full h-[50px] rounded-[8px] ">
<div class="w-1/2 h-full mt-1 ml-1">
<div @click="back" style="background: white" class="child flex justify-center items-center">
<van-icon style="font-size: 30px;font-weight: bold" name="wap-home-o"/>
<div class=" flex items-center w-full h-[50px] rounded-[4px] ">
<div class="w-1/2 mt-1 ml-1 h-[50px] ">
<div class=" flex w-12 bg-white h-full justify-center items-center text-[18px] text-[#323233]"
style="height: 50px;border-radius: 8px"
@click="back">
<van-icon name="wap-home-o"/>
</div>
</div>
<div @click="init.userInfo.show = true" class="w-1/2 h-full flex justify-end items-center">
......@@ -119,8 +120,8 @@ onMounted(() => {
<style scoped>
.child {
width: 40px;
height: 40px;
width: 50px;
height: 50px;
background: #f2f3f5;
border-radius: 12px;
}
......
<script setup>
import wx from "weixin-js-sdk";
import {
defineAsyncComponent,
getCurrentInstance,
inject,
ref,
watch,
onMounted,
computed,
nextTick,
reactive, onUnmounted
} from "vue"
import {useRouter} from "vue-router";
import * as hooks from "@/hooks/index.js";
import * as api from "@/api/dist/controller/index.js";
import {useUserInfo} from "@/store/modules/user.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const userInfo = useUserInfo()
const user = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/user.vue'))
const admin = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/admin.vue'))
const adminNoGoodRecord = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/adminNoGoodRecord.vue'))
const asc = getCurrentInstance().appContext.config.globalProperties;
const router = useRouter()
const active = ref(0);
const show = ref(false)
const init = reactive({
role: userInfo.userInfo.role,
channel: {},
active: 0,
columns: [],
placeTypeName: [],
flow: {
array: []
},
count: {}
})
onMounted(() => {
document.title = '主页'
})
const onSubmit = (values) => {
console.log('submit', values);
};
const getImage = (imageKey) => {
return asc.hooks.getImage(imageKey)
}
const tabChange = (e) => {
asc.tabChange(e)
}
const backAscHome = inject('backAscHome')
const gotoPath = (path) => {
hooks.go2Router(path)
}
const close = () => show.value = false
const back = () => {
//返回asc 主界面
backAscHome()
}
function getTabBarIndex(index) {
//获取地址tabBar的index
init.active = index
}
function getCurRole(role) {
//获取当前权限
init.role = role
}
//栏目入口
function handleInterview(key) {
const strategy = {
'individualBooking': () => {
//散客预约
router.push({
name: 'welcome',
})
},
'teamAppointmentNoApproved': () => {
//团队未审批
router.push({
name: 'teamAppointment-noApproval',
})
},
'teamAppointmentApproved': () => {
//团队已审批
router.push({
name: 'teamAppointment-approval',
})
},
'teamAppointment-allDataRecord': () => {
//所有团队预约记录
router.push({
name: 'teamAppointment-allDataRecord',
})
},
'officialAppointmentsHaveBeenNoApproved': () => {
//公务未审批
router.push({
name: 'officialAppointment-noApproval',
})
},
'officialAppointmentsHaveBeenApproved': () => {
//公务已审批
router.push({
name: 'officialAppointment-approval',
})
},
}
strategy[key]()
}
</script>
<template>
<!-- user-->
<div class="container1 flex" >
<div class="header flex justify-center content-start flex-wrap ">
<!--头部-->
<div class="mb-3 w-full">
<userHeader @getCurRole="getCurRole"></userHeader>
</div>
<!--栏目背景-->
<div class="w-full h-[128px] py-2 relative">
<van-image width="100%" height="100%" :src="hooks.getImage('colBg2')"></van-image>
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
<span class="text-3xl opacity-85 font-bold text-white italic" style="font-family: 'Microsoft YaHei', sans-serif;">设备管理</span>
</div>
</div>
<!--栏目-->
<div class="w-full h-[calc(100%-258px)] ">
<div>
<div class="list">
<p class="w-full list-item-font"> 申请申领</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('individualBooking')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('individualBooking')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
</div>
<div class="list">
<p class="w-full h-[40] list-item-font">借用记录</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointment-allDataRecord')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentNoApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">待审批</span>
</template>
</van-cell>
</div>
<!-- 转专业 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">已审批</span>
</template>
</van-cell>
</div>
</div>
</div>
</div>
<!-- 版本号 -->
<!-- version -->
<div class="w-[96%] ccFlex mt-10 p-3 h-3 text-center"
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250116 1.0.1
</div>
</div>
</div>
</template>
<style scoped>
.currentAppointment {
background-image: url("@/static/occupyingASeat/bg.png");
background-size: cover;
}
.aaa {
background-image: url("@/static/icon/changlanse.png");
background-size: cover;
}
.bbb {
background-image: url("@/static/icon/1.png");
background-size: cover;
}
.child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 12px;
}
> > > .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>
<style lang="less" scoped>
/deep/ .van-tabs__wrap {
overflow: hidden;
border-radius: 8px;
}
.list {
/deep/ &-item {
margin: 16px 0;
border-radius: 12px;
overflow: hidden;
&-font {
font-size: 20px;
font-family: 黑体;
font-weight: 600;
color: rgba(0, 0, 0, .6);
}
}
/deep/ .van-cell {
line-height: 48px;
display: flex;
align-items: center;
.image {
width: 25px;
height: 25px;
}
.van-cell__title {
display: flex;
align-items: center;
.custom-title {
font-size: 16px;
padding-left: 10px;
}
}
.van-cell__value {
font-size: 16px;
}
&::after {
content: none;
}
}
.van-cell .van-cell__value {
font-size: 18px;
color: #3488ff;
}
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.block {
width: 120px;
height: 120px;
background-color: #fff;
}
</style>
\ No newline at end of file
<script setup>
import {getImage} from "@/hooks/index.js";
import {defineEmits, onMounted, reactive, ref} from "vue";
import router from "@/router/index.js";
import * as api from "@/api/dist/controller/index.js";
import ConfigDict from "@/config/modules/dict.js";
import * as hooks from "@/hooks/index.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const emit = defineEmits(['getTabBarIndex'])
const active = ref(1);
const init = reactive({
seatDate: {
value: '',
columns: [],
showPicker: false,
},
seatRoom: {
value: '',
columns: [],
showPicker: false,
},
singState: {
value: '',
columns: [
{text: '签到', value: 1},
{text: '签退', value: 2},
{text: '未签到', value: 0},
],
showPicker: false,
},
activityState: {
value: '',
columns: [
{text: '待使用', value: 0},
{text: '使用中', value: 1},
{text: '已结束', value: 2},
{text: '踢除', value: 3},
{text: '已取消', value: 9},
],
showPicker: false,
},
data: {
array: []
},
params: {
"key_name": "",
"page_index": 1,
"page_size": 10
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiBadnessGetBadnessList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.appointmentImageKey[cur.state]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
hooks.//重置操作
init.params = {
"key_name": "",
"page_index": 1,
"page_size": 10
}
search()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function onClickLeft() {
//返回上级
router.back();
}
async function getRoomList() {
//获取房间数据
init.seatRoom.columns = await CommonDataRequest.getRoom()
}
function recordAction(item, key) {
let strategy = {
'cancelBadRecord': () => {
//取消不良记录
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiBadnessBadnessCancel({id: item.id}).then(res => {
if (res.code === 1) {
search()
}
return res
})
}))
},
'details': () => {
//不良记录详情
router.push({
path: '/details',
query: {
id: item.id,
type: 'record',
}
})
}
}
strategy[key]()
}
onMounted(() => {
document.title = '座位预约记录'
getRoomList()
})
</script>
<template>
<div class="w-full h-full bg-[#F3F4F6]">
<!-- search-->
<div class="sticky top-0 w-full h-[54px] z-50">
<div style="border-top: 1px solid #ebedf0">
<van-search
style="display: flex; justify-content: center; align-items: center"
v-model="init.params.key_name"
placeholder="请输入关键词"
@update:model-value="doSearch"
clearable
>
</van-search>
</div>
</div>
<div class="w-full h-[calc(100%-54px)] px-3 pt-4 ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[40px] ">
<adminNoGoodRecordCard :item="item">
<template v-slot:default>
<div class="w-full h-full flex justify-end ">
<van-button :disabled="item.state ===2" @click="recordAction(item,'cancelBadRecord');" class="w-[48%]"
plain
size="small" type="primary"
>取消不良记录
</van-button>
</div>
</template>
</adminNoGoodRecordCard>
</div>
</van-list>
</van-pull-refresh>
</div>
</div>
</template>
<style scoped>
/deep/ .van-tabbar--fixed {
position: fixed;
bottom: 0;
left: 0;
height: 80px;
}
</style>
<template>
<div class="user-layout">
<div >
<router-view />
</div>
<div class="tabbar">
<!-- 使用vant4的Tabbar组件 -->
<van-tabbar v-model="active">
<van-tabbar-item icon="home-o" to="/adminContent1">首页</van-tabbar-item>
<van-tabbar-item icon="search" to="/adminContent2">搜索</van-tabbar-item>
</van-tabbar>
</div>
</div>
</template>
<script>
import { ref } from 'vue';
import { Tabbar, TabbarItem } from 'vant';
export default {
name: 'UserLayout',
setup() {
const active = ref(0);
return {
active,
};
},
};
</script>
<style scoped>
.user-layout {
width: 100%;
height: calc(100vh - 50px);
background: #F3F4F6;
}
.content {
flex: 1;
}
.tabbar {
/* 这里可以根据需要调整tabbar的高度 */
height: 50px;
}
</style>
<script setup>
import wx from "weixin-js-sdk";
import {
defineAsyncComponent,
getCurrentInstance,
inject,
ref,
watch,
onMounted,
computed,
nextTick,
reactive, onUnmounted
} from "vue"
import {useRouter} from "vue-router";
import * as hooks from "@/hooks/index.js";
import * as api from "@/api/dist/controller/index.js";
import {useUserInfo} from "@/store/modules/user.js";
import CommonDataRequest from "@/api/commonDataRequest/index.js";
const userInfo = useUserInfo()
const user = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/user.vue'))
const admin = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/admin.vue'))
const adminNoGoodRecord = defineAsyncComponent(() => import('@/pages/welcome/userOrAdmin/adminNoGoodRecord.vue'))
const asc = getCurrentInstance().appContext.config.globalProperties;
const router = useRouter()
const active = ref(0);
const show = ref(false)
const init = reactive({
role: userInfo.userInfo.role,
channel: {},
active: 0,
columns: [],
placeTypeName: [],
flow: {
array: []
},
count: {}
})
onMounted(() => {
document.title = '主页'
})
const onSubmit = (values) => {
console.log('submit', values);
};
const getImage = (imageKey) => {
return asc.hooks.getImage(imageKey)
}
const tabChange = (e) => {
asc.tabChange(e)
}
const backAscHome = inject('backAscHome')
const gotoPath = (path) => {
hooks.go2Router(path)
}
const close = () => show.value = false
const back = () => {
//返回asc 主界面
backAscHome()
}
function getTabBarIndex(index) {
//获取地址tabBar的index
init.active = index
}
function getCurRole(role) {
//获取当前权限
init.role = role
}
//栏目入口
function handleInterview(key) {
const strategy = {
'individualBooking': () => {
//散客预约
router.push({
name: 'welcome',
})
},
'teamAppointmentNoApproved': () => {
//团队未审批
router.push({
name: 'teamAppointment-noApproval',
})
},
'teamAppointmentApproved': () => {
//团队已审批
router.push({
name: 'teamAppointment-approval',
})
},
'teamAppointment-allDataRecord': () => {
//所有团队预约记录
router.push({
name: 'teamAppointment-allDataRecord',
})
},
'officialAppointmentsHaveBeenNoApproved': () => {
//公务未审批
router.push({
name: 'officialAppointment-noApproval',
})
},
'officialAppointmentsHaveBeenApproved': () => {
//公务已审批
router.push({
name: 'officialAppointment-approval',
})
},
}
strategy[key]()
}
</script>
<template>
<!-- user-->
<div class="container1 flex" >
<div class="header flex justify-center content-start flex-wrap ">
<!--头部-->
<div class="mb-3 w-full">
<userHeader @getCurRole="getCurRole"></userHeader>
</div>
<!--栏目背景-->
<div class="w-full h-[128px] py-2 relative">
<van-image width="100%" height="100%" :src="hooks.getImage('colBg2')"></van-image>
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
<span class="text-3xl opacity-85 font-bold text-white italic" style="font-family: 'Microsoft YaHei', sans-serif;">设备管理</span>
</div>
</div>
<!--栏目-->
<div class="w-full h-[calc(100%-258px)] ">
<div>
<div class="list">
<p class="w-full list-item-font"> 申请申领</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('individualBooking')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('individualBooking')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
</div>
<div class="list">
<p class="w-full h-[40] list-item-font">借用记录</p>
<!-- 面试结果 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointment-allDataRecord')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">查看预约</span>
</template>
</van-cell>
</div>
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentNoApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">待审批</span>
</template>
</van-cell>
</div>
<!-- 转专业 -->
<div class="list-item ">
<van-cell
@click="handleInterview('teamAppointmentApproved')"
is-link
>
<template #title>
<van-image
class="image"
fit="contain"
:src="hooks.getImage('qhtb')"
/>
<span class="custom-title">已审批</span>
</template>
</van-cell>
</div>
</div>
</div>
</div>
<!-- 版本号 -->
<!-- version -->
<div class="w-[96%] ccFlex mt-10 p-3 h-3 text-center"
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250116 1.0.1
</div>
</div>
</div>
</template>
<style scoped>
.currentAppointment {
background-image: url("@/static/occupyingASeat/bg.png");
background-size: cover;
}
.aaa {
background-image: url("@/static/icon/changlanse.png");
background-size: cover;
}
.bbb {
background-image: url("@/static/icon/1.png");
background-size: cover;
}
.child {
width: 40px;
height: 40px;
background: #f2f3f5;
border-radius: 12px;
}
> > > .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>
<style lang="less" scoped>
/deep/ .van-tabs__wrap {
overflow: hidden;
border-radius: 8px;
}
.list {
/deep/ &-item {
margin: 16px 0;
border-radius: 12px;
overflow: hidden;
&-font {
font-size: 20px;
font-family: 黑体;
font-weight: 600;
color: rgba(0, 0, 0, .6);
}
}
/deep/ .van-cell {
line-height: 48px;
display: flex;
align-items: center;
.image {
width: 25px;
height: 25px;
}
.van-cell__title {
display: flex;
align-items: center;
.custom-title {
font-size: 16px;
padding-left: 10px;
}
}
.van-cell__value {
font-size: 16px;
}
&::after {
content: none;
}
}
.van-cell .van-cell__value {
font-size: 18px;
color: #3488ff;
}
}
.wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.block {
width: 120px;
height: 120px;
background-color: #fff;
}
</style>
\ No newline at end of file
import {createRouter, createWebHashHistory} from 'vue-router';
import routes from "./routes.js";
import * as api from '@/api/dist/controller/index.js';
import Cookies from 'js-cookie';
import {useUserInfo} from "@/store/modules/user.js";
const router = new createRouter({
history: createWebHashHistory(),
routes: routes,
routes: [
{
//外接流程场地类型选择框
name: 'userLayout',
path: '/userLayout',
component: () => import('@/pages/test/layout/user/index.vue'),
},
{
//外接流程场地类型选择框
name: 'adminLayout',
path: '/adminLayout',
component: () => import('@/pages/test/layout/admin/index.vue'),
redirect:{path:'/adminContent1'},
children:[
{
//外接流程场地类型选择框
name: 'adminContent1',
path: '/adminContent1',
component: () => import('@/pages/test/layout/admin/adminContent1.vue'),
},
{
//外接流程场地类型选择框
name: 'adminContent2',
path: '/adminContent2',
component: () => import('@/pages/test/layout/admin/adminContent2.vue'),
},
]
},
...routes
],
})
/**
* 路由白名单数据
......
......@@ -56,6 +56,7 @@ export * as syzlogo from './使用中_1.png'
export * as sys from './sys.png'
export * as guihuan from './归还.png'
export * as zisechangbeijing from './zisechangbeijing.png'
export * as colBg from '@/static/occupyingASeat/colBg.png'
export * as colBg2 from '@/static/occupyingASeat/bg.png'
export * as ty from './同意.png'
export * as ty_1 from './ty_1.png'
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或