Files
yunzerwebsiteallinone/uniapp/App.vue
T
2026-11-17 17:16:02 +08:00

60 lines
1.1 KiB
Vue

<script>
import { getBaseURL } from '@/api/request.js'
export default {
onLaunch() {
console.log('App Launch, API:', getBaseURL())
},
onShow() {
console.log('App Show')
},
onHide() {
console.log('App Hide')
}
}
</script>
<style lang="scss">
@import 'uview-plus/index.scss';
@import './src/styles/theme.scss';
@import './src/styles/tint.scss';
@import './src/styles/fontawesome.scss';
@import './src/styles/rich-content.scss';
page {
height: 100%;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
background-color: $color-bg-page;
color: $color-text;
box-sizing: border-box;
}
view,
text,
scroll-view,
swiper,
swiper-item,
button,
input,
textarea,
label,
navigator {
box-sizing: border-box;
}
@media (min-width: 560px) {
body {
background: #e9edf3;
}
#app {
max-width: 560px;
min-height: 100vh;
margin-left: auto;
margin-right: auto;
background: $color-bg-page;
box-shadow: 0 0 1px rgba(15, 23, 42, 0.16), 0 10px 40px rgba(15, 23, 42, 0.08);
}
}
</style>