Selaa lähdekoodia

修改单元测试时间问题

lex 2 vuotta sitten
vanhempi
commit
0490c72db7
2 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 3 3
      src/student/member-center/index.module.less
  2. 3 1
      src/views/unit-test/index.tsx

+ 3 - 3
src/student/member-center/index.module.less

@@ -227,7 +227,7 @@
       padding: 19px 12px 9px;
     }
     .price {
-      font-size: 36px;
+      font-size: 28px;
       font-weight: 500;
       color: #b1652e;
       span {
@@ -236,7 +236,7 @@
     }
     .originalPrice {
       margin-left: 8px;
-      font-size: 24px;
+      font-size: 18px;
       color: #c59575 !important;
       line-height: 16px;
       font-weight: 300;
@@ -268,7 +268,7 @@
         align-items: center;
         justify-content: center;
         position: absolute;
-        top: -1px;
+        top: 0;
         right: -1px;
         border-radius: 0 12px 0 12px;
       }

+ 3 - 1
src/views/unit-test/index.tsx

@@ -304,7 +304,9 @@ export default defineComponent({
                               type="primary"
                               round
                               block
-                              disabled={dayjs().isAfter(dayjs(item.expiryDate))}
+                              disabled={dayjs(dayjs().format('YYYY-MM-DD')).isAfter(
+                                dayjs(item.expiryDate)
+                              )}
                               onClick={() => onUnitTestStart(item)}
                             >
                               {item.status === 'C_ING' ? '继续测验' : '开始测验'}