百富门答题小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

176 lines
2.6 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <script>
  2. export default {
  3. onLaunch: function() {},
  4. onShow: function() {
  5. // this.$store.commit('initConfig')
  6. },
  7. onHide: function() {}
  8. }
  9. </script>
  10. <style>
  11. /*每个页面公共css */
  12. body {
  13. background-color: #f7f7f7;
  14. font-size: 30rpx;
  15. }
  16. .background {
  17. background-color: #f7f7f7;
  18. }
  19. .page {
  20. padding-top: var(--window-top);
  21. }
  22. .logo {
  23. width: 120rpx;
  24. height: 120rpx;
  25. border-radius: 10rpx;
  26. background-color: #e6c38b;
  27. }
  28. img {
  29. width: 100%;
  30. height: 100%;
  31. }
  32. .title {
  33. font-size: 40rpx;
  34. font-weight: bold;
  35. margin: 40rpx 0 20rpx 0;
  36. }
  37. /* 布局 */
  38. .flex-center {
  39. display: flex;
  40. justify-content: center;
  41. align-items: center;
  42. }
  43. /* 水平居左,垂直居中 间距 20rpx */
  44. .flex-start {
  45. display: flex;
  46. align-items: center;
  47. justify-content: start;
  48. gap: 20rpx;
  49. }
  50. /* 垂直居中 */
  51. .flex-col {
  52. width: 100%;
  53. height: 100%;
  54. display: flex;
  55. flex-direction: column;
  56. align-items: center;
  57. justify-content: center;
  58. gap: 20rpx;
  59. }
  60. /* 垂直居左 */
  61. .flex-start-col {
  62. display: flex;
  63. flex-direction: column;
  64. align-items: start;
  65. justify-content: center;
  66. gap: 40rpx;
  67. }
  68. /* 两段对齐 */
  69. .flex-sb {
  70. display: flex;
  71. align-items: center;
  72. width: 100%;
  73. justify-content: space-between;
  74. }
  75. /* 两段对齐 */
  76. .flex-sa {
  77. display: flex;
  78. align-items: center;
  79. width: 100%;
  80. justify-content: space-around;
  81. }
  82. /* 字体加粗 */
  83. .font-bold {
  84. font-weight: bold;
  85. letter-spacing: 2rpx;
  86. }
  87. .home {
  88. /* background-image: url('./static/image/home/home-background.png'); */
  89. /* background-size: cover;
  90. background-repeat: no-repeat;
  91. background-position: center;
  92. width: 100%;
  93. height: 100vh;
  94. overflow: hidden; */
  95. }
  96. .content {
  97. display: flex;
  98. flex-direction: column;
  99. align-items: center;
  100. padding-top: 30vh;
  101. }
  102. .mian-btn {
  103. border: 4rpx solid #e6bf7f;
  104. padding: 16rpx 66rpx;
  105. border-radius: 66rpx;
  106. margin-top: 30rpx;
  107. color: #e6bf7f;
  108. }
  109. .active {
  110. background-color: #e6bf7f;
  111. color: white;
  112. }
  113. .second-color {
  114. color: #d2d2d2;
  115. margin-top: 20rpx;
  116. font-size: 26rpx;
  117. }
  118. .btn2 {
  119. border: 4rpx solid #ecb864;
  120. display: flex;
  121. align-items: center;
  122. justify-content: center;
  123. padding: 16rpx 200rpx;
  124. color: #ecb864;
  125. border-radius: 10rpx;
  126. }
  127. .btn3 {
  128. border: 4rpx solid #ecb864;
  129. display: flex;
  130. align-items: center;
  131. justify-content: center;
  132. padding: 16rpx 100rpx;
  133. color: #ecb864;
  134. border-radius: 10rpx;
  135. }
  136. .mb-60 {
  137. margin-bottom: 60rpx;
  138. }
  139. .mt-60 {
  140. margin-top: 60rpx;
  141. }
  142. .mt-40 {
  143. margin-top: 40rpx;
  144. }
  145. .mt-20 {
  146. margin-top: 20vh;
  147. }
  148. .content-text {
  149. line-height: 50rpx;
  150. font-size: 28rpx;
  151. }
  152. </style>