fix bugs of UI
This commit is contained in:
+12
-2
@@ -78,7 +78,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="!showSplash"
|
v-if="!showSplash"
|
||||||
class="app-credit-footer flex bg-white justify-center text-[9px] fixed left-0 right-0"
|
class="app-credit-footer flex bg-white justify-center text-[9px]"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="https://montzar.ir"
|
href="https://montzar.ir"
|
||||||
@@ -168,11 +168,21 @@ function update() {
|
|||||||
--app-credit-bar-inner: 28px;
|
--app-credit-bar-inner: 28px;
|
||||||
--app-safe-bottom: env(safe-area-inset-bottom, 0px);
|
--app-safe-bottom: env(safe-area-inset-bottom, 0px);
|
||||||
--app-credit-footer-offset: calc(var(--app-credit-bar-inner) + var(--app-safe-bottom));
|
--app-credit-footer-offset: calc(var(--app-credit-bar-inner) + var(--app-safe-bottom));
|
||||||
|
--app-nav-height: 80px;
|
||||||
|
--app-bottom-chrome-height: calc(var(--app-nav-height) + var(--app-credit-footer-offset));
|
||||||
|
--app-add-card-height: 88px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-credit-footer {
|
.app-credit-footer {
|
||||||
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 1000;
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 426px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
z-index: 1000000;
|
||||||
min-height: var(--app-credit-bar-inner);
|
min-height: var(--app-credit-bar-inner);
|
||||||
padding-bottom: var(--app-safe-bottom);
|
padding-bottom: var(--app-safe-bottom);
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="config.config.name === 'garoosi'" class="wrap-fix bottom-0 px-10 py-6 flex gap-2 bg-white">
|
<div v-if="config.config.name === 'garoosi'" class="wrap-fix bottom-0 px-10 pb-3rem flex gap-2 bg-white">
|
||||||
<a class="w-full" href="tel:09306612518">
|
<a class="w-full" href="tel:09306612518">
|
||||||
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
||||||
</a>
|
</a>
|
||||||
@@ -48,13 +48,13 @@
|
|||||||
<img src="@/assets/img/bale.png" alt="" class="h-10 w-10"/>
|
<img src="@/assets/img/bale.png" alt="" class="h-10 w-10"/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="wrap-fix bottom-0 px-10 py-6 flex gap-2 bg-white">
|
<div v-else class="wrap-fix bottom-0 px-10 pb-3rem flex gap-2 bg-white">
|
||||||
<a class="w-full" href="tel:09306612518">
|
<a class="w-full" href="tel:">
|
||||||
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
||||||
</a>
|
</a>
|
||||||
<!-- <a href="https://t.me/saminn_gold">-->
|
<a href="https://ble.ir/">
|
||||||
<img src="@/assets/img/telegram.png" alt="" class="h-10 w-10"/>
|
<img src="@/assets/img/bale.png" alt="" class="h-10 w-10"/>
|
||||||
<!-- </a>-->
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<div ref="el" :class="loading? 'h-screen': ''" class="px-3 pt-16 pb-2 overflow-y-scroll"
|
<div ref="el" :class="loading? 'h-screen': ''" class="px-3 pt-16 pb-2 overflow-y-scroll"
|
||||||
style="max-height: calc(100vh - 50px)">
|
style="max-height: calc(100vh - 50px)">
|
||||||
|
|
||||||
<list-anim v-if="!loading" class="pb-12vh">
|
<list-anim v-if="!loading" class="pb-[calc(var(--app-bottom-chrome-height)+var(--app-add-card-height)+1rem)]">
|
||||||
<Item v-for="item in items" :key="item.id" :item="item" @edit="openEdit" @refresh="initItems" />
|
<Item v-for="item in items" :key="item.id" :item="item" @edit="openEdit" @refresh="initItems" />
|
||||||
<!-- <TransactionSkeleton v-if="loadingMore" class="mt-1 mb-8" />-->
|
<!-- <TransactionSkeleton v-if="loadingMore" class="mt-1 mb-8" />-->
|
||||||
</list-anim>
|
</list-anim>
|
||||||
@@ -67,12 +67,13 @@
|
|||||||
>
|
>
|
||||||
<BasicTextArea placeholder="آدرس کامل را وارد نمایید" v-model:value="address.address" />
|
<BasicTextArea placeholder="آدرس کامل را وارد نمایید" v-model:value="address.address" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</div>
|
<!-- <div class=" w-full pb-5 !text-white flex justify-center items-center">-->
|
||||||
<div class="fixed bottom-18 w-full pb-5 !text-white bg-white flex justify-center items-center">
|
<BasicButton class=" !text-white px-3 pb-4rem" type="primary" @click="handleOk">ثبت آدرس
|
||||||
<BasicButton class=" w-full !text-white mx-5 mb-2rem" type="primary" @click="handleOk">ثبت آدرس
|
|
||||||
</BasicButton>
|
</BasicButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- </div>-->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</a-form>
|
</a-form>
|
||||||
|
|
||||||
@@ -81,15 +82,16 @@
|
|||||||
@click="openAdd()">
|
@click="openAdd()">
|
||||||
<BasicIcon icon="vuesax-linear:add" color="white" />
|
<BasicIcon icon="vuesax-linear:add" color="white" />
|
||||||
</div>-->
|
</div>-->
|
||||||
<Transition mode="out-in" name="fade">
|
<Teleport to="body">
|
||||||
<div
|
<div
|
||||||
class="wrap-fix bottom-6 h-[16vh] bg-[#FBFBFC] shadow-lg rounded-3xl flex justify-center pt-3 z-200"
|
v-if="!addAddressVisible"
|
||||||
style="box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 26px 11px"
|
class="add-address app-dock-add-bar"
|
||||||
@click="openAdd()">
|
@click="openAdd()"
|
||||||
<BasicIcon icon="vuesax-linear:add" />
|
>
|
||||||
<div>افزودن آدرس جدید</div>
|
<div>افزودن آدرس جدید</div>
|
||||||
|
<BasicIcon icon="vuesax-linear:add" />
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
</Teleport>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="flex flex-col gap-4 pt-13 pb-35 px-2">
|
<div class="flex flex-col gap-4 pt-13 px-2 pb-[calc(var(--app-bottom-chrome-height)+var(--app-add-card-height)+1rem)]">
|
||||||
<RequestItem v-for="item in requestItems" :item="item"></RequestItem>
|
<RequestItem v-for="item in requestItems" :item="item"></RequestItem>
|
||||||
</div>
|
</div>
|
||||||
<Transition mode="out-in" name="fade">
|
<Teleport to="body">
|
||||||
<div
|
<div class="add-request app-dock-add-bar" @click="openAdd()">
|
||||||
class="wrap-fix bottom-0 h-[19vh] bg-[#FBFBFC] shadow-lg rounded-3xl flex justify-center pt-3 z-200"
|
<div>افزودن درخواست جدید</div>
|
||||||
style="box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 26px 11px"
|
|
||||||
@click="openAdd()">
|
|
||||||
<BasicIcon icon="vuesax-linear:add" />
|
<BasicIcon icon="vuesax-linear:add" />
|
||||||
<div class="cursor-pointer">افزودن درخواست جدید</div>
|
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
</Teleport>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<div ref="el" :class="loading? 'h-screen': ''" class="px-3 pt-16 pb-2 overflow-y-scroll"
|
<div ref="el" :class="loading? 'h-screen': ''" class="px-3 pt-16 pb-2 overflow-y-scroll"
|
||||||
style="max-height: calc(100vh - 50px)">
|
style="max-height: calc(100vh - 50px)">
|
||||||
|
|
||||||
<list-anim v-if="!loading" class="pb-12vh">
|
<list-anim v-if="!loading" class="pb-[calc(var(--app-bottom-chrome-height)+var(--app-add-card-height)+1rem)]">
|
||||||
<Item v-for="item in items" :key="item.id" :item="item" @edit="openEdit" @refresh="initItems" />
|
<Item v-for="item in items" :key="item.id" :item="item" @edit="openEdit" @refresh="initItems" />
|
||||||
<!-- <TransactionSkeleton v-if="loadingMore" class="mt-1 mb-8" />-->
|
<!-- <TransactionSkeleton v-if="loadingMore" class="mt-1 mb-8" />-->
|
||||||
</list-anim>
|
</list-anim>
|
||||||
@@ -56,15 +56,16 @@
|
|||||||
@click="openAdd()">
|
@click="openAdd()">
|
||||||
<BasicIcon icon="vuesax-linear:add" color="white" />
|
<BasicIcon icon="vuesax-linear:add" color="white" />
|
||||||
</div>-->
|
</div>-->
|
||||||
<Transition mode="out-in" name="fade">
|
<Teleport to="body">
|
||||||
<div
|
<div
|
||||||
class="wrap-fix bottom-6 h-[16vh] bg-[#FBFBFC] shadow-lg rounded-3xl flex justify-center pt-3 z-200"
|
v-if="!addTriggerVisible"
|
||||||
style="box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 26px 11px"
|
class="add-trigger app-dock-add-bar"
|
||||||
@click="openAdd()">
|
@click="openAdd()"
|
||||||
<BasicIcon icon="vuesax-linear:add" />
|
>
|
||||||
<div>افزودن هشدار جدید</div>
|
<div>افزودن هشدار جدید</div>
|
||||||
|
<BasicIcon icon="vuesax-linear:add" />
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
</Teleport>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -154,15 +154,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wrap-fix bottom-0 px-10 py-6 flex gap-2 bg-white">
|
<div v-if="config.config.name === 'garoosi'" class="wrap-fix bottom-0 px-10 pb-3rem flex gap-2 bg-white">
|
||||||
<!-- <BasicButton type="primary" @click="$router.push({name: 'permissions'})">
|
|
||||||
<div>مجوز ها</div>
|
|
||||||
</BasicButton>-->
|
|
||||||
<!-- <a href="https://t.me/saminn_gold">-->
|
|
||||||
<!-- <img src="@/assets/img/telegram.png" alt="" class="h-10 w-10"/>-->
|
|
||||||
<!-- </a>-->
|
|
||||||
|
|
||||||
<!-- garoosi-->
|
|
||||||
<a class="w-full" href="tel:09306612518">
|
<a class="w-full" href="tel:09306612518">
|
||||||
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
||||||
</a>
|
</a>
|
||||||
@@ -170,6 +162,14 @@
|
|||||||
<img src="@/assets/img/bale.png" alt="" class="h-10 w-10"/>
|
<img src="@/assets/img/bale.png" alt="" class="h-10 w-10"/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else class="wrap-fix bottom-0 px-10 pb-3rem flex gap-2 bg-white">
|
||||||
|
<a class="w-full" href="tel:">
|
||||||
|
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
||||||
|
</a>
|
||||||
|
<a href="https://ble.ir/">
|
||||||
|
<img src="@/assets/img/bale.png" alt="" class="h-10 w-10"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <ActionSheet v-model:show="editPassVisible">salam</ActionSheet>-->
|
<!-- <ActionSheet v-model:show="editPassVisible">salam</ActionSheet>-->
|
||||||
@@ -194,7 +194,7 @@ import { updateMe } from '@/api/me'
|
|||||||
import { useUserStore } from '@/store/userStore'
|
import { useUserStore } from '@/store/userStore'
|
||||||
import BaseDatePicker from '@/components/BasicPacks/BaseDatePicker'
|
import BaseDatePicker from '@/components/BasicPacks/BaseDatePicker'
|
||||||
import {useConfigStore} from "../../../store/configStore";
|
import {useConfigStore} from "../../../store/configStore";
|
||||||
|
const config=useConfigStore()
|
||||||
const userFormState = ref<User>({
|
const userFormState = ref<User>({
|
||||||
fname: '',
|
fname: '',
|
||||||
lname: '',
|
lname: '',
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<div class=" font-bold text-sm text-primary text-center">جواز کسب و کار</div>
|
<div class=" font-bold text-sm text-primary text-center">جواز کسب و کار</div>
|
||||||
<!-- <img :src="permission1" alt="" class="w-full">-->
|
<!-- <img :src="permission1" alt="" class="w-full">-->
|
||||||
<div class="mt-5 text-xs"></div>
|
<div class="mt-5 text-xs"></div>
|
||||||
<div v-if="config.config.name === 'garoosi'" class="wrap-fix bottom-0 px-2 py-6 flex gap-2 bg-white">
|
<div v-if="config.config.name === 'garoosi'" class="wrap-fix bottom-0 px-10 pb-3rem flex gap-2 bg-white">
|
||||||
<a class="w-full" href="tel:09306612518">
|
<a class="w-full" href="tel:09306612518">
|
||||||
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
||||||
</a>
|
</a>
|
||||||
@@ -24,13 +24,13 @@
|
|||||||
<img src="@/assets/img/bale.png" alt="" class="h-10 w-10"/>
|
<img src="@/assets/img/bale.png" alt="" class="h-10 w-10"/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="wrap-fix bottom-0 px-2 py-6 flex gap-2 bg-white">
|
<div v-else class="wrap-fix bottom-0 px-10 pb-3rem flex gap-2 bg-white">
|
||||||
<!-- <a href="https://t.me/saminn_gold">-->
|
<a class="w-full" href="tel:">
|
||||||
<img src="@/assets/img/telegram.png" alt="" class="h-10 w-10"/>
|
|
||||||
<!-- </a>-->
|
|
||||||
<!-- <a class="w-full" href="tel:09306612518">-->
|
|
||||||
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
<BasicButton class="w-full" type="primary">تماس با پشتیبانی</BasicButton>
|
||||||
<!-- </a>-->
|
</a>
|
||||||
|
<a href="https://ble.ir/">
|
||||||
|
<img src="@/assets/img/bale.png" alt="" class="h-10 w-10"/>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
<a-divider class="!my-3" />
|
<a-divider class="!my-3" />
|
||||||
<BasicActionSheet v-model:show="infoVisible">
|
<BasicActionSheet v-model:show="infoVisible">
|
||||||
<div class="font-bold text-lg">{{ props.item.title }}</div>
|
<div class="font-bold text-lg">{{ props.item.title }}</div>
|
||||||
<div class="pb-20 mt-5">
|
<div class="mb-8rem mt-5">
|
||||||
<div class="flex justify-between mb-3">
|
<div class="flex justify-between mb-3">
|
||||||
<div class="text-primary">مبلغ:</div>
|
<div class="text-primary">مبلغ:</div>
|
||||||
<div :class="item.cash > 0? 'text-green-600' : 'text-red-600'" class="flex text-xs items-center number-ltr">
|
<div :class="item.cash > 0? 'text-green-600' : 'text-red-600'" class="flex text-xs items-center number-ltr">
|
||||||
|
|||||||
@@ -226,7 +226,7 @@
|
|||||||
</BasicActionSheet>
|
</BasicActionSheet>
|
||||||
<BasicActionSheet v-model:show="editPasswordVisible">
|
<BasicActionSheet v-model:show="editPasswordVisible">
|
||||||
<div class="font-bold text-lg">ویرایش رمزعبور</div>
|
<div class="font-bold text-lg">ویرایش رمزعبور</div>
|
||||||
<div class="h30vh overflow-y-auto pb20">
|
<div class="h35vh overflow-y-auto">
|
||||||
<a-form
|
<a-form
|
||||||
ref="formPassRef"
|
ref="formPassRef"
|
||||||
:model="userPassForm"
|
:model="userPassForm"
|
||||||
@@ -246,8 +246,7 @@
|
|||||||
{{ guideTypePassword.text }}
|
{{ guideTypePassword.text }}
|
||||||
</div>
|
</div>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item>
|
<div class=" md:w-[395px] pt-3rem px-3">
|
||||||
<div class="wrap-fix md:w-[395px] bottom-5 px-3">
|
|
||||||
<BasicButton
|
<BasicButton
|
||||||
:disabled="loading"
|
:disabled="loading"
|
||||||
class="w-full py-2 mb-20"
|
class="w-full py-2 mb-20"
|
||||||
@@ -260,7 +259,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</BasicButton>
|
</BasicButton>
|
||||||
</div>
|
</div>
|
||||||
</a-form-item>
|
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
</BasicActionSheet>
|
</BasicActionSheet>
|
||||||
@@ -280,7 +278,7 @@ import {
|
|||||||
requireNationalCode,
|
requireNationalCode,
|
||||||
passwordRules,
|
passwordRules,
|
||||||
guideTypePassword,
|
guideTypePassword,
|
||||||
isValidPersian,
|
isValidPersian
|
||||||
} from '@/utils/inputRules'
|
} from '@/utils/inputRules'
|
||||||
import BasicInput from '@/components/BasicPacks/BasicInput.vue'
|
import BasicInput from '@/components/BasicPacks/BasicInput.vue'
|
||||||
import type { User, Password } from '@/models/login'
|
import type { User, Password } from '@/models/login'
|
||||||
@@ -291,8 +289,8 @@ import {message} from 'ant-design-vue'
|
|||||||
import { updateMe, updatePass } from '@/api/me'
|
import { updateMe, updatePass } from '@/api/me'
|
||||||
import { useUserStore } from '@/store/userStore'
|
import { useUserStore } from '@/store/userStore'
|
||||||
import BaseDatePicker from '@/components/BasicPacks/BaseDatePicker'
|
import BaseDatePicker from '@/components/BasicPacks/BaseDatePicker'
|
||||||
import {useConfigStore} from "@/store/configStore";
|
import { useConfigStore } from '@/store/configStore'
|
||||||
import {getConfigApp} from "../../../utils/config";
|
import { getConfigApp } from '../../../utils/config'
|
||||||
|
|
||||||
const userFormState = ref<User>({
|
const userFormState = ref<User>({
|
||||||
fname: '',
|
fname: '',
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-5 pt-26 pb-2">
|
<div class="px-5 pt-26" :class="isDeposit ? 'pb-2' : 'pb-[calc(var(--app-bottom-chrome-height)+var(--app-add-card-height)+1rem)]'">
|
||||||
<a-form :model="form" class="!mt-5" name="basic" @finish="ok()">
|
<a-form :model="form" class="!mt-5" name="basic" @finish="ok()">
|
||||||
<div class="border-gray-200 border-1 rounded-xl p-5 trans h-40 relative">
|
<div class="border-gray-200 border-1 rounded-xl p-5 trans h-40 relative">
|
||||||
<bg_main />
|
<bg_main />
|
||||||
@@ -118,18 +118,8 @@
|
|||||||
<!-- <Slider/>-->
|
<!-- <Slider/>-->
|
||||||
<Transition mode="out-in" name="fade">
|
<Transition mode="out-in" name="fade">
|
||||||
<template v-if="!isDeposit">
|
<template v-if="!isDeposit">
|
||||||
<!-- <MySlider v-if="cardItems.length > 0" :items="cardItems" class="mt-[5vh] pb-[25vh] mb-[16vh]"
|
|
||||||
style="touch-action: none"/>-->
|
|
||||||
<CardSlider
|
|
||||||
v-if="cardItems.length > 0"
|
|
||||||
:items="cardItems"
|
|
||||||
v-model:id="form.card_id"
|
|
||||||
class="card-slider-wrap mt-[2vh] px-3 fixed bottom-10 right-0 left-0"
|
|
||||||
style="touch-action: none"
|
|
||||||
@cardDeleted="getCards"
|
|
||||||
/>
|
|
||||||
<div
|
<div
|
||||||
v-else-if="!loading && cardItems.length === 0"
|
v-if="!loading && cardItems.length === 0"
|
||||||
class="h-30 flex items-center justify-center"
|
class="h-30 flex items-center justify-center"
|
||||||
>
|
>
|
||||||
هیچ کارتی یافت نشد
|
هیچ کارتی یافت نشد
|
||||||
@@ -137,15 +127,28 @@
|
|||||||
</template>
|
</template>
|
||||||
</Transition>
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
<Transition mode="out-in" name="fade">
|
|
||||||
|
<Teleport to="body">
|
||||||
|
<CardSlider
|
||||||
|
v-if="!isDeposit && cardItems.length > 0"
|
||||||
|
v-model:id="form.card_id"
|
||||||
|
:items="cardItems"
|
||||||
|
class="card-slider-wrap wallet-card-slider"
|
||||||
|
@cardDeleted="getCards"
|
||||||
|
/>
|
||||||
|
</Teleport>
|
||||||
|
|
||||||
|
<Teleport to="body">
|
||||||
<div
|
<div
|
||||||
v-if="!isDeposit"
|
v-if="!isDeposit && !showAddCard"
|
||||||
class="add-card fixed bottom-0 h-[18vh] bg-[#FBFBFC] w-full shadow-lg rounded-3xl flex justify-center pt-3 z-200"
|
class="add-card app-dock-add-bar"
|
||||||
style="box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 26px 11px"
|
|
||||||
@click="showAddCard = true"
|
@click="showAddCard = true"
|
||||||
>
|
>
|
||||||
<div>افزودن کارت جدید</div>
|
<div>افزودن کارت جدید</div>
|
||||||
<BasicIcon icon="vuesax-linear:add" />
|
<BasicIcon icon="vuesax-linear:add" />
|
||||||
|
</div>
|
||||||
|
</Teleport>
|
||||||
|
|
||||||
<BasicActionSheet v-model:show="showAddCard" class="!max-h-[95vh]">
|
<BasicActionSheet v-model:show="showAddCard" class="!max-h-[95vh]">
|
||||||
<div class="font-bold text-lg">افزودن کارت</div>
|
<div class="font-bold text-lg">افزودن کارت</div>
|
||||||
<div class="mt-4 text-red-600 font-bold">توجه : حتما شماره کارت صاحب حساب نرم افزار وارد شود.</div>
|
<div class="mt-4 text-red-600 font-bold">توجه : حتما شماره کارت صاحب حساب نرم افزار وارد شود.</div>
|
||||||
@@ -200,12 +203,10 @@
|
|||||||
<a-spin v-if="loading" size="small" />
|
<a-spin v-if="loading" size="small" />
|
||||||
<div v-else>ثبت</div>
|
<div v-else>ثبت</div>
|
||||||
</BasicButton>
|
</BasicButton>
|
||||||
<BasicButton class="w-full mt-2" @click="showAddCard = false">بازگشت</BasicButton>
|
<BasicButton class="w-full mt-2 mb-8" @click="showAddCard = false">بازگشت</BasicButton>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
</BasicActionSheet>
|
</BasicActionSheet>
|
||||||
</div>
|
|
||||||
</Transition>
|
|
||||||
<DialogVant v-model:show="showConfirmCode" :closeOnClickOverlay="true" :timeOut="-1">
|
<DialogVant v-model:show="showConfirmCode" :closeOnClickOverlay="true" :timeOut="-1">
|
||||||
<template v-slot:title>
|
<template v-slot:title>
|
||||||
<div>
|
<div>
|
||||||
@@ -315,7 +316,6 @@
|
|||||||
پیام به پشتیبانی
|
پیام به پشتیبانی
|
||||||
</a>
|
</a>
|
||||||
</BasicButton>
|
</BasicButton>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="text-center">
|
<div v-else class="text-center">
|
||||||
<div class=" font-bold text-red-600">مشتریان گرامی</div>
|
<div class=" font-bold text-red-600">مشتریان گرامی</div>
|
||||||
@@ -729,10 +729,4 @@ async function handleOnComplete(value: string) {
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 426px) {
|
|
||||||
.add-card {
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+5
-1
@@ -6,7 +6,11 @@ import {
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
shortcuts: [
|
shortcuts: [
|
||||||
// ...
|
['wallet-dock-width', 'fixed inset-x-0 w-full max-w-[426px] mx-auto left-0 right-0'],
|
||||||
|
/* z-index زیر منو (5000)؛ fixed تا با اسکرول جابهجا نشود */
|
||||||
|
['app-dock-add-bar', 'wallet-dock-width !fixed bottom-[var(--app-bottom-chrome-height)] z-[4500] h-[var(--app-add-card-height)] flex items-center justify-center gap-1 rounded-t-3xl bg-[#FBFBFC] shadow-[0_1px_26px_11px_rgba(0,0,0,0.1)] cursor-pointer'],
|
||||||
|
['wallet-add-card-bar', 'app-dock-add-bar'],
|
||||||
|
['wallet-card-slider', 'wallet-dock-width !fixed bottom-[calc(var(--app-bottom-chrome-height)+var(--app-add-card-height))] z-[4500] px-3 touch-none'],
|
||||||
],
|
],
|
||||||
theme: {
|
theme: {
|
||||||
colors: {
|
colors: {
|
||||||
|
|||||||
Reference in New Issue
Block a user