fix bugs and added some feature for withdraw handling

This commit is contained in:
2026-07-19 15:49:52 +03:30
parent b446c21afc
commit 3cb1e1a0b0
17 changed files with 442 additions and 58 deletions
+17 -4
View File
@@ -2,7 +2,6 @@
<div class="banners-page">
<div class="banners-page__body">
<a-collapse
v-if="!showSettingsProfileBanners"
v-model:activeKey="sliderActiveKey"
:bordered="false"
class="banners-page__collapse"
@@ -145,12 +144,26 @@ import {
bannersShareHelp,
bannersShowHelp,
} from '@/utils/adminHelpCopy'
import { computed, onMounted, ref, watch } from 'vue'
const { state, saving, save } = useAppBannersAdmin()
/** پیش‌فرض کالپس بنرهای اسلایدر بسته است */
const sliderActiveKey = ref<(string | number)[]>([])
const { state, saving, save, load } = useAppBannersAdmin()
/** اگر اسلایدری هست، پنل را باز نگه دار تا خالی به‌نظر نرسد */
const sliderActiveKey = ref<(string | number)[]>(['slider'])
const showSettingsProfileBanners = computed(() => hasAppUiConfig())
watch(
() => state.slider.length,
(len) => {
if (len > 0 && !sliderActiveKey.value.includes('slider')) {
sliderActiveKey.value = ['slider']
}
}
)
onMounted(() => {
void load(true)
})
const typeList = ref([
{ lable: 'بدون رویداد', value: null },
{ lable: 'باز شدن لینک', value: 'link' },