Commit abae8c5f by chenwq1

fix:滚动限制

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