feat:更新
This commit is contained in:
1 parent
f0ed36e25c
commit
39022f3711
3 files changed
+37
-10
No files matched your search
@@ -38,7 +38,7 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(["remainTicketNum"]),
|
||||
...mapGetters(["remainTicketNum", "ticketRule"]),
|
||||
modeClass() {
|
||||
if (this.mode === "blue") return "bottom-view-xy";
|
||||
return "bottom-view-hh";
|
||||
@@ -80,7 +80,6 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
active: 0,
|
||||
ticketRule: null,
|
||||
ticketRuleConfig: [
|
||||
{
|
||||
ruleType: "one",
|
||||
@@ -105,13 +104,15 @@ export default {
|
||||
this.getqueryTicketRule();
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(["SetRuleType", "SetRemainTicketNum"]),
|
||||
...mapMutations(["SetRuleType", "SetRemainTicketNum", "SetTicketRule"]),
|
||||
getQueryTicketNum() {
|
||||
queryTicketNum({ uid: this.uid })
|
||||
.then(res => {
|
||||
const { code, data } = res;
|
||||
const { code, data, msg } = res;
|
||||
if (code === 200) {
|
||||
this.SetRemainTicketNum(data.num || 0);
|
||||
} else {
|
||||
this.$toast.fail(msg);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
@@ -121,9 +122,12 @@ export default {
|
||||
getqueryTicketRule() {
|
||||
queryTicketRule({ drawType: this.drawType })
|
||||
.then(res => {
|
||||
const { code, data } = res;
|
||||
const { code, data, msg } = res;
|
||||
if (code === 200) {
|
||||
this.ticketRule = data || null;
|
||||
// this.ticketRule = data || null;
|
||||
this.SetTicketRule(data || null);
|
||||
} else {
|
||||
this.$toast.fail(msg);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
Reference in new issue
Block a user