App.vue 485 B

12345678910111213141516171819202122232425
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch')
  5. uni.getSystemInfo({
  6. success: function (res) {
  7. console.log("设备宽度:"+res.windowWidth);
  8. console.log("设备高度:"+res.windowHeight);
  9. }
  10. });
  11. },
  12. onShow: function() {
  13. console.log('App Show')
  14. },
  15. onHide: function() {
  16. console.log('App Hide')
  17. }
  18. }
  19. </script>
  20. <style lang="scss">
  21. /*每个页面公共css */
  22. @import "@/components/uview-ui/index.scss";
  23. </style>