book_entry.wxml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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' wx:if='{{isFirst}}'>
  8. <view class='list-logo'>
  9. <image src='../../../assets/ssj_logo.png' class='list-logo-img'></image>
  10. </view>
  11. <view class='list-btn' wx:if='{{!isScan}}' bindtap='codeScanCtl'>扫一扫书籍标签二维码</view>
  12. <view class='list-btns' wx:if='{{isScan}}'>
  13. <view class='list-btns-yellow' bindtap='scanFn'>扫一扫书籍ISBN绑定</view>
  14. <view class='list-btns-blue' bindtap='getOperation'>手动输入书籍ISBN绑定</view>
  15. </view>
  16. </view>
  17. <!-- 图书录入-书籍详情 -->
  18. <view class='list' wx:if='{{isDetail}}'>
  19. <view class='li' bindtap='uploadImgCtl'>
  20. <view class="uploadImg">
  21. <image class='{{bookInfo.localImage ? "li-imageTip" : "li-image"}}' src='{{bookInfo.localImage ? baseImgUrl + bookInfo.localImage : "../../../assets/cameare.png"}}'></image>
  22. <view class="upload-text" wx:if='{{!bookInfo.localImage}}'>上传封面</view>
  23. <view class="upload-Model" wx:if='{{bookInfo.localImage}}'>
  24. <view class="upload-refrehtext">更换封面</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class='li'>
  29. <view class='li-label'>书名</view>
  30. <input class='li-input' type='text' placeholder='请输入书名' placeholder-class='input-placeholder' value='{{bookInfo.title}}' bindinput='inputCtl' data-type='title'></input>
  31. </view>
  32. <view class='li'>
  33. <view class='li-label'>作者</view>
  34. <input class='li-input' type='text' placeholder='请输入作者' placeholder-class='input-placeholder' value='{{bookInfo.author}}' bindinput='inputCtl' data-type='author'></input>
  35. </view>
  36. <view class='li'>
  37. <view class='li-label'>ISBN号码</view>
  38. <input class='li-input' type='text' placeholder='' placeholder-class='input-placeholder' value='{{bookInfo.isbn13}}' bindinput='inputCtl' data-type='isbn13'></input>
  39. </view>
  40. <view class='li' wx:if='{{serialType==3}}'>
  41. <view class='li-label'>丛书序号</view>
  42. <picker bindchange='pickerGradeCtl' value='{{numIndex}}' range='{{list}}'>
  43. <view class='li-picker' style='display:inline-block'>{{csIndex || '请选择年段'}}</view>
  44. <image src='../../../assets/right_gray.png' class='li-label-right'></image>
  45. </picker>
  46. </view>
  47. <view class='li'>
  48. <view class='li-label'>主题</view>
  49. <picker bindchange='pickerThemeCtl' value='{{themeListIndex}}' range='{{themeList}}'>
  50. <view class='li-picker' style='display:inline-block'>{{childTheme || '请选择主题'}}</view>
  51. <image src='../../../assets/right_gray.png' class='li-label-right'></image>
  52. </picker>
  53. </view>
  54. <view class='li'>
  55. <view class='li-label'>年段</view>
  56. <picker bindchange='pickerGradeCtl' value='{{gradeIndex}}' range='{{gradeArray}}'>
  57. <view class='li-picker' style='display:inline-block'>{{bookInfo.section || '请选择年段'}}</view>
  58. <image src='../../../assets/right_gray.png' class='li-label-right'></image>
  59. </picker>
  60. </view>
  61. <view class='li'>
  62. <view class='li-label'>价格</view>
  63. <input class='li-input' type='text' placeholder='请输入价格' placeholder-class='input-placeholder' value='{{bookInfo.price}}' bindinput='inputCtl' data-type='price'></input>
  64. </view>
  65. <view class='li'>
  66. <view class='li-label'>简介</view>
  67. <textarea class='li-input-text' type='text' placeholder='请输入书籍简介' placeholder-class='input-placeholder' value='{{bookInfo.summary}}' bindinput='inputCtl' data-type='summary'></textarea>
  68. </view>
  69. </view>
  70. <!-- 手动输入书籍详情 -->
  71. <view class='list' wx:if='{{isOperation}}'>
  72. <view class='list-logo'>
  73. <image src='../../../assets/ssj_logo.png' class='list-logo-img'></image>
  74. </view>
  75. <view class='li' style='margin-bottom:220rpx;border-top:solid 1rpx #e6e6e6;'>
  76. <view class='li-label'>ISBN号码</view>
  77. <input class='li-input' type='number' placeholder='请输入ISBN码' placeholder-class='input-placeholder' value='{{isbn13}}' bindinput='isbn13Ctl' data-type='isbn13'></input>
  78. </view>
  79. <view class='footer-box'>
  80. <view class='footer-box-item' data-type='{{1}}' bindtap='operationCtl'>取消</view>
  81. <view class='footer-box-item' data-type='{{2}}' bindtap='operationCtl'>提交</view>
  82. </view>
  83. </view>
  84. <!-- 扫一扫---图书录入-完善货架 -->
  85. <view wx:if='{{isTwo}}'>
  86. <view class='scan-btn' bindtap="ferfectScanCtl">
  87. <image class='scan-btn-icon' src='../../../assets/scan_large.png'></image>
  88. <view class='scan-btn-text'>扫一扫</view>
  89. </view>
  90. <view class='scan-row'>
  91. <image class='scan-row-icon' src='../../../assets/circle_gray_2.png'></image>
  92. <text class='scan-row-text'>扫描书上二维码完善书籍信息</text>
  93. </view>
  94. </view>
  95. <!-- 图书录入-完善货架 -->
  96. <view class='list' wx:if='{{isFerfect}}'>
  97. <view class='list-info' >
  98. <image src='{{localImage ? baseImgUrl + localImage : "../../../assets/default_headicon.png"}}' class='list-book-header'></image>
  99. <view class='list-logo-text'>{{title}}</view>
  100. </view>
  101. <view class='li'>
  102. <view class='li-label'>价格</view>
  103. <input class='li-input' type='text' placeholder='请输入价格' placeholder-class='input-placeholder' value='{{price}}' bindinput='priceInputCtl' data-type='price'></input>
  104. </view>
  105. <view class='li'>
  106. <view class='li-label'>货架位置AB</view>
  107. <view bindtap='clickAB'>
  108. <view class='li-picker' style='display:inline-block'>{{abNumber || '请完善货架位置'}}</view>
  109. <image src='../../../assets/right_gray.png' class='li-label-right'></image>
  110. </view>
  111. </view>
  112. <view class='li'>
  113. <view class='li-label'>货架位置CD</view>
  114. <view bindtap='clickCD'>
  115. <view class='li-picker' style='display:inline-block'>{{cdNumber || '请完善货架位置'}}</view>
  116. <image src='../../../assets/right_gray.png' class='li-label-right'></image>
  117. </view>
  118. </view>
  119. <view class='footer-box' wx:if='{{!pickerABShow&&!pickerCDShow}}'>
  120. <view class='footer-box-item' wx:for='{{footerArray}}' wx:key='index' data-type='{{item.type}}' bindtap='saveGoods'>{{item.text}}</view>
  121. </view>
  122. </view>
  123. <view class='picker' wx:if='{{pickerABShow}}'>
  124. <view class='picker-btn' data-type='{{0}}' bindtap='finish'>完成</view>
  125. <picker-view indicator-style="height: 40px;font-weight: bold" class='li-label-picker' value="{{abValue}}" bindchange="bindChangeAB">
  126. <picker-view-column>
  127. <view wx:for='{{A}}' wx:key='index' class='picker-item' wx:if='{{A.length>0}}'>{{item.code}}</view>
  128. </picker-view-column>
  129. <picker-view-column>
  130. <view wx:for='{{B}}' wx:key='index' class='picker-item' wx:if='{{B.length>0}}'>{{item.code}}</view>
  131. </picker-view-column>
  132. </picker-view>
  133. </view>
  134. <view class='picker' wx:if='{{pickerCDShow}}'>
  135. <view class='picker-btn' data-type='{{1}}' bindtap='finish'>完成</view>
  136. <picker-view indicator-style="height: 40px;font-weight: bold" class='li-label-picker' value="{{cdValue}}" bindchange="bindChangeCD">
  137. <picker-view-column>
  138. <view wx:for='{{C}}' wx:key='index' class='picker-item' wx:if='{{C.length>0}}'>{{item.code}}</view>
  139. </picker-view-column>
  140. <picker-view-column>
  141. <view wx:for='{{D}}' wx:key='index' class='picker-item' wx:if='{{D.length>0}}'>{{item.code}}</view>
  142. </picker-view-column>
  143. </picker-view>
  144. </view>
  145. <view class='footer-box' wx:if='{{isBtn}}'>
  146. <view class='footer-box-item' wx:for='{{footerArray}}' wx:key='index' data-type='{{item.type}}' bindtap='submitCtl'>{{item.text}}</view>
  147. </view>
  148. </view>
  149. </view>