Commit abae8c5f by chenwq1

fix:滚动限制

1 parent 4af5ab82
Pipeline #171 for abae8c5f failed in 0 seconds
......@@ -700,13 +700,15 @@ onMounted(() => {
@use "@assets/styles/variables" as *;
.report-page {
display: flex;
flex-direction: column;
width: 100%;
min-width: 0;
height: 100vh;
height: 100dvh;
overflow: hidden;
max-height: 100dvh;
overflow-x: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding-bottom: calc(20px + env(safe-area-inset-bottom));
background: #f2f3f7;
}
......
......@@ -115,7 +115,8 @@ onMounted(() => {
@click="onBack" />
<PageTitle class="title" :title="title" />
</div>
<div :class="[status == 3 ? '' : 'ctx-box']">
<div class="wo-detail-main"
:class="{ 'wo-detail-main--with-foot': status !== 3 }">
<div class="page-head">
<div class="head-left">
<van-tag class="head-tag" :style="{ background: pageStatusTag.bg, color: pageStatusTag.color }">
......@@ -281,23 +282,38 @@ onMounted(() => {
@use "@assets/styles/variables" as *;
.wo-detail-page {
min-height: 100vh;
padding:6px 0;
display: flex;
flex-direction: column;
width: 100%;
min-width: 0;
height: 100vh;
height: 100dvh;
max-height: 100dvh;
overflow: hidden;
padding: 6px 0;
background: #f2f3f7;
.header-top{
.header-top {
flex-shrink: 0;
.nav-back{
position:absolute;
top:15px;
.nav-back {
position: absolute;
top: 15px;
}
}
}
.ctx-box{
height:calc(100vh - 110px);
overflow: scroll;
// 单一纵向滚动区:避免 status===3 时无 ctx-box 导致 WebView 内 document 不滚动,及嵌套 overflow 抢滚动
.wo-detail-main {
flex: 1;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
&--with-foot {
padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
}
.page-head {
......@@ -343,7 +359,6 @@ onMounted(() => {
.content {
padding: 8px 12px;
overflow: scroll
}
.card {
......@@ -551,16 +566,18 @@ onMounted(() => {
text-align: center;
}
.page-foot{
.page-foot {
position: fixed;
// right:0;
bottom:0;
right: 0;
bottom: 0;
left: 0;
box-sizing: border-box;
width:375px;
// left:0;
width: 100%;
max-width: 430px;
padding:12px;
background:#fff;
margin: 0 auto;
padding: 12px;
padding-bottom: calc(12px + env(safe-area-inset-bottom));
background: #fff;
.edit-btn{
box-sizing: border-box;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!