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

1 line
14 KiB
JSON

{"ast":null,"code":"import { createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\";\nconst _withScopeId = n => (_pushScopeId(\"data-v-6b5ee342\"), n = n(), _popScopeId(), n);\nconst _hoisted_1 = {\n class: \"view longhu\"\n};\nconst _hoisted_2 = {\n class: \"list\"\n};\nconst _hoisted_3 = {\n class: \"item banker\"\n};\nconst _hoisted_4 = {\n class: \"text\"\n};\nconst _hoisted_5 = {\n class: \"big\"\n};\nconst _hoisted_6 = {\n class: \"money\"\n};\nconst _hoisted_7 = {\n class: \"item tie\"\n};\nconst _hoisted_8 = {\n class: \"text\"\n};\nconst _hoisted_9 = {\n class: \"big\"\n};\nconst _hoisted_10 = {\n class: \"money\"\n};\nconst _hoisted_11 = {\n class: \"item palyer\"\n};\nconst _hoisted_12 = {\n class: \"text\"\n};\nconst _hoisted_13 = {\n class: \"big\"\n};\nconst _hoisted_14 = {\n class: \"money\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_confirmBet = _resolveComponent(\"confirmBet\");\n const _component_chipView = _resolveComponent(\"chipView\");\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [_createCommentVNode(\" 龙 \"), _createElementVNode(\"div\", _hoisted_3, [_createVNode(_component_confirmBet, {\n onConfirm: $setup.confirmChip,\n onCancel: $setup.cancelChip,\n data: {\n money: $props.downChip.banker_amount,\n show: $props.touch == 'banker_amount'\n }\n }, null, 8 /* PROPS */, [\"onConfirm\", \"onCancel\", \"data\"]), _createVNode(_component_chipView, {\n onClick: _cache[0] || (_cache[0] = $event => $setup.downBet($event, 'banker_amount')),\n list: $props.chipArray.banker_amount,\n win: $props.winArray.includes('banker')\n }, null, 8 /* PROPS */, [\"list\", \"win\"]), _createElementVNode(\"div\", _hoisted_4, [_createElementVNode(\"span\", _hoisted_5, _toDisplayString($setup.Lang[$setup.Type].dragon), 1 /* TEXT */), _createElementVNode(\"span\", null, \"1:\" + _toDisplayString($props.tableData.price_dragon), 1 /* TEXT */)]), _createElementVNode(\"div\", _hoisted_6, _toDisplayString($props.bet_amount_msg.banker_amount), 1 /* TEXT */)]), _createCommentVNode(\" 和 \"), _createElementVNode(\"div\", _hoisted_7, [_createVNode(_component_confirmBet, {\n onConfirm: $setup.confirmChip,\n onCancel: $setup.cancelChip,\n data: {\n money: $props.downChip.tie_amount,\n show: $props.touch == 'tie_amount'\n }\n }, null, 8 /* PROPS */, [\"onConfirm\", \"onCancel\", \"data\"]), _createVNode(_component_chipView, {\n onClick: _cache[1] || (_cache[1] = $event => $setup.downBet($event, 'tie_amount')),\n list: $props.chipArray.tie_amount,\n win: $props.winArray.includes('tie')\n }, null, 8 /* PROPS */, [\"list\", \"win\"]), _createElementVNode(\"div\", _hoisted_8, [_createElementVNode(\"span\", _hoisted_9, _toDisplayString($setup.Lang[$setup.Type].tie), 1 /* TEXT */), _createElementVNode(\"span\", null, \"1:\" + _toDisplayString($props.tableData.price_tie_dt), 1 /* TEXT */)]), _createElementVNode(\"div\", _hoisted_10, _toDisplayString($props.bet_amount_msg.tie_amount), 1 /* TEXT */)]), _createCommentVNode(\" 虎 \"), _createElementVNode(\"div\", _hoisted_11, [_createVNode(_component_confirmBet, {\n onConfirm: $setup.confirmChip,\n onCancel: $setup.cancelChip,\n data: {\n money: $props.downChip.player_amount,\n show: $props.touch == 'player_amount'\n }\n }, null, 8 /* PROPS */, [\"onConfirm\", \"onCancel\", \"data\"]), _createVNode(_component_chipView, {\n onClick: _cache[2] || (_cache[2] = $event => $setup.downBet($event, 'player_amount')),\n list: $props.chipArray.player_amount,\n win: $props.winArray.includes('player')\n }, null, 8 /* PROPS */, [\"list\", \"win\"]), _createElementVNode(\"div\", _hoisted_12, [_createElementVNode(\"span\", _hoisted_13, _toDisplayString($setup.Lang[$setup.Type].tiger), 1 /* TEXT */), _createElementVNode(\"span\", null, \"1:\" + _toDisplayString($props.tableData.price_tiger), 1 /* TEXT */)]), _createElementVNode(\"div\", _hoisted_14, _toDisplayString($props.bet_amount_msg.player_amount), 1 /* TEXT */)])])]);\n}","map":{"version":3,"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_createCommentVNode","_hoisted_3","_createVNode","_component_confirmBet","onConfirm","$setup","confirmChip","onCancel","cancelChip","data","$props","downChip","banker_amount","touch","_component_chipView","onClick","_cache","$event","downBet","list","chipArray","win","winArray","includes","_hoisted_4","_hoisted_5","_toDisplayString","Lang","Type","dragon","tableData","price_dragon","_hoisted_6","bet_amount_msg","_hoisted_7","money","tie_amount","show","_hoisted_8","_hoisted_9","tie","price_tie_dt","_hoisted_10","_hoisted_11","player_amount","_hoisted_12","_hoisted_13","tiger","price_tiger","_hoisted_14"],"sources":["/Users/li/Desktop/work/work2/OG/GamePortrait/src/components/PlayTable/TableLonghu.vue"],"sourcesContent":["<template>\n <div class=\"view longhu\">\n <div class=\"list\">\n <!-- 龙 -->\n <div class=\"item banker\">\n <confirmBet\n @confirm=\"confirmChip\"\n @cancel=\"cancelChip\"\n :data=\"{\n money: downChip.banker_amount,\n show: touch == 'banker_amount'\n }\"\n ></confirmBet>\n <chipView\n @click=\"downBet($event, 'banker_amount')\"\n :list=\"chipArray.banker_amount\"\n :win=\"winArray.includes('banker')\"\n ></chipView>\n <div class=\"text\">\n <span class=\"big\">{{ Lang[Type].dragon }}</span>\n <span>1:{{ tableData.price_dragon }}</span>\n </div>\n <div class=\"money\">{{ bet_amount_msg.banker_amount }}</div>\n </div>\n <!-- 和 -->\n <div class=\"item tie\">\n <confirmBet\n @confirm=\"confirmChip\"\n @cancel=\"cancelChip\"\n :data=\"{ money: downChip.tie_amount, show: touch == 'tie_amount' }\"\n ></confirmBet>\n <chipView\n @click=\"downBet($event, 'tie_amount')\"\n :list=\"chipArray.tie_amount\"\n :win=\"winArray.includes('tie')\"\n ></chipView>\n <div class=\"text\">\n <span class=\"big\">{{ Lang[Type].tie }}</span>\n <span>1:{{ tableData.price_tie_dt }}</span>\n </div>\n <div class=\"money\">{{ bet_amount_msg.tie_amount }}</div>\n </div>\n <!-- 虎 -->\n <div class=\"item palyer\">\n <confirmBet\n @confirm=\"confirmChip\"\n @cancel=\"cancelChip\"\n :data=\"{\n money: downChip.player_amount,\n show: touch == 'player_amount'\n }\"\n ></confirmBet>\n <chipView\n @click=\"downBet($event, 'player_amount')\"\n :list=\"chipArray.player_amount\"\n :win=\"winArray.includes('player')\"\n ></chipView>\n <div class=\"text\">\n <span class=\"big\">{{ Lang[Type].tiger }}</span>\n <span>1:{{ tableData.price_tiger }}</span>\n </div>\n <div class=\"money\">{{ bet_amount_msg.player_amount }}</div>\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport { computed } from \"vue\"\nimport { useStore } from \"vuex\"\nimport confirmBet from \"@/components/confirmBet.vue\"\nimport chipView from \"@/components/chipView.vue\"\nimport { baccaratData } from \"@/utils/common\"\nexport default {\n name: \"TableLonghu\",\n components: { confirmBet, chipView },\n props: {\n touch: {\n type: String,\n default: \"\"\n },\n bet_amount_msg: {\n type: Object,\n default: () => ({\n ...baccaratData.amount\n })\n },\n winArray: {\n type: Array,\n default: () => []\n },\n downChip: {\n type: Object,\n default: () => ({\n ...baccaratData.amount\n })\n },\n chipArray: {\n type: Object,\n default: () => ({ ...baccaratData.array })\n },\n tableData: {\n type: [Object],\n default: () => {}\n }\n },\n setup(prop, context) {\n const store = useStore()\n const Type = computed(() => store.state.config.$Type)\n const Lang = computed(() => store.state.config.$lang)\n const downBet = (e, type) => {\n context.emit(\"downBet\", e, type)\n }\n const confirmChip = () => {\n context.emit(\"confirmChip\")\n }\n const cancelChip = () => {\n context.emit(\"cancelChip\")\n }\n return { Type, Lang, downBet, confirmChip, cancelChip }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n.longhu {\n .list {\n height: 100%;\n width: 100%;\n border: none;\n display: flex;\n box-sizing: border-box;\n .item {\n position: relative;\n border-right: 1px solid #898a91;\n font-size: 0.45rem;\n flex: 1;\n &:first-child {\n .chip-view {\n border-top-left-radius: 10px;\n }\n }\n &:last-child {\n border: none;\n .chip-view {\n border-top-right-radius: 10px;\n }\n }\n &.unclick {\n &:after {\n content: \"\";\n position: absolute;\n width: 102%;\n border-bottom: 1px solid #898a91;\n top: 50%;\n transform: rotate(14deg);\n z-index: 6;\n left: -2px;\n }\n &.max:after {\n width: 104%;\n transform: rotate(21deg);\n }\n &.min:after {\n width: 104%;\n transform: rotate(21deg);\n }\n .chip-view {\n background: rgb(98 74 4 / 40%);\n }\n }\n\n .chip-box {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n &:active {\n background: rgba(255, 255, 255, 0.3);\n }\n }\n .text {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n line-height: 1;\n z-index: 2;\n pointer-events: none;\n font-size: 0.65rem;\n text-shadow: 1px 1px #050505;\n .big {\n font-weight: bold;\n padding-right: 0.24rem;\n padding-left: 0.2rem;\n }\n }\n .money {\n position: absolute;\n left: 0px;\n bottom: -2px;\n font-size: 0.24rem;\n font-weight: normal;\n transform: scale(0.7);\n color: #ddd;\n vertical-align: bottom;\n pointer-events: none;\n &::before {\n display: inline-block;\n content: \"总\";\n background: rgba(255, 255, 255, 0.4);\n font-size: 10px;\n border-radius: 0.615rem;\n width: 0.615rem;\n height: 0.615rem;\n text-align: center;\n line-height: 0.615rem;\n font-weight: normal;\n margin-right: 0.06rem;\n transform: scale(0.7);\n }\n }\n }\n }\n .banker .chip-view {\n border-bottom-left-radius: 10px;\n }\n .palyer .chip-view {\n border-bottom-right-radius: 10px;\n }\n}\n</style>\n"],"mappings":";;;EACOA,KAAK,EAAC;AAAa;;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