RecommendStoreShow.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div class="container showAll">
  3. <!--供应商-->
  4. <div v-if="storeType === 'supplier'">
  5. <article-two/>
  6. </div>
  7. <!--品牌-->
  8. <div v-else-if="storeType === 'brand'">
  9. <brand-index/>
  10. </div>
  11. <!--店铺-->
  12. <div v-else>
  13. <div class="new-store">
  14. <new-store/>
  15. <recommend-original/>
  16. <hot-commodity/>
  17. </div>
  18. <div class="search">
  19. <suppliers/>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import NewStore from './NewStore.vue'
  26. import RecommendOriginal from './RecommendOriginal.vue'
  27. import HotCommodity from './HotCommodity.vue'
  28. import Suppliers from './Suppliers.vue'
  29. import ArticleTwo from '~components/supplier/articleTwo.vue'
  30. import BrandIndex from '~components/brandCenter/BrandIndex.vue'
  31. export default {
  32. name: 'recommend-store',
  33. components: {
  34. NewStore,
  35. RecommendOriginal,
  36. HotCommodity,
  37. Suppliers,
  38. ArticleTwo,
  39. BrandIndex
  40. },
  41. computed: {
  42. storeType () {
  43. return this.$route.params.type
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. @import '~assets/scss/variables';
  50. .showAll {
  51. margin-top: 15px;
  52. width: 1190px;
  53. padding: 0;
  54. overflow: hidden;
  55. .new-store {
  56. float: left;
  57. margin-right: 15px;
  58. width: 220px;
  59. margin-bottom: 80px;
  60. }
  61. .search {
  62. width: 955px;
  63. float: left;
  64. }
  65. }
  66. </style>