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