wip on visa/master payment

This commit is contained in:
2024-09-05 16:27:58 +05:00
parent 837d2a4704
commit 0939b59ec3
6 changed files with 415 additions and 26 deletions

42
index.html Normal file
View File

@@ -0,0 +1,42 @@
<div id="app">
<div v-for="(step, index) in steps" :key="index" v-show="currentStep === index">
<h2>Step {{ index + 1 }}</h2>
<div v-html="step.content"></div>
<button v-if="currentStep > 0" @click="prevStep">Previous</button>
<button v-if="currentStep < steps.length - 1" @click="nextStep">Next</button>
<button v-if="currentStep === steps.length - 1" @click="submitForm">Submit</button>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<script>
new Vue({
el: '#app',
data: {
currentStep: 0,
steps: [
{ content: '<div>Step 1 content goes here</div>' },
{ content: '<div>Step 2 content goes here</div>' },
{ content: '<div>Step 3 content goes here</div>' },
{ content: '<div>Step 4 content goes here</div>' },
{ content: '<div>Step 5 content goes here</div>' },
{ content: '<div>Step 6 content goes here</div>' }
]
},
methods: {
nextStep() {
if (this.currentStep < this.steps.length - 1) {
this.currentStep++;
}
},
prevStep() {
if (this.currentStep > 0) {
this.currentStep--;
}
},
submitForm() {
alert('Form submitted!');
}
}
});
</script>