Commit 44ca18b9 authored by shirlyn.guo's avatar shirlyn.guo 👌🏻

chore: 应用广场添加滚动条

parent 7bebc816
...@@ -8,7 +8,7 @@ import { ...@@ -8,7 +8,7 @@ import {
fetchGetMallCategoryList, fetchGetMallCategoryList,
} from '@/apis/application-square' } from '@/apis/application-square'
import type { PaginationInfo } from '@/components/custom-pagination/custom-pagination.vue' import type { PaginationInfo } from '@/components/custom-pagination/custom-pagination.vue'
import { PersonalAppConfigState } from '@/store/types/personal-app-config' import type { PersonalAppConfigState } from '@/store/types/personal-app-config'
import { useScroll } from '@vueuse/core' import { useScroll } from '@vueuse/core'
import { router } from '@/router' import { router } from '@/router'
import searchEmptyImage from '@/assets/images/search-empty.png' import searchEmptyImage from '@/assets/images/search-empty.png'
...@@ -105,7 +105,7 @@ function handleGetAgentApplicationList(update = false, search = false) { ...@@ -105,7 +105,7 @@ function handleGetAgentApplicationList(update = false, search = false) {
}) })
} }
function handleCollectOrCancelAgentApplication(id: number | undefined) { function handleCollectOrCancelAgentApplication(id: number) {
fetchCollectOrCancelAgentApplication(id).then(() => { fetchCollectOrCancelAgentApplication(id).then(() => {
handleGetAgentApplicationList(true) handleGetAgentApplicationList(true)
}) })
...@@ -129,7 +129,11 @@ function handleAddAgentApplications() { ...@@ -129,7 +129,11 @@ function handleAddAgentApplications() {
</script> </script>
<template> <template>
<div ref="cardContentWrapRef" class="flex h-full flex-col overflow-y-auto py-6" style="scrollbar-width: none"> <div
ref="cardContentWrapRef"
class="applications-square-content flex h-full flex-col overflow-y-auto py-6"
style="scrollbar-width: none"
>
<div class="mb-[19px] flex items-center justify-between"> <div class="mb-[19px] flex items-center justify-between">
<div class="flex flex-col"> <div class="flex flex-col">
<div class="flex items-center"> <div class="flex items-center">
...@@ -169,13 +173,18 @@ function handleAddAgentApplications() { ...@@ -169,13 +173,18 @@ function handleAddAgentApplications() {
<n-collapse-transition :show="isShowCarousel"> <n-collapse-transition :show="isShowCarousel">
<div> <div>
<n-carousel autoplay class="h-[280px] w-full rounded-[10px] object-cover 2xl:object-fill"> <n-carousel autoplay class="h-[280px] w-full rounded-[10px] object-cover 2xl:object-fill">
<img class="h-[280px] w-full cursor-pointer" src="@/assets/images/application-square-carousel.png" /> <img
<img class="h-[280px] w-full cursor-pointer" src="@/assets/images/application-square-carousel.png" /> class="h-[280px] w-full cursor-pointer object-cover"
src="@/assets/images/application-square-carousel.png"
/>
<img
class="h-[280px] w-full cursor-pointer object-cover"
src="@/assets/images/application-square-carousel.png"
/>
</n-carousel> </n-carousel>
</div> </div>
<div class="h-[20px] bg-[#f3f6f9]"></div> <div class="h-[20px] bg-[#f3f6f9]"></div>
</n-collapse-transition> </n-collapse-transition>
<div>
<div class="sticky top-[-30px] z-10"> <div class="sticky top-[-30px] z-10">
<div class="flex items-center rounded-[5px] bg-white py-[9px] pl-[9px]"> <div class="flex items-center rounded-[5px] bg-white py-[9px] pl-[9px]">
<button <button
...@@ -190,6 +199,8 @@ function handleAddAgentApplications() { ...@@ -190,6 +199,8 @@ function handleAddAgentApplications() {
</button> </button>
</div> </div>
</div> </div>
<n-scrollbar style="max-height: 920px">
<div>
<div class="mt-[14px] min-h-[800px]"> <div class="mt-[14px] min-h-[800px]">
<div class="flex justify-center"> <div class="flex justify-center">
<n-spin v-show="agentApplicationClassifyIsLoading" size="large" /> <n-spin v-show="agentApplicationClassifyIsLoading" size="large" />
...@@ -205,7 +216,7 @@ function handleAddAgentApplications() { ...@@ -205,7 +216,7 @@ function handleAddAgentApplications() {
class="mb-[20px] mr-[15px]" class="mb-[20px] mr-[15px]"
> >
<div <div
class="rounded-[10px]! bg-[#fff] px-[24px] pb-[20px] pt-[20px] shadow-[0_4px_10px_0px_rgba(103,103,103,.1)]" class="rounded-[10px]! max-w-[392px] bg-[#fff] px-[24px] pb-[20px] pt-[20px] shadow-[0_4px_10px_0px_rgba(103,103,103,.1)]"
> >
<div class="flex cursor-pointer justify-between"> <div class="flex cursor-pointer justify-between">
<div class="popover-trigger mr-[22px] text-[14px]"> <div class="popover-trigger mr-[22px] text-[14px]">
...@@ -245,9 +256,9 @@ function handleAddAgentApplications() { ...@@ -245,9 +256,9 @@ function handleAddAgentApplications() {
theme="two-tone" theme="two-tone"
size="18" size="18"
:fill="agentApplicationItem.isCollect === 'Y' ? ['#ffc06d', '#ffc06d'] : ['#333', '#fff']" :fill="agentApplicationItem.isCollect === 'Y' ? ['#ffc06d', '#ffc06d'] : ['#333', '#fff']"
:stroke-width="2" :stroke-width="3"
class="cursor-pointer transition-all delay-150 duration-300 ease-in-out" class="cursor-pointer transition-all delay-150 duration-300 ease-in-out"
@click="handleCollectOrCancelAgentApplication(agentApplicationItem.id)" @click="handleCollectOrCancelAgentApplication(agentApplicationItem.id!)"
/> />
<span class="ml-[6px] text-[12px] text-[#333]">{{ agentApplicationItem.collectNumber }}</span> <span class="ml-[6px] text-[12px] text-[#333]">{{ agentApplicationItem.collectNumber }}</span>
</div> </div>
...@@ -256,7 +267,7 @@ function handleAddAgentApplications() { ...@@ -256,7 +267,7 @@ function handleAddAgentApplications() {
theme="outline" theme="outline"
size="18" size="18"
fill="#333" fill="#333"
:stroke-width="2" :stroke-width="3"
class="ml-[12px] cursor-pointer" class="ml-[12px] cursor-pointer"
/> />
<span class="ml-[6px] text-[12px] text-[#333]">{{ agentApplicationItem.clickNumber }}</span> <span class="ml-[6px] text-[12px] text-[#333]">{{ agentApplicationItem.clickNumber }}</span>
...@@ -298,6 +309,7 @@ function handleAddAgentApplications() { ...@@ -298,6 +309,7 @@ function handleAddAgentApplications() {
</div> </div>
</div> </div>
</div> </div>
</n-scrollbar>
</div> </div>
</div> </div>
</template> </template>
...@@ -309,6 +321,11 @@ function handleAddAgentApplications() { ...@@ -309,6 +321,11 @@ function handleAddAgentApplications() {
border: 1px #000dff solid; border: 1px #000dff solid;
} }
.cardContentWrap {
scrollbar-width: none;
-ms-overflow-style: none;
}
@media (width >= 1536px) and (width <= 1670px) { @media (width >= 1536px) and (width <= 1670px) {
.popover-trigger, .popover-trigger,
.agent-desc { .agent-desc {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment