PanelGroupT.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template>
  2. <div class="divBox">
  3. <el-row :gutter="24" class="dashboard-console-grid">
  4. <el-col v-bind="grid" class="ivu-mb">
  5. <el-card :bordered="false">
  6. <router-link :to="{ path: '/goods/goods' }">
  7. <i class="el-icon-goods" style="color: #69c0ff" />
  8. <p>商品管理</p>
  9. </router-link>
  10. </el-card>
  11. </el-col>
  12. <el-col v-bind="grid" class="ivu-mb">
  13. <el-card :bordered="false">
  14. <router-link :to="{ path: '/users/users' }">
  15. <i class="el-icon-user" style="color: #95de64" />
  16. <p>客户管理</p>
  17. </router-link>
  18. </el-card>
  19. </el-col>
  20. <el-col v-bind="grid" class="ivu-mb">
  21. <el-card :bordered="false">
  22. <router-link :to="{ path: '/order/order' }">
  23. <i class="el-icon-s-order" style="color: #ff9c6e" />
  24. <p>订单管理</p>
  25. </router-link>
  26. </el-card>
  27. </el-col>
  28. <el-col v-bind="grid" class="ivu-mb">
  29. <el-card :bordered="false">
  30. <router-link :to="{ path: '/goods/package' }">
  31. <i class="el-icon-postcard" style="color: #ffd666" />
  32. <p>套餐管理</p>
  33. </router-link>
  34. </el-card>
  35. </el-col>
  36. <el-col v-bind="grid" class="ivu-mb">
  37. <el-card :bordered="false">
  38. <router-link :to="{ path: '/money/companyProfit' }">
  39. <i class="el-icon-s-finance" style="color: #ff85c0" />
  40. <p>提现管理</p>
  41. </router-link>
  42. </el-card>
  43. </el-col>
  44. </el-row>
  45. </div>
  46. </template>
  47. <script>
  48. import CountTo from 'vue-count-to'
  49. // import { gett } from '@/api/visits'
  50. export default {
  51. components: {
  52. CountTo
  53. },
  54. data() {
  55. return {
  56. count: { todayPrice: 0, todayCount: 0, proPrice: 0, proCount: 0,
  57. monthPrice: 0, monthCount: 0, lastWeekCount: 0, lastWeekPrice: 0 },
  58. grid: {
  59. xl: 3,
  60. lg: 3,
  61. md: 6,
  62. sm: 8,
  63. xs: 8,
  64. },
  65. }
  66. },
  67. mounted() {
  68. // gett().then(res => {
  69. // this.count.todayPrice = res.todayPrice
  70. // this.count.todayCount = res.todayCount
  71. // this.count.proCount = res.proCount
  72. // this.count.proPrice = res.proPrice
  73. // this.count.monthPrice = res.monthPrice
  74. // this.count.monthCount = res.monthCount
  75. // this.count.lastWeekCount = res.lastWeekCount
  76. // this.count.lastWeekPrice = res.lastWeekPrice
  77. // })
  78. }
  79. }
  80. </script>
  81. <style rel="stylesheet/scss" lang="scss" scoped>
  82. .panel-group {
  83. margin-top: 18px;
  84. .card-panel-col{
  85. margin-bottom: 32px;
  86. }
  87. .card-panel {
  88. height: 108px;
  89. font-size: 12px;
  90. position: relative;
  91. overflow: hidden;
  92. cursor: pointer;
  93. color: #666;
  94. background: #fff;
  95. box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);
  96. border-color: rgba(0, 0, 0, .05);
  97. .icon-people {
  98. color: #40c9c6;
  99. }
  100. .icon-message {
  101. color: #36a3f7;
  102. }
  103. .icon-money {
  104. color: #f4516c;
  105. }
  106. .icon-shopping {
  107. color: #34bfa3
  108. }
  109. .card-panel-icon-wrapper {
  110. float: left;
  111. margin: 14px 0 0 14px;
  112. padding: 16px;
  113. transition: all 0.38s ease-out;
  114. border-radius: 6px;
  115. }
  116. .card-panel-icon {
  117. float: left;
  118. font-size: 48px;
  119. }
  120. .card-panel-description {
  121. float: right;
  122. font-weight: bold;
  123. margin: 26px;
  124. margin-left: 0px;
  125. .card-panel-text {
  126. line-height: 18px;
  127. color: rgba(0, 0, 0, 0.45);
  128. font-size: 16px;
  129. margin-bottom: 12px;
  130. }
  131. .card-panel-num {
  132. font-size: 20px;
  133. }
  134. }
  135. }
  136. }
  137. .ivu-mb {
  138. margin-bottom: 10px;
  139. font-size: 12px!important;
  140. }
  141. .divBox {
  142. // padding: 0 20px !important;
  143. }
  144. .dashboard-console-grid {
  145. text-align: center;
  146. .ivu-card-body {
  147. padding: 0;
  148. }
  149. i {
  150. font-size: 32px;
  151. }
  152. a {
  153. display: block;
  154. color: inherit;
  155. }
  156. p {
  157. margin-top: 8px;
  158. }
  159. }
  160. </style>