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.

71 lines
2.5 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div @click="goToExhibition()" class="tw-bg-neutrals-0 tw-cursor-pointer tw-rounded-[10px] tw-px-[6px] tw-py-[8px] md:tw-px-[11px] md:tw-py-[10px]">
  3. <div
  4. class="remove-underline md:tw-grid md:tw-grid-cols-[1fr_3fr] md:tw-gap-[10px] md:tw-auto-row-1 xl:tw-grid-cols-[160px_auto]">
  5. <div
  6. class="tw-bg-white tw-rounded-[10px] tw-flex tw-items-center tw-justify-center tw-overflow-hidden tw-min-h-[106px] xl:tw-w-[160px] xl:tw-h-[106px]">
  7. <img :src="item.Logo" class="tw-h-[20vw] md:tw-h-[13vw] xl:tw-h-[106px]" />
  8. </div>
  9. <div class="md:tw-flex md:tw-flex-col md:tw-justify-between">
  10. <div class="md:tw-flex md:tw-flex-col">
  11. <h3
  12. class="t14 tw-line-clamp-2 tw-text-ellipsis tw-overflow-hidden tw-mt-[8px] tw-mb-[4px] md:t16 md:tw-font-medium md:tw-line-clamp-none md:tw-h-full md:tw-mt-0 xl:tw-line-clamp-2">
  13. {{ item.ExhibitionName }}
  14. </h3>
  15. <div class="tw-hidden t14 tw-text-neutrals-600 md:tw-block">
  16. {{ item.Region.RegionName ? item.Region.RegionName + " . " : "" }}
  17. {{ item.Country.CountryName ? item.Country.CountryName + " . " : "" }}
  18. {{ item.City.CityName ? item.City.CityName : "" }}
  19. </div>
  20. </div>
  21. <div class="md:tw-mt-[14px] md:tw-flex md:tw-justify-between md:tw-items-center">
  22. <div class="time te-text-[#ee9546] t12 tw-mt-[8px] md:t16 md:tw-font-medium md:tw-mt-0">
  23. {{ formatDate(item.StartDate) }}
  24. ~
  25. {{ formatDate(item.EndDate) }}
  26. </div>
  27. <div class="tw-mt-[14px] tw-text-right md:tw-mt-0 tw-flex ">
  28. <span class="t14 tw-text-neutrals-500 tw-mr-[10px] tw-flex">
  29. <v-img class="tw-flex-none" max-width="14" :src="require(`@/assets/svg/u_users-alt.svg`)"></v-img>
  30. <span class="t14 tw-text-neutrals-500 tw-ml-[6px] md:tw-ml-[10px]">{{item.VisitorCount}}</span>
  31. </span>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </template>
  38. <script>
  39. import { formatDate, dateCountDown } from "~/utils/assist";
  40. import VClamp from "vue-clamp";
  41. export default {
  42. props: {
  43. item: {
  44. type: Object,
  45. },
  46. },
  47. components: {
  48. VClamp,
  49. },
  50. created() {
  51. // this.days = this.dateCountDown(this.$props.item.startdate);
  52. },
  53. data() {
  54. return {
  55. days: 1,
  56. };
  57. },
  58. methods: {
  59. formatDate,
  60. dateCountDown,
  61. goToExhibition(){
  62. this.$router.push(this.localePath(`/exhibition/${this.item.ExhibitionID}`));
  63. }
  64. },
  65. };
  66. </script>
  67. <style lang="scss" scoped>
  68. </style>