1 line
4.2 KiB
JSON
1 line
4.2 KiB
JSON
{"ast":null,"code":"import \"core-js/modules/es.array.push.js\";\nimport { mapState } from \"vuex\";\nimport WayBox from \"@/components/WayBox.vue\";\nexport default {\n name: \"GoodRoad\",\n data() {\n return {};\n },\n components: {\n WayBox\n },\n mounted() {},\n computed: {\n ...mapState({\n $Type: state => state.config.$Type,\n $lang: state => state.config.$lang,\n font: state => state.config.fonstSize,\n tabData: state => state.app.allTableData,\n userInfo: state => state.app.userInfo,\n list: state => {\n const allTableData = state.app.allTableData;\n const goodRoadList = state.socket.goodRoadList;\n let list = [];\n if (goodRoadList.length > 0 && allTableData.length > 0) {\n goodRoadList.forEach(good => {\n allTableData.forEach(v => {\n if (good.table_id == v.id) {\n v.waybill_type = good.waybill_type;\n list.push(v);\n }\n });\n });\n }\n return list;\n }\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 // console.log(this.$router)\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":[]} |