|
|
|
@ -24,7 +24,7 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<scroll-view scroll-y class="content-scroll" :scroll-top="scrollTop" scroll-with-animation @scroll="onScroll">
|
|
|
|
<scroll-view scroll-y class="content-scroll" :scroll-top="scrollTop" scroll-with-animation @scroll="onScroll">
|
|
|
|
<view class="content-inner">
|
|
|
|
<view class="content-inner" :class="{ 'safe-bottom': safeBottom }">
|
|
|
|
<view v-if="filteredModules.length === 0" class="empty-state">
|
|
|
|
<view v-if="filteredModules.length === 0" class="empty-state">
|
|
|
|
<text class="empty-title">暂无可用菜单</text>
|
|
|
|
<text class="empty-title">暂无可用菜单</text>
|
|
|
|
<text class="empty-desc">当前账号未返回 {{ title }} 相关权限菜单</text>
|
|
|
|
<text class="empty-desc">当前账号未返回 {{ title }} 相关权限菜单</text>
|
|
|
|
@ -108,6 +108,10 @@ const props = defineProps({
|
|
|
|
showGoTop: {
|
|
|
|
showGoTop: {
|
|
|
|
type: Boolean,
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
default: false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
safeBottom: {
|
|
|
|
|
|
|
|
type: Boolean,
|
|
|
|
|
|
|
|
default: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
@ -200,13 +204,13 @@ function handleClick(menu) {
|
|
|
|
icon: 'none'
|
|
|
|
icon: 'none'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.page-container {
|
|
|
|
.page-container {
|
|
|
|
min-height: 100vh;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
background-color: #f0f2f5;
|
|
|
|
background-color: #f0f2f5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -277,12 +281,15 @@ function handleClick(menu) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.content-scroll {
|
|
|
|
.content-scroll {
|
|
|
|
height: calc(100vh - 240rpx);
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.content-inner {
|
|
|
|
.content-inner {
|
|
|
|
padding: 24rpx;
|
|
|
|
padding: 24rpx;
|
|
|
|
padding-bottom: 160rpx;
|
|
|
|
|
|
|
|
|
|
|
|
&.safe-bottom {
|
|
|
|
|
|
|
|
padding-bottom: calc(24rpx + 120rpx + env(safe-area-inset-bottom));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.module-section {
|
|
|
|
.module-section {
|
|
|
|
@ -427,7 +434,7 @@ function handleClick(menu) {
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
justify-content: center;
|
|
|
|
box-shadow: 0 8rpx 24rpx rgba(26, 58, 92, 0.3);
|
|
|
|
box-shadow: 0 8rpx 24rpx rgba(26, 58, 92, 0.3);
|
|
|
|
z-index: 10;
|
|
|
|
z-index: 50;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.go-top-icon {
|
|
|
|
.go-top-icon {
|
|
|
|
@ -435,5 +442,4 @@ function handleClick(menu) {
|
|
|
|
color: #ffffff;
|
|
|
|
color: #ffffff;
|
|
|
|
font-weight: bold;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
</style>
|