Personnel_management.wxml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!--parents//pages/borrow_record/borrow_record.wxml-->
  2. <import src="../../../templates/nodata/nodata.wxml" />
  3. <import src="../../../templates/loading/loading.wxml" />
  4. <import src="../../../templates/footer/footer.wxml" />
  5. <view class='container'>
  6. <template is='loading' wx:if='{{!isLoaded}}'></template>
  7. <view class='wrapper' wx:else>
  8. <view class='li-header-search' data-url='president/pages/People_search/People_search' data-paras='{{({type: navIndex})}}' data-zindex='3' bindtap='navigateTo'>
  9. <image class='li-header-search-icon' src='../../../assets/search.png'></image>
  10. <text class='li-header-search-text'>搜索</text>
  11. </view>
  12. <view class='nav'>
  13. <view class='nav-item' wx:for='{{navList}}' wx:key='index' data-index='{{index}}' bindtap='selectNavCtl'>
  14. <view class='nav-item-row {{navIndex == index ? "nav-item-row-active" : ""}}'>
  15. <view class='nav-item-text {{navIndex == index ? "nav-item-text-active" : ""}}'>{{item.text}}</view>
  16. <!-- <view class='nav-item-button {{navIndex == index ? "nav-item-button-active" : ""}}' wx:if='{{index == 1}}'>{{navList[index]["list"].length}}本</view> -->
  17. </view>
  18. </view>
  19. <!-- 会员管理 -->
  20. </view>
  21. <view class="pickChange" wx:if='{{navIndex == 0}}'>
  22. <view class="pickChange_text">会员总数:{{pages}}人</view>
  23. <view class="pickChange_time">今日新增会员数:{{todayAdd}}人</view>
  24. </view>
  25. <view class='list' wx:if='{{navIndex == 0}}'>
  26. <view class='li' wx:for='{{list}}' wx:key='index' data-index='{{index}}' bindtap='toggleSelectLiCtl'>
  27. <view class="li-box">
  28. <image class='li-img' mode='aspectFill' src='{{item.imgUrl ? baseImgUrl + item.imgUrl + thumbnail : "../../../assets/default_headicon.png"}}'></image>
  29. </view>
  30. <view class="li-col">
  31. <view class="li-text">
  32. <view class="li-text-black" >{{item.childName || ''}}</view>
  33. <view class="li-text-gray">{{item.grade}}-{{item.school}}</view>
  34. </view>
  35. <view class="li-text-info" data-url='president/pages/Personnel_details/Personnel_details' data-paras='{{({vipId: item.id})}}' bindtap='navigateTo'>详情
  36. </view>
  37. <view class="icon">
  38. <image class="image" src='../../../assets/arrow_gray.png' />
  39. </view>
  40. </view>
  41. </view>
  42. <template is='nodata' data='{{...nodataArray}}' wx:if='{{list.length == 0}}'></template>
  43. </view>
  44. <!-- 馆内人员管理 -->
  45. <view class="pickChange" wx:if='{{navIndex == 1}}'>
  46. <view class="pickChange_text">馆内人员:{{managerpages}}人</view>
  47. <view class="pickChange_time" data-url='president/pages/People_search/People_search?addNum=1' data-paras='{{({type: 1})}}' data-zindex='3' bindtap='navigateTo'>添加人员+</view>
  48. </view>
  49. <view class='list' wx:if='{{navIndex == 1}}'>
  50. <view class='li' wx:for='{{managerList}}' wx:key='index' data-index='{{index}}' bindtap='toggleSelectLiCtl'>
  51. <view class="li-box">
  52. <image class='li-img' mode='aspectFill' src='{{item.imgUrl ? baseImgUrl + item.imgUrl + thumbnail : "../../../assets/default_headicon.png"}}'></image>
  53. </view>
  54. <view class="li-col">
  55. <view class="li-text">
  56. <view class="li-text-black" >{{item.name || ''}}</view>
  57. <view class="li-text-gray">{{item.jobs}}</view>
  58. </view>
  59. <view class="li-text-info" data-url='president/pages/Personnel_edit/Personnel_edit' data-paras='{{({vipId: item.id})}}' bindtap='navigateTo' >编辑
  60. </view>
  61. <view class="icon">
  62. <image class="image" src='../../../assets/arrow_gray.png' />
  63. </view>
  64. </view>
  65. </view>
  66. <template is='nodata' data='{{...nodataArray}}' wx:if='{{managerList.length == 0}}'></template>
  67. </view>
  68. <view class='load' wx:if='{{isDown}}'>已经到底了~</view>
  69. <view class='load' wx:if='{{isLoad}}'>
  70. <image src='../../../assets/zai_jia.png' class='load-img'></image>
  71. <view>正在玩命加载...</view>
  72. </view>
  73. </view>
  74. <template is='footer' data='{{...footerData}}'></template>
  75. </view>