added some feature for plugin 3

This commit is contained in:
2026-09-09 20:18:48 +03:30
parent 005ee8c1e7
commit 35a7ab11f5
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -46,7 +46,7 @@ type TemplateRow = {
type?: string
}
const DURATION_DAYS = [30, 90, 180, 360] as const
const DURATION_DAYS = [30, 90, 180, 360, 0] as const
const router = useRouter()
const auth = useAuthStore()
@@ -72,6 +72,7 @@ const durationLabel: Record<number, string> = {
90: '۹۰ روزه',
180: '۱۸۰ روزه',
360: '۳۶۰ روزه',
0: 'یکبار پرداخت',
}
const selectedItem = computed(
@@ -486,7 +487,7 @@ onMounted(load)
<section class="price-block">
<div class="price-block-head">
<strong>قیمت اشتراک</strong>
<span>تومان — تیک تخفیف فقط همان مدت را در فروشگاه خط می‌خورد</span>
<span>تومان — یکبار پرداخت انقضا ندارد. تیک تخفیف فقط همان ردیف را در فروشگاه خط می‌خورد</span>
</div>
<div class="price-list">
<article
+1 -1
View File
@@ -294,7 +294,7 @@ onMounted(() => {
<small>{{ row.domain }}</small>
</td>
<td>{{ row.pluginTitle }}</td>
<td>{{ row.durationDays }} روز</td>
<td>{{ row.durationDays === 0 ? 'یکبار پرداخت' : `${row.durationDays} روز` }}</td>
<td>{{ Number(row.finalPriceRials || 0).toLocaleString('fa-IR') }}</td>
<td>{{ statusLabel[row.status] }}</td>
<td>