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.

114 lines
3.2 KiB

2 years ago
  1. <template>
  2. <v-card
  3. class="border-neutrals-dark2 border-radius-20 elevation-0 mx-5 my-sm-2 text-size-12"
  4. width="388px"
  5. height="165px"
  6. >
  7. <v-row>
  8. <v-col cols="3">
  9. <unicon
  10. class="mt-5 ml-6"
  11. width="14"
  12. height="20"
  13. name="bookmark"
  14. fill="#F5CDA8"
  15. />
  16. <v-img
  17. class="mt-n2 ml-4"
  18. :src="item.logo"
  19. width="90px"
  20. height="65px"
  21. ></v-img>
  22. </v-col>
  23. <v-col cols="9">
  24. <span
  25. v-if="item.isRecommend == false"
  26. width="auto"
  27. class="my-1 px-2 neutrals--text primary recommend-tag no-text-transform text-size-8 text-space-1 rounded-xl d-inline-block border-primary-light"
  28. >
  29. <unicon fill="#FEFEFE" name="award" width="8px" height="8px"></unicon>
  30. {{ $t("recommend") }}
  31. </span>
  32. <span
  33. v-if="Object.keys(item.status).length != 0"
  34. class="my-1 px-2 neutrals primary--text recommend-tag no-text-transform text-size-8 text-space-1 elevation-0 rounded-xl d-inline-block border-primary-light"
  35. >
  36. {{ item.status ? item.status.name : "" }}
  37. </span>
  38. <div class="my-1">
  39. <b>{{ item.name }}</b>
  40. </div>
  41. <div class="my-1text-size-10 neutrals--text text--darken-3">
  42. {{ item.region ? item.region.name : "" }}{{
  43. item.city ? item.city.name : ""
  44. }}{{ item.country ? item.country.name : "" }}
  45. </div>
  46. <div>
  47. <div>
  48. <span
  49. class="my-1 px-2 primary--text no-text-transform text-space-1 text-size-10 elevation-0 d-inline-block rounded-xl border-primary-nude"
  50. v-for="(category, index) in item.categories"
  51. :key="index"
  52. >
  53. {{ category.name ? category.name : "" }}
  54. </span>
  55. </div>
  56. </div>
  57. <div class="my-1">
  58. <!-- {{ item.startdate ? item.startdate.replaceAll("-", ".") : "" }} -
  59. {{ item.enddate ? item.enddate.replaceAll("-", ".") : "" }} -->
  60. </div>
  61. <div
  62. class="my-1 neutrals--text text--darken-3"
  63. v-html="
  64. $t('Coming Soon in day', {
  65. days:
  66. '<b style=\'color: #ef5a5a\'>' +
  67. dateCountDown(item.startdate) +
  68. '</b>',
  69. })
  70. "
  71. ></div>
  72. </v-col>
  73. </v-row>
  74. </v-card>
  75. </template>
  76. <script>
  77. import { dateCountDown } from "~/utils/assist";
  78. export default {
  79. name: "ExhibitionYouMightLike",
  80. methods: {
  81. dateCountDown,
  82. },
  83. props: {
  84. item: {
  85. type: Object,
  86. default: () => ({
  87. name: "",
  88. logo: "",
  89. category: {},
  90. status: [],
  91. isRecommend: false,
  92. startdate: "",
  93. enddate: "",
  94. region: {},
  95. city: {},
  96. country: {},
  97. }),
  98. },
  99. },
  100. };
  101. </script>
  102. <style lang="scss" scoped>
  103. .border-primary-light {
  104. border: 1px solid #f5cda8 !important;
  105. }
  106. .border-primary-nude {
  107. border: 1px solid #f7ede4 !important;
  108. }
  109. .border-neutrals-dark2 {
  110. border: 1px solid #e5e5e5 !important;
  111. }
  112. </style>