addStaff.vue 3.2 KB

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