页面切图

This commit is contained in:
仲么了
2023-02-22 08:43:52 +08:00
parent 5e69ab1da6
commit 95db305cee
6 changed files with 102 additions and 43 deletions

View File

@@ -2,19 +2,21 @@
<Cn-page :loading='loading' noPadding>
<view slot='body'>
<view class='detail'>
<view class="header">
<image src="/static/test2.pic.jpg" mode="widthFix" style="width: 100%;" />
</view>
<view class="des">
<text>设备基础信息</text>
<text class="ml10">设备状态</text>
</view>
<view class="nav">
<view class="nav-menu" :class="{ 'nav-menu-active': navMenuActive == index }"
v-for="(item, index) in navMenuList" :key="index" @click="navMenuClick(index)">{{ item.text }}
<view class="detail-header">
<view class="header">
<image src="/static/test2.pic.jpg" mode="widthFix" style="width: 100%;" />
</view>
<!-- <view class="des">
<text>设备基础信息</text>
<text class="ml10">设备状态</text>
</view> -->
<view class="nav">
<view class="nav-menu" :class="{ 'nav-menu-active': navMenuActive == index }"
v-for="(item, index) in navMenuList" :key="index" @click="navMenuClick(index)">{{ item.text }}
</view>
</view>
</view>
<view class="content" :style="{ minHeight: 'calc(100vh - ' + navHeight + 'px)' }">
<view class="content" >
<view v-if="navMenuActive == 0">
<basic></basic>
</view>
@@ -211,7 +213,13 @@ export default {
box-sizing: border-box;
padding: 0 20rpx;
}
.detail-header{
position: sticky;
top: 0;
left: 0;
z-index: 2;
background: #f3f4f5;
}
}
</style>