2025-12-25 14:40:18 +08:00
|
|
|
<template>
|
|
|
|
|
<view>
|
|
|
|
|
<view class="flex">
|
|
|
|
|
<leftcontent :list="tabbrarr" @navurl="navurl"></leftcontent>
|
2025-12-26 15:15:35 +08:00
|
|
|
<!-- 主页 -->
|
|
|
|
|
<index :isShow="menuop" v-if="!menuIndex" />
|
|
|
|
|
<!-- <material></material> -->
|
2025-12-25 14:40:18 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2025-12-26 15:15:35 +08:00
|
|
|
import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue';
|
|
|
|
|
import leftcontent from "@/pages/NursingNew/component/leftcontent/leftcontent.vue"
|
|
|
|
|
import material from "@/pages/procurement/material.vue";
|
|
|
|
|
import index from "./component/index.vue"
|
|
|
|
|
|
|
|
|
|
const tabbrarr = ref([
|
|
|
|
|
{ name: '首页', url: '/static/shouye/ck/h0.png', urls: '/static/shouye/ck/h1.png' },
|
|
|
|
|
{ name: '采购', url: '/static/shouye/ck/c0.png', urls: '/static/shouye/ck/c1.png' },
|
|
|
|
|
{ name: '拣货', url: '/static/shouye/ck/j0.png', urls: '/static/shouye/ck/j1.png' },
|
|
|
|
|
{ name: '完结', url: '/static/shouye/ck/w0.png', urls: '/static/shouye/ck/w1.png' },
|
|
|
|
|
{ name: '请领', url: '/static/shouye/ck/q0.png', urls: '/static/shouye/ck/q1.png' },
|
|
|
|
|
{ name: '退货', url: '/static/shouye/ck/t0.png', urls: '/static/shouye/ck/t1.png' },
|
|
|
|
|
{ name: '盘点', url: '/static/shouye/ck/p0.png', urls: '/static/shouye/ck/p1.png' },
|
|
|
|
|
{ name: '返回', url: '/static/shouye/sy/f0.png', urls: '/static/shouye/sy/f1.png' },
|
|
|
|
|
])
|
|
|
|
|
const menuIndex = ref(-1)
|
|
|
|
|
const menuop = ref(false)
|
|
|
|
|
onMounted(()=>{
|
|
|
|
|
// 处理响应式
|
|
|
|
|
navurl(0)
|
|
|
|
|
})
|
|
|
|
|
const navurl = (e : number) => {
|
|
|
|
|
// 最后一个直接返回
|
|
|
|
|
if (e === tabbrarr.value.length - 1) {
|
|
|
|
|
uni.navigateBack()
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
menuIndex.value = e;
|
|
|
|
|
// 这个是为了触发渐变动画
|
|
|
|
|
menuop.value = false
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
menuop.value = true
|
|
|
|
|
}, 50)
|
|
|
|
|
|
|
|
|
|
}
|
2025-12-25 14:40:18 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
2025-12-26 15:15:35 +08:00
|
|
|
.flex {
|
|
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
background-color: #eff0f4;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
z-index: 12;
|
|
|
|
|
}
|
|
|
|
|
</style>
|