added some feature for plugin 3
This commit is contained in:
@@ -46,7 +46,7 @@ type TemplateRow = {
|
|||||||
type?: string
|
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 router = useRouter()
|
||||||
const auth = useAuthStore()
|
const auth = useAuthStore()
|
||||||
@@ -72,6 +72,7 @@ const durationLabel: Record<number, string> = {
|
|||||||
90: '۹۰ روزه',
|
90: '۹۰ روزه',
|
||||||
180: '۱۸۰ روزه',
|
180: '۱۸۰ روزه',
|
||||||
360: '۳۶۰ روزه',
|
360: '۳۶۰ روزه',
|
||||||
|
0: 'یکبار پرداخت',
|
||||||
}
|
}
|
||||||
|
|
||||||
const selectedItem = computed(
|
const selectedItem = computed(
|
||||||
@@ -486,7 +487,7 @@ onMounted(load)
|
|||||||
<section class="price-block">
|
<section class="price-block">
|
||||||
<div class="price-block-head">
|
<div class="price-block-head">
|
||||||
<strong>قیمت اشتراک</strong>
|
<strong>قیمت اشتراک</strong>
|
||||||
<span>تومان — تیک تخفیف فقط همان مدت را در فروشگاه خط میخورد</span>
|
<span>تومان — یکبار پرداخت انقضا ندارد. تیک تخفیف فقط همان ردیف را در فروشگاه خط میخورد</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="price-list">
|
<div class="price-list">
|
||||||
<article
|
<article
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ onMounted(() => {
|
|||||||
<small>{{ row.domain }}</small>
|
<small>{{ row.domain }}</small>
|
||||||
</td>
|
</td>
|
||||||
<td>{{ row.pluginTitle }}</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>{{ Number(row.finalPriceRials || 0).toLocaleString('fa-IR') }}</td>
|
||||||
<td>{{ statusLabel[row.status] }}</td>
|
<td>{{ statusLabel[row.status] }}</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
Reference in New Issue
Block a user