feat; 更新业务

This commit is contained in:
dengtongyu committed 2023-04-06 00:22:33 +08:00
1 parent aba3958d9d
commit 5f63979f9f
26 files changed
+790 -275

No files matched your search

+5 -5
View File
@@ -15,10 +15,10 @@ import { mapGetters, mapActions } from "vuex";
export default {
name: "BoboYqView",
props: {
uid: {
type: [String, Number],
default: ""
}
// actId: {
// type: [String, Number],
// default: ""
// }
},
computed: {
...mapGetters(["remainTicketNum"])
@@ -27,7 +27,7 @@ export default {
...mapActions(["getQueryTicketNum"])
},
created() {
this.getQueryTicketNum({ uid: this.uid });
this.getQueryTicketNum();
}
};
</script>
+4 -13
View File
@@ -1,9 +1,9 @@
<template>
<div>
<div class="bobo-lottery">
<bobo-yq-view :uid="uid"></bobo-yq-view>
<bobo-yq-view></bobo-yq-view>
<bobo-lottery-count></bobo-lottery-count>
<button class="bobo-lottery-button" @touchend="clickLottery"></button>
<button class="bobo-lottery-button" @click="clickLottery"></button>
</div>
<lottery-prizes-dialog
v-model="show"
@@ -35,13 +35,7 @@ export default {
"remainTicketNum",
"curTicketRuleValue",
"lotteryPrizeItemList"
]),
uid() {
return this.$route.query.uid;
},
roomUid() {
return this.$route.query.roomUid;
}
])
},
methods: {
...mapMutations(["SetCanLottery"]),
@@ -63,10 +57,7 @@ export default {
return;
}
this.runLottery({
uid: this.uid,
roomUid: this.roomUid
})
this.runLottery()
.then(res => {
this.SetCanLottery(true);
const { code } = res;