diff --git a/.cursor/skills/abshode-domain-lookup/learned-notes.md b/.cursor/skills/abshode-domain-lookup/learned-notes.md index d401eb7..f7306ab 100644 --- a/.cursor/skills/abshode-domain-lookup/learned-notes.md +++ b/.cursor/skills/abshode-domain-lookup/learned-notes.md @@ -24,3 +24,4 @@ - 2026-09-09 | زیرصفحات قلک دسکتاپ | `piggy/new` + `piggy/info` + create/info composable | ساخت/ویرایش و جزئیات با DesktopPageTopbar و گرید دوستونه - 2026-09-09 | عرض قلک دسکتاپ | `desktop-piggy-create.less` | کانتینر ساخت هم max-width ۱۱۸۰ مثل لیست/جزئیات/کیف‌پول - 2026-09-09 | نام منوی کاربر | `navigation.ts` + `MobileBottomNav.vue` | «تنظیمات» → «امکانات بیشتر» (دسکتاپ+موبایل) +- 2026-09-09 | ماشین حساب | `useUserPage.ts` + `GoldDayCalculatorModal.vue` | «قیمت روز طلا» → «ماشین حساب»؛ برچسب فلز/واحد از settingsStore (metalTypeLabel + tradeWeightUnit) نه هاردکد طلا/گرم diff --git a/src/components/GoldDayCalculatorModal.vue b/src/components/GoldDayCalculatorModal.vue index fe5a6c5..5b61457 100644 --- a/src/components/GoldDayCalculatorModal.vue +++ b/src/components/GoldDayCalculatorModal.vue @@ -8,15 +8,19 @@ >
+

+ وزن مورد نظر را وارد کنید تا ارزش آن بر اساس قیمت لحظه‌ای محاسبه شود. +

+
- هزینه طلا + هزینه {{ metalTypeLabel }} {{ formatRial(breakdown.goldCost) }}
@@ -95,8 +99,13 @@ import { import { getPriceDisplayState, NO_QUOTE_MESSAGE } from '@/utils/storeHours' import { usePriceWithoutType } from '@/utils/usePrice' import { persianToEnglishDigits } from '@/utils/persianDigits' +import { useSettingsStore } from '@/store/settingsStore' const visible = goldDayCalculatorVisible +const settingsStore = useSettingsStore() + +const metalTypeLabel = computed(() => settingsStore.metalTypeLabel) +const weightUnit = computed(() => settingsStore.tradeWeightUnit) const weight = ref('') const feePercent = ref('') @@ -186,6 +195,11 @@ watch(visible, async (open) => { text-align: right; } +.gold-day-calc__hint { + margin: 0; + line-height: 1.7; +} + .gold-day-calc__result { direction: rtl; text-align: right; diff --git a/src/views/base/user/composables/useUserPage.ts b/src/views/base/user/composables/useUserPage.ts index a203e67..4401694 100644 --- a/src/views/base/user/composables/useUserPage.ts +++ b/src/views/base/user/composables/useUserPage.ts @@ -127,8 +127,8 @@ export function useUserPage() { }, { id: 'goldDayCalculator', - label: 'قیمت روز طلا', - icon: 'vuesax-linear:chart-2', + label: 'ماشین حساب', + icon: 'vuesax-linear:calculator', onClick: () => openGoldDayCalculator(), visible: true, },