一个全随机的刷装备小游戏
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.3 KiB

1 month ago
<template>
<div id="main" class="main" @click="playBackgound; commit('close_equip_tip')"
@contextmenu.prevent="playBackgound()">
1 month ago
<div class="infomation">
<Message />
</div>
<Menu />
</div>
<EquipTips />
</template>
<script lang="ts" setup>
import { useStore } from "vuex";
import { reactive, onMounted, ref } from "vue";
import { useI18n } from "vue3-i18n";
import Message from "./message";
import Menu from "./menu.vue";
import { EquipTips } from "@/components";
const { t } = useI18n();
const { state, commit, dispatch } = useStore();
const playFlag = ref(false);
const playBackgound = () => {
if (!playFlag.value) {
1 month ago
dispatch('play_music', 'backgound')
playFlag.value = true;
}
}
onMounted(() => {
});
</script>
<style lang="scss" scoped>
* {
box-sizing: border-box;
user-select: none;
}
.main {
background: #111;
box-sizing: border-box;
margin: 0;
1 month ago
padding: 0.5vh 0.5vw;
1 month ago
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
color: #eee;
height: 100%;
1 month ago
overflow: scroll;
1 month ago
}
.infomation {
1 month ago
height: calc(100% - 1vh);
width: 40vw;
1 month ago
position: absolute;
}
1 month ago
@media only screen and (max-width: 768px) {
.infomation {
height: calc(100% - 1vh);
width: calc(100% - 1vw);
position: absolute;
}
}
1 month ago
</style>