{{ item.upname }}
@@ -399,9 +456,11 @@ function sortHandler() {
width: 100%;
overflow: hidden;
}
+
.img-full {
width: 100%;
overflow: hidden;
+
::v-deep(img) {
width: 100%;
height: 100%;
@@ -413,6 +472,7 @@ function sortHandler() {
display: flex;
justify-content: space-between;
margin-top: 4px;
+ position: relative;
.left {
display: flex;
@@ -448,34 +508,92 @@ function sortHandler() {
margin-bottom: 10px;
overflow: hidden;
position: relative;
- }
+ transition: 0.5s;
- .percent {
+ .glass {
+ position: absolute;
+ display: none !important;
+ background-color: #FFF;
+ border-radius: 6px;
+ padding: 3px;
+ top: 10px;
+ right: 10px;
+ width: 22px;
+ height: 22px;
+ }
+
+ .footer {
+ display: none;
+ width: 100%;
+ height: 40px;
position: absolute;
- text-align: center;
- z-index: 3;
- right: 0px;
- top: -6px;
- color: #FFF;
-
- .val {
- position: absolute;
- left: 0;
- top: 0;
- display: block;
- width: 100%;
- height: 100%;
+ top: -45px;
+ justify-content: space-between;
+ align-items: center;
+ padding: 0 10px;
+ background: rgba(0, 0, 0, .35);
+ border-radius: 7px;
+ .img-name {
+ width: 70%;
+ color: #FFF;
+ /* 设置文本溢出时的样式为省略号 */
+ text-overflow: ellipsis;
+ /* 隐藏超出容器的文本 */
+ overflow: hidden;
+ /* 确保文本不换行 */
+ white-space: nowrap;
+ }
+
+ .icon-wrap {
+ width: 22px;
+ height: 22px;
+ background-color: #FFF;
+ border-radius: 6px;
+ }
+ }
+
+ &:hover {
+
+ .percent {
+ display: none;
+ }
+
+ .glass {
+ display: block !important;
+ }
+
+ .info .footer {
display: flex;
- align-items: center;
- justify-content: center;
- font-size: 12px;
- font-family: PingFang SC, PingFang SC-Semibold;
- font-weight: Semibold;
- text-align: left;
- color: #ffffff;
- line-height: 24px;
}
}
+ }
+
+ .percent {
+ position: absolute;
+ text-align: center;
+ z-index: 3;
+ right: 0px;
+ top: -6px;
+ color: #FFF;
+
+ .val {
+ position: absolute;
+ left: 0;
+ top: 0;
+ display: block;
+ width: 100%;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 12px;
+ font-family: PingFang SC, PingFang SC-Semibold;
+ font-weight: Semibold;
+ text-align: left;
+ color: #ffffff;
+ line-height: 24px;
+ }
+ }
.scroll {
overflow-y: scroll;
diff --git a/src/views/home/content/modal/LoginSuccessModal.vue b/src/views/home/content/modal/LoginSuccessModal.vue
index 33cca75..5aaeb5a 100644
--- a/src/views/home/content/modal/LoginSuccessModal.vue
+++ b/src/views/home/content/modal/LoginSuccessModal.vue
@@ -1,5 +1,6 @@