调整图片比例

This commit is contained in:
李志鹏
2025-10-31 11:01:14 +08:00
parent 6abca4840b
commit 387904e36d
3 changed files with 11 additions and 11 deletions

View File

@@ -218,7 +218,7 @@
// justify-content: space-around; // justify-content: space-around;
.item { .item {
width: 47%; width: 47%;
height: 52.9rem; height: 62.2rem;
// overflow: hidden; // overflow: hidden;
border-radius: var(--border-radius); border-radius: var(--border-radius);
background-color: #fff; background-color: #fff;
@@ -228,7 +228,7 @@
> img { > img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: contain; object-fit: cover;
border-radius: var(--border-radius); border-radius: var(--border-radius);
} }
> .corner { > .corner {

View File

@@ -149,7 +149,7 @@
font-size: 8.4rem; font-size: 8.4rem;
text-align: center; text-align: center;
line-height: 124%; line-height: 124%;
margin-top: 3.6rem; margin-top: 3.2rem;
} }
> .tip { > .tip {
margin-top: 0.56rem; margin-top: 0.56rem;
@@ -159,7 +159,7 @@
color: rgba(0, 0, 0, 0.6); color: rgba(0, 0, 0, 0.6);
} }
> .input-box { > .input-box {
margin-top: 6rem; margin-top: 4.5rem;
width: 87.5rem; width: 87.5rem;
height: 8.3rem; height: 8.3rem;
border-radius: 0.5rem; border-radius: 0.5rem;
@@ -196,9 +196,9 @@
} }
} }
> .card { > .card {
margin-top: 6.4rem; margin-top: 5rem;
width: 72.9rem; width: 73rem;
height: 102.3rem; height: 109.5rem;
border-radius: 2rem; border-radius: 2rem;
// box-shadow: 1.3rem 1.4rem 2rem 0.2rem #0000004d; // box-shadow: 1.3rem 1.4rem 2rem 0.2rem #0000004d;
border: 0.2rem solid #d9d9d9; border: 0.2rem solid #d9d9d9;
@@ -250,7 +250,7 @@
} }
} }
> .btns { > .btns {
margin-top: 5.6rem; margin-top: 5rem;
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;

View File

@@ -26,7 +26,7 @@
const obj = { const obj = {
visitRecordId: v.visitRecordId, visitRecordId: v.visitRecordId,
defaultImageUrl: v.defaultImageUrl, defaultImageUrl: v.defaultImageUrl,
datetime: FormatDate(v.visitTime, 'dd-MM-yyyy HH:mm'), datetime: FormatDate(v.visitTime, 'dd/MM/yyyy HH:mm'),
lastopened: FormatDate(v.visitTime, 'HH:mm') lastopened: FormatDate(v.visitTime, 'HH:mm')
} }
list.push(obj) list.push(obj)
@@ -146,7 +146,7 @@
margin-top: 0; margin-top: 0;
} }
> .image { > .image {
width: 21.4rem; width: 22.9rem;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
border-radius: 2rem; border-radius: 2rem;
@@ -154,7 +154,7 @@
> img { > img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: contain; object-fit: cover;
display: block; display: block;
} }
} }