added some feature for plugin 3
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user