feat:更新
This commit is contained in:
1 parent
793529fea2
commit
72100683e2
6 files changed
+23
-134
No files matched your search
@@ -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("您点太快了,本次抽奖还没结束哦!");
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -72,6 +72,7 @@ export default {
|
||||
watch: {
|
||||
mode() {
|
||||
this.active = 0;
|
||||
this.getqueryTicketRule();
|
||||
},
|
||||
active() {
|
||||
this.SetRuleType(this.ticketRuleConfig[this.active].ruleType);
|
||||
|
||||
Reference in new issue
Block a user