src/components/otcCircle/index.vue
@@ -15,9 +15,11 @@ props: ['time','expireTime'], data() { return { // time: 2 * 60 * 1000, // 剩余时间 15分钟, currentTime: '', // 当前时间 progress: '', // 进度 arr: [ { value: 0, @@ -89,6 +91,7 @@ } }, methods: { handleChange(e) { let restTime = e.minutes * 60 * 1000 + e.seconds * 1000 + e.milliseconds // 剩余毫秒 this.progress = ((restTime / 1000) / this.expireTime * 100).toFixed(0) // 进度