updated dynamic progress status

This commit is contained in:
Jack Goh
2018-06-14 17:25:54 +08:00
parent 9eed12bc3d
commit 415f8bb437
3 changed files with 14 additions and 4 deletions
@@ -1,6 +1,6 @@
<template>
<el-row>
<el-steps :active="1" alignCenter="true" process-status="wait" finish-status="success">
<el-steps v-bind:value="value" :active="value" alignCenter="true" process-status="wait" finish-status="success">
<el-step title="Booking"></el-step>
<el-step title="Wating Payment"></el-step>
<el-step title="Order Confirmation"></el-step>
@@ -34,4 +34,13 @@
.el-step .is-success .el-step__line {
background-color: #67c23a;
} */
</style>
</style>
<script>
export default {
props: ['value'],
data: () => ({
status: 1
})
}
</script>
@@ -1,6 +1,6 @@
<template>
<el-main>
<progress-track></progress-track>
<progress-track v-model="status"></progress-track>
<div align="center">
<h4 style="margin-top:5%;">Waiting For Payment</h4>
@@ -73,6 +73,7 @@
},
data() {
return {
status: 2,
start: false,
dialogImageUrl: '',
dialogVisible: false,
+1 -1
View File
@@ -453,7 +453,7 @@
// TODO : Get booking status from server
this.status = 1
switch (this.status) {
case 1:
this.$router.push({