Blame view

src/views/service.vue 2.23 KB
9287779a   Andy   add 官网嵌入车主平台 架构
1
2
3
4
5
6
7
8
9
10
11
12
13
  
  <template>
    <div >
      <el-container style="min-height: 550px">
        <el-aside width="210px" style="background-color: rgb(84, 92, 100);">
          <!--左侧菜单组件-->
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
            background-color="#545c64"
            text-color="#fff"
bbda22c6   Andy   add login
14
            active-text-color="red" router>
9287779a   Andy   add 官网嵌入车主平台 架构
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
            <el-menu-item index="/dashboard" class="is-active">
              <i class="el-icon-menu "></i>
              <span slot="title">服务首页</span>
            </el-menu-item>
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-bank-card"></i>
                <span>我的钱包</span>
              </template>
              <el-menu-item index="/account">我的账户</el-menu-item>
              <el-menu-item index="/cardticket">我的卡券</el-menu-item>
            </el-submenu>
            <el-menu-item index="/order">
              <i class="el-icon-tickets"></i>
              <span slot="title">我的订单</span>
            </el-menu-item>
            <el-menu-item index="/payback">
              <i class="el-icon-finished"></i>
              <span slot="title">欠费补缴</span>
            </el-menu-item>
            <el-menu-item index="/mycar">
              <i class="el-icon-truck"></i>
              <span slot="title">我的车辆</span>
            </el-menu-item>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-user-solid"></i>
                <span>个人中心</span>
              </template>
              <el-menu-item index="/information">个人资料</el-menu-item>
              <el-menu-item index="/myevaluate">我的评价</el-menu-item>
            </el-submenu>
          </el-menu>
        </el-aside>
  
        <el-main class="app-container">
          <router-view :key="key" />
        </el-main>
      </el-container>
  
    </div>
  
  </template>
  
  <script>
    export default {
      computed: {
        key() {
          return this.index
        }
      },
      methods: {
        handleOpen(key, keyPath) {
          console.log(key, keyPath);
        },
        handleClose(key, keyPath) {
          console.log(key, keyPath);
        }
      }
    }
  
  </script>
  <style scoped>
  
  </style>