index.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <v-container>
  3. <v-row>
  4. <v-col cols="2">
  5. <v-sheet rounded="lg">
  6. <v-list color="transparent">
  7. <router-link v-for="item in items" :key="item.text" :to="item.link">
  8. <v-list-item
  9. link
  10. >
  11. <v-list-item-action>
  12. <v-icon>{{ item.icon }}</v-icon>
  13. </v-list-item-action>
  14. <v-list-item-content>
  15. <v-list-item-title>
  16. {{ item.text }}
  17. </v-list-item-title>
  18. </v-list-item-content>
  19. </v-list-item>
  20. </router-link>
  21. <v-divider class="my-2" />
  22. <v-list-item
  23. link
  24. color="grey lighten-4"
  25. >
  26. <v-list-item-content>
  27. <v-list-item-title>
  28. Refresh
  29. </v-list-item-title>
  30. </v-list-item-content>
  31. </v-list-item>
  32. </v-list>
  33. </v-sheet>
  34. </v-col>
  35. <v-col>
  36. <v-sheet
  37. min-height="70vh"
  38. rounded="lg"
  39. >
  40. <router-view />
  41. </v-sheet>
  42. </v-col>
  43. </v-row>
  44. </v-container>
  45. </template>
  46. <script>
  47. import CheckPower from '@/utils/check-power.vue'
  48. export default {
  49. data: () => ({
  50. CheckPower,
  51. items: [
  52. { icon: 'mdi-wrench', text: '套餐', link: '/vip/plan' },
  53. { icon: 'mdi-account-multiple', text: '订单', link: '/vip/order' }
  54. ]
  55. }),
  56. mounted() {
  57. },
  58. created() {
  59. },
  60. methods: {
  61. }
  62. }
  63. </script>
  64. <style scoped>
  65. a {
  66. text-decoration: none;
  67. }
  68. </style>