1 line
4.0 KiB
JSON
1 line
4.0 KiB
JSON
{"ast":null,"code":"import { mapState } from \"vuex\";\nimport WayBox from \"@/components/WayBox.vue\";\nexport default {\n props: {\n tabInfo: Object,\n default: {\n game_id: 1,\n table_id: null\n }\n },\n name: \"TableList\",\n data() {\n return {\n game_id: 1\n };\n },\n components: {\n WayBox\n },\n mounted() {\n setTimeout(() => {\n this.game_id = this.tabInfo.game_id;\n }, 100);\n },\n computed: {\n ...mapState({\n $Type: state => state.config.$Type,\n $lang: state => state.config.$lang,\n font: state => state.config.fonstSize,\n userInfo: state => state.app.userInfo\n }),\n tabData() {\n let data = [];\n const list = this.$store.state.app.allTableData;\n if (list.length > 0) {\n data = list.filter(v => v.game_id == this.game_id);\n }\n return data;\n }\n },\n methods: {\n getSendMode(sendMode) {\n let text = \"\";\n switch (sendMode) {\n case \"changeBoot\":\n text = this.$lang[this.$Type].changeBoot;\n break;\n case \"resetBoot\":\n text = this.$lang[this.$Type].resetBoot;\n break;\n case \"startBet\":\n text = this.$lang[this.$Type].startBet;\n break;\n case \"startRobCountDown\":\n text = this.$lang[this.$Type].startRobCountDown;\n break;\n case \"startBetCountDown\":\n text = this.$lang[this.$Type].startBetCountDown;\n break;\n case \"endBet\":\n text = this.$lang[this.$Type].endBet;\n break;\n case \"sendScanResult\":\n text = this.$lang[this.$Type].sendScanResult;\n break;\n case \"openingBaccaratResult\":\n case \"openingDtResult\":\n case \"openingNnResult\":\n case \"openingTcResult\":\n text = this.$lang[this.$Type].Insettlement;\n break;\n default:\n text = \"\";\n }\n return text;\n },\n getTextVal(data) {\n let html = \"\";\n if (data.sendMode == \"startBetCountDown\") {\n html = `<span class=\"palyer\">${data.count_down}</span>`;\n } else if (data.sendMode == \"openingBaccaratResult\") {\n if (data.round.opening == 1) {\n html = `<span class=\"banker\">${this.$lang[this.$Type].banker}</span>`;\n } else if (data.round.opening == 2) {\n html = `<span class=\"palyer\">${this.$lang[this.$Type].player}</span>`;\n } else if (data.round.opening == 3) {\n html = `<span class=\"tie\">${this.$lang[this.$Type].tie}</span>`;\n }\n } else if (data.sendMode == \"openingDtResult\") {\n if (data.round.opening == 1) {\n html = `<span class=\"banker\">${this.$lang[this.$Type].dragon}</span>`;\n } else if (data.round.opening == 2) {\n html = `<span class=\"palyer\">${this.$lang[this.$Type].tiger}</span>`;\n } else if (data.round.opening == 3) {\n html = `<span class=\"tie\">${this.$lang[this.$Type].tie}</span>`;\n }\n } else if (data.sendMode == \"openingNnResult\" || data.sendMode == \"openingTcResult\") {\n let text = \"\";\n if (data.round.win_player_1 == 0 && data.round.win_player_2 == 0 && data.round.win_player_3 == 0) {\n text = this.$lang[this.$Type].banker;\n } else {\n if (data.round.win_player_1 == 1) {\n text = text + this.$lang[this.$Type].player1;\n }\n if (data.round.win_player_2 == 1) {\n text = text + this.$lang[this.$Type].player2;\n }\n if (data.round.win_player_3 == 1) {\n text = text + this.$lang[this.$Type].player3;\n }\n }\n html = `<span class=\"tie\">${text}</span>`;\n }\n return html;\n },\n goPath(item) {\n this.$emit(\"close\");\n this.$router.replace({\n name: \"play\",\n query: {\n id: item.id\n }\n });\n }\n },\n watch: {}\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]} |