From 1fc02e0265c1dcb012ab71f888cf890e36e1c030 Mon Sep 17 00:00:00 2001 From: tcubic <123456> Date: Fri, 5 Aug 2022 18:10:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BA=A2=E5=8C=85=E9=A2=86?= =?UTF-8?q?=E5=8F=96=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Draw.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/components/Draw.vue b/src/components/Draw.vue index ca41ada..1830799 100644 --- a/src/components/Draw.vue +++ b/src/components/Draw.vue @@ -109,6 +109,7 @@ const redpacket = (prizeId) => { onComplete: () => { drawStatus.value = false; isgetMoney.value = true; + getMyPrizeRecored() // gsap.form('.add_container',{duration:0.5,scale:0,autoAlpha:0,}) }, }); @@ -131,6 +132,22 @@ const redpacket = (prizeId) => { } }); }; + + +// 我的红包记录 +const getMyPrizeRecored = () => { + service + .post(process.env.VUE_APP_API + "/cms-activity/cms88/prize/list", {}) + .then((res) => { + console.log("红包记录:", res.data); + + store.commit({ + type: "updatePrizeList", + prizeList: res.data.data, + }); + }); +}; +