多租户商城-商户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.3 KiB

  1. <template>
  2. <div class="header">
  3. <div class="tabs-nav-warp">
  4. <div class="tabs-nav" scroll-x="true">
  5. <div class="ul">
  6. <div class="li" :class="{'on':activeTab===0}" @click="tabChange(0)">首页</div>
  7. <div class="li" :class="{'on':activeTab===index+1}" v-for="(item,index) in classifyData" :key="index">
  8. {{item.categoryName}}
  9. </div>
  10. </div>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. import {commonMixin} from '../mixin'
  17. export default {
  18. mixins: [commonMixin],
  19. data () {
  20. return {
  21. activeTab: 0
  22. }
  23. },
  24. computed: {
  25. },
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. .tabs-nav-warp{
  30. margin-top: 20px;
  31. padding:0 30px;
  32. overflow: hidden;
  33. .tabs-nav{
  34. .ul{
  35. display: flex;
  36. .li{
  37. flex: 1 0 auto;
  38. margin-left: 36px;
  39. font-size: 30px;
  40. color: #999999;
  41. position: relative;
  42. padding-bottom: 18px;
  43. &:first-child{
  44. margin-left: 0;
  45. }
  46. &.on{
  47. &:after{
  48. content: '';
  49. width: 100%;
  50. height: 4px;
  51. background: #C5AA7B;
  52. position: absolute;
  53. left: 0;
  54. bottom: 0;
  55. }
  56. font-weight:bold;
  57. }
  58. }
  59. }
  60. }
  61. }
  62. </style>