_keycode.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <div class="search-list">
  3. <div class="search-item">
  4. <span :class="activeType=='store'?'active':''" @click="activeType='store'">仅看有货</span>
  5. <span :class="activeType=='support'?'active':''" @click="activeType='support'">店铺自营</span>
  6. </div>
  7. <brand-list></brand-list>
  8. <detail-brand></detail-brand>
  9. <good-list></good-list>
  10. </div>
  11. </template>
  12. <script>
  13. import { BrandList, DetailBrand, GoodList } from '~components/mobile/search'
  14. export default {
  15. layout: 'main',
  16. data () {
  17. return {
  18. activeType: 'store'
  19. }
  20. },
  21. components: {
  22. BrandList,
  23. DetailBrand,
  24. GoodList
  25. }
  26. }
  27. </script>
  28. <style scoped lang="scss">
  29. .search-list{
  30. margin-top:.88rem;
  31. width:100%;
  32. .search-item{
  33. justify-content: space-around;
  34. text-align: center;
  35. display:flex;
  36. span{
  37. display:inline-block;
  38. width:1.41rem;
  39. line-height: .76rem;
  40. font-size:.32rem;
  41. color:#666;
  42. }
  43. span.active{
  44. color:#3976f4;
  45. border-bottom:2px solid #3976f4;
  46. }
  47. }
  48. }
  49. </style>