This commit is contained in:
shijingjing
2022-05-26 17:20:13 +08:00
parent a139f1a921
commit 0a4f500c52
3 changed files with 61 additions and 41 deletions

View File

@@ -1,5 +1,6 @@
<template> <template>
<div class="detail" v-if="pageShow"> <div class="detail" v-if="pageShow">
<div class="detail-header"> <div class="detail-header">
<div class="user"> <div class="user">
<div class="header"> <div class="header">
@@ -21,28 +22,33 @@
</div> </div>
<div class="nucleinPic"> <div class="nucleinPic">
<img src="./components/resultPic.png" alt="" @click="preview()"> <img src="./components/resultPic.png" alt="" @click="preview()">
<span>证明</span> <span>证明</span>
</div> </div>
</div> </div>
</div> </div>
<div class="card"> <div class="card">
<div class="item-info"> <div class="item-info">
<div class="item-info__item"> <div class="item-info__item">
<span class="from"></span> <!-- <span class="from"></span> -->
<div class="pic">
<img class="img" src="./components/start.png"/>
<div class="lines"></div> <div class="lines"></div>
</div>
<span>{{ info.startAreaName }}</span> <span>{{ info.startAreaName }}</span>
</div> </div>
<div class="item-info__item"> <div class="item-info__item">
<span class="to"></span> <!-- <span class="to"></span> -->
<div class="pic">
<img class="img" src="./components/end.png"/>
</div>
<span>{{ info.arriveAreaName }}</span> <span>{{ info.arriveAreaName }}</span>
</div> </div>
<div class="item-info__item"> <div class="item-info__item">
<image src="/static/img/to-date.png"/> <image class="image" src="/static/img/to-date.png"/>
<span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }} 到达</span> <span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }} 到达</span>
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="info"> <div class="info">
<div class="detail-info"> <div class="detail-info">
@@ -124,6 +130,9 @@
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
@@ -198,7 +207,6 @@ export default {
.detail-header { .detail-header {
padding: 32px 32px 100px 32px; padding: 32px 32px 100px 32px;
// height: 680px;
background: linear-gradient(135deg, #6496FF 0%, #4F75FF 100%); background: linear-gradient(135deg, #6496FF 0%, #4F75FF 100%);
position: relative; position: relative;
@@ -269,49 +277,59 @@ export default {
.item-info { .item-info {
.item-info__item { .item-info__item {
display: flex; display: flex;
align-items: center;
margin-bottom: 8px; margin-bottom: 8px;
position: relative;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
.pic {
position: relative;
.img {
width: 12px;
height: 12px;
}
.lines {
position: absolute;
top: 32px;
left: 4px;
width: 4px;
height: 100%;
border-left: 4px dotted #CCCCCC;
}
}
image { .img {
width: 12px;
height: 12px;
position: relative;
}
.image {
width: 32px; width: 32px;
height: 32px; height: 32px;
margin-right: 16px; margin-right: 16px;
} }
.from, // .from,
.to { // .to {
display: inline-block; // display: inline-block;
width: 12px; // width: 12px;
height: 12px; // height: 12px;
border: 2px solid #FFFFFF; // border: 2px solid #FFFFFF;
border-radius: 50%; // border-radius: 50%;
} // }
.from { // .from {
background: #FFBB3B; // background: #FFBB3B;
z-index: 9; // z-index: 9;
} // }
.to {
background: #2BD6C0;
z-index: 9;
}
.lines {
position: absolute;
top: 35px;
left: 6px;
width: 4px;
height: 80%;
border-left: 4px dotted #CCCCCC;
}
// .to {
// background: #2BD6C0;
// z-index: 9;
// }
span:last-child { span:last-child {
color: #fff; color: #fff;
font-size: 28px; font-size: 28px;
@@ -321,11 +339,9 @@ export default {
} }
} }
}
.info { .info {
position: absolute; position: absolute;
top: 60%; top: 93%;
left: 50%; left: 50%;
width: 100%; width: 100%;
transform: translate(-50%, 1%); transform: translate(-50%, 1%);
@@ -404,4 +420,8 @@ export default {
} }
} }
}
</style> </style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B