changes of giftcards
This commit is contained in:
@@ -24,4 +24,5 @@
|
|||||||
- 2026-09-09 | زیرصفحات قلک دسکتاپ | `piggy/new` + `piggy/info` + create/info composable | ساخت/ویرایش و جزئیات با DesktopPageTopbar و گرید دوستونه
|
- 2026-09-09 | زیرصفحات قلک دسکتاپ | `piggy/new` + `piggy/info` + create/info composable | ساخت/ویرایش و جزئیات با DesktopPageTopbar و گرید دوستونه
|
||||||
- 2026-09-09 | عرض قلک دسکتاپ | `desktop-piggy-create.less` | کانتینر ساخت هم max-width ۱۱۸۰ مثل لیست/جزئیات/کیفپول
|
- 2026-09-09 | عرض قلک دسکتاپ | `desktop-piggy-create.less` | کانتینر ساخت هم max-width ۱۱۸۰ مثل لیست/جزئیات/کیفپول
|
||||||
- 2026-09-09 | نام منوی کاربر | `navigation.ts` + `MobileBottomNav.vue` | «تنظیمات» → «امکانات بیشتر» (دسکتاپ+موبایل)
|
- 2026-09-09 | نام منوی کاربر | `navigation.ts` + `MobileBottomNav.vue` | «تنظیمات» → «امکانات بیشتر» (دسکتاپ+موبایل)
|
||||||
|
- 2026-09-12 | دکمه داراییها خانه | `boursecuQuickActions` + `useHomePage.openAssetsSheet` | قبلاً `fund` میرفت و با خاموش بودن قلک گارد بیصدا برمیگرداند؛ حالا شیت BalanceSheet
|
||||||
- 2026-09-09 | ماشین حساب | `useUserPage.ts` + `GoldDayCalculatorModal.vue` | «قیمت روز طلا» → «ماشین حساب»؛ برچسب فلز/واحد از settingsStore (metalTypeLabel + tradeWeightUnit) نه هاردکد طلا/گرم
|
- 2026-09-09 | ماشین حساب | `useUserPage.ts` + `GoldDayCalculatorModal.vue` | «قیمت روز طلا» → «ماشین حساب»؛ برچسب فلز/واحد از settingsStore (metalTypeLabel + tradeWeightUnit) نه هاردکد طلا/گرم
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ export interface HomePageContext {
|
|||||||
modalContent?: string
|
modalContent?: string
|
||||||
) => void
|
) => void
|
||||||
openRialModal: () => void
|
openRialModal: () => void
|
||||||
|
openAssetsSheet: () => void
|
||||||
}
|
}
|
||||||
|
|
||||||
export const HOME_PAGE_CONTEXT_KEY: InjectionKey<HomePageContext> = Symbol('homePageContext')
|
export const HOME_PAGE_CONTEXT_KEY: InjectionKey<HomePageContext> = Symbol('homePageContext')
|
||||||
@@ -107,7 +108,9 @@ export function useHomePage() {
|
|||||||
name: 'assets',
|
name: 'assets',
|
||||||
icon: 'vuesax-linear:cup',
|
icon: 'vuesax-linear:cup',
|
||||||
label: 'دارایی ها',
|
label: 'دارایی ها',
|
||||||
handler: () => router.push({ name: 'fund' }),
|
handler: () => {
|
||||||
|
wholeBalanceVisible.value = true
|
||||||
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -187,6 +190,10 @@ export function useHomePage() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function openAssetsSheet() {
|
||||||
|
wholeBalanceVisible.value = true
|
||||||
|
}
|
||||||
|
|
||||||
function handleBannerClick(banner: { typeClick?: string; modalText?: string; link?: string }) {
|
function handleBannerClick(banner: { typeClick?: string; modalText?: string; link?: string }) {
|
||||||
const handlers: Record<string, () => void> = {
|
const handlers: Record<string, () => void> = {
|
||||||
share: () => {
|
share: () => {
|
||||||
@@ -226,6 +233,7 @@ export function useHomePage() {
|
|||||||
handleBannerClick,
|
handleBannerClick,
|
||||||
openGoldModal,
|
openGoldModal,
|
||||||
openRialModal,
|
openRialModal,
|
||||||
|
openAssetsSheet,
|
||||||
}
|
}
|
||||||
|
|
||||||
provide(HOME_PAGE_CONTEXT_KEY, context)
|
provide(HOME_PAGE_CONTEXT_KEY, context)
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import HomeQuickActionBox from '../../components/HomeQuickActionBox.vue'
|
|||||||
import DesktopHomeCard from './DesktopHomeCard.vue'
|
import DesktopHomeCard from './DesktopHomeCard.vue'
|
||||||
import { boursecuQuickActions } from '../../layouts/configs/boursecuQuickActions'
|
import { boursecuQuickActions } from '../../layouts/configs/boursecuQuickActions'
|
||||||
import type { HomeQuickActionItem } from '../../layouts/types'
|
import type { HomeQuickActionItem } from '../../layouts/types'
|
||||||
|
import { useHomePageContext } from '../../composables/useHomePage'
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
@@ -15,6 +16,7 @@ const props = withDefaults(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const { openAssetsSheet } = useHomePageContext()
|
||||||
const resolvedActions = computed(() => props.actions ?? [...boursecuQuickActions])
|
const resolvedActions = computed(() => props.actions ?? [...boursecuQuickActions])
|
||||||
|
|
||||||
function handleClick(action: HomeQuickActionItem) {
|
function handleClick(action: HomeQuickActionItem) {
|
||||||
@@ -22,6 +24,10 @@ function handleClick(action: HomeQuickActionItem) {
|
|||||||
action.handler()
|
action.handler()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (action.id === 'assets') {
|
||||||
|
openAssetsSheet()
|
||||||
|
return
|
||||||
|
}
|
||||||
if (action.route) {
|
if (action.route) {
|
||||||
router.push(action.route)
|
router.push(action.route)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import BasicIcon from '@/components/BasicPacks/BasicIcon.vue'
|
|||||||
import DesktopHomeSection from './DesktopHomeSection.vue'
|
import DesktopHomeSection from './DesktopHomeSection.vue'
|
||||||
import { boursecuQuickActions } from '../../layouts/configs/boursecuQuickActions'
|
import { boursecuQuickActions } from '../../layouts/configs/boursecuQuickActions'
|
||||||
import type { HomeQuickActionItem } from '../../layouts/types'
|
import type { HomeQuickActionItem } from '../../layouts/types'
|
||||||
|
import { useHomePageContext } from '../../composables/useHomePage'
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
@@ -17,6 +18,7 @@ const props = withDefaults(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const { openAssetsSheet } = useHomePageContext()
|
||||||
const resolvedActions = computed(() => props.actions ?? [...boursecuQuickActions])
|
const resolvedActions = computed(() => props.actions ?? [...boursecuQuickActions])
|
||||||
|
|
||||||
function navigate(action: HomeQuickActionItem) {
|
function navigate(action: HomeQuickActionItem) {
|
||||||
@@ -24,6 +26,10 @@ function navigate(action: HomeQuickActionItem) {
|
|||||||
action.handler()
|
action.handler()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (action.id === 'assets') {
|
||||||
|
openAssetsSheet()
|
||||||
|
return
|
||||||
|
}
|
||||||
if (action.route) {
|
if (action.route) {
|
||||||
router.push(action.route)
|
router.push(action.route)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export const boursecuQuickActions: HomeQuickActionItem[] = [
|
|||||||
label: 'دارایی ها',
|
label: 'دارایی ها',
|
||||||
icon: 'vuesax-linear:cup',
|
icon: 'vuesax-linear:cup',
|
||||||
iconSrc: getBoursecuActionIconSrc('assets'),
|
iconSrc: getBoursecuActionIconSrc('assets'),
|
||||||
route: { name: 'fund' },
|
// شیت موجودیها — نه مسیر fund (با enable_product_funds=false گارد بیصدا برمیگرداند)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'transactions',
|
id: 'transactions',
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import router from '@/router'
|
|||||||
import HomeQuickActionBox from '../../components/HomeQuickActionBox.vue'
|
import HomeQuickActionBox from '../../components/HomeQuickActionBox.vue'
|
||||||
import { boursecuQuickActions } from '../configs/boursecuQuickActions'
|
import { boursecuQuickActions } from '../configs/boursecuQuickActions'
|
||||||
import type { HomeQuickActionItem } from '../types'
|
import type { HomeQuickActionItem } from '../types'
|
||||||
|
import { useHomePageContext } from '../../composables/useHomePage'
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
@@ -14,6 +15,7 @@ const props = withDefaults(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const { openAssetsSheet } = useHomePageContext()
|
||||||
const resolvedActions = computed(() => props.actions ?? [...boursecuQuickActions])
|
const resolvedActions = computed(() => props.actions ?? [...boursecuQuickActions])
|
||||||
|
|
||||||
function handleClick(action: HomeQuickActionItem) {
|
function handleClick(action: HomeQuickActionItem) {
|
||||||
@@ -21,6 +23,10 @@ function handleClick(action: HomeQuickActionItem) {
|
|||||||
action.handler()
|
action.handler()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (action.id === 'assets') {
|
||||||
|
openAssetsSheet()
|
||||||
|
return
|
||||||
|
}
|
||||||
if (action.route) {
|
if (action.route) {
|
||||||
router.push(action.route)
|
router.push(action.route)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user