|  | @@ -10,6 +10,7 @@ import suspend from '../images/suspend.png'
 | 
	
		
			
				|  |  |  import add from '../images/add.png'
 | 
	
		
			
				|  |  |  import minus from '../images/minus.png'
 | 
	
		
			
				|  |  |  import { getSecond } from '@/utils/index'
 | 
	
		
			
				|  |  | +import soundWav from '../timer.wav';
 | 
	
		
			
				|  |  |  export default defineComponent({
 | 
	
		
			
				|  |  |    name: 'timer-countdown',
 | 
	
		
			
				|  |  |    setup() {
 | 
	
	
		
			
				|  | @@ -42,7 +43,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |          flipObjs.value[i].value.setFront(nowTimeStr[i])
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    const soundVIdeo = new Audio(soundWav)
 | 
	
		
			
				|  |  |      const formatDate = (date: Date, dateFormat: string) => {
 | 
	
		
			
				|  |  |        /* 单独格式化年份,根据y的字符数量输出年份
 | 
	
		
			
				|  |  |       * 例如:yyyy => 2019
 | 
	
	
		
			
				|  | @@ -108,6 +109,9 @@ export default defineComponent({
 | 
	
		
			
				|  |  |        timer.value = setInterval(() => {
 | 
	
		
			
				|  |  |          // 获取当前时间
 | 
	
		
			
				|  |  |          const lastStr = getSecond(count.value)
 | 
	
		
			
				|  |  | +        if(count.value == 4){
 | 
	
		
			
				|  |  | +          soundVIdeo.play()
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          if( count.value <= 0){
 | 
	
		
			
				|  |  |            onReset()
 | 
	
		
			
				|  |  |            return
 | 
	
	
		
			
				|  | @@ -126,6 +130,8 @@ export default defineComponent({
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      const suspendNum = () => {
 | 
	
		
			
				|  |  |        isPlaying.value = false;
 | 
	
		
			
				|  |  | +      soundVIdeo.currentTime = 0;
 | 
	
		
			
				|  |  | +      soundVIdeo.pause();
 | 
	
		
			
				|  |  |        if (timer.value) {
 | 
	
		
			
				|  |  |          clearInterval(timer.value)
 | 
	
		
			
				|  |  |          timer.value = null
 | 
	
	
		
			
				|  | @@ -135,6 +141,8 @@ export default defineComponent({
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        suspendNum()
 | 
	
		
			
				|  |  |        count.value = 0
 | 
	
		
			
				|  |  | +      soundVIdeo.currentTime = 0;
 | 
	
		
			
				|  |  | +      soundVIdeo.pause();
 | 
	
		
			
				|  |  |        setTimeout(() => {
 | 
	
		
			
				|  |  |          init()
 | 
	
		
			
				|  |  |        }, 600)
 |