addStaff.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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:"",name:"面对面推荐",clicktype:"navigateTo",url:"/pages/tools/addStaff/recommendCode",auth:true },
  37. { icon:"",name:"邀请函",clicktype:"navigateTo",url:"/pages/tools/poster/poster",auth:true }
  38. ]
  39. }
  40. },
  41. methods: {
  42. getStaffList(staffType){
  43. // 0未认证 1已认证 2全部
  44. this.navigate({
  45. url: '/pages/tool-staff-list/tool-staff-list?staffType='+staffType
  46. }, "navigateTo", true);
  47. }
  48. }
  49. }
  50. </script>
  51. <style>
  52. .addStaffManage{
  53. height: 220upx;
  54. margin: 0 40upx;
  55. }
  56. .addStaffManage>view>view.icon{
  57. width: 110upx;
  58. height: 110upx;
  59. color: #FFFFFF;
  60. border-radius: 100%;
  61. margin-bottom: 10upx;
  62. font-size: 60upx;
  63. }
  64. .addStaffManage>view:nth-of-type(1)>view.icon{
  65. background-color: #78CBFF;
  66. }
  67. .addStaffManage>view:nth-of-type(2)>view.icon{
  68. background-color: #78FF7E;
  69. }
  70. .addStaffManage>view:nth-of-type(3)>view.icon{
  71. background-color: #FF9D4A;
  72. }
  73. .line{
  74. height: 10upx;
  75. background-color: #EEEEEE;
  76. }
  77. </style>