added handlecountdowned function

This commit is contained in:
Jack Goh
2018-06-21 14:48:17 +08:00
parent 3c263b56ea
commit 46873c7107
@@ -32,7 +32,7 @@
<div align="center">
<vue-countdown :time="booking.timeout">
<vue-countdown countdownend="handleCoutdownend" :time="booking.timeout">
<template slot-scope="props">Time Remaining<br>{{ props.days }} days, {{ props.hours }} hours, {{ props.minutes }} minutes, {{ props.seconds }} seconds.</template>
</vue-countdown>
<!-- <button v-on:click="startTimer">Start timer</button> -->
@@ -163,6 +163,17 @@
},
methods: {
handleCoutdownend(){
this.$message({
showClose: true,
message: 'Booking timeout, please make another booking.',
type: 'error',
duration: 30000,
});
this.$router.push({
name: 'home'
})
},
handleRemove(file, fileList) {
console.log(file, fileList)
},