diff --git a/src/components/PlayTable/TableBullbull.vue b/src/components/PlayTable/TableBullbull.vue index 4016e090..3c98587c 100644 --- a/src/components/PlayTable/TableBullbull.vue +++ b/src/components/PlayTable/TableBullbull.vue @@ -1,325 +1,134 @@ @@ -330,43 +139,23 @@ import { useStore } from "vuex" import confirmBet from "@/components/confirmBet.vue" import chipView from "@/components/chipView.vue" import { nnData } from "@/utils/common" + export default { name: "TableBullbull", components: { confirmBet, chipView }, props: { - game_id: { - type: [String, Number], - default: 1 - }, - touch: { - type: String, - default: "" - }, - bet_amount_msg: { - type: Object, - default: () => ({ - ...nnData.amount - }) - }, - winArray: { - type: Array, - default: () => [] - }, - downChip: { - type: Object, - default: () => ({ - ...nnData.amount - }) - }, - chipArray: { - type: Object, - default: () => ({ ...nnData.array }) - } + game_id: { type: [String, Number], default: 1 }, + touch: { type: String, default: "" }, + bet_amount_msg: { type: Object, default: () => ({ ...nnData.amount }) }, + winArray: { type: Array, default: () => [] }, + downChip: { type: Object, default: () => ({ ...nnData.amount }) }, + chipArray: { type: Object, default: () => ({ ...nnData.array }) } }, - setup(prop, context) { + setup(props, context) { const store = useStore() const Type = computed(() => store.state.config.$Type) const Lang = computed(() => store.state.config.$lang) + const downBet = (e, type) => { context.emit("downBet", e, type) } @@ -379,163 +168,157 @@ export default { const undoChip = () => { context.emit("undoChip") } + return { Type, Lang, downBet, confirmChip, cancelChip, undoChip } } } + diff --git a/src/components/PlayWay.vue b/src/components/PlayWay.vue index df4b6032..9fc886d9 100644 --- a/src/components/PlayWay.vue +++ b/src/components/PlayWay.vue @@ -1,11 +1,11 @@