diff --git a/src/assets/images/vip/promocode.jpg b/src/assets/images/vip/promocode.jpg
new file mode 100644
index 0000000..ce9729c
Binary files /dev/null and b/src/assets/images/vip/promocode.jpg differ
diff --git a/src/components/TabsMenuElements/VipView/Components/PromocodeDialog.vue b/src/components/TabsMenuElements/VipView/Components/PromocodeDialog.vue
index 8982ed8..fe82412 100644
--- a/src/components/TabsMenuElements/VipView/Components/PromocodeDialog.vue
+++ b/src/components/TabsMenuElements/VipView/Components/PromocodeDialog.vue
@@ -30,10 +30,10 @@
- VIP
+ VIP
-
+
@@ -46,7 +46,7 @@
Очистить
-
+
@@ -67,7 +67,7 @@ export default {
error:"",
success:"",
///////////
- promogen_type:"",
+ promogen_type:"VIP",
promogen_value:60,
promogen_append:"GOYDA",
promogen_result: ""
@@ -80,12 +80,14 @@ export default {
this.promogen_result = "";
},
createPromo() {
+ this.clearPromo();
axios.post("api/promocode?action="+this.promogen_type+":"+`${this.promogen_value*60}`+"&append="+this.promogen_append+Random.getRndWebAppend())
.then(response => {
this.promogen_result += response.data + ` ${this.promogen_type.toUpperCase()} ${this.promogen_value} минут \n`;
})
},
actualPromo() {
+ this.clearPromo();
axios.get("api/promocode" + Random.getRndWebNew())
.then(response => {
for (const code in response.data) {