您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

propertySection.vue 1018B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <div>
  3. <section class="section-property section-t8">
  4. <div class="container">
  5. <div class="row">
  6. <div class="col-md-12">
  7. <div class="title-wrap d-flex justify-content-between">
  8. <div class="title-box">
  9. <h2 class="title-a">Latest Properties</h2>
  10. </div>
  11. </div>
  12. </div>
  13. </div>
  14. <propertyCard
  15. v-if="latestProperties.length > 0"
  16. name="propertyholder"
  17. :properties="latestProperties"
  18. :showSort="false"
  19. />
  20. </div>
  21. </section>
  22. </div>
  23. </template>
  24. <script>
  25. import { mapState, mapActions } from 'vuex';
  26. import propertyCard from '../property/propertyCard.vue';
  27. export default {
  28. components: {
  29. propertyCard,
  30. },
  31. computed: {
  32. ...mapState('propertySearch', ['latestProperties']),
  33. },
  34. methods: {
  35. ...mapActions('propertySearch', ['searchLatestProperties']),
  36. },
  37. mounted() {
  38. this.searchLatestProperties();
  39. },
  40. };
  41. </script>