wangfei 6 years ago
parent
commit
a3b99cbc00
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/pages/user/library/borrowedRecord/index.vue

+ 5
- 1
src/pages/user/library/borrowedRecord/index.vue View File

@@ -45,7 +45,7 @@
45 45
         <div class="flex-item">
46 46
           <div>
47 47
             <div>
48
-              <span>{{myBookStatus}}</span>
48
+              <span :class="currentItem.BorrowStatus=='0'?'active':''">{{myBookStatus}}</span>
49 49
             </div>
50 50
             <span class="title">{{currentItem.BookName}}</span>
51 51
             <span>借阅时间:{{toolClass.dateFormat(currentItem.BorrowDate)}}</span>
@@ -242,6 +242,10 @@ export default {
242 242
             border-radius: .15rem 0 0 .15rem;
243 243
             margin-right: -.12rem;
244 244
           }
245
+          .active{
246
+            background-color: #fc5534;
247
+            color: #fff;
248
+          }
245 249
         }
246 250
         > span {
247 251
           width: 100%;