2023-12-20 15:15:23 +08:00
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
onLaunch: function() {
|
2024-03-13 17:55:34 +08:00
|
|
|
// app内禁止横屏
|
|
|
|
|
plus.screen.lockOrientation('portrait-primary')
|
2023-12-20 15:15:23 +08:00
|
|
|
console.log('App Launch')
|
|
|
|
|
},
|
|
|
|
|
onShow: function() {
|
|
|
|
|
console.log('App Show')
|
|
|
|
|
},
|
|
|
|
|
onHide: function() {
|
|
|
|
|
console.log('App Hide')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
/*每个页面公共css */
|
|
|
|
|
@import "@/uni_modules/uview-ui/index.scss";
|
|
|
|
|
</style>
|