diff --git a/frontend/app.vue b/frontend/app.vue index d570ea3..8793e66 100644 --- a/frontend/app.vue +++ b/frontend/app.vue @@ -35,6 +35,6 @@ const closeModal = () => { /> - + diff --git a/frontend/assets/css/button.comp.css b/frontend/assets/css/button.comp.css index 76cf8de..d1bff66 100644 --- a/frontend/assets/css/button.comp.css +++ b/frontend/assets/css/button.comp.css @@ -53,7 +53,7 @@ } &:hover { - @apply bg-blue-200 border-blue-500 text-blue-500; + @apply bg-transparent border-blue-500 text-blue-500; svg[class~="iconify"] path { @apply stroke-blue-500; diff --git a/frontend/components/cart/checkout/Gateway.vue b/frontend/components/cart/checkout/Gateway.vue new file mode 100644 index 0000000..e38d385 --- /dev/null +++ b/frontend/components/cart/checkout/Gateway.vue @@ -0,0 +1,52 @@ + + + + + diff --git a/frontend/components/cart/delivery/AddressModal.vue b/frontend/components/cart/delivery/AddressModal.vue index c8a33f5..e71c1eb 100644 --- a/frontend/components/cart/delivery/AddressModal.vue +++ b/frontend/components/cart/delivery/AddressModal.vue @@ -43,6 +43,7 @@ const addressData = ref({ : address.value?.for_me == true ? "بله" : "خیر", + is_main: address.value?.is_main ?? false, }); // queries @@ -67,6 +68,7 @@ const closeModal = () => { name: "", phone: "", for_me: "بله", + is_main: false, }; } isShow.value = false; @@ -253,6 +255,16 @@ watch( class="flex items-center field-sizing-content resize-none bg-slate-50 border-slate-200 hover:border-black focus:border-black max-h-[10rem] text-black justify-between cursor-text transition-all border-[1.5px] gap-3 typo-label-md px-4 py-3.5 selection:bg-slate-100 rounded-100 outline-none flex-1 !text-sm placeholder-slate-400" > + +
+ + +
diff --git a/frontend/components/cart/global/CartSummary.vue b/frontend/components/cart/global/CartSummary.vue index fe35394..2172d2b 100644 --- a/frontend/components/cart/global/CartSummary.vue +++ b/frontend/components/cart/global/CartSummary.vue @@ -21,17 +21,19 @@ const discountCode = ref(cart.value?.discount_code?.code || ""); const { mutateAsync: submitDiscountCode, - isPending: submitDiscountCodeIsPending + isPending: submitDiscountCodeIsPending, } = useSubmitDiscountCode(); const { mutateAsync: deleteDiscountCode, - isPending: deleteDiscountCodeIsPending + isPending: deleteDiscountCodeIsPending, } = useDeleteDiscountCode(); // computed -const nextPage = computed(() => route.meta.nextPage as { name: string; label: string } | undefined); +const nextPage = computed( + () => route.meta.nextPage as { name: string; label: string } | undefined +); const hasSubmittedDiscountCode = computed(() => !!cart.value?.discount_code); @@ -48,11 +50,11 @@ const handleSubmitDiscountCode = () => { addToast({ message: "خطایی در ثبت کد تخفیف رخ داد", options: { - status: "error" - } + status: "error", + }, }); discountCode.value = ""; - } + }, } ); }; @@ -67,11 +69,11 @@ const handleDeleteDiscountCode = () => { addToast({ message: "خطایی در حذف کد تخفیف رخ داد", options: { - status: "error" - } + status: "error", + }, }); discountCode.value = ""; - } + }, }); }; diff --git a/frontend/components/global/Brands.vue b/frontend/components/global/Brands.vue index ca209e9..d8cfe08 100644 --- a/frontend/components/global/Brands.vue +++ b/frontend/components/global/Brands.vue @@ -12,42 +12,55 @@ const {} = toRefs(props);
- - Please sign in first + +
+ سلام دوست عزیز! +

+ من میتونم هر سوالی رو درمورد این محصول جواب بدم + اگه میخوای شروع کنیم روی دکمه زیر کلیک کن +

+
+ + +
diff --git a/frontend/components/product/ChatBox/ChatInput.vue b/frontend/components/product/ChatBox/ChatInput.vue index d59a17c..cb9a21f 100644 --- a/frontend/components/product/ChatBox/ChatInput.vue +++ b/frontend/components/product/ChatBox/ChatInput.vue @@ -7,6 +7,9 @@ import { useToast } from "~/composables/global/useToast"; // state +const route = useRoute(); +const id = route.params.id as string | number; + const { $queryClient: queryClient } = useNuxtApp(); const { addToast } = useToast(); @@ -27,7 +30,7 @@ const sendMessage = async () => { await createMessage({ new_message: value, - productId: 1, + productId: id, }); } catch (e) { addToast({ diff --git a/frontend/components/product/ChatBox/ChatMessage.vue b/frontend/components/product/ChatBox/ChatMessage.vue index 8728ebb..0c351f4 100644 --- a/frontend/components/product/ChatBox/ChatMessage.vue +++ b/frontend/components/product/ChatBox/ChatMessage.vue @@ -54,13 +54,12 @@ onMounted(() => { `#chat-message-content-${id.value}`, { text: "", - duration: 2.5, ease: "none", }, { text: { value: content.value, rtl: false }, - duration: 2.5, ease: "none", + duration: 2.5, onUpdate: () => emit("textUpdate"), } ); @@ -78,9 +77,9 @@ onMounted(() => {
- profile diff --git a/frontend/components/profile/index/ProfilePictureModal.vue b/frontend/components/profile/index/ProfilePictureModal.vue index 046e7a7..5674c7e 100644 --- a/frontend/components/profile/index/ProfilePictureModal.vue +++ b/frontend/components/profile/index/ProfilePictureModal.vue @@ -45,11 +45,11 @@ const { }); const avatars = ref([ - "/avatars/1.jpg", - "/avatars/2.jpg", - "/avatars/3.jpg", - "/avatars/4.jpg", - "/avatars/5.jpg", + "/img/avatars/1.jpg", + "/img/avatars/2.jpg", + "/img/avatars/3.jpg", + "/img/avatars/4.jpg", + "/img/avatars/5.jpg", ]); // queries @@ -134,11 +134,7 @@ onFileDialogChange((files: any) => {
- +