This commit is contained in:
wangweidong 2025-11-27 15:02:08 +08:00
parent 1cdd48b3c4
commit 5d86d29918
3 changed files with 24 additions and 10 deletions

View File

@ -1,10 +1,3 @@
.index-content-other {
width: calc(100% - 260rpx);
// background-color: red;
height: 100%;
transition: opacity 1s ease;
position: relative;
}
.right-container-title-nav { .right-container-title-nav {
margin-top: 60rpx; margin-top: 60rpx;
display: flex; display: flex;

View File

@ -1,5 +1,5 @@
<template> <template>
<view class="index-content-other" :style="isShow?{opacity: `1`}:{opacity: `0`}"> <view class="index-content-other" :style="transition?{opacity: `1`}:{opacity: `0`}">
<view class="right-container-title-nav"> <view class="right-container-title-nav">
<text style="margin-left: 30rpx;"> <text style="margin-left: 30rpx;">
NUID{{ uni.getStorageSync('nuId')}} NUID{{ uni.getStorageSync('nuId')}}
@ -28,10 +28,31 @@
required: true, required: true,
}, },
}); });
watch(
() => props.isShow,
(newVal, oldVal) => {
// falsetrue0.2
if (!oldVal && newVal) {
transition.value = false;
setTimeout(() => {
transition.value = true;
}, 50)
} else {
transition.value = false;
}
}
)
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@import "./css/take.less"; @import "./css/take.less";
.index-content-other {
width: calc(100% - 260rpx);
// background-color: red;
height: 100%;
transition: opacity 1s ease;
position: relative;
}
</style> </style>

View File

@ -57,7 +57,7 @@
<!-- 设备页 --> <!-- 设备页 -->
<equipment :isShow="menuIndexshowfifth" v-if="menuIndex==4" :propsmove="propsmove" :isMain="isMain" <equipment :isShow="menuIndexshowfifth" v-if="menuIndex==4" :propsmove="propsmove" :isMain="isMain"
@back="movecard(5)" @cleanmain="movecard(1)" @canback="canmoveit" /> @back="movecard(5)" @cleanmain="movecard(1)" @canback="canmoveit" />
<requestform :isShow="menuIndexshowfourth||menuIndex==3" v-if="menuIndex==3" /> <requestform :isShow="menuIndexshowfourth" v-if="menuIndex==3" />
<!-- 户嘱页 --> <!-- 户嘱页 -->
<nurse :isold="isOld===2" :liang="indexNumber" :isshow="menuIndexshowsecond" <nurse :isold="isOld===2" :liang="indexNumber" :isshow="menuIndexshowsecond"
v-if="menuIndex==1&&isOld===2&&uni.getStorageSync('customerId')&&uni.getStorageSync('nuId')" v-if="menuIndex==1&&isOld===2&&uni.getStorageSync('customerId')&&uni.getStorageSync('nuId')"