App.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <script>
  2. // #ifdef H5
  3. var jweixin = require('@/js_sdk');
  4. // #endif
  5. export default {
  6. onLaunch: function() {
  7. console.log('App Launch');
  8. },
  9. onShow: function() {
  10. console.log('App Show');
  11. },
  12. onHide: function() {
  13. console.log('App Hide');
  14. }
  15. };
  16. </script>
  17. <style>
  18. /*每个页面公共css */
  19. * {
  20. margin: 0;
  21. padding: 0;
  22. box-sizing: border-box;
  23. }
  24. view,
  25. text {
  26. font-size: 24rpx;
  27. font-family: PingFang SC;
  28. font-weight: 500;
  29. color: rgba(51, 51, 51, 1);
  30. box-sizing: border-box;
  31. }
  32. image {
  33. display: block;
  34. width: 100%;
  35. height: 100%;
  36. }
  37. input {
  38. display: block;
  39. border: none;
  40. outline: none;
  41. box-sizing: border-box;
  42. }
  43. textarea {
  44. display: block;
  45. width: 100%;
  46. height: 100%;
  47. font-size: 26rpx;
  48. color: #333333;
  49. }
  50. page {
  51. background: #fafafa;
  52. }
  53. .flex {
  54. display: flex;
  55. align-items: center;
  56. justify-content: space-between;
  57. }
  58. .flexs {
  59. display: flex;
  60. align-items: center;
  61. }
  62. .center {
  63. display: flex;
  64. align-items: center;
  65. justify-content: center;
  66. }
  67. .footer_btn {
  68. position: fixed;
  69. left: 0;
  70. display: flex;
  71. align-items: center;
  72. justify-content: space-around;
  73. color: #ffffff;
  74. font-size: 30rpx;
  75. font-weight: bold;
  76. width: 100%;
  77. height: 98rpx;
  78. bottom: 0;
  79. background: #debb81;
  80. }
  81. button {
  82. background: transparent;
  83. border: none;
  84. display: flex;
  85. align-items: center;
  86. justify-content: center;
  87. padding: 0;
  88. margin: 0;
  89. overflow: unset;
  90. color: #ffffff;
  91. font-size: 30rpx;
  92. }
  93. button::after {
  94. width: 0;
  95. height: 0;
  96. }
  97. .hover-view {
  98. opacity: 0.7;
  99. }
  100. scroll-view {
  101. box-sizing: border-box;
  102. }
  103. /* 一行显示 */
  104. .clamp {
  105. overflow: hidden;
  106. text-overflow: ellipsis;
  107. white-space: nowrap;
  108. display: block;
  109. }
  110. /* 二行显示 */
  111. .clamp2 {
  112. overflow: hidden;
  113. text-overflow: ellipsis;
  114. display: -webkit-box;
  115. -webkit-line-clamp: 2;
  116. -webkit-box-orient: vertical;
  117. }
  118. /* 二行显示 */
  119. .ellipsis {
  120. overflow: hidden;
  121. text-overflow: ellipsis;
  122. display: -webkit-box;
  123. -webkit-box-orient: vertical;
  124. -webkit-line-clamp: 2;
  125. }
  126. </style>