addStaff.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. <template v-if="sources==1">
  22. <block v-for="(item,index) in menusList" :key="index">
  23. <my-list-item :item="item" :index="index"></my-list-item>
  24. </block>
  25. </template>
  26. <template v-else-if="sources==2">
  27. <block v-for="(item,index) in menusList1" :key="index">
  28. <my-list-item :item="item" :index="index"></my-list-item>
  29. </block>
  30. </template>
  31. </view>
  32. </template>
  33. <script>
  34. import {
  35. mapState,
  36. mapMutations
  37. } from "vuex"
  38. import myListItem from "@/components/modules/my/my-list-item.vue";
  39. export default {
  40. components: {
  41. myListItem
  42. },
  43. data() {
  44. return {
  45. menusList: [{
  46. icon: "",
  47. name: "面对面推荐",
  48. clicktype: "navigateTo",
  49. url: "/pages/tools/addStaff/recommendCode",
  50. auth: true
  51. },
  52. {
  53. icon: "",
  54. name: "扫码下载",
  55. clicktype: "navigateTo",
  56. url: "/pages/tools/addStaff/codeDownload",
  57. auth: true
  58. },
  59. {
  60. icon: "",
  61. name: "邀请函",
  62. clicktype: "navigateTo",
  63. url: "/pages/tools/poster/poster",
  64. auth: true
  65. }
  66. ],
  67. menusList1: [{
  68. icon: "",
  69. name: "扫码下载",
  70. clicktype: "navigateTo",
  71. url: "/pages/tools/addStaff/codeDownload",
  72. auth: true
  73. },
  74. {
  75. icon: "",
  76. name: "出单员扫码注册",
  77. clicktype: "navigateTo",
  78. url: "/pages/tools/addStaff/orderissuer",
  79. auth: true
  80. },
  81. ]
  82. }
  83. },
  84. computed: {
  85. ...mapState(['userInfo', 'sources']),
  86. },
  87. methods: {
  88. getStaffList(staffType) {
  89. // 0未认证 1已认证 2全部
  90. this.navigate({
  91. url: '/pages/tool-staff-list/tool-staff-list?staffType=' + staffType
  92. }, "navigateTo", true);
  93. }
  94. }
  95. }
  96. </script>
  97. <style>
  98. .addStaffManage {
  99. height: 220upx;
  100. margin: 0 40upx;
  101. }
  102. .addStaffManage>view>view.icon {
  103. width: 110upx;
  104. height: 110upx;
  105. color: #FFFFFF;
  106. border-radius: 100%;
  107. margin-bottom: 10upx;
  108. font-size: 60upx;
  109. }
  110. .addStaffManage>view:nth-of-type(1)>view.icon {
  111. background-color: #78CBFF;
  112. }
  113. .addStaffManage>view:nth-of-type(2)>view.icon {
  114. background-color: #78FF7E;
  115. }
  116. .addStaffManage>view:nth-of-type(3)>view.icon {
  117. background-color: #FF9D4A;
  118. }
  119. .line {
  120. height: 10upx;
  121. background-color: #EEEEEE;
  122. }
  123. </style>