更新红包领取状态

This commit is contained in:
tcubic 2022-08-05 18:10:04 +08:00
parent 99771a2be2
commit 1fc02e0265

View File

@ -109,6 +109,7 @@ const redpacket = (prizeId) => {
onComplete: () => { onComplete: () => {
drawStatus.value = false; drawStatus.value = false;
isgetMoney.value = true; isgetMoney.value = true;
getMyPrizeRecored()
// gsap.form('.add_container',{duration:0.5,scale:0,autoAlpha:0,}) // 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,
});
});
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>