diff --git a/components/blindBox/blindBox.vue b/components/blindBox/blindBox.vue index 0137f87..84f9440 100644 --- a/components/blindBox/blindBox.vue +++ b/components/blindBox/blindBox.vue @@ -6,7 +6,7 @@ - 恭喜你获得 {{wheel}} 次盲盒抽奖机会 + @@ -17,12 +17,21 @@ - + 恭喜您获得 {{drawInfo.text}} - 开心收下 + 开心收下 + + + + + + + 很遗憾,差一点就中奖了 + 期待您下次再来 + 我知道了 @@ -38,9 +47,10 @@ data() { return { wheel:0, - actionIndex:'', + actionIndex:-1, popShow:false, blindShow:true, + blind:true, defaultConfig: { gutter: '5px', speed: 60, @@ -60,12 +70,25 @@ }, methods: { openBlindBox(val){ - this.actionIndex=val; - this.popShow=true; + this.actionIndex=val; + if(val/2){ + setTimeout(()=>{ + this.blind=false; + this.popShow=true; + },800) + + }else{ + setTimeout(()=>{ + this.popShow=true; + },800) + } + + }, init(){ }, closePop(){ + this.popShow=false; this.blindShow=false; } } @@ -74,44 +97,40 @@