Commit 6a0e7c4c by MichaelJier

fix

1. 关闭红包后倒计时红包才会重新获取
parent 4a3f7fe8
<template> <template>
<div> <div>
<div class="countDown-list"> <!-- v-show="countDownInfo.count !== 0" --> <div class="countDown-list" @click="_showRed(countDownInfo.id)" v-show="countDownInfo.count && countDownInfo.count !== 0"> <!-- v-show="countDownInfo.count !== 0" -->
<div class="receive" @click="_showRed(countDownInfo.id)"> <div class="receive">
<div class="head" v-if="times > 0" :style="{backgroundImage: `url(${countDownInfo.userHeadImg || defaultHead})`}"></div> <div class="head" v-if="times > 0" :style="{backgroundImage: `url(${countDownInfo.userHeadImg || defaultHead})`}"></div>
<div class="time" v-if="times > 0">{{ times | formatTime('hh:mm:ss') }}</div> <div class="time" v-if="times > 0">{{ times | formatTime('hh:mm:ss') }}</div>
<div class="count">{{countDownInfo.count || 0}}</div> <div class="count">{{countDownInfo.count || 0}}</div>
...@@ -132,7 +132,6 @@ export default { ...@@ -132,7 +132,6 @@ export default {
this.isGet = true this.isGet = true
this.state = 1 this.state = 1
this.redResult = res.data this.redResult = res.data
this.$Bus.$emit('bus-getCountDown');
return return
} else { } else {
this.state = 2 this.state = 2
...@@ -178,6 +177,7 @@ export default { ...@@ -178,6 +177,7 @@ export default {
_closeRed() { _closeRed() {
this.state = 0 this.state = 0
this.set_showRed(false); this.set_showRed(false);
this.$Bus.$emit('bus-getCountDown');
} }
}, },
watch: { watch: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment