diff --git a/components/bookcase/bookcase.wxml b/components/bookcase/bookcase.wxml index 5991428..be268d1 100644 --- a/components/bookcase/bookcase.wxml +++ b/components/bookcase/bookcase.wxml @@ -4,19 +4,19 @@ - 空闲 - 受理中 - 异常 - 已下架 - 已删除 diff --git a/pages/book_detail/book_deatil.js b/pages/book_detail/book_deatil.js index 434af14..a0eae6e 100644 --- a/pages/book_detail/book_deatil.js +++ b/pages/book_detail/book_deatil.js @@ -22,7 +22,8 @@ Page({ // 状态 borrowLoading: false, addLoading: false, - bookcaseShow: false + bookcaseShow: false, + isMe: false }, onCloseBookcase() { this.setData({ @@ -56,7 +57,8 @@ Page({ bookDeposit: bookInfo.bookDeposit, userFullName: bookInfo.userFullName, schoolName: bookInfo.schoolName, - bookStatus: bookInfo.bookStatus + bookStatus: bookInfo.bookStatus, + isMe: bookInfo.userId == globalData.userId }) } }) diff --git a/pages/book_detail/book_deatil.wxml b/pages/book_detail/book_deatil.wxml index 5c0c6ab..dbc8b4b 100644 --- a/pages/book_detail/book_deatil.wxml +++ b/pages/book_detail/book_deatil.wxml @@ -10,9 +10,21 @@ - + ¥{{ bookDeposit }}.00 + + 空闲 + + 受理中 + + 异常 + + 已下架 + + 已删除 + + @@ -28,21 +40,22 @@ - - - - T+{{ bookMaxPeriod }} - + 免押金 {{ bookDeposit }}.00 - + + {{ userFullName }} + + + + + @@ -76,8 +89,8 @@ - - + +