forked from natuka/web.puabadge.com
图片加立体感阴影
This commit is contained in:
1 parent
3ee2940e72
commit
f38a5dc7eb
2 files changed
+24
-1
No files matched your search
@@ -6,6 +6,7 @@
|
|||||||
<div class="order-status">
|
<div class="order-status">
|
||||||
<div class="avatar-wrapper">
|
<div class="avatar-wrapper">
|
||||||
<img class="avatar-img" :src="order.path" :alt="order.kind_name" />
|
<img class="avatar-img" :src="order.path" :alt="order.kind_name" />
|
||||||
|
<div class="progress-image-item-shadow"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="status-info">
|
<div class="status-info">
|
||||||
@@ -129,12 +130,23 @@ function getStatus(status: number) {
|
|||||||
width: 85vw;
|
width: 85vw;
|
||||||
height: 85vw;
|
height: 85vw;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
box-shadow: 2px 2px 4px #00000042,inset -2px -2px 4px #00000048,inset 2px 2px 4px #ffffffb4;
|
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-image-item-shadow {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.5),inset -2px -2px 4px rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
.avatar-img {
|
.avatar-img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
<van-swipe v-model="currentIndex" class="progress-section-img" :autoplay="3000" :show-indicators="false">
|
<van-swipe v-model="currentIndex" class="progress-section-img" :autoplay="3000" :show-indicators="false">
|
||||||
<van-swipe-item v-for="item in imageList" :key="item.id">
|
<van-swipe-item v-for="item in imageList" :key="item.id">
|
||||||
<img class="progress-section-img" :src="item.origin_url" alt="">
|
<img class="progress-section-img" :src="item.origin_url" alt="">
|
||||||
|
<div class="progress-image-item-shadow"></div>
|
||||||
</van-swipe-item>
|
</van-swipe-item>
|
||||||
</van-swipe>
|
</van-swipe>
|
||||||
</div>
|
</div>
|
||||||
@@ -838,4 +839,14 @@ onUnmounted(() => {
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.progress-image-item-shadow {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.5),inset -2px -2px 4px rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in new issue
Block a user