MemberHeader.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <div class="header">
  3. <ns-header-top />
  4. <ns-header-mid />
  5. </div>
  6. </template>
  7. <script>
  8. import NsHeaderTop from "./NsHeaderTop.vue"
  9. import NsHeaderMid from "./NsHeaderMid.vue"
  10. export default {
  11. components: {
  12. NsHeaderTop,
  13. NsHeaderMid
  14. },
  15. created() {
  16. this.$store.dispatch("cart/cart_count")
  17. }
  18. }
  19. </script>
  20. <style scoped lang="scss">
  21. .header {
  22. width: 100%;
  23. background-color: #fff;
  24. padding: 0;
  25. }
  26. .header-in {
  27. width: $width;
  28. height: 109px;
  29. margin: 20px auto 0;
  30. img {
  31. margin: 22px 120px auto 0;
  32. float: left;
  33. }
  34. .in-sousuo {
  35. width: 550px;
  36. float: left;
  37. margin: 10px 0 0 0;
  38. .sousuo-tag {
  39. display: block;
  40. height: 24px;
  41. span {
  42. cursor: pointer;
  43. font-size: 12px;
  44. padding: 0 10px;
  45. border-right: solid 1px #e1e1e1;
  46. &:last-child {
  47. border-right: none;
  48. }
  49. }
  50. .span-font {
  51. color: $base-color;
  52. }
  53. }
  54. .sousuo-box {
  55. width: 100%;
  56. height: 36px;
  57. border: 2px solid $base-color;
  58. box-sizing: border-box;
  59. input {
  60. width: 400px;
  61. height: 22px;
  62. background: none;
  63. outline: none;
  64. border: none;
  65. float: left;
  66. margin: 4px;
  67. }
  68. .box-btn {
  69. width: 80px;
  70. height: 100%;
  71. background-color: $base-color;
  72. color: #fff;
  73. float: right;
  74. text-align: center;
  75. line-height: 32px;
  76. cursor: pointer;
  77. }
  78. }
  79. .sousuo-key {
  80. width: 100%;
  81. height: 20px;
  82. margin-top: 5px;
  83. font-size: 12px;
  84. span {
  85. float: left;
  86. }
  87. ul {
  88. margin: 0;
  89. padding: 0;
  90. float: left;
  91. color: $ns-text-color-black;
  92. li {
  93. cursor: pointer;
  94. list-style: none;
  95. float: left;
  96. margin-right: 10px;
  97. color: $ns-text-color-black;
  98. }
  99. }
  100. }
  101. }
  102. .car {
  103. float: left;
  104. width: 91px;
  105. height: 36px;
  106. margin-top: 34px;
  107. margin-left: 30px;
  108. padding: 0 28px 0 19px;
  109. border: 1px solid #dfdfdf;
  110. color: $base-color;
  111. font-size: 12px;
  112. span {
  113. cursor: pointer;
  114. line-height: 38px;
  115. margin-right: 10px;
  116. }
  117. }
  118. }
  119. </style>