刘洋 1 éve
szülő
commit
87c900930d
2 módosított fájl, 19 hozzáadás és 11 törlés
  1. 0 1
      src/api/apiConfig/index.js
  2. 19 10
      src/components/applyItem.vue

+ 0 - 1
src/api/apiConfig/index.js

@@ -77,7 +77,6 @@ axiosInstance.interceptors.response.use(
 
     if (error && error.response) {
       error.response.config.toast?.close();
-      console.log("error.response", error.response);
       switch (error.response.status) {
         case 400:
           error.message = "请求参数错误(400)";

+ 19 - 10
src/components/applyItem.vue

@@ -1,9 +1,12 @@
 <template>
   <div class="card p-16">
     <div class="location-info">
-      <div class="title flex-h-start">
-        <img src="../assets/imgs/icon_apply.png" />
-        <span>{{ item.categoryName }}</span>
+      <div class="title flex-h-between">
+        <div class="h-100 d-flex align-items-center">
+          <img src="../assets/imgs/icon_apply.png" />
+          <span>{{ item.categoryName }}</span>
+        </div>
+        <span class="cancel" v-if="item.cancel">已取消</span>
       </div>
       <div class="info flex-h-start">
         <span class="label">考点</span
@@ -73,14 +76,20 @@ function seeTicket(item) {
   .location-info {
     margin-bottom: 15px;
     .title {
-      span {
-        font-size: 16px;
-        color: #262626;
-        font-weight: bold;
+      & > div {
+        span {
+          font-size: 16px;
+          color: #262626;
+          font-weight: bold;
+        }
+        img {
+          width: 22px;
+          margin-right: 8px;
+        }
       }
-      img {
-        width: 22px;
-        margin-right: 8px;
+      .cancel {
+        font-size: 14px;
+        color: #8c8c8c;
       }
     }
     .info {