|
|
@@ -39,6 +39,7 @@ |
|
|
|
<div><input required :min="selected.minimum" :max="selected.maximum" |
|
|
|
type="number" v-model="amount" id="selQty"><span> / |
|
|
|
{{selected.maximum.toLocaleString('en')}}</span></div> |
|
|
|
|
|
|
|
<template v-if="selected.modifier == 'location'"> |
|
|
|
<h4>Location</h4> |
|
|
|
<div><select required id="country" name=""> |
|
|
@@ -50,6 +51,18 @@ |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-if="selected.modifier == 'language'"> |
|
|
|
<h4>Location</h4> |
|
|
|
<div><select required id="language" name=""> |
|
|
|
<option value="english">English</option> |
|
|
|
<option value="french">French</option> |
|
|
|
<option value="spanish">Spanish</option> |
|
|
|
<option value="german">German</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<h4>URL</h4> |
|
|
|
<div><input required type="url" id="url" v-model="url"></div> |
|
|
|
<button @click="buyService" :disabled="paying">Submit<loading |
|
|
@@ -100,9 +113,12 @@ function buyService() { |
|
|
|
this.paying = true |
|
|
|
let note = '' |
|
|
|
let country = document.getElementById('country') |
|
|
|
let language = document.getElementById('language') |
|
|
|
|
|
|
|
if (country) { |
|
|
|
note = JSON.stringify({'location': country.value}) |
|
|
|
} else if (language) { |
|
|
|
note = JSON.stringify({'language': language.value}) |
|
|
|
} |
|
|
|
|
|
|
|
fetch('/panel/orders', { |
|
|
|