toul.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <div class="center-toul">
  3. <div class="center-toul-title active">买家中心</div>
  4. <ul>
  5. <li>购物车<span>(9)</span></li>
  6. <li>订单中心</li>
  7. <li>我的求购</li>
  8. <li>支付中心</li>
  9. <li>发票管理</li>
  10. <li>账户管理</li>
  11. </ul>
  12. </div>
  13. </template>
  14. <script>
  15. export default {
  16. name: 'toul'
  17. }
  18. </script>
  19. <style lang="scss" scoped>
  20. .center-toul {
  21. width: 146px;
  22. border: #ddd 1px solid;
  23. background: #fff;
  24. border-bottom: none;
  25. text-align: center;
  26. float: left;
  27. .center-toul-title {
  28. background: #ecf2fd;
  29. color: #666;
  30. height: 40px;
  31. line-height: 40px;
  32. font-weight: bold;
  33. &.active {
  34. background: #5078cb;
  35. color: #fff
  36. }
  37. &:hover {
  38. background: #67afe4;
  39. color: #fff;
  40. cursor: pointer;
  41. }
  42. }
  43. ul
  44. li {
  45. line-height: 50px;
  46. height: 50px;
  47. color: #333;
  48. border-bottom: 1px solid #ddd;
  49. transition: all 0.3s;
  50. &.active {
  51. background: #5078cb
  52. }
  53. &:hover {
  54. background: #67afe4;
  55. color: #fff;
  56. cursor: pointer;
  57. }
  58. }
  59. }
  60. </style>