App.vue 591 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <script>
  2. export default {
  3. onLaunch() {
  4. //#ifdef APP-PLUS
  5. // plus.screen.lockOrientation('landscape-primary'); // 强制横屏
  6. plus.screen.lockOrientation('portrait-primary'); // 强制竖屏
  7. //#endif
  8. },
  9. onShow() {},
  10. onHide() {},
  11. data() {
  12. return {
  13. }
  14. },
  15. created() {
  16. },
  17. methods: {
  18. }
  19. }
  20. </script>
  21. <style lang="stylus">
  22. page{
  23. height:100%;
  24. width:100%;
  25. background:#f5f5f5;
  26. font-family: PingFang SC;
  27. font-weight: 400;
  28. font-size:30rpx;
  29. color:#333;
  30. flex:1;
  31. display: flex;
  32. flex-direction: column;
  33. overflow: hidden
  34. }
  35. </style>