App.vue 859 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. /* #ifdef H5 */
  17. .status_bar {
  18. height: 25px;
  19. }
  20. /* #endif */
  21. /* #ifdef APP-PLUS */
  22. .status_bar {
  23. height: var(--status-bar-height);
  24. }
  25. /* #endif */
  26. .status_bar {
  27. margin-top: 5rpx;
  28. width: 100%;
  29. }
  30. .mainBtn{
  31. width: 600rpx;
  32. height: 80rpx;
  33. line-height: 80rpx;
  34. text-align: center;
  35. color: #ffffff;
  36. border-radius: 20rpx;
  37. background-color: #EC0000;
  38. margin: 80rpx auto 0;
  39. }
  40. .newStyleBtn{
  41. height: 88rpx;
  42. line-height: 88rpx;
  43. text-align: center;
  44. color: #ffffff;
  45. border-radius: 44rpx;
  46. background-color: #EC0000;
  47. margin-left: 48rpx;
  48. margin-right: 48rpx;
  49. }
  50. </style>