GamePortrait/node_modules/.cache/babel-loader/a14e8740a11052767e5878d5332ad68267beed25ba11d0e6e067cc3f0851812d.json

1 line
58 KiB
JSON

{"ast":null,"code":"import { mapState } from \"vuex\";\nexport default {\n name: \"PokerView\",\n data() {\n return {\n routeName: null,\n isfrist: true,\n show: false,\n //false\n game_id: \"\",\n isPoker: false,\n //false\n bankerIsWin: false,\n playerIsWin: false,\n win_player_1: null,\n win_player_2: null,\n win_player_3: null,\n bankernum: \"\",\n playernum: \"\",\n role4: \"\",\n role1: \"\",\n role2: \"\",\n role3: \"\",\n timeResult1: null,\n timeResult2: null\n };\n },\n created: function () {\n this.routeName = this.$route.name;\n },\n methods: {\n showCard(data) {\n var game_id = this.game_id;\n var card = data.card_info;\n if (game_id == 1) {\n if (card.banker_1 != 0) {\n this.cardreform(21, card.banker_1);\n }\n if (card.banker_2 != 0) {\n this.cardreform(22, card.banker_2);\n }\n if (card.banker_3 != 0) {\n this.cardreform(23, card.banker_3);\n }\n if (card.player_1 != 0) {\n this.cardreform(11, card.player_1);\n }\n if (card.player_2 != 0) {\n this.cardreform(12, card.player_2);\n }\n if (card.player_3 != 0) {\n this.cardreform(13, card.player_3);\n }\n } else if (game_id == 2) {\n if (card.player_1 != 0) {\n this.cardreform(11, card.player_1);\n }\n if (card.banker_1 != 0) {\n this.cardreform(21, card.banker_1);\n }\n } else if (game_id == 4 || game_id == 5) {\n if (card.card_first != 0) {\n this.cardreform(0, card.card_first);\n }\n if (card.banker_card_1 != 0) {\n this.cardreform(41, card.banker_card_1);\n }\n if (card.banker_card_2 != 0) {\n this.cardreform(42, card.banker_card_2);\n }\n if (card.banker_card_3 != 0) {\n if (game_id == 5) {\n this.cardreform(43, card.banker_card_3, data.tc_result.banker_result);\n } else {\n this.cardreform(43, card.banker_card_3);\n }\n }\n if (card.banker_card_4 != 0 && game_id == 4) {\n this.cardreform(44, card.banker_card_4);\n }\n if (card.banker_card_5 != 0 && game_id == 4) {\n this.cardreform(45, card.banker_card_5, data.nn_result.banker_result);\n }\n if (card.player_1_card_1 != 0) {\n this.cardreform(11, card.player_1_card_1);\n }\n if (card.player_1_card_2 != 0) {\n this.cardreform(12, card.player_1_card_2);\n }\n if (card.player_1_card_3 != 0) {\n if (game_id == 5) {\n this.cardreform(13, card.player_1_card_3, data.tc_result.player_1_result);\n } else {\n this.cardreform(13, card.player_1_card_3);\n }\n }\n if (card.player_1_card_4 != 0 && game_id == 4) {\n this.cardreform(14, card.player_1_card_4);\n }\n if (card.player_1_card_5 != 0 && game_id == 4) {\n this.cardreform(15, card.player_1_card_5, data.nn_result.player_1_result);\n }\n if (card.player_2_card_1 != 0) {\n this.cardreform(21, card.player_2_card_1);\n }\n if (card.player_2_card_2 != 0) {\n this.cardreform(22, card.player_2_card_2);\n }\n if (card.player_2_card_3 != 0) {\n if (game_id == 5) {\n this.cardreform(23, card.player_2_card_3, data.tc_result.player_2_result);\n } else {\n this.cardreform(23, card.player_2_card_3);\n }\n }\n if (card.player_2_card_4 != 0 && game_id == 4) {\n this.cardreform(24, card.player_2_card_4);\n }\n if (card.player_2_card_5 != 0 && game_id == 4) {\n this.cardreform(25, card.player_2_card_5, data.nn_result.player_2_result);\n }\n if (card.player_3_card_1 != 0) {\n this.cardreform(31, card.player_3_card_1);\n }\n if (card.player_3_card_2 != 0) {\n this.cardreform(32, card.player_3_card_2);\n }\n if (card.player_3_card_3 != 0) {\n if (game_id == 5) {\n this.cardreform(33, card.player_3_card_3, data.tc_result.player_3_result);\n } else {\n this.cardreform(33, card.player_3_card_3);\n }\n }\n if (card.player_3_card_4 != 0 && game_id == 4) {\n this.cardreform(34, card.player_3_card_4);\n }\n if (card.player_3_card_5 != 0 && game_id == 4) {\n this.cardreform(35, card.player_3_card_5, data.nn_result.player_3_result);\n }\n }\n },\n cardreform(position, num, result) {\n this.card = {};\n this.card.status = true;\n this.card.round = {};\n this.card.round.card = num;\n if (this.game_id == 1 || this.game_id == 2) {\n this.card.round.position = position;\n } else if (this.game_id == 4 || this.game_id == 5) {\n if (result != undefined) {\n this.card.round.result = result;\n console.log(result);\n }\n this.card.round.order_num = position;\n }\n this.Flop(this.card);\n },\n Flop(data) {\n let which, position, pokerindex;\n if (data.status == true) {\n if (this.game_id == 1 || this.game_id == 2) {\n which = data.round.position.toString();\n } else if (this.game_id == 4) {\n which = data.round.order_num.toString();\n position = parseInt(which / 10);\n pokerindex = which % 10;\n if (pokerindex == 5) {\n this[\"role\" + position] = data.round.result;\n }\n } else if (this.game_id == 5) {\n which = data.round.order_num.toString();\n position = parseInt(which / 10);\n pokerindex = which % 10;\n if (pokerindex == 3) {\n this[\"role\" + position] = data.round.result;\n }\n }\n var pokercard = data.round.card;\n var pokersrc = require(\"../assets/images/poker/\" + pokercard + \".png\");\n setTimeout(() => {\n var $position = this.$refs[\"position_\" + which];\n var $poker = this.$refs[\"pocker_\" + which];\n if (this.game_id == 1) {\n if (which == 13) {\n if (this.$refs.position_13) {\n this.$refs.position_13.style.display = \"inline-block\";\n }\n }\n if (which == 23) {\n if (this.$refs.position_23) {\n this.$refs.position_23.style.display = \"inline-block\";\n }\n }\n }\n if ($position) {\n $position.classList.add(\"active\");\n $poker.style.backgroundImage = \"url('\" + pokersrc + \"')\";\n }\n }, 100);\n }\n },\n openResult(data) {\n // console.log(\"openResult\", data)\n if (this.game_id == 1 || this.game_id == 2) {\n if (data.round.opening == 1) {\n this.bankerIsWin = true;\n } else if (data.round.opening == 2) {\n this.playerIsWin = true;\n }\n this.bankernum = data.round.banker;\n this.playernum = data.round.player;\n } else if (this.game_id == 4 || this.game_id == 5) {\n this.win_player_1 = data.round.win_player_1;\n this.win_player_2 = data.round.win_player_2;\n this.win_player_3 = data.round.win_player_3;\n }\n var that = this;\n this.timeResult1 = setTimeout(() => {\n that.show = false;\n that.bankerIsWin = false;\n that.playerIsWin = false;\n that.win_player_1 = null;\n that.win_player_2 = null;\n that.win_player_3 = null;\n that.bankernum = \"\";\n that.playernum = \"\";\n that.role4 = \"\";\n that.role1 = \"\";\n that.role2 = \"\";\n that.role3 = \"\";\n if (that.game_id == 4 || that.game_id == 5) {\n var firstfaces = require(\"../assets/images/poker/faces.png\");\n if (that.$refs.pocker_0) {\n that.$refs.pocker_0.style.backgroundImage = \"url(\" + firstfaces + \")\";\n }\n }\n }, 7000);\n this.timeResult2 = setTimeout(() => {\n that.isPoker = false;\n }, 7500);\n },\n resetPock() {\n this.bankerIsWin = false;\n this.playerIsWin = false;\n this.win_player_1 = null;\n this.win_player_2 = null;\n this.win_player_3 = null;\n this.bankernum = \"\";\n this.playernum = \"\";\n this.role4 = \"\";\n this.role1 = \"\";\n this.role2 = \"\";\n this.role3 = \"\";\n if (this.game_id == 4 || this.game_id == 5) {\n var firstfaces = require(\"../assets/images/poker/faces.png\");\n if (this.$refs.pocker_0) {\n this.$refs.pocker_0.style.backgroundImage = \"url(\" + firstfaces + \")\";\n }\n }\n this.show = false;\n this.isPoker = false;\n }\n },\n computed: {\n ...mapState({\n $Type: state => state.config.$Type,\n $lang: state => state.config.$lang,\n online: state => state.config.online\n })\n },\n watch: {\n $route: {\n handler() {\n clearTimeout(this.timeResult1);\n clearTimeout(this.timeResult2);\n this.timeResult1 = null;\n this.timeResult2 = null;\n this.bankerIsWin = false;\n this.playerIsWin = false;\n },\n deep: true,\n immediate: true\n },\n online: {\n handler(online) {\n if (online == true) {\n if (this.thisData.bet_status == 2) {\n var that = this;\n setTimeout(() => {\n that.show = true;\n }, 100);\n // 已翻牌\n this.$nextTick(() => {\n this.showCard(this.thisData);\n });\n } else {\n this.resetPock();\n }\n }\n },\n deep: true,\n immediate: true\n },\n thisData: {\n handler(newData) {\n if (newData && newData.game_id) {\n const that = this;\n // 第一次赋值判断\n if (this.isfrist == true || newData.sendMode == \"getState\") {\n this.isfrist = false;\n this.game_id = newData.game_id;\n if (newData.bet_status == 2) {\n that.isPoker = true;\n setTimeout(() => {\n that.show = true;\n }, 100);\n // 已翻牌\n this.$nextTick(() => {\n this.showCard(newData);\n });\n } else if (newData.bet_status == 0) {\n this.isPoker = false;\n }\n if (newData.sendMode == \"startBetCountDown\") {\n if (this.show == true) {\n this.resetPock();\n }\n }\n }\n // 翻牌 开结果\n if (newData.sendMode != \"\" && newData.sendMode != undefined) {\n if (newData.sendMode == \"endBet\") {\n const that = this;\n that.isPoker = true;\n setTimeout(() => {\n that.show = true;\n }, 100);\n } else if (newData.sendMode == \"sendScanResult\") {\n this.Flop(newData);\n } else if (newData.sendMode == \"openingBaccaratResult\") {\n this.openResult(newData);\n } else if (newData.sendMode == \"openingDtResult\") {\n this.openResult(newData);\n } else if (newData.sendMode == \"openingNnResult\") {\n this.openResult(newData);\n } else if (newData.sendMode == \"openingTcResult\") {\n this.openResult(newData);\n } else if (newData.sendMode == \"resetNumberTab\") {\n this.bankerIsWin = false;\n this.playerIsWin = false;\n this.win_player_1 = null;\n this.win_player_2 = null;\n this.win_player_3 = null;\n this.bankernum = \"\";\n this.playernum = \"\";\n this.role4 = \"\";\n this.role1 = \"\";\n this.role2 = \"\";\n this.role3 = \"\";\n if (this.game_id == 4 || this.game_id == 5) {\n var firstfaces = require(\"../assets/images/poker/faces.png\");\n if (this.$refs.pocker_0) {\n this.$refs.pocker_0.style.backgroundImage = \"url(\" + firstfaces + \")\";\n }\n }\n this.show = false;\n this.isPoker = false;\n } else if (newData.sendMode == \"startBet\" || newData.sendMode == \"startBetCountDown\") {\n if (this.show == true) {\n this.resetPock();\n }\n }\n }\n }\n },\n deep: true,\n immediate: true\n }\n },\n props: {\n thisData: Object\n }\n};","map":{"version":3,"names":["mapState","name","data","routeName","isfrist","show","game_id","isPoker","bankerIsWin","playerIsWin","win_player_1","win_player_2","win_player_3","bankernum","playernum","role4","role1","role2","role3","timeResult1","timeResult2","created","$route","methods","showCard","card","card_info","banker_1","cardreform","banker_2","banker_3","player_1","player_2","player_3","card_first","banker_card_1","banker_card_2","banker_card_3","tc_result","banker_result","banker_card_4","banker_card_5","nn_result","player_1_card_1","player_1_card_2","player_1_card_3","player_1_result","player_1_card_4","player_1_card_5","player_2_card_1","player_2_card_2","player_2_card_3","player_2_result","player_2_card_4","player_2_card_5","player_3_card_1","player_3_card_2","player_3_card_3","player_3_result","player_3_card_4","player_3_card_5","position","num","result","status","round","undefined","console","log","order_num","Flop","which","pokerindex","toString","parseInt","pokercard","pokersrc","require","setTimeout","$position","$refs","$poker","position_13","style","display","position_23","classList","add","backgroundImage","openResult","opening","banker","player","that","firstfaces","pocker_0","resetPock","computed","$Type","state","config","$lang","online","watch","handler","clearTimeout","deep","immediate","thisData","bet_status","$nextTick","newData","sendMode","props","Object"],"sources":["/Users/li/Desktop/work/work2/OG/GamePortrait/src/components/Poker.vue"],"sourcesContent":["<template>\n <div>\n <!-- 百家乐 -->\n <section class=\"poker-box baccarat\" v-if=\"game_id == 1 && isPoker == true\">\n <transition\n name=\"custom-classes-transition\"\n enter-active-class=\"animate__animated animate__bounceInLeft\"\n leave-active-class=\"animate__animated animate__bounceOutLeft\"\n >\n <div class=\"list player\" v-if=\"show\" :class=\"{ win: playerIsWin }\">\n <div class=\"item\" ref=\"position_13\">\n <span class=\"card\" ref=\"pocker_13\"></span>\n </div>\n <div class=\"item\" ref=\"position_11\">\n <span class=\"card\" ref=\"pocker_11\"></span>\n </div>\n <div class=\"item\" ref=\"position_12\">\n <span class=\"card\" ref=\"pocker_12\"></span>\n </div>\n <p class=\"font\">\n {{ $lang[$Type].player }}\n <br />\n {{ playernum }}\n </p>\n </div>\n </transition>\n <transition\n name=\"custom-classes-transition\"\n enter-active-class=\"animate__animated animate__bounceInRight\"\n leave-active-class=\"animate__animated animate__bounceOutRight\"\n >\n <div class=\"list banker\" v-if=\"show\" :class=\"{ win: bankerIsWin }\">\n <p class=\"font\">\n {{ $lang[$Type].banker }}\n <br />\n {{ bankernum }}\n </p>\n <div class=\"item\" ref=\"position_21\">\n <span class=\"card\" ref=\"pocker_21\"></span>\n </div>\n <div class=\"item\" ref=\"position_22\">\n <span class=\"card\" ref=\"pocker_22\"></span>\n </div>\n <div class=\"item\" ref=\"position_23\">\n <span class=\"card\" ref=\"pocker_23\"></span>\n </div>\n </div>\n </transition>\n </section>\n <!-- 龙虎 -->\n <section class=\"poker-box longhu\" v-if=\"game_id == 2 && isPoker == true\">\n <transition\n name=\"custom-classes-transition\"\n enter-active-class=\"animate__animated animate__bounceInLeft\"\n leave-active-class=\"animate__animated animate__bounceOutLeft\"\n >\n <div class=\"list banker\" v-if=\"show\" :class=\"{ win: bankerIsWin }\">\n <div class=\"item\" ref=\"position_21\">\n <span class=\"card\" ref=\"pocker_21\"></span>\n </div>\n <p class=\"font\">\n {{ $lang[$Type].dragon }}\n <br />\n {{ bankernum }}\n </p>\n </div>\n </transition>\n <transition\n name=\"custom-classes-transition\"\n enter-active-class=\"animate__animated animate__bounceInRight\"\n leave-active-class=\"animate__animated animate__bounceOutRight\"\n >\n <div class=\"list player\" v-if=\"show\" :class=\"{ win: playerIsWin }\">\n <p class=\"font\">\n {{ $lang[$Type].tiger }}\n <br />\n {{ playernum }}\n </p>\n <div class=\"item\" ref=\"position_11\">\n <span class=\"card\" ref=\"pocker_11\"></span>\n </div>\n </div>\n </transition>\n </section>\n <!-- 牛牛 -->\n <div class=\"nn_position\" v-if=\"game_id == 4 && routeName == 'multiple'\">\n <strong>{{ $lang[$Type].position }}</strong>\n <div class=\"item\" ref=\"position_0\">\n <span class=\"card\" ref=\"pocker_0\"></span>\n </div>\n </div>\n <div\n class=\"nn_position\"\n name=\"custom-classes-transition\"\n enter-active-class=\"animate__animated bounceInUp\"\n leave-active-class=\"animate__animated bounceOutDown\"\n v-if=\"game_id == 4 && routeName == 'play' && isPoker == true\"\n >\n <strong>{{ $lang[$Type].position }}</strong>\n <div class=\"item\" ref=\"position_0\">\n <span class=\"card\" ref=\"pocker_0\"></span>\n </div>\n </div>\n <transition\n name=\"custom-classes-transition\"\n enter-active-class=\"animate__animated animate__bounceInUp\"\n leave-active-class=\"animate__animated animate__bounceOutDown\"\n >\n <section\n class=\"poker-box nn pt_nn\"\n v-if=\"game_id == 4 && isPoker == true\"\n >\n <div\n class=\"list\"\n :class=\"{\n win: win_player_1 == 0 && win_player_2 == 0 && win_player_3 == 0\n }\"\n >\n <p class=\"title red\">\n <template v-if=\"$Type == 'en'\">&nbsp;</template>\n {{ $lang[$Type].banker }}\n <template v-if=\"$Type != 'en'\">家</template>\n <template v-if=\"$Type == 'en'\">&nbsp;</template>\n </p>\n <span class=\"role\" v-show=\"role4\">{{ role4 }}</span>\n <div class=\"item\" ref=\"position_41\">\n <span class=\"card\" ref=\"pocker_41\"></span>\n </div>\n <div class=\"item\" ref=\"position_42\">\n <span class=\"card\" ref=\"pocker_42\"></span>\n </div>\n <div class=\"item\" ref=\"position_43\">\n <span class=\"card\" ref=\"pocker_43\"></span>\n </div>\n <div class=\"item\" ref=\"position_44\">\n <span class=\"card\" ref=\"pocker_44\"></span>\n </div>\n <div class=\"item\" ref=\"position_45\">\n <span class=\"card\" ref=\"pocker_45\"></span>\n </div>\n </div>\n <div class=\"list\" :class=\"{ win: win_player_1 == 1 }\">\n <p class=\"title blue\">\n {{ $lang[$Type].player1 }}\n </p>\n <span class=\"role\" v-show=\"role1\">{{ role1 }}</span>\n\n <div class=\"item\" ref=\"position_11\">\n <span class=\"card\" ref=\"pocker_11\"></span>\n </div>\n <div class=\"item\" ref=\"position_12\">\n <span class=\"card\" ref=\"pocker_12\"></span>\n </div>\n <div class=\"item\" ref=\"position_13\">\n <span class=\"card\" ref=\"pocker_13\"></span>\n </div>\n <div class=\"item\" ref=\"position_14\">\n <span class=\"card\" ref=\"pocker_14\"></span>\n </div>\n <div class=\"item\" ref=\"position_15\">\n <span class=\"card\" ref=\"pocker_15\"></span>\n </div>\n </div>\n <div class=\"list\" :class=\"{ win: win_player_2 == 1 }\">\n <p class=\"title blue\">\n {{ $lang[$Type].player2 }}\n </p>\n <span class=\"role\" v-show=\"role2\">{{ role2 }}</span>\n <div class=\"item\" ref=\"position_21\">\n <span class=\"card\" ref=\"pocker_21\"></span>\n </div>\n <div class=\"item\" ref=\"position_22\">\n <span class=\"card\" ref=\"pocker_22\"></span>\n </div>\n <div class=\"item\" ref=\"position_23\">\n <span class=\"card\" ref=\"pocker_23\"></span>\n </div>\n <div class=\"item\" ref=\"position_24\">\n <span class=\"card\" ref=\"pocker_24\"></span>\n </div>\n <div class=\"item\" ref=\"position_25\">\n <span class=\"card\" ref=\"pocker_25\"></span>\n </div>\n </div>\n <div class=\"list\" :class=\"{ win: win_player_3 == 1 }\">\n <p class=\"title blue\">\n {{ $lang[$Type].player3 }}\n </p>\n <span class=\"role\" v-show=\"role3\">{{ role3 }}</span>\n <div class=\"item\" ref=\"position_31\">\n <span class=\"card\" ref=\"pocker_31\"></span>\n </div>\n <div class=\"item\" ref=\"position_32\">\n <span class=\"card\" ref=\"pocker_32\"></span>\n </div>\n <div class=\"item\" ref=\"position_33\">\n <span class=\"card\" ref=\"pocker_33\"></span>\n </div>\n <div class=\"item\" ref=\"position_34\">\n <span class=\"card\" ref=\"pocker_34\"></span>\n </div>\n <div class=\"item\" ref=\"position_35\">\n <span class=\"card\" ref=\"pocker_35\"></span>\n </div>\n </div>\n </section>\n </transition>\n <!-- 三卡牛牛 -->\n <div class=\"nn_position\" v-if=\"game_id == 5 && routeName == 'multiple'\">\n <strong>{{ $lang[$Type].position }}</strong>\n <div class=\"item\" ref=\"position_0\">\n <span class=\"card\" ref=\"pocker_0\"></span>\n </div>\n </div>\n\n <transition\n name=\"custom-classes-transition\"\n enter-active-class=\"animate__animated animate__bounceInUp\"\n leave-active-class=\"animate__animated animate__bounceOutDown\"\n >\n <section\n class=\"poker-box nn sanka tr_nn\"\n v-if=\"game_id == 5 && isPoker == true\"\n >\n <div\n class=\"nn_position\"\n v-if=\"game_id == 5 && routeName == 'play' && isPoker == true\"\n >\n <strong>{{ $lang[$Type].position }}</strong>\n <div class=\"item\" ref=\"position_0\">\n <span class=\"card\" ref=\"pocker_0\"></span>\n </div>\n </div>\n <div\n class=\"list\"\n :class=\"{\n win: win_player_1 == 0 && win_player_2 == 0 && win_player_3 == 0\n }\"\n >\n <p class=\"title red\">\n <template v-if=\"$Type == 'en'\">&nbsp;</template>\n {{ $lang[$Type].banker }}\n <template v-if=\"$Type != 'en'\">家</template>\n <template v-if=\"$Type == 'en'\">&nbsp;</template>\n </p>\n <span class=\"role\" v-show=\"role4\">{{ role4 }}</span>\n <div class=\"item\" ref=\"position_41\">\n <span class=\"card\" ref=\"pocker_41\"></span>\n </div>\n <div class=\"item\" ref=\"position_42\">\n <span class=\"card\" ref=\"pocker_42\"></span>\n </div>\n <div class=\"item\" ref=\"position_43\">\n <span class=\"card\" ref=\"pocker_43\"></span>\n </div>\n </div>\n <div class=\"list\" :class=\"{ win: win_player_1 == 1 }\">\n <p class=\"title blue\">\n {{ $lang[$Type].player1 }}\n </p>\n <span class=\"role\" v-show=\"role1\">{{ role1 }}</span>\n <div class=\"item\" ref=\"position_11\">\n <span class=\"card\" ref=\"pocker_11\"></span>\n </div>\n <div class=\"item\" ref=\"position_12\">\n <span class=\"card\" ref=\"pocker_12\"></span>\n </div>\n <div class=\"item\" ref=\"position_13\">\n <span class=\"card\" ref=\"pocker_13\"></span>\n </div>\n </div>\n <div class=\"list\" :class=\"{ win: win_player_2 == 1 }\">\n <p class=\"title blue\">\n {{ $lang[$Type].player2 }}\n </p>\n <span class=\"role\" v-show=\"role2\">\n {{ role2 }}\n </span>\n <div class=\"item\" ref=\"position_21\">\n <span class=\"card\" ref=\"pocker_21\"></span>\n </div>\n <div class=\"item\" ref=\"position_22\">\n <span class=\"card\" ref=\"pocker_22\"></span>\n </div>\n <div class=\"item\" ref=\"position_23\">\n <span class=\"card\" ref=\"pocker_23\"></span>\n </div>\n </div>\n <div class=\"list\" :class=\"{ win: win_player_3 == 1 }\">\n <p class=\"title blue\">\n {{ $lang[$Type].player3 }}\n </p>\n <span class=\"role\" v-show=\"role3\">{{ role3 }}</span>\n <div class=\"item\" ref=\"position_31\">\n <span class=\"card\" ref=\"pocker_31\"></span>\n </div>\n <div class=\"item\" ref=\"position_32\">\n <span class=\"card\" ref=\"pocker_32\"></span>\n </div>\n <div class=\"item\" ref=\"position_33\">\n <span class=\"card\" ref=\"pocker_33\"></span>\n </div>\n </div>\n </section>\n </transition>\n </div>\n</template>\n\n<script>\nimport { mapState } from \"vuex\"\nexport default {\n name: \"PokerView\",\n data() {\n return {\n routeName: null,\n isfrist: true,\n show: false, //false\n game_id: \"\",\n isPoker: false, //false\n bankerIsWin: false,\n playerIsWin: false,\n win_player_1: null,\n win_player_2: null,\n win_player_3: null,\n bankernum: \"\",\n playernum: \"\",\n role4: \"\",\n role1: \"\",\n role2: \"\",\n role3: \"\",\n timeResult1: null,\n timeResult2: null\n }\n },\n created: function () {\n this.routeName = this.$route.name\n },\n methods: {\n showCard(data) {\n var game_id = this.game_id\n var card = data.card_info\n if (game_id == 1) {\n if (card.banker_1 != 0) {\n this.cardreform(21, card.banker_1)\n }\n if (card.banker_2 != 0) {\n this.cardreform(22, card.banker_2)\n }\n if (card.banker_3 != 0) {\n this.cardreform(23, card.banker_3)\n }\n if (card.player_1 != 0) {\n this.cardreform(11, card.player_1)\n }\n if (card.player_2 != 0) {\n this.cardreform(12, card.player_2)\n }\n if (card.player_3 != 0) {\n this.cardreform(13, card.player_3)\n }\n } else if (game_id == 2) {\n if (card.player_1 != 0) {\n this.cardreform(11, card.player_1)\n }\n if (card.banker_1 != 0) {\n this.cardreform(21, card.banker_1)\n }\n } else if (game_id == 4 || game_id == 5) {\n if (card.card_first != 0) {\n this.cardreform(0, card.card_first)\n }\n if (card.banker_card_1 != 0) {\n this.cardreform(41, card.banker_card_1)\n }\n if (card.banker_card_2 != 0) {\n this.cardreform(42, card.banker_card_2)\n }\n if (card.banker_card_3 != 0) {\n if (game_id == 5) {\n this.cardreform(\n 43,\n card.banker_card_3,\n data.tc_result.banker_result\n )\n } else {\n this.cardreform(43, card.banker_card_3)\n }\n }\n if (card.banker_card_4 != 0 && game_id == 4) {\n this.cardreform(44, card.banker_card_4)\n }\n if (card.banker_card_5 != 0 && game_id == 4) {\n this.cardreform(45, card.banker_card_5, data.nn_result.banker_result)\n }\n\n if (card.player_1_card_1 != 0) {\n this.cardreform(11, card.player_1_card_1)\n }\n if (card.player_1_card_2 != 0) {\n this.cardreform(12, card.player_1_card_2)\n }\n if (card.player_1_card_3 != 0) {\n if (game_id == 5) {\n this.cardreform(\n 13,\n card.player_1_card_3,\n data.tc_result.player_1_result\n )\n } else {\n this.cardreform(13, card.player_1_card_3)\n }\n }\n if (card.player_1_card_4 != 0 && game_id == 4) {\n this.cardreform(14, card.player_1_card_4)\n }\n if (card.player_1_card_5 != 0 && game_id == 4) {\n this.cardreform(\n 15,\n card.player_1_card_5,\n data.nn_result.player_1_result\n )\n }\n\n if (card.player_2_card_1 != 0) {\n this.cardreform(21, card.player_2_card_1)\n }\n if (card.player_2_card_2 != 0) {\n this.cardreform(22, card.player_2_card_2)\n }\n if (card.player_2_card_3 != 0) {\n if (game_id == 5) {\n this.cardreform(\n 23,\n card.player_2_card_3,\n data.tc_result.player_2_result\n )\n } else {\n this.cardreform(23, card.player_2_card_3)\n }\n }\n if (card.player_2_card_4 != 0 && game_id == 4) {\n this.cardreform(24, card.player_2_card_4)\n }\n if (card.player_2_card_5 != 0 && game_id == 4) {\n this.cardreform(\n 25,\n card.player_2_card_5,\n data.nn_result.player_2_result\n )\n }\n\n if (card.player_3_card_1 != 0) {\n this.cardreform(31, card.player_3_card_1)\n }\n if (card.player_3_card_2 != 0) {\n this.cardreform(32, card.player_3_card_2)\n }\n if (card.player_3_card_3 != 0) {\n if (game_id == 5) {\n this.cardreform(\n 33,\n card.player_3_card_3,\n data.tc_result.player_3_result\n )\n } else {\n this.cardreform(33, card.player_3_card_3)\n }\n }\n if (card.player_3_card_4 != 0 && game_id == 4) {\n this.cardreform(34, card.player_3_card_4)\n }\n if (card.player_3_card_5 != 0 && game_id == 4) {\n this.cardreform(\n 35,\n card.player_3_card_5,\n data.nn_result.player_3_result\n )\n }\n }\n },\n cardreform(position, num, result) {\n this.card = {}\n this.card.status = true\n this.card.round = {}\n this.card.round.card = num\n if (this.game_id == 1 || this.game_id == 2) {\n this.card.round.position = position\n } else if (this.game_id == 4 || this.game_id == 5) {\n if (result != undefined) {\n this.card.round.result = result\n console.log(result)\n }\n this.card.round.order_num = position\n }\n this.Flop(this.card)\n },\n\n Flop(data) {\n let which, position, pokerindex\n if (data.status == true) {\n if (this.game_id == 1 || this.game_id == 2) {\n which = data.round.position.toString()\n } else if (this.game_id == 4) {\n which = data.round.order_num.toString()\n position = parseInt(which / 10)\n pokerindex = which % 10\n if (pokerindex == 5) {\n this[\"role\" + position] = data.round.result\n }\n } else if (this.game_id == 5) {\n which = data.round.order_num.toString()\n position = parseInt(which / 10)\n pokerindex = which % 10\n if (pokerindex == 3) {\n this[\"role\" + position] = data.round.result\n }\n }\n\n var pokercard = data.round.card\n var pokersrc = require(\"../assets/images/poker/\" + pokercard + \".png\")\n setTimeout(() => {\n var $position = this.$refs[\"position_\" + which]\n var $poker = this.$refs[\"pocker_\" + which]\n if (this.game_id == 1) {\n if (which == 13) {\n if (this.$refs.position_13) {\n this.$refs.position_13.style.display = \"inline-block\"\n }\n }\n if (which == 23) {\n if (this.$refs.position_23) {\n this.$refs.position_23.style.display = \"inline-block\"\n }\n }\n }\n if ($position) {\n $position.classList.add(\"active\")\n $poker.style.backgroundImage = \"url('\" + pokersrc + \"')\"\n }\n }, 100)\n }\n },\n openResult(data) {\n // console.log(\"openResult\", data)\n if (this.game_id == 1 || this.game_id == 2) {\n if (data.round.opening == 1) {\n this.bankerIsWin = true\n } else if (data.round.opening == 2) {\n this.playerIsWin = true\n }\n this.bankernum = data.round.banker\n this.playernum = data.round.player\n } else if (this.game_id == 4 || this.game_id == 5) {\n this.win_player_1 = data.round.win_player_1\n this.win_player_2 = data.round.win_player_2\n this.win_player_3 = data.round.win_player_3\n }\n\n var that = this\n this.timeResult1 = setTimeout(() => {\n that.show = false\n that.bankerIsWin = false\n that.playerIsWin = false\n that.win_player_1 = null\n that.win_player_2 = null\n that.win_player_3 = null\n that.bankernum = \"\"\n that.playernum = \"\"\n that.role4 = \"\"\n that.role1 = \"\"\n that.role2 = \"\"\n that.role3 = \"\"\n if (that.game_id == 4 || that.game_id == 5) {\n var firstfaces = require(\"../assets/images/poker/faces.png\")\n if (that.$refs.pocker_0) {\n that.$refs.pocker_0.style.backgroundImage =\n \"url(\" + firstfaces + \")\"\n }\n }\n }, 7000)\n this.timeResult2 = setTimeout(() => {\n that.isPoker = false\n }, 7500)\n },\n resetPock() {\n this.bankerIsWin = false\n this.playerIsWin = false\n this.win_player_1 = null\n this.win_player_2 = null\n this.win_player_3 = null\n this.bankernum = \"\"\n this.playernum = \"\"\n this.role4 = \"\"\n this.role1 = \"\"\n this.role2 = \"\"\n this.role3 = \"\"\n if (this.game_id == 4 || this.game_id == 5) {\n var firstfaces = require(\"../assets/images/poker/faces.png\")\n if (this.$refs.pocker_0) {\n this.$refs.pocker_0.style.backgroundImage = \"url(\" + firstfaces + \")\"\n }\n }\n this.show = false\n this.isPoker = false\n }\n },\n computed: {\n ...mapState({\n $Type: (state) => state.config.$Type,\n $lang: (state) => state.config.$lang,\n online: (state) => state.config.online\n })\n },\n watch: {\n $route: {\n handler() {\n clearTimeout(this.timeResult1)\n clearTimeout(this.timeResult2)\n this.timeResult1 = null\n this.timeResult2 = null\n this.bankerIsWin = false\n this.playerIsWin = false\n },\n deep: true,\n immediate: true\n },\n online: {\n handler(online) {\n if (online == true) {\n if (this.thisData.bet_status == 2) {\n var that = this\n setTimeout(() => {\n that.show = true\n }, 100)\n // 已翻牌\n this.$nextTick(() => {\n this.showCard(this.thisData)\n })\n } else {\n this.resetPock()\n }\n }\n },\n deep: true,\n immediate: true\n },\n thisData: {\n handler(newData) {\n if (newData && newData.game_id) {\n const that = this\n // 第一次赋值判断\n if (this.isfrist == true || newData.sendMode == \"getState\") {\n this.isfrist = false\n this.game_id = newData.game_id\n if (newData.bet_status == 2) {\n that.isPoker = true\n setTimeout(() => {\n that.show = true\n }, 100)\n // 已翻牌\n this.$nextTick(() => {\n this.showCard(newData)\n })\n } else if (newData.bet_status == 0) {\n this.isPoker = false\n }\n if (newData.sendMode == \"startBetCountDown\") {\n if (this.show == true) {\n this.resetPock()\n }\n }\n }\n // 翻牌 开结果\n if (newData.sendMode != \"\" && newData.sendMode != undefined) {\n if (newData.sendMode == \"endBet\") {\n const that = this\n that.isPoker = true\n setTimeout(() => {\n that.show = true\n }, 100)\n } else if (newData.sendMode == \"sendScanResult\") {\n this.Flop(newData)\n } else if (newData.sendMode == \"openingBaccaratResult\") {\n this.openResult(newData)\n } else if (newData.sendMode == \"openingDtResult\") {\n this.openResult(newData)\n } else if (newData.sendMode == \"openingNnResult\") {\n this.openResult(newData)\n } else if (newData.sendMode == \"openingTcResult\") {\n this.openResult(newData)\n } else if (newData.sendMode == \"resetNumberTab\") {\n this.bankerIsWin = false\n this.playerIsWin = false\n this.win_player_1 = null\n this.win_player_2 = null\n this.win_player_3 = null\n this.bankernum = \"\"\n this.playernum = \"\"\n this.role4 = \"\"\n this.role1 = \"\"\n this.role2 = \"\"\n this.role3 = \"\"\n if (this.game_id == 4 || this.game_id == 5) {\n var firstfaces = require(\"../assets/images/poker/faces.png\")\n if (this.$refs.pocker_0) {\n this.$refs.pocker_0.style.backgroundImage =\n \"url(\" + firstfaces + \")\"\n }\n }\n this.show = false\n this.isPoker = false\n } else if (\n newData.sendMode == \"startBet\" ||\n newData.sendMode == \"startBetCountDown\"\n ) {\n if (this.show == true) {\n this.resetPock()\n }\n }\n }\n }\n },\n deep: true,\n immediate: true\n }\n },\n props: {\n thisData: Object\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.poker-box {\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n display: flex;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 10;\n align-items: center;\n transform: rotateX(0deg);\n}\n\n.poker-box .list {\n width: 50%;\n height: 100%;\n -webkit-background-size: 100% 100%;\n background-size: 100% 100%;\n align-items: center;\n flex: 1;\n text-align: center;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.baccarat .banker {\n background-image: url(\"~@/assets/images/card_banker_bg.png\");\n margin-left: -0.6rem;\n}\n.baccarat .player {\n background-image: url(\"~@/assets/images/cards_player_bg.png\");\n margin-right: -0.6rem;\n}\n\n.longhu .banker {\n background-image: url(\"~@/assets/images/card_long_bg.png\");\n margin-right: -0.6rem;\n}\n.longhu .player {\n background-image: url(\"~@/assets/images/cards_hu_bg.png\");\n margin-left: -0.6rem;\n}\n\n.poker-box .font {\n // display: inline-block;\n // vertical-align: middle;\n font-size: 0.8rem;\n font-weight: 600;\n text-align: center;\n}\n.baccarat .banker .font {\n padding-right: 0.2rem;\n color: #fff9f9;\n}\n.baccarat .player .font {\n padding-left: 0.2rem;\n color: #fff9f9;\n}\n\n.longhu .banker .font {\n padding-left: 0.2rem;\n color: #fff9f9;\n}\n.longhu .player .font {\n padding-right: 0.2rem;\n color: #fff9f9;\n}\n\n.poker-box .item {\n width: 1.45rem;\n height: 2rem;\n padding: 0 0.1rem;\n transform: rotateX(0deg);\n}\n\n.poker-box .item .card {\n display: block;\n width: 100%;\n height: 100%;\n background: url(\"~@/assets/images/poker/faces.png\") no-repeat;\n -webkit-background-size: 100% 100%;\n background-size: 100% 100%;\n position: relative;\n z-index: 1;\n}\n\n.baccarat .player .item:first-child {\n transform: rotate(90deg);\n margin-right: 0.15rem;\n display: none;\n}\n\n.baccarat .banker .item:last-child {\n transform: rotate(90deg);\n margin-left: 0.15rem;\n display: none;\n}\n\n.poker-box .list .item.active span {\n -webkit-backface-visibility: visible;\n backface-visibility: visible;\n -webkit-animation-name: flipIn_Y;\n animation-name: flipIn_Y;\n -webkit-animation-iteration-count: initial;\n animation-iteration-count: initial;\n -webkit-animation-duration: 1s;\n animation-duration: 1s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n\n.poker-box .list.win span:after {\n content: \"\";\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n background-color: rgba(255, 235, 59, 0.1);\n animation-timing-function: ease-in-out;\n animation-name: breathe;\n animation-duration: 500ms;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n z-index: -1;\n}\n.poker-box.nn {\n height: 3.1rem;\n}\n.poker-box.nn .list:first-child {\n border: none;\n}\n.poker-box.nn .list {\n border-left: 1px solid #565555;\n position: relative;\n}\n.poker-box.nn .list .title {\n font-size: 0.48rem;\n font-weight: bold;\n display: block;\n text-shadow: 0px 0px 0px #2d2d2d;\n padding-top: 0.1rem;\n}\n\n.nn_position {\n font-size: 0.28rem;\n font-weight: bold;\n height: 0.55rem;\n}\n.nn_position strong {\n padding-right: 0.4rem;\n color: #fff;\n transform: rotateX(1deg);\n}\n\n.nn_position .item {\n width: 0.55 * 1.7rem;\n height: 0.75 * 1.7rem;\n transform: rotate(90deg);\n}\n.nn_position .item .card {\n background: url(\"~@/assets/images/poker/faces.png\") no-repeat;\n display: block;\n width: 100%;\n height: 100%;\n -webkit-background-size: 100% 100%;\n background-size: 100% 100%;\n}\n\n.nn_position .item.active span {\n -webkit-backface-visibility: visible;\n backface-visibility: visible;\n -webkit-animation-name: flipIn_Y;\n animation-name: flipIn_Y;\n -webkit-animation-iteration-count: initial;\n animation-iteration-count: initial;\n -webkit-animation-duration: 1s;\n animation-duration: 1s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n.blue {\n color: #00a8ff;\n}\n.red {\n color: #ff494b;\n}\n</style>\n<style type=\"text/css\">\n.play .nn_position {\n z-index: 1000;\n font-size: 0.45rem;\n padding: 0 0.4rem;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: -8.5rem;\n left: 0.5rem;\n transform: rotateX(0deg);\n}\n\n.play .poker-box.nn {\n width: 100%;\n height: 100%;\n white-space: nowrap;\n}\n\n.play .poker-box.nn.sanka {\n min-width: 4.5rem;\n}\n.play .poker-box.nn .list {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.play .poker-box.nn .list .title {\n display: inline-block;\n vertical-align: middle;\n margin-right: 0.2rem;\n}\n.play .poker-box.nn .list .title span {\n display: block;\n font-size: 0.5rem;\n}\n\n.play .nn.poker-box .list .top,\n.play .nn.poker-box .list .bottom {\n /* display: inline-block; */\n /* vertical-align: middle; */\n display: flex;\n align-items: center;\n}\n\n.multiple .nn.poker-box .list {\n height: 3.65rem;\n width: 25%;\n}\n.multiple .nn.poker-box .list .top,\n.multiple .nn.poker-box .list .bottom {\n overflow: hidden;\n height: 1.2rem;\n}\n.multiple .nn.poker-box .list .item {\n vertical-align: top;\n margin-top: 0.1rem;\n}\n</style>\n<style lang=\"scss\" scoped>\n.poker-box.pt_nn,\n.poker-box.tr_nn {\n .list {\n position: relative;\n height: 100%;\n padding-left: 0.3rem;\n border: none;\n .title {\n position: absolute;\n top: -0.4rem;\n font-size: 0.4rem;\n padding: 0.03rem 0.2rem;\n border-radius: 0.05rem;\n &.blue {\n background: #00a8ff;\n color: #fff;\n }\n &.red {\n background: #ff494b;\n color: #fff;\n }\n }\n .role {\n position: absolute;\n width: 85%;\n left: 50%;\n top: 50%;\n z-index: 10;\n font-size: 0.6rem;\n color: #fff;\n padding: 0.1rem 0;\n margin-left: -2.35rem;\n margin-top: -0.2rem;\n background: -webkit-linear-gradient(\n left,\n rgba(38, 38, 38, 0.1) 0%,\n rgba(38, 38, 38, 0.35) 22%,\n rgba(38, 38, 38, 0.6) 43%,\n rgba(38, 38, 38, 0.6) 62%,\n rgba(38, 38, 38, 0.35) 80%,\n rgba(38, 38, 38, 0.1) 100%\n );\n }\n .item {\n width: 0.75 * 1.6rem;\n height: 1 * 1.6rem;\n margin-left: -0.45rem;\n margin-top: 0.55rem;\n &:nth-of-type(1) {\n z-index: 1;\n }\n &:nth-of-type(2) {\n z-index: 2;\n }\n &:nth-of-type(3) {\n z-index: 3;\n }\n &:nth-of-type(4) {\n z-index: 4;\n }\n &:nth-of-type(5) {\n z-index: 5;\n }\n }\n }\n}\n.poker-box.tr_nn .list .role {\n width: 52%;\n margin-left: -1.7rem;\n transform: rotateX(0deg);\n}\n.poker-box.pt_nn .list .role {\n transform: rotateX(0deg);\n}\n</style>\n"],"mappings":"AAqTA,SAASA,QAAO,QAAS,MAAK;AAC9B,eAAe;EACbC,IAAI,EAAE,WAAW;EACjBC,IAAIA,CAAA,EAAG;IACL,OAAO;MACLC,SAAS,EAAE,IAAI;MACfC,OAAO,EAAE,IAAI;MACbC,IAAI,EAAE,KAAK;MAAE;MACbC,OAAO,EAAE,EAAE;MACXC,OAAO,EAAE,KAAK;MAAE;MAChBC,WAAW,EAAE,KAAK;MAClBC,WAAW,EAAE,KAAK;MAClBC,YAAY,EAAE,IAAI;MAClBC,YAAY,EAAE,IAAI;MAClBC,YAAY,EAAE,IAAI;MAClBC,SAAS,EAAE,EAAE;MACbC,SAAS,EAAE,EAAE;MACbC,KAAK,EAAE,EAAE;MACTC,KAAK,EAAE,EAAE;MACTC,KAAK,EAAE,EAAE;MACTC,KAAK,EAAE,EAAE;MACTC,WAAW,EAAE,IAAI;MACjBC,WAAW,EAAE;IACf;EACF,CAAC;EACDC,OAAO,EAAE,SAAAA,CAAA,EAAY;IACnB,IAAI,CAAClB,SAAQ,GAAI,IAAI,CAACmB,MAAM,CAACrB,IAAG;EAClC,CAAC;EACDsB,OAAO,EAAE;IACPC,QAAQA,CAACtB,IAAI,EAAE;MACb,IAAII,OAAM,GAAI,IAAI,CAACA,OAAM;MACzB,IAAImB,IAAG,GAAIvB,IAAI,CAACwB,SAAQ;MACxB,IAAIpB,OAAM,IAAK,CAAC,EAAE;QAChB,IAAImB,IAAI,CAACE,QAAO,IAAK,CAAC,EAAE;UACtB,IAAI,CAACC,UAAU,CAAC,EAAE,EAAEH,IAAI,CAACE,QAAQ;QACnC;QACA,IAAIF,IAAI,CAACI,QAAO,IAAK,CAAC,EAAE;UACtB,IAAI,CAACD,UAAU,CAAC,EAAE,EAAEH,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