mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-10 07:34:24 +00:00
Merge branch 'main' of gitlab.com:openKMITL/little-lines/frontend
This commit is contained in:
commit
3869ea5e19
3 changed files with 11 additions and 45 deletions
|
@ -11,7 +11,6 @@
|
|||
|
||||
<v-list-item>
|
||||
<v-list-item-title class="title-text">{{nearestStructureData.display_name}}</v-list-item-title>
|
||||
<!-- <v-list-item-subtitle class="subtitle-text">{{destination.subTitle}}</v-list-item-subtitle> -->
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item>
|
||||
|
@ -37,18 +36,6 @@
|
|||
<v-list-item-title class="text-decoration-underline">{{nearestStructureData.lon}} , {{nearestStructureData.lat}}</v-list-item-title>
|
||||
</v-list-item>
|
||||
|
||||
<!-- <v-list-item>
|
||||
<template v-slot:prepend>
|
||||
<v-avatar>
|
||||
<img :src="detial[2].icon"
|
||||
class="icon"
|
||||
/>
|
||||
</v-avatar>
|
||||
</template>
|
||||
<v-list-item-title>{{detial[2].title}}</v-list-item-title>
|
||||
</v-list-item> -->
|
||||
|
||||
|
||||
</v-list>
|
||||
|
||||
<v-card-actions class="stick-bottom btnlist-height justify-sa">
|
||||
|
@ -206,11 +193,11 @@
|
|||
import findLocation from '../../icons/Material/find-location.svg';
|
||||
import clock from '../../icons/Material/clock.svg';
|
||||
import check from '../../icons/Material/check-round.svg';
|
||||
import DestinationInfoCard from '@/components/DestinationInfoCard.vue';
|
||||
const destination = {
|
||||
title: "อนุสาวรีย์ชัยสมรภูมิ",
|
||||
subTitle: "ราชเทวี , กรุงเทพมหานคร"
|
||||
}
|
||||
// import DestinationInfoCard from '@/components/DestinationInfoCard.vue';
|
||||
// const destination = {
|
||||
// title: "อนุสาวรีย์ชัยสมรภูมิ",
|
||||
// subTitle: "ราชเทวี , กรุงเทพมหานคร"
|
||||
// }
|
||||
const detial = [
|
||||
{
|
||||
icon: check,
|
||||
|
@ -243,7 +230,6 @@ export default {
|
|||
showRoute: false,
|
||||
userLocation: null,
|
||||
isLocationRequested: false,
|
||||
isRouting: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
@ -474,7 +460,6 @@ export default {
|
|||
|
||||
.destination-card .v-field__input
|
||||
{
|
||||
/* font-size: 14px; */
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,4 @@
|
|||
<template>
|
||||
<!-- <h1>Favorites</h1> -->
|
||||
<!-- แสดงข้อมูล favorites ตามความเหมาะสม -->
|
||||
<!-- <ul class="favorite-list">
|
||||
<li v-for="(favorite, index) in favorite" :key="index" class="favorite-item">
|
||||
{{ favorite.place_name }}
|
||||
</li>
|
||||
</ul> -->
|
||||
|
||||
<v-card
|
||||
class="mx-auto fav-card">
|
||||
|
||||
|
@ -32,13 +24,17 @@
|
|||
|
||||
<script>
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
const favorite = ref([]);
|
||||
const router = useRouter();
|
||||
|
||||
const handleClick = (favoriteItem) => {
|
||||
console.log('Clicked:', favoriteItem);
|
||||
router.push({ name: 'home', params: { favoriteLocation: favoriteItem } });
|
||||
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
|
@ -69,19 +65,6 @@ export default {
|
|||
</script>
|
||||
|
||||
<style>
|
||||
/* CSS เพื่อแสดงแต่ละข้อมูลเป็น block */
|
||||
/* .favorite-list {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.favorite-item {
|
||||
display: block;
|
||||
padding: 10px;
|
||||
border: 1px solid #ccc;
|
||||
margin-bottom: 5px;
|
||||
} */
|
||||
|
||||
.icon-pin{
|
||||
background-color: black;
|
||||
-webkit-mask: url(icons/Adwaita/pin.svg) no-repeat center;
|
||||
|
|
|
@ -114,9 +114,6 @@
|
|||
|
||||
|
||||
<script setup>
|
||||
|
||||
import searchbar from '@/components/searchbar.vue';
|
||||
import Popup from "@/components/Popup.vue"; // Import the Popup componen
|
||||
import { ref } from "vue";
|
||||
import axios from "axios";
|
||||
import DestinationInfoCard from '@/components/DestinationInfoCard.vue';
|
||||
|
@ -213,6 +210,7 @@ const handleRouting = (res) => {
|
|||
};
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
Loading…
Reference in a new issue