Personnel_management.wxml 4.1 KB

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