|
@@ -1,101 +0,0 @@
|
|
|
-<template>
|
|
|
- <div id="clickBtn">
|
|
|
- <el-row>
|
|
|
- <el-col :span="24" class="info">
|
|
|
- <el-col :span="11" class="btn" @click.native="$router.push({ path: '/live/index' })">
|
|
|
- <p><i class="el-icon-camera"></i></p>
|
|
|
- <el-button round size="mini">直播大厅</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="11" class="btn" @click.native="$router.push({ path: '/market/index' })">
|
|
|
- <p><i class="el-icon-coin"></i></p>
|
|
|
- <el-button round size="mini">科技超市</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col
|
|
|
- :span="11"
|
|
|
- class="btn"
|
|
|
- v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'"
|
|
|
- @click.native="$router.push({ path: '/userCenter/myProduct/index' })"
|
|
|
- >
|
|
|
- <p><i class="el-icon-pie-chart"></i></p>
|
|
|
-
|
|
|
- <el-button round size="mini">我的发布</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col
|
|
|
- :span="11"
|
|
|
- class="btn"
|
|
|
- v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'"
|
|
|
- @click.native="$router.push({ path: '/userCenter/matter/index' })"
|
|
|
- >
|
|
|
- <p><i class="el-icon-notebook-1"></i></p>
|
|
|
- <el-button round size="mini">事项管理</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col
|
|
|
- :span="11"
|
|
|
- class="btn"
|
|
|
- @click.native="$router.push({ path: '/userCenter/dock/index' })"
|
|
|
- v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'"
|
|
|
- >
|
|
|
- <p><i class="el-icon-video-camera"></i></p>
|
|
|
- <el-button round size="mini">展会管理</el-button>
|
|
|
- </el-col>
|
|
|
- <el-col
|
|
|
- :span="11"
|
|
|
- class="btn"
|
|
|
- @click.native="$router.push({ path: '/userCenter/user/index' })"
|
|
|
- v-if="this.user.role == '2' || this.user.role == '3' || this.user.role == '6' || this.user.role == '7'"
|
|
|
- >
|
|
|
- <p><i class="el-icon-user"></i></p>
|
|
|
- <el-button round size="mini">个人中心</el-button>
|
|
|
- </el-col>
|
|
|
- <span v-else-if="this.user.role == '1' || this.user.role == '4'">
|
|
|
- 超级管理员,合作机构管理员,业务管理员
|
|
|
- </span>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </div>
|
|
|
-</template>
|
|
|
-
|
|
|
-<script>
|
|
|
-import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
-export default {
|
|
|
- name: 'clickBtn',
|
|
|
- props: {},
|
|
|
- components: {},
|
|
|
- data: function() {
|
|
|
- return {
|
|
|
- user: {
|
|
|
- role: '2',
|
|
|
- },
|
|
|
- menuList: [],
|
|
|
- };
|
|
|
- },
|
|
|
- created() {},
|
|
|
- methods: {},
|
|
|
- computed: {
|
|
|
- // ...mapState(['user']),
|
|
|
- },
|
|
|
-};
|
|
|
-</script>
|
|
|
-
|
|
|
-<style lang="less" scoped>
|
|
|
-.info {
|
|
|
- margin: 15px 0 0 0;
|
|
|
- .btn {
|
|
|
- box-shadow: 0 0 5px #ccc;
|
|
|
- margin: 0 10px 10px 10px;
|
|
|
- text-align: center;
|
|
|
- border-radius: 10px;
|
|
|
- padding: 10px;
|
|
|
- background: #fff;
|
|
|
- p {
|
|
|
- padding: 0 0 10px 0;
|
|
|
- i {
|
|
|
- font-size: 30px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .btn:nth-child(2n) {
|
|
|
- margin: 0;
|
|
|
- }
|
|
|
-}
|
|
|
-</style>
|