topfans/frontend/App.vue
2026-05-13 16:34:50 +08:00

67 lines
1.2 KiB
Vue

<script>
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<template>
<view class="app-container">
</view>
</template>
<style>
/*每个页面公共css */
/* 引入 TheMiladiatorRegular 字体 */
@font-face {
font-family: 'TheMiladiatorRegular';
src: url('/static/fonts/The Miladiator Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* 引入 ZaoZiGongFangJianHei-1 字体 */
@font-face {
font-family: 'ZaoZiGongFangJianHei-1';
src: url('/static/fonts/ZaoZiGongFangJianHei-1.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* 引入圆体字体 */
@font-face {
font-family: 'yt';
src: url('/static/fonts/经典圆体简.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* 全局字体设置 */
body {
font-family: 'yt', sans-serif;
}
/* App 容器 */
.app-container {
width: 100%;
min-height: 100vh;
position: relative;
}
.page-content {
width: 100%;
min-height: 100vh;
}
</style>