From 23b6841d3777f166515d3750037bbc9e4f44f050 Mon Sep 17 00:00:00 2001 From: li Date: Mon, 19 Jan 2026 15:10:26 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=AE=80=E5=8C=96=20TableBullbull.?= =?UTF-8?q?vue=20=E4=B8=AD=E9=87=8D=E5=A4=8D=E7=9A=84=E4=B8=8B=E6=B3=A8?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E4=BB=A3=E7=A0=81=E5=B9=B6=E8=B0=83=E6=95=B4?= =?UTF-8?q?=20PlayWay.vue=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PlayTable/TableBullbull.vue | 739 ++++++++------------- src/components/PlayWay.vue | 26 +- 2 files changed, 279 insertions(+), 486 deletions(-) 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 @@