feat:更新

This commit is contained in:
dengtongyu committed 2021-08-30 10:42:29 +08:00
1 parent 793529fea2
commit 72100683e2
6 files changed
+23 -134

No files matched your search

+9 -1
View File
@@ -4,6 +4,7 @@
<script>
import eventBus from "@/lib/eventBus";
import { mapMutations, mapGetters } from "vuex";
export default {
name: "LotteryBtn",
props: {
@@ -13,14 +14,21 @@ export default {
}
},
computed: {
...mapGetters(["canLottery"]),
modeClass() {
if (this.mode === "blue") return "lottery-btn-xy";
return "lottery-btn-hh";
}
},
methods: {
...mapMutations(["SetCanLottery"]),
clickLottery() {
eventBus.$emit("eventLottery");
if (this.canLottery) {
this.SetCanLottery(false);
eventBus.$emit("eventLottery");
} else {
this.$toast.fail("您点太快了,本次抽奖还没结束哦!");
}
}
}
};
+1
View File
@@ -72,6 +72,7 @@ export default {
watch: {
mode() {
this.active = 0;
this.getqueryTicketRule();
},
active() {
this.SetRuleType(this.ticketRuleConfig[this.active].ruleType);