diff --git a/src/api/AdminApi.js b/src/api/AdminApi.js index d4e8d14..6a4a06e 100644 --- a/src/api/AdminApi.js +++ b/src/api/AdminApi.js @@ -5,7 +5,8 @@ export default class AdminApi { ban:false, mute:false, kick:false, - alt:false + alt:false, + z:false } async checkPermition(name) { @@ -20,9 +21,19 @@ export default class AdminApi { async checkAltAccess(){ return axios.options('/api/admin/db/alt' + Random.getRndWebNew()).then( - response => {if (response.status === 200) this.permition.alt = true; - else this.permition.alt = false;} - ).catch(()=>this.permition.alt = false) + response => { + if (response.status === 200) { + this.permition.alt = true; + this.permition.z = true; + } else { + this.permition.alt = false; + this.permition.z = false; + } + } + ).catch(()=>{ + this.permition.alt = false; + this.z = false; + }) } async load(stages) { diff --git a/src/components/Others/CustomSvg/PromocodeSvg.vue b/src/components/Others/CustomSvg/PromocodeSvg.vue new file mode 100644 index 0000000..033d853 --- /dev/null +++ b/src/components/Others/CustomSvg/PromocodeSvg.vue @@ -0,0 +1,38 @@ + + + \ No newline at end of file diff --git a/src/components/TabsMenuElements/VipView/Components/PromocodeDialog.vue b/src/components/TabsMenuElements/VipView/Components/PromocodeDialog.vue new file mode 100644 index 0000000..8982ed8 --- /dev/null +++ b/src/components/TabsMenuElements/VipView/Components/PromocodeDialog.vue @@ -0,0 +1,154 @@ + + + \ No newline at end of file diff --git a/src/components/TabsMenuElements/VipView/Components/VipBuyDialog.vue b/src/components/TabsMenuElements/VipView/Components/VipBuyDialog.vue index 5bc22ea..42bba85 100644 --- a/src/components/TabsMenuElements/VipView/Components/VipBuyDialog.vue +++ b/src/components/TabsMenuElements/VipView/Components/VipBuyDialog.vue @@ -24,27 +24,33 @@
-
+

{{price.money_price}} рублей

В этом году купили {{getStat4('qiwi', price.period)}} раз

-
+

{{price.item_price}}

В этом году купили {{getStat4('steam', price.period)}} раз

-
+

{{price.money_price + price.money_price * price.da_percent / 100}} рублей

В этом году купили {{getStat4('donationalerts', price.period)}} раз

-
+

{{price.item_price}}

схватили {{getStat4('free', 'day')}} раз

+
+ +

{{price.item_price}}

+ + +

после получения перезайди на сервер, если тебя не кикнуло автоматом или напиши админам

@@ -69,10 +75,15 @@ import FreeVipDialog from "@/components/TabsMenuElements/VipView/Components/Free import Random from "@/api/Random"; import BuyMethodDisableDialog from "@/components/ActionDialogs/BuyMethodDisableDialog.vue"; import DonationAlertsSvg from "@/components/Others/CustomSvg/DonationAlertsSvg.vue"; +import PromocodeDialog from "@/components/TabsMenuElements/VipView/Components/PromocodeDialog.vue"; +import PromocodeSvg from "@/components/Others/CustomSvg/PromocodeSvg.vue"; export default { name: 'VipBuyDialog', - components: {DonationAlertsSvg, BuyMethodDisableDialog, FreeVipDialog, AuthWindow, FreeSvg, SteamSvg, QiwiSvg}, + components: { + PromocodeSvg, + PromocodeDialog, + DonationAlertsSvg, BuyMethodDisableDialog, FreeVipDialog, AuthWindow, FreeSvg, SteamSvg, QiwiSvg}, data: () => ({ showBuyDialog: false }), diff --git a/src/components/TabsMenuElements/VipView/VipView.vue b/src/components/TabsMenuElements/VipView/VipView.vue index 6dbe32a..39b8fc4 100644 --- a/src/components/TabsMenuElements/VipView/VipView.vue +++ b/src/components/TabsMenuElements/VipView/VipView.vue @@ -16,7 +16,7 @@
- +