App.vue 737 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch')
  5. },
  6. onShow: function() {
  7. console.log('App Show')
  8. },
  9. onHide: function() {
  10. console.log('App Hide')
  11. }
  12. }
  13. </script>
  14. <style>
  15. /*每个页面公共css */
  16. page {
  17. min-height: 100%;
  18. display: flex;
  19. background: #fff;
  20. }
  21. /* #ifdef MP-BAIDU */
  22. page {
  23. width: 100%;
  24. height: 100%;
  25. display: block;
  26. }
  27. /* #endif */
  28. /* #ifdef MP-ALIPAY */
  29. page {
  30. min-height: 100vh;
  31. }
  32. /* #endif */
  33. /* 原生组件模式下需要注意组件外部样式 */
  34. m-input {
  35. width: 100%;
  36. min-height: 100%;
  37. display: flex;
  38. }
  39. .content {
  40. display: flex;
  41. flex: 1;
  42. flex-direction: column;
  43. background-color: #fff;
  44. padding: 20upx;
  45. }
  46. </style>