lex 9 月之前
父節點
當前提交
026b4a1356
共有 2 個文件被更改,包括 6 次插入4 次删除
  1. 2 3
      src/views/member-center/index.module.less
  2. 4 1
      src/views/order-detail/order-vip/index.tsx

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

@@ -493,7 +493,7 @@
 
   .extraTip {
     position: absolute;
-    bottom: -1px;
+    bottom: 0;
     left: 0;
     right: 0;
     width: 100%;
@@ -508,8 +508,7 @@
     white-space: nowrap;
     overflow: hidden;
     padding: 2px 8px 1px;
-    border-radius: 0 0 8px 8px;
-    // border-radius: 0 0 8px 8px;
+    border-radius: 0 0 6px 6px;
   }
 
   &.active {

+ 4 - 1
src/views/order-detail/order-vip/index.tsx

@@ -49,7 +49,10 @@ export default defineComponent({
       if (this.disabled) {
         return item.startTime
       }
-      if (item.svipEndDays > 0) {
+      if (item.svipEndDays > 0 && item.orderType === 'SVIP') {
+        return dayjs(item.startTime).add(1, 'day').format('YYYY-MM-DD')
+      }
+      if (item.vipEndDays > 0 && item.orderType === 'VIP') {
         return dayjs(item.startTime).add(1, 'day').format('YYYY-MM-DD')
       }
       return item.startTime