一个全随机的刷装备小游戏
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.
 
 
 
 
 

72 lines
1.4 KiB

<template>
<div id="main" class="main" @click="playBackgound; commit('close_equip_tip')"
@contextmenu.prevent="playBackgound()">
<div class="infomation">
<Message />
</div>
<Menu />
</div>
<EquipTips />
<Login />
</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";
import { setCommit } from "@/api";
import Login from "./login.vue";
const { t } = useI18n();
const { state, commit, dispatch } = useStore();
setCommit(commit);
const playFlag = ref(false);
const playBackgound = () => {
if (!playFlag.value) {
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;
padding: 0.5vh 0.5vw;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
color: #eee;
height: 100%;
overflow: scroll;
}
.infomation {
height: calc(100% - 1vh);
width: 40vw;
position: absolute;
}
@media only screen and (max-width: 768px) {
.infomation {
height: calc(100% - 1vh);
width: calc(100% - 1vw);
position: absolute;
}
}
</style>