adminSide.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <div class="side">
  3. <ul class="g-nav">
  4. <template v-for="item in list">
  5. <li class="group">
  6. <i :class="item.icon"></i>
  7. <span v-text="item.label">商家设置</span>
  8. </li>
  9. <li v-for="tab in item.sub">
  10. <nuxt-link :to="tab.link" v-text="tab.title">账号管理</nuxt-link>
  11. </li>
  12. </template>
  13. </ul>
  14. </div>
  15. </template>
  16. <script>
  17. export default {
  18. name: 'adminSide',
  19. data () {
  20. return {
  21. list: [{
  22. icon: 'icon-merchant',
  23. label: '商家设置',
  24. sub: [{
  25. title: '账号管理',
  26. link: '/admin/AccountSettings'
  27. }, {
  28. title: '商家信息',
  29. link: '/admin/MerchantInfo'
  30. }, {
  31. title: '批量开通账号',
  32. link: '/admin/SetAccount'
  33. }]}, {
  34. icon: 'icon-business',
  35. label: '营业设置',
  36. sub: [{
  37. title: '商品设置',
  38. link: '/admin/SetGoods'
  39. }, {
  40. title: '包间设置',
  41. link: '/'
  42. }, {
  43. title: '服务设置',
  44. link: '/'
  45. }, {
  46. title: '活动设置',
  47. link: '/'
  48. }]}, {
  49. icon: 'icon-order',
  50. label: '订单设置',
  51. sub: [{
  52. title: '已预约订单',
  53. link: '/admin/OrderManagement'
  54. }, {
  55. title: '进行中订单',
  56. link: '/'
  57. }, {
  58. title: '已完成订单',
  59. link: '/'
  60. }, {
  61. title: '盈收统计',
  62. link: '/'
  63. }]}, {
  64. icon: 'icon-client',
  65. label: '客户管理',
  66. sub: [{
  67. title: '客户资料',
  68. link: '/admin/ClientManagement'
  69. }, {
  70. title: '会员客户',
  71. link: '/'
  72. }, {
  73. title: '服务评价',
  74. link: '/'
  75. }]}
  76. ]
  77. }
  78. }
  79. }
  80. </script>
  81. <style scoped type="text/scss" lang="scss">
  82. .side{
  83. border:1px solid #e3e3e3;
  84. padding:20px 0 0 27px;
  85. .g-nav{
  86. li{
  87. position:relative;
  88. padding-left:25px;
  89. margin-bottom:10px;
  90. &.group{
  91. margin-bottom:15px;
  92. margin-top:25px;
  93. &:first-child{
  94. margin-top:0;
  95. }
  96. i{
  97. position:absolute;
  98. top:0;
  99. left:0;
  100. }
  101. span{
  102. color:#2f95dd;
  103. font-size: 16px;
  104. }
  105. }
  106. a.nuxt-link-active {
  107. font-size: 14px;
  108. color:#666;
  109. &:hover,&:active {
  110. color:#2f95dd;
  111. }
  112. }
  113. }
  114. }
  115. }
  116. </style>