兴义大屏

This commit is contained in:
yanran200730
2022-09-07 14:54:36 +08:00
parent db431af916
commit 85caf086b7

View File

@@ -46,11 +46,15 @@
<div class="item" v-for="(item, index) in 10" :key="index">
<div class="left">
<span>65</span>
<div style="width: 50%"></div>
<div class="rate-wrapper">
<span class="rate" style="width: 40%"></span>
</div>
</div>
<h2>兴义</h2>
<div class="right">
<div style="width: 50%"></div>
<div class="rate-wrapper">
<span class="rate" style="width: 100%"></span>
</div>
<span>32144</span>
</div>
</div>
@@ -914,16 +918,58 @@
.item-top__list {
height: 400px;
padding: 10px 0;
overflow-y: auto;
.item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 0;
padding: 10px 4px;
.left .rate-wrapper {
flex-direction: row-reverse;
}
div {
display: flex;
align-items: center;
justify-content: space-between;
flex: 1;
.rate-wrapper {
width: 100%;
padding: 0 10px;
}
.rate {
height: 10px;
text-align: right;
background-image: linear-gradient(270deg, rgba(255,208,63,0.00) 0%, rgba(255,208,63,0.80) 100%);
}
}
.right {
.rate {
background-image: linear-gradient(270deg, rgba(0,240,251,0.80) 0%, rgba(0,240,251,0.00) 100%);
}
}
h2 {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #FFFFFF;
font-size: 16px;
text-shadow: 0px 0px 13px rgb(59 182 255 / 80%);
background: #fff;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
span {
color: #aeacaf;
font-size: 15px;
}
}
}