更新红包领取状态
This commit is contained in:
parent
99771a2be2
commit
1fc02e0265
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user