mahjong_group/App.vue
2025-10-06 23:24:50 +08:00

42 lines
733 B
Vue

<script>
export default {
onLaunch: function() {
console.log('App Launch')
// 本次小程序启动期间是否已展示过首页广告弹窗
this.globalData = this.globalData || {};
this.globalData.hasShownHomeAd = false;
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style>
/*每个页面公共css */
.bg {
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
}
.column {
display: flex;
flex-direction: column;
}
.row {
display: flex;
flex-direction: row;
}
.center {
display: flex;
align-items: center;
justify-content: center;
}
</style>