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.

89 lines
3.1 KiB

2 years ago
  1. <template>
  2. <div class="tw-min-w-full tw-min-h-full lg:tw-w-[908px] tw-bg-transparent tw-px-[30px] tw-py-[30px] lg:tw-py-5">
  3. <div class="md:tw-flex md:tw-justify-between md:tw-items-center tw-mb-[15px] md:tw-mb-[30px]">
  4. <h2 class="t18 title-icon-left tw-text-neutrals-black tw-mb-[15px] md:tw-mb-0 tw-py-[11px] md:tw-py-0">
  5. {{ $t("My Bookings") }}
  6. </h2>
  7. <div class="element tw-w-full md:tw-w-[320px]">
  8. <userSearchBar :input="{
  9. id: 'searchQuery',
  10. placeHolder: $t('Enter exhibitions, booking number ...'),
  11. type: 'text',
  12. }" :default="searchQuery" @change="searchQuery = $event"></userSearchBar>
  13. </div>
  14. </div>
  15. <bookingListContent :searchQuery="searchQuery"></bookingListContent>
  16. <section class="step sercion-6 tw-px-[30px] tw-w-full md:tw-px-0 xl:tw-col-span-2">
  17. <h2 class="title-icon-left t16 md:t20 xl:t18 xl:tw-font-bold">
  18. {{ $t("You might like ...") }}
  19. </h2>
  20. <userYouMightLike :list="youMightLikeList" :countrycode="countrycode" :regionName="regionName"></userYouMightLike>
  21. </section>
  22. </div>
  23. </template>
  24. <script>
  25. import userSearchBar from "@/components/user/userSearchBar.vue";
  26. import bookingListContent from "./bookingListContent.vue";
  27. import userYouMightLike from "./userYouMightLike.vue";
  28. export default {
  29. layout: "profile",
  30. components: {
  31. userSearchBar,
  32. bookingListContent,
  33. userYouMightLike,
  34. },
  35. data() {
  36. return {
  37. apiUrl: process.env.BASE_URL,
  38. searchQuery: "",
  39. youMightLikeList: [],
  40. countrycode: [],
  41. regionName: [],
  42. };
  43. },
  44. created() {
  45. // this.getLocationName();
  46. // this.getYouMightLikeData();
  47. },
  48. methods: {
  49. // async getLocationName() {
  50. // this.$axios
  51. // .get(
  52. // `${this.apiUrl}/t/exhibitions/locations?lang=${this.$i18n.localeProperties["langQuery"]}&sort=False`
  53. // )
  54. // .then((response) => {
  55. // this.regionName = response.data.region_ori;
  56. // this.countrycode = response.data.country_ori;
  57. // })
  58. // .catch((error) => console.log(error));
  59. // },
  60. // async getYouMightLikeData() {
  61. // this.youMightLikeList = [
  62. // {
  63. // package_photo: require("~/assets/img/serviceExample.png"),
  64. // countryName: "Taipei",
  65. // regionName: "Taiwan",
  66. // name: "Taipei Popular Sightseeing Private Car Charter: Jiufen, Pingxi, and North Coast",
  67. // },
  68. // {
  69. // package_photo: require("~/assets/img/serviceExample.png"),
  70. // countryName: "Taipei",
  71. // regionName: "Taiwan",
  72. // name: "Taipei Popular Sightseeing Private Car Charter: Jiufen, Pingxi, and North Coast",
  73. // },
  74. // {
  75. // package_photo: require("~/assets/img/serviceExample.png"),
  76. // countryName: "Taipei",
  77. // regionName: "Taiwan",
  78. // name: "Taipei Popular Sightseeing Private Car Charter: Jiufen, Pingxi, and North Coast",
  79. // },
  80. // ];
  81. // },
  82. },
  83. };
  84. </script>
  85. <style lang="scss" scoped>
  86. .title-icon-left {
  87. background-position: left 0px center;
  88. }
  89. </style>