百富门答题小程序
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.

202 lines
3.1 KiB

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