lex 8 mēneši atpakaļ
vecāks
revīzija
f73ed910c1

+ 2 - 3
src/views/member-center/index.module.less

@@ -453,8 +453,7 @@
     width: 77px;
     height: 20px;
     background: url('./new-images/icon-permanent1.png') no-repeat center;
-    background-size: contain;
-
+    background-size: cover;
   }
 
   .s_title {
@@ -546,7 +545,7 @@
       left: -2px;
       top: -2px;
       background: url('./new-images/icon-permanent.png') no-repeat center;
-      background-size: contain;
+      background-size: cover;
       width: 61px;
       height: 16px;
     }

+ 3 - 1
src/views/member-center/index.tsx

@@ -113,7 +113,9 @@ export default defineComponent({
           return 'NOT_VIP'
         }
       } else if (state.tabActive === 'VIP') {
-        if (
+        if (userInfo.value.userVip?.vipType === 'PERMANENT_SVIP') {
+          return 'PERMANENT'
+        } else if (
           userInfo.value.userVip?.vipType === 'VIP' ||
           userInfo.value.userVip?.vipEndDays > 0
         ) {