addStaff.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view>
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <view class="addStaffManage d-flex a-center j-center">
  6. <view class="d-flex a-center j-center flex-column flex-1">
  7. <view class="d-flex a-center j-center icon iconfont icon-addstaff" @tap="getStaffList(0)"></view>
  8. <view>未认证</view>
  9. </view>
  10. <view class="d-flex a-center j-center flex-column flex-1">
  11. <view class="d-flex a-center j-center icon iconfont icon-renzheng" @tap="getStaffList(1)"></view>
  12. <view>已认证</view>
  13. </view>
  14. <view class="d-flex a-center j-center flex-column flex-1">
  15. <view class="d-flex a-center j-center icon iconfont icon-alladdstaff" @tap="getStaffList(2)"></view>
  16. <view>认证管理</view>
  17. </view>
  18. </view>
  19. <view class="line"></view>
  20. <!-- 增员菜单Start -->
  21. <block v-for="(item,index) in menusList" :key="index">
  22. <my-list-item :item="item" :index="index"></my-list-item>
  23. </block>
  24. <!-- 增员菜单End -->
  25. </view>
  26. </template>
  27. <script>
  28. import myListItem from "@/components/modules/my/my-list-item.vue";
  29. export default {
  30. components: {
  31. myListItem
  32. },
  33. data() {
  34. return {
  35. menusList: [{
  36. icon: "",
  37. name: "面对面推荐",
  38. clicktype: "navigateTo",
  39. url: "/pages/tools/addStaff/recommendCode",
  40. auth: true
  41. },
  42. {
  43. icon: "",
  44. name: "扫码下载",
  45. clicktype: "navigateTo",
  46. url: "/pages/tools/addStaff/codeDownload",
  47. auth: true
  48. },
  49. {
  50. icon: "",
  51. name: "邀请函",
  52. clicktype: "navigateTo",
  53. url: "/pages/tools/poster/poster",
  54. auth: true
  55. }
  56. ]
  57. }
  58. },
  59. methods: {
  60. getStaffList(staffType) {
  61. // 0未认证 1已认证 2全部
  62. this.navigate({
  63. url: '/pages/tool-staff-list/tool-staff-list?staffType=' + staffType
  64. }, "navigateTo", true);
  65. }
  66. }
  67. }
  68. </script>
  69. <style>
  70. .addStaffManage {
  71. height: 220upx;
  72. margin: 0 40upx;
  73. }
  74. .addStaffManage>view>view.icon {
  75. width: 110upx;
  76. height: 110upx;
  77. color: #FFFFFF;
  78. border-radius: 100%;
  79. margin-bottom: 10upx;
  80. font-size: 60upx;
  81. }
  82. .addStaffManage>view:nth-of-type(1)>view.icon {
  83. background-color: #78CBFF;
  84. }
  85. .addStaffManage>view:nth-of-type(2)>view.icon {
  86. background-color: #78FF7E;
  87. }
  88. .addStaffManage>view:nth-of-type(3)>view.icon {
  89. background-color: #FF9D4A;
  90. }
  91. .line {
  92. height: 10upx;
  93. background-color: #EEEEEE;
  94. }
  95. </style>