1 line
12 KiB
JSON
1 line
12 KiB
JSON
{"ast":null,"code":"import { toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, Transition as _Transition, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\";\nconst _withScopeId = n => (_pushScopeId(\"data-v-05a28763\"), n = n(), _popScopeId(), n);\nconst _hoisted_1 = {\n key: 0,\n class: \"play-type-pop\"\n};\nconst _hoisted_2 = {\n class: \"play-type-view\"\n};\nconst _hoisted_3 = {\n class: \"title\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_van_icon = _resolveComponent(\"van-icon\");\n return _openBlock(), _createBlock(_Transition, {\n name: \"custom-classes\",\n \"enter-active-class\": \"animate__animated animate__zoomIn\",\n \"leave-active-class\": \"animate__animated animate__zoomOut\"\n }, {\n default: _withCtx(() => [$setup.showBaccaratPlayType ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [_createElementVNode(\"div\", _hoisted_3, [_createTextVNode(_toDisplayString($setup.Lang[$setup.Type].switch_play) + \" \", 1 /* TEXT */), _createVNode(_component_van_icon, {\n class: \"close\",\n name: \"cross\",\n onClick: $setup.closeBaccaratPlayType\n }, null, 8 /* PROPS */, [\"onClick\"])]), _createElementVNode(\"div\", {\n class: _normalizeClass([\"list\", [$setup.Type]])\n }, [_createElementVNode(\"div\", {\n class: _normalizeClass([\"item classics\", {\n active: $setup.baccaratPlayType == 'classics'\n }]),\n onClick: _cache[0] || (_cache[0] = $event => $setup.chooseType('classics'))\n }, null, 2 /* CLASS */)], 2 /* CLASS */), _createElementVNode(\"div\", {\n class: _normalizeClass([\"list\", [$setup.Type]])\n }, [_createElementVNode(\"div\", {\n class: _normalizeClass([\"item long\", {\n active: $setup.baccaratPlayType == 'long'\n }]),\n onClick: _cache[1] || (_cache[1] = $event => $setup.chooseType('long'))\n }, null, 2 /* CLASS */), _createElementVNode(\"div\", {\n class: _normalizeClass([\"item pairs\", {\n active: $setup.baccaratPlayType == 'pairs'\n }]),\n onClick: _cache[2] || (_cache[2] = $event => $setup.chooseType('pairs'))\n }, null, 2 /* CLASS */), _createElementVNode(\"div\", {\n class: _normalizeClass([\"item super\", {\n active: $setup.baccaratPlayType == 'super'\n }]),\n onClick: _cache[3] || (_cache[3] = $event => $setup.chooseType('super'))\n }, null, 2 /* CLASS */)], 2 /* CLASS */), _createElementVNode(\"div\", {\n class: _normalizeClass([\"list\", [$setup.Type]])\n }, [_createElementVNode(\"div\", {\n class: _normalizeClass([\"item tiger\", {\n active: $setup.baccaratPlayType == 'tiger'\n }]),\n onClick: _cache[4] || (_cache[4] = $event => $setup.chooseType('tiger'))\n }, null, 2 /* CLASS */), _createElementVNode(\"div\", {\n class: _normalizeClass([\"item sky\", {\n active: $setup.baccaratPlayType == 'sky'\n }]),\n onClick: _cache[5] || (_cache[5] = $event => $setup.chooseType('sky'))\n }, null, 2 /* CLASS */), _createElementVNode(\"div\", {\n class: _normalizeClass([\"item longhu\", {\n active: $setup.baccaratPlayType == 'longhu'\n }]),\n onClick: _cache[6] || (_cache[6] = $event => $setup.chooseType('longhu'))\n }, null, 2 /* CLASS */)], 2 /* CLASS */)])])) : _createCommentVNode(\"v-if\", true)]),\n _: 1 /* STABLE */\n });\n}","map":{"version":3,"names":["class","_createBlock","_Transition","name","$setup","showBaccaratPlayType","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","Lang","Type","switch_play","_createVNode","_component_van_icon","onClick","closeBaccaratPlayType","_normalizeClass","active","baccaratPlayType","_cache","$event","chooseType"],"sources":["/Users/li/Desktop/work/work2/OG/GamePortrait/src/components/PlayTypePop.vue"],"sourcesContent":["<template>\n <Transition\n name=\"custom-classes\"\n enter-active-class=\"animate__animated animate__zoomIn\"\n leave-active-class=\"animate__animated animate__zoomOut\"\n >\n <div class=\"play-type-pop\" v-if=\"showBaccaratPlayType\">\n <div class=\"play-type-view\">\n <div class=\"title\">\n {{ Lang[Type].switch_play }}\n <van-icon class=\"close\" name=\"cross\" @click=\"closeBaccaratPlayType\" />\n </div>\n <div class=\"list\" :class=\"[Type]\">\n <div\n class=\"item classics\"\n :class=\"{ active: baccaratPlayType == 'classics' }\"\n @click=\"chooseType('classics')\"\n ></div>\n </div>\n <div class=\"list\" :class=\"[Type]\">\n <div\n class=\"item long\"\n :class=\"{ active: baccaratPlayType == 'long' }\"\n @click=\"chooseType('long')\"\n ></div>\n <div\n class=\"item pairs\"\n :class=\"{ active: baccaratPlayType == 'pairs' }\"\n @click=\"chooseType('pairs')\"\n ></div>\n <div\n class=\"item super\"\n :class=\"{ active: baccaratPlayType == 'super' }\"\n @click=\"chooseType('super')\"\n ></div>\n </div>\n <div class=\"list\" :class=\"[Type]\">\n <div\n class=\"item tiger\"\n :class=\"{ active: baccaratPlayType == 'tiger' }\"\n @click=\"chooseType('tiger')\"\n ></div>\n <div\n class=\"item sky\"\n :class=\"{ active: baccaratPlayType == 'sky' }\"\n @click=\"chooseType('sky')\"\n ></div>\n <div\n class=\"item longhu\"\n :class=\"{ active: baccaratPlayType == 'longhu' }\"\n @click=\"chooseType('longhu')\"\n ></div>\n </div>\n </div>\n </div>\n </Transition>\n</template>\n\n<script>\nimport { showToast } from \"vant\"\nimport { computed } from \"vue\"\nimport { useStore } from \"vuex\"\nexport default {\n name: \"PlayTypePop\",\n props: {},\n setup() {\n const store = useStore()\n const baccaratPlayType = computed(() => store.state.config.baccaratPlayType)\n const showBaccaratPlayType = computed(\n () => store.state.config.showBaccaratPlayType\n )\n const Type = computed(() => store.state.config.$Type)\n const Lang = computed(() => store.state.config.$lang)\n const closeBaccaratPlayType = () => {\n store.commit(\"config/showBaccaratPlayType\")\n }\n const chooseType = (type) => {\n if (type == \"classics\") {\n store.commit(\"config/updateBaccaratPlayType\", type)\n } else {\n showToast(Lang.value[Type.value].not_open)\n }\n }\n return {\n Type,\n Lang,\n baccaratPlayType,\n showBaccaratPlayType,\n chooseType,\n closeBaccaratPlayType\n }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n.play-type-pop {\n position: absolute;\n transform: rotateX(0deg);\n z-index: 36;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n // background: rgba(0, 0, 0, 0.5);\n .play-type-view {\n width: 18rem;\n border: 1px solid #ddd;\n margin-top: 1.5rem;\n border-radius: 0.5rem;\n background: #fff;\n position: relative;\n overflow: hidden;\n left: 50%;\n margin-left: -9rem;\n padding-bottom: 0.2rem;\n .title {\n font-size: 0.65rem;\n font-weight: 600;\n color: #333;\n text-align: center;\n width: 100%;\n margin-top: 0.5rem;\n margin-bottom: 0.52rem;\n position: relative;\n .close {\n position: absolute;\n right: 0.25rem;\n top: -0.2rem;\n font-size: 1rem;\n color: #999;\n &:active {\n opacity: 0.6;\n }\n }\n }\n .list {\n display: flex;\n justify-content: center;\n align-items: center;\n &.en,\n &.kr,\n &.yn {\n .item {\n background-image: url(\"~@/assets/images/en_play_type_sprite.png\") !important;\n }\n }\n &.tw {\n .item {\n background-image: url(\"~@/assets/images/tw_play_type_sprite.png\") !important;\n }\n }\n .item {\n width: 5rem;\n height: 2.12rem;\n background: url(\"~@/assets/images/cn_play_type_sprite.png\") no-repeat;\n background-size: 15.2rem;\n margin: 0.2rem 0.3rem;\n &:active {\n opacity: 0.6;\n }\n &.classics {\n background-position: 0 0;\n &.active {\n background-position: -5.08rem 0;\n }\n }\n &.long {\n background-position: 0 -2.2rem;\n &.active {\n background-position: -5.08rem -2.2rem;\n }\n }\n &.pairs {\n background-position: -5.088rem -6.6rem;\n &.active {\n background-position: -10.18rem -6.6rem;\n }\n }\n &.super {\n background-position: -10.16rem -2.2rem;\n &.active {\n background-position: 0 -4.4rem;\n }\n }\n &.tiger {\n background-position: -5.08rem -4.4rem;\n &.active {\n background-position: -10.17rem -4.4rem;\n }\n }\n &.sky {\n background-position: 0 -8.8rem;\n &.active {\n background-position: 0 -6.6rem;\n }\n }\n &.longhu {\n background-position: -5.09rem -8.815rem;\n &.active {\n background-position: -10.17rem -8.815rem;\n }\n }\n }\n }\n }\n}\n</style>\n"],"mappings":";;;;EAMSA,KAAK,EAAC;;;EACJA,KAAK,EAAC;AAAgB;;EACpBA,KAAK,EAAC;AAAO;;;uBAPxBC,YAAA,CAsDaC,WAAA;IArDXC,IAAI,EAAC,gBAAgB;IACrB,oBAAkB,EAAC,mCAAmC;IACtD,oBAAkB,EAAC;;sBAEnB,MAgDM,CAhD2BC,MAAA,CAAAC,oBAAoB,I,cAArDC,mBAAA,CAgDM,OAhDNC,UAgDM,GA/CJC,mBAAA,CA8CM,OA9CNC,UA8CM,GA7CJD,mBAAA,CAGM,OAHNE,UAGM,G,kCAFDN,MAAA,CAAAO,IAAI,CAACP,MAAA,CAAAQ,IAAI,EAAEC,WAAW,IAAG,GAC5B,iBAAAC,YAAA,CAAsEC,mBAAA;MAA5Df,KAAK,EAAC,OAAO;MAACG,IAAI,EAAC,OAAO;MAAEa,OAAK,EAAEZ,MAAA,CAAAa;4CAE/CT,mBAAA,CAMM;MANDR,KAAK,EAAAkB,eAAA,EAAC,MAAM,GAAUd,MAAA,CAAAQ,IAAI;QAC7BJ,mBAAA,CAIO;MAHLR,KAAK,EAAAkB,eAAA,EAAC,eAAe;QAAAC,MAAA,EACHf,MAAA,CAAAgB,gBAAgB;MAAA;MACjCJ,OAAK,EAAAK,MAAA,QAAAA,MAAA,MAAAC,MAAA,IAAElB,MAAA,CAAAmB,UAAU;8CAGtBf,mBAAA,CAgBM;MAhBDR,KAAK,EAAAkB,eAAA,EAAC,MAAM,GAAUd,MAAA,CAAAQ,IAAI;QAC7BJ,mBAAA,CAIO;MAHLR,KAAK,EAAAkB,eAAA,EAAC,WAAW;QAAAC,MAAA,EACCf,MAAA,CAAAgB,gBAAgB;MAAA;MACjCJ,OAAK,E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