clickBtn.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <div id="clickBtn">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="11" class="btn" @click.native="$router.push({ path: '/live/index' })">
  6. <p><i class="el-icon-camera"></i></p>
  7. <el-button type="primary" round>直播大厅</el-button>
  8. </el-col>
  9. <el-col :span="11" class="btn" @click.native="$router.push({ path: '/market/index' })">
  10. <p><i class="el-icon-coin"></i></p>
  11. <el-button type="primary" round>科技超市</el-button>
  12. </el-col>
  13. <el-col
  14. :span="11"
  15. class="btn"
  16. v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'"
  17. @click.native="$router.push({ path: '/myfabu/index' })"
  18. >
  19. <p><i class="el-icon-pie-chart"></i></p>
  20. matter
  21. <el-button type="primary" round>我的发布</el-button>
  22. </el-col>
  23. <el-col
  24. :span="11"
  25. class="btn"
  26. v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'"
  27. @click.native="$router.push({ path: '/myfabu/matter' })"
  28. >
  29. <p><i class="el-icon-notebook-1"></i></p>
  30. <el-button type="primary" round>事项管理</el-button>
  31. </el-col>
  32. <el-col :span="11" class="btn" v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'">
  33. <p><i class="el-icon-video-camera"></i></p>
  34. <el-button type="primary" round>展会管理</el-button>
  35. </el-col>
  36. <el-col :span="11" class="btn" v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'">
  37. <p><i class="el-icon-user"></i></p>
  38. <el-button type="primary" round>个人中心</el-button>
  39. </el-col>
  40. <span v-else-if="this.user.role == '1' || this.user.role == '4'">
  41. 超级管理员,合作机构管理员,业务管理员
  42. </span>
  43. </el-col>
  44. </el-row>
  45. </div>
  46. </template>
  47. <script>
  48. import { mapState, createNamespacedHelpers } from 'vuex';
  49. export default {
  50. name: 'clickBtn',
  51. props: {},
  52. components: {},
  53. data: function() {
  54. return {
  55. user: {
  56. role: '2',
  57. },
  58. menuList: [],
  59. };
  60. },
  61. created() {},
  62. methods: {},
  63. computed: {
  64. // ...mapState(['user']),
  65. },
  66. };
  67. </script>
  68. <style lang="less" scoped>
  69. .info {
  70. margin: 15px 0 0 0;
  71. .btn {
  72. box-shadow: 0 0 5px #ccc;
  73. margin: 0 10px 10px 10px;
  74. text-align: center;
  75. border-radius: 10px;
  76. padding: 15px;
  77. p {
  78. padding: 0 0 10px 0;
  79. i {
  80. font-size: 30px;
  81. }
  82. }
  83. }
  84. .btn:nth-child(2n) {
  85. margin: 0;
  86. }
  87. }
  88. </style>