App.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. @import "style/main.css";
  17. @import "style/icon.css";
  18. @import "style/animation.css";
  19. @import "style/base.css";
  20. page{
  21. background-color: #ffffff;
  22. font-family: "Roboto";
  23. height: 100vh;
  24. }
  25. .top-img{
  26. top: -0vw;
  27. left: 0;
  28. right: 0;
  29. width: 100vw;
  30. margin-bottom:calc(-15vw - 10px);
  31. }
  32. .button-all {
  33. /* color: #5bae23; */
  34. border: none;
  35. border-radius: 15px;
  36. /*backdrop-filter: blur(3px); /* 高斯模糊效果 */
  37. /*background-color: rgba(255, 255, 255, 0.4); /* 半透明背景 */
  38. /*box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6); /* 添加阴影效果 */
  39. }
  40. .button-all:active {
  41. opacity: 0.8;
  42. filter: brightness(90%);
  43. transform: translateY(2px) translateX(2px);
  44. }
  45. .button-all::after{
  46. display: none;
  47. }
  48. .no_data{
  49. width: 100%; /* 设置宽度 */
  50. height: 80vh; /* 设置高度 */
  51. background-image: url('@/static/img/no-data.png');
  52. background-size: 75vw 75vw;
  53. background-position: center 10vh;
  54. background-repeat: no-repeat; /* 不重复背景图片 */
  55. }
  56. .divider{
  57. width: 100%;
  58. height: 1px;
  59. background-color: #ccc;
  60. }
  61. .bottom-button{
  62. height: 50px;
  63. color: #fff;
  64. margin: 0 10px;
  65. width: calc(100vw - 60px);
  66. position: fixed;
  67. bottom: 30px;
  68. border-radius: 50px;
  69. background-color: #1678ff;
  70. }
  71. .bottom-button:active{
  72. opacity: 0.7;
  73. filter: brightness(80%);
  74. }
  75. </style>