1 line
5.6 KiB
JSON
1 line
5.6 KiB
JSON
{"ast":null,"code":"import { withModifiers as _withModifiers, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, vShow as _vShow, normalizeStyle as _normalizeStyle, withDirectives as _withDirectives, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\";\nconst _withScopeId = n => (_pushScopeId(\"data-v-1fa5b341\"), n = n(), _popScopeId(), n);\nconst _hoisted_1 = {\n key: 0,\n class: \"btn-box\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n return _openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass([\"touch-view\", {\n pointer: !$props.data.show\n }])\n }, [$props.data.show ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"span\", {\n class: \"cancel btn\",\n onClick: _cache[0] || (_cache[0] = _withModifiers((...args) => $setup.cancel && $setup.cancel(...args), [\"stop\"]))\n }), _createElementVNode(\"span\", {\n class: \"confirm btn\",\n onClick: _cache[1] || (_cache[1] = _withModifiers((...args) => $setup.confirm && $setup.confirm(...args), [\"stop\"]))\n })])) : _createCommentVNode(\"v-if\", true), _withDirectives(_createElementVNode(\"div\", {\n class: \"num\",\n style: _normalizeStyle({\n marginTop: $props.data.show ? `0` : `1rem`\n })\n }, _toDisplayString($props.data.money) + \" \" + _toDisplayString($props.data.times ? `${$setup.Lang[$setup.Type].withhold}${$props.data.money * ($props.data.game_id == 4 ? 4 : 19)}` : \"\"), 5 /* TEXT, STYLE */), [[_vShow, $props.data.money > 0]])], 2 /* CLASS */);\n}","map":{"version":3,"names":["class","_createElementBlock","_normalizeClass","pointer","$props","data","show","_hoisted_1","_createElementVNode","onClick","_cache","_withModifiers","args","$setup","cancel","confirm","style","_normalizeStyle","marginTop","money","_toDisplayString","times","Lang","Type","withhold","game_id"],"sources":["/Users/li/Desktop/work/work2/OG/GamePortrait/src/components/confirmBet.vue"],"sourcesContent":["<template>\n <div class=\"touch-view\" :class=\"{ pointer: !data.show }\">\n <div class=\"btn-box\" v-if=\"data.show\">\n <span class=\"cancel btn\" @click.stop=\"cancel\"></span>\n <span class=\"confirm btn\" @click.stop=\"confirm\"></span>\n </div>\n <div\n class=\"num\"\n :style=\"{ marginTop: data.show ? `0` : `1rem` }\"\n v-show=\"data.money > 0\"\n >\n {{ data.money }}\n {{\n data.times\n ? `${Lang[Type].withhold}${data.money * (data.game_id == 4 ? 4 : 19)}`\n : \"\"\n }}\n </div>\n </div>\n</template>\n\n<script>\nimport { computed } from \"vue\"\nimport { useStore } from \"vuex\"\nexport default {\n name: \"confirmBet\",\n components: {},\n props: {\n data: {\n type: Object,\n default: () => ({\n money: 0,\n show: false,\n times: false,\n game_id: 4\n })\n }\n },\n setup(props, { emit }) {\n const store = useStore()\n const Type = computed(() => store.state.config.$Type)\n const Lang = computed(() => store.state.config.$lang)\n // 确认下注\n const confirm = () => {\n emit(\"confirm\")\n }\n // 取消下注\n const cancel = () => {\n emit(\"cancel\")\n }\n return {\n Type,\n Lang,\n confirm,\n cancel,\n props\n }\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n/* 深色豪华主题配色 */\n$gold: #c5a059;\n\n.pointer {\n pointer-events: none;\n}\n.touch-view {\n position: absolute;\n width: 2 * 1.35rem;\n z-index: 99;\n left: 50%;\n bottom: 80%;\n transform: translateX(-50%);\n text-align: center;\n height: 1rem;\n .num {\n background: rgba(197, 160, 89, 0.9);\n border-radius: 1rem;\n color: #000;\n font-size: 0.4rem;\n padding: 0.02rem 0.05rem;\n border: 1px solid $gold;\n pointer-events: none;\n font-weight: 600;\n }\n .btn-box {\n display: flex;\n justify-content: center;\n margin-bottom: 0.05rem;\n .btn {\n width: 0.95 * 1.35rem;\n height: 0.95 * 1.35rem;\n background: url(\"~@/assets/images/sprite_btn.png\");\n background-size: 2.2 * 1.35rem auto;\n &.cancel {\n background-position: -0.07 * 1.35rem -0.04 * 1.35rem;\n &:active {\n background-position: -1.18 * 1.35rem -0.04 * 1.35rem;\n }\n }\n &.confirm {\n margin-left: 0.1rem;\n background-position: -0.05 * 1.35rem -1.14 * 1.35rem;\n &:active {\n background-position: -1.17 * 1.35rem -1.13 * 1.35rem;\n }\n }\n }\n }\n}\n</style>\n"],"mappings":";;;;EAESA,KAAK,EAAC;;;uBADbC,mBAAA,CAiBM;IAjBDD,KAAK,EAAAE,eAAA,EAAC,YAAY;MAAAC,OAAA,GAAqBC,MAAA,CAAAC,IAAI,CAACC;IAAI;MACxBF,MAAA,CAAAC,IAAI,CAACC,IAAI,I,cAApCL,mBAAA,CAGM,OAHNM,UAGM,GAFJC,mBAAA,CAAqD;IAA/CR,KAAK,EAAC,YAAY;IAAES,OAAK,EAAAC,MAAA,QAAAA,MAAA,MAAAC,cAAA,KAAAC,IAAA,KAAOC,MAAA,CAAAC,MAAA,IAAAD,MAAA,CAAAC,MAAA,IAAAF,IAAA,CAAM;MAC5CJ,mBAAA,CAAuD;IAAjDR,KAAK,EAAC,aAAa;IAAES,OAAK,EAAAC,MAAA,QAAAA,MAAA,MAAAC,cAAA,KAAAC,IAAA,KAAOC,MAAA,CAAAE,OAAA,IAAAF,MAAA,CAAAE,OAAA,IAAAH,IAAA,CAAO;6DAEhDJ,mBAAA,CAWM;IAVJR,KAAK,EAAC,KAAK;IACVgB,KAAK,EAAAC,eAAA;MAAAC,SAAA,EAAed,MAAA,CAAAC,IAAI,CAACC,IAAI;IAAA;sBAG3BF,MAAA,CAAAC,IAAI,CAACc,KAAK,IAAG,GAChB,GAAAC,gBAAA,CACEhB,MAAA,CAAAC,IAAI,CAACgB,KAAK,G,GAAgBR,MAAA,CAAAS,IAAI,CAACT,MAAA,CAAAU,IAAI,EAAEC,QAAQ,GAAGpB,MAAA,CAAAC,IAAI,CAACc,KAAK,IAAIf,MAAA,CAAAC,IAAI,CAACoB,OAAO,oB,qCAJpErB,MAAA,CAAAC,IAAI,CAACc,KAAK,M"},"metadata":{},"sourceType":"module","externalDependencies":[]} |