1405/04/10-fix bugs
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="bg-white w-full py-3 px-3 text-black font-bold drop-shadow fixed md:absolute top-0 flex h-12 z-20">
|
||||
<div @click="goBack()">
|
||||
<div class="fund-mobile-root">
|
||||
<div
|
||||
class="fund-mobile-root__header bg-white w-full mobile-top-chrome px-3 pb-3 text-primary font-bold drop-shadow flex min-h-12 z-20"
|
||||
>
|
||||
<div class="cursor-pointer" @click="goBack()">
|
||||
<BasicIcon icon="vuesax-linear:arrow-right-1" />
|
||||
</div>
|
||||
<div class="mr-2">دارایی ها</div>
|
||||
</div>
|
||||
<div class="bg-[#EFCED9] w-screen md:w-full h-[70vh] fixed md:absolute overflow-hidden">
|
||||
|
||||
<div class="fund-mobile-root__hero text-tertiary bg-primary">
|
||||
<img
|
||||
:src="fundHeaderBackground"
|
||||
alt=""
|
||||
class="mt-[-4rem] mr-10 max-w-[22rem] self-end pointer-events-none absolute bottom-0 left-0 opacity-20"
|
||||
class="fund-mobile-root__hero-bg"
|
||||
/>
|
||||
<div class="pt-15 flex flex-col relative z-10">
|
||||
<div class="text-gray-700 font-bold mr-5 z-20">موجودی دارایی ها</div>
|
||||
<div class="fund-mobile-root__hero-content flex flex-col">
|
||||
<div class="font-bold mr-5 z-20">موجودی دارایی ها</div>
|
||||
|
||||
<div
|
||||
v-if="meta?.has_count_based_products"
|
||||
@@ -59,14 +62,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pt-[20rem]">
|
||||
<div
|
||||
class="bg-gray-100 w-screen md:w-full z-20 relative rounded-t-3xl h-[calc(100vh-20rem-70px)] overflow-y-auto pb-15"
|
||||
style="box-shadow: 0px -2px 4px -2px #0000001a"
|
||||
>
|
||||
<div class="fund-mobile-root__scroll">
|
||||
<div class="fund-mobile-root__panel bg-gray-100 rounded-t-3xl">
|
||||
<div
|
||||
v-if="inventoryCards.length === 0 && !loading"
|
||||
class="w-full h-full flex justify-center items-center"
|
||||
class="w-full min-h-[40vh] flex justify-center items-center"
|
||||
>
|
||||
<div>
|
||||
<img :src="fundEmptyImage" alt="" class="w-70" />
|
||||
@@ -112,3 +112,60 @@ const {
|
||||
goBack,
|
||||
} = useFundPageContext()
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.fund-mobile-root {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1 1 0;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.fund-mobile-root__header {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.fund-mobile-root__hero {
|
||||
position: relative;
|
||||
flex: 0 0 auto;
|
||||
overflow: hidden;
|
||||
padding-bottom: 2.5rem;
|
||||
}
|
||||
|
||||
.fund-mobile-root__hero-bg {
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 0;
|
||||
width: 100%;
|
||||
opacity: 0.05;
|
||||
}
|
||||
|
||||
.fund-mobile-root__hero-content {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
padding: 1rem 0 0;
|
||||
}
|
||||
|
||||
.fund-mobile-root__scroll {
|
||||
position: relative;
|
||||
z-index: 20;
|
||||
flex: 1 1 0;
|
||||
min-height: 0;
|
||||
margin-top: -2rem;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overscroll-behavior-y: contain;
|
||||
}
|
||||
|
||||
.fund-mobile-root__panel {
|
||||
min-height: 100%;
|
||||
padding-bottom: calc(var(--app-bottom-chrome-height, 80px) + 1rem);
|
||||
box-shadow: 0 -2px 4px -2px #0000001a;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user