book_entry.wxml 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!--parents/pages/information/information.wxml-->
  2. <import src="../../../templates/loading/loading.wxml" />
  3. <view class='container'>
  4. <template is='loading' wx:if='{{!isLoaded}}'></template>
  5. <view class='wrapper' wx:else>
  6. <!-- 图书录入-书籍详情 -->
  7. <view class='list'>
  8. <view class='li' bindtap='uploadImgCtl'>
  9. <view class="uploadImg">
  10. <image class='{{bookInfo.localImage ? "li-imageTip" : "li-image"}}' src='{{bookInfo.localImage ? baseImgUrl + bookInfo.localImage : "../../../assets/cameare.png"}}'></image>
  11. </view>
  12. </view>
  13. <view class='li'>
  14. <view class='li-label'>书名</view>
  15. <input class='li-input' type='text' placeholder='' disabled='true' placeholder-class='input-placeholder' value='{{bookInfo.title}}' bindinput='inputCtl' data-type='title'></input>
  16. </view>
  17. <view class='li'>
  18. <view class='li-label'>作者</view>
  19. <input class='li-input' type='text' placeholder='' disabled='true' placeholder-class='input-placeholder' value='{{bookInfo.author}}' bindinput='inputCtl' data-type='author'></input>
  20. </view>
  21. <view class='li'>
  22. <view class='li-label'>ISBN号码</view>
  23. <input class='li-input' type='text' placeholder='' disabled='true' placeholder-class='input-placeholder' value='{{bookInfo.isbn13}}' bindinput='inputCtl' data-type='isbn13'></input>
  24. </view>
  25. <view class='li'>
  26. <view class='li-label'>图书馆</view>
  27. <input class='li-input' type='text' placeholder='' disabled='true' placeholder-class='input-placeholder' value='{{bookInfo.libName}}' bindinput='inputCtl' data-type='libName'></input>
  28. </view>
  29. <view class='li'>
  30. <view class='li-label'>正在借阅</view>
  31. <input class='li-input' type='text' placeholder='' disabled='true' placeholder-class='input-placeholder' value='{{bookInfo.borrowName}}' bindinput='inputCtl' data-type='borrowName'></input>
  32. </view>
  33. <view class='li'>
  34. <view class='li-label'>主题</view>
  35. <input class='li-input' type='text' placeholder='' disabled='true' placeholder-class='input-placeholder' value='{{bookInfo.themeName}}' bindinput='inputCtl' data-type='themeName'></input>
  36. </view>
  37. <view class='li'>
  38. <view class='li-label'>年段</view>
  39. <input class='li-input' type='text' placeholder='' disabled='true' placeholder-class='input-placeholder' value='{{bookInfo.grade}}' bindinput='inputCtl' data-type='grade'></input>
  40. </view>
  41. <view class='li'>
  42. <view class='li-label'>价格</view>
  43. <input class='li-input' type='text' placeholder='' disabled='true' placeholder-class='input-placeholder' value='{{bookInfo.price}}' bindinput='inputCtl' data-type='price'></input>
  44. </view>
  45. <view class='li'>
  46. <view class='li-label'>简介</view>
  47. <textarea class='li-input-text' type='text' placeholder='' disabled='true' placeholder-class='input-placeholder' value='{{bookInfo.summary}}' bindinput='inputCtl' data-type='summary'></textarea>
  48. </view>
  49. <view class='footer-box'>
  50. <view class='footer-box-item1' bindtap='sureDelete'>解绑图书</view>
  51. <view class='footer-box-item2' bindtap='showModel'>归还图书</view>
  52. </view>
  53. </view>
  54. <!-- 解绑图书弹幕 -->
  55. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{deleteModel}}'></view>
  56. <view class='model-show' wx:if='{{deleteModel}}'>
  57. <view class='model-list'>
  58. <view class='model-list-title'>此书正与{{bookInfo.libName}}馆绑定,是否确定解绑?</view>
  59. </view>
  60. <view class='model-list-footer'>
  61. <view class='model-list-footer-cancel' bindtap='allShowModel'>取消</view>
  62. <view class='model-list-footer-sure' data-type='{{1}}' bindtap='operationCtl'>确定解绑</view>
  63. </view>
  64. </view>
  65. <!-- 归还图书图书弹幕 -->
  66. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
  67. <view class='model-show' wx:if='{{hiddenModel}}'>
  68. <view class='model-list'>
  69. <view class='model-list-title' wx:if='{{bookInfo.borrowName}}' >{{bookInfo.borrowName}}正在借阅此书,确定归还此书吗?</view>
  70. <view class='model-list-title' wx:if='{{!bookInfo.borrowName}}' >确定归还此书吗?</view>
  71. </view>
  72. <view class='model-list-footer'>
  73. <view class='model-list-footer-cancel' bindtap='allShowModel'>取消</view>
  74. <view class='model-list-footer-sure' data-type='{{2}}' bindtap='operationCtl'>确定归还</view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>