withdraw.wxml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!--dispatcher/pages/withdraw/withdraw.wxml-->
  2. <import src="../../../templates/nodata/nodata.wxml" />
  3. <import src="../../../templates/loading/loading.wxml" />
  4. <view class='container'>
  5. <template is='loading' wx:if='{{!isLoaded}}'></template>
  6. <view class='wrapper {{navIndex == 0 ? "pb" : ""}}' wx:else>
  7. <view class='header'>
  8. <view class='header-content'>
  9. <view class='header-text-black'>{{league_name}}</view>
  10. <view class='header-text-gray'>{{league_address}}</view>
  11. <view class='header-items'>
  12. <view class='header-item' wx:for='{{items}}' wx:key='{{index}}'>
  13. <view class='header-item-line-left {{index < itemIndex + 1 ? "bg-blue" : "bg-gray"}}' wx:if='{{index > 0}}'></view>
  14. <view class='header-item-line-right {{index < itemIndex ? "bg-blue" : "bg-gray"}}' wx:if='{{index < items.length - 1}}'></view>
  15. <image class='header-item-icon' src='{{index < itemIndex ? item.actIcon : item.icon}}'></image>
  16. <view class='header-item-text {{index < itemIndex ? "text-blue" : "text-gray"}}'>{{item.text}}</view>
  17. <view class='header-item-text text-gray-small' wx:if='{{index < itemIndex && item.name}}'>操作人:{{item.name}}</view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class='nav'>
  23. <view class='nav-item' wx:for='{{navList}}' wx:key='{{index}}' data-index='{{index}}' bindtap='selectNavCtl'>
  24. <view class='nav-item-row {{navIndex == index ? "nav-item-row-active" : ""}}'>
  25. <view class='nav-item-text {{navIndex == index ? "nav-item-text-active" : ""}}'>{{item.text}}</view>
  26. <view class='nav-item-button {{navIndex == index ? "nav-item-button-active" : ""}}'>{{item.number}}本</view>
  27. </view>
  28. </view>
  29. </view>
  30. <template is='nodata' data='{{...navList[navIndex]["nodataArray"]}}' wx:if='{{navList[navIndex]["list"].length == 0}}'></template>
  31. <view class='list' wx:else>
  32. <view class='li' wx:for='{{navList[navIndex]["list"]}}' wx:key='{{index}}'>
  33. <image class='li-img' mode='aspectFill' src='{{item.local_image ? baseImgUrl + item.local_image : "../../../assets/default_headicon.png"}}'></image>
  34. <view class='li-col'>
  35. <view class='li-label' wx:if='{{item.parent_name}}'>
  36. <text class='li-label-tips' style='background: {{item.color}};'></text>
  37. <text class='li-label-text' style='color: {{item.color}};'>{{item.parent_name}}</text>
  38. <block wx:if='{{item.child_name}}'>
  39. <text class='li-label-arrow' style='border-top: solid 2rpx {{item.color}}; border-right: solid 2rpx {{item.color}};'></text>
  40. <text class='li-label-text' style='color: {{item.color}};'>{{item.child_name}}</text>
  41. </block>
  42. </view>
  43. <view class='li-text-black'>{{item.title || ''}}</view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class='footer-box' wx:if='{{navIndex == 0}}'>
  48. <view class='footer-box-item' wx:if='{{navList[1].number == 0 && navList[2].number == 0}}' bindtap='scanCtl'>{{options.type == 1 ? '扫描收书' : '扫描入库'}}</view>
  49. <block wx:else>
  50. <view class='footer-box-item' bindtap='scanCtl'>{{options.type == 1 ? '继续扫描收书' : '继续扫描入库'}}</view>
  51. <view class='footer-box-item' bindtap='submitCtl'>{{options.type == 1 ? '完成收书' : '完成入库'}}</view>
  52. </block>
  53. </view>
  54. </view>
  55. </view>