1405/04/10-fix bugs

This commit is contained in:
2026-07-01 18:16:12 +03:30
parent 4fa2c0d57d
commit c3aaeaf91a
33 changed files with 832 additions and 1051 deletions
@@ -1,18 +1,20 @@
<template>
<div>
<div :style="{ backgroundImage: `url(${img})` }" class="fixed top-0 right-0 left-0 bottom-0"></div>
<div class="absolute inset-0 bg-cover bg-center opacity-60"></div>
<div
class="bg-white w-full transaction-list py-3 px-3 font-bold drop-shadow flex justify-between z-10"
>
<div>لیست تراکنش ها</div>
<BasicIcon icon="vuesax-linear:filter" @click="showFilter = true" />
<div class="mobile-transactions-view">
<div class="mobile-page-bg" aria-hidden="true">
<img :src="img" alt="" />
</div>
<MobilePageHeader title="لیست تراکنش ها">
<template #trailing>
<button type="button" class="mobile-transactions-view__filter" @click="showFilter = true">
<BasicIcon icon="vuesax-linear:filter" />
</button>
</template>
</MobilePageHeader>
<div
ref="el"
:class="loading ? 'h-screen' : ''"
class="px-3 pt-16 pb-4"
style="max-height: calc(100vh - 50px)"
class="mobile-transactions-view__content mpage-content px-3 pb-[calc(var(--app-bottom-chrome-height)+1rem)]"
>
<list-anim v-if="!loading">
<Item v-for="item in items" :key="item.id" :item="item" />
@@ -22,7 +24,7 @@
<TransactionSkeleton v-if="loadingMore" class="mt-1 mb-8" />
</list-anim>
<TransactionSkeleton v-for="i in 13" v-else :key="i" class="mt-1" />
<div v-if="items.length <= 0 && !loading" class="flex flex-col items-center justify-center h-80vh">
<div v-if="items.length <= 0 && !loading" class="flex flex-col items-center justify-center min-h-[50vh]">
<DotLottieVue
class="w-11rem h-11rem"
autoplay
@@ -31,9 +33,10 @@
<div class="font-bold">{{ emptyText }}</div>
</div>
</div>
<BasicActionSheet v-model:show="showFilter">
<div class="font-bold text-lg">فیلتر</div>
<div class="pb-20 mt-5">
<div class="pb-10 mt-5">
<a-form-item class="w-full gap-2 !flex-col" label="تاریخ" name="password">
<BaseDatePicker v-model:value="dateFilter" class="w-full" size="large" />
</a-form-item>
@@ -54,6 +57,7 @@ import BasicButton from '@/components/BasicPacks/BasicButton.vue'
import BaseDatePicker from '@/components/BasicPacks/BaseDatePicker/src/BaseDatePicker.vue'
import ListAnim from '@/components/ListAnim.vue'
import TransactionSkeleton from '@/components/TransactionSkeleton.vue'
import MobilePageHeader from '@/layouts/components/MobilePageHeader.vue'
import { DotLottieVue } from '@lottiefiles/dotlottie-vue'
import img from '@/assets/img/user_ly1.svg'
import { useTransactionsPageContext } from '../composables/useTransactionsPage'
@@ -71,14 +75,27 @@ const {
</script>
<style scoped lang="less">
.transaction-list {
position: fixed;
right: 0;
left: 0;
@media screen and (min-width: 426px) {
width: 426px;
left: auto;
right: auto;
}
.mobile-transactions-view {
position: relative;
min-height: 100%;
}
.mobile-transactions-view__content {
position: relative;
z-index: 1;
padding-inline: 0.75rem;
box-sizing: border-box;
}
.mobile-transactions-view__filter {
display: inline-flex;
align-items: center;
justify-content: center;
border: none;
background: transparent;
padding: 0;
color: inherit;
cursor: pointer;
font-family: inherit;
}
</style>