From 7f02ae77ee44a575fa01ff73f5b0cc68038c8d46 Mon Sep 17 00:00:00 2001 From: yangtao Date: Wed, 10 Apr 2024 14:26:10 +0800 Subject: [PATCH] 1 --- components/blindBox/blindBox.vue | 113 +++++++++++++++++++------------ components/treasureBox/index.vue | 32 +++++---- pages.json | 6 -- pages/users/user_sgin/index.vue | 48 ++++++++----- static/images/notBlind.png | Bin 0 -> 72568 bytes 5 files changed, 119 insertions(+), 80 deletions(-) create mode 100644 static/images/notBlind.png 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 @@