Commit 773efea5 by wangzhihui

feat: 优化工单详情页面布局结构

1 parent bac48d50
...@@ -104,7 +104,7 @@ onMounted(() => { ...@@ -104,7 +104,7 @@ onMounted(() => {
@click="onBack" /> @click="onBack" />
<PageTitle class="title" :title="title" /> <PageTitle class="title" :title="title" />
</div> </div>
<div class="ctx-box">
<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 }">
...@@ -239,10 +239,9 @@ onMounted(() => { ...@@ -239,10 +239,9 @@ onMounted(() => {
<div class="node-list"> <div class="node-list">
<div v-for="n in nodes" <div v-for="n in nodes"
:key="n.nodeId" :key="n.nodeId"
class="node-item" class="node-item">
@click="onNodeClick(n)">
<span class="node-title">{{ n.nodeName }}</span> <span class="node-title">{{ n.nodeName }}</span>
<span class="node-sub">·共{{ n.count }}项</span> <span class="node-sub"><span>·</span>共{{ n.count }}项</span>
</div> </div>
</div> </div>
...@@ -252,9 +251,11 @@ onMounted(() => { ...@@ -252,9 +251,11 @@ onMounted(() => {
</div> </div>
</van-skeleton> </van-skeleton>
</div> </div>
</div>
<div class="page-foot"> <div class="page-foot">
<div class="edit-btn" <div class="edit-btn"
@click="continueCheck"> @click.stop="continueCheck">
编辑工单 编辑工单
</div> </div>
</div> </div>
...@@ -266,7 +267,7 @@ onMounted(() => { ...@@ -266,7 +267,7 @@ onMounted(() => {
.wo-detail-page { .wo-detail-page {
min-height: 100vh; min-height: 100vh;
padding:6px 12px; padding:6px 0;
background: #f2f3f7; background: #f2f3f7;
.header-top{ .header-top{
...@@ -279,6 +280,11 @@ onMounted(() => { ...@@ -279,6 +280,11 @@ onMounted(() => {
} }
} }
.ctx-box{
height:calc(100vh - 160px);
overflow: scroll;
}
.page-head { .page-head {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -294,7 +300,7 @@ onMounted(() => { ...@@ -294,7 +300,7 @@ onMounted(() => {
.head-tag { .head-tag {
padding: 2px 6px; padding: 2px 18px;
margin-right:8px; margin-right:8px;
font-size: 11px; font-size: 11px;
font-weight: 500; font-weight: 500;
...@@ -313,8 +319,7 @@ onMounted(() => { ...@@ -313,8 +319,7 @@ onMounted(() => {
} }
.content { .content {
height:calc(100vh - 96px); padding: 8px 12px;
padding: 8px 0;
overflow: scroll overflow: scroll
} }
...@@ -351,6 +356,10 @@ onMounted(() => { ...@@ -351,6 +356,10 @@ onMounted(() => {
display: flex; display: flex;
gap: 10px; gap: 10px;
align-items: flex-start; align-items: flex-start;
// .cover{
// border-radius: 6px;
// }
} }
.info { .info {
...@@ -503,10 +512,13 @@ onMounted(() => { ...@@ -503,10 +512,13 @@ onMounted(() => {
} }
.node-sub { .node-sub {
margin-left: 4px;
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #666; color: #666;
span{
margin:0 4px;
}
} }
} }
...@@ -517,6 +529,10 @@ onMounted(() => { ...@@ -517,6 +529,10 @@ onMounted(() => {
} }
.page-foot{ .page-foot{
position: fixed;
right:0;
bottom:64px;
left:0;
padding:12px; padding:12px;
background:#fff; background:#fff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!