home.wxss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. page {
  28. background-color: #f5f6fa;
  29. }
  30. .home {
  31. padding: 20rpx 24rpx;
  32. display: flex;
  33. flex-direction: column;
  34. height: 100vh;
  35. box-sizing: border-box;
  36. }
  37. .search-area {
  38. margin-bottom: 20rpx;
  39. flex-shrink: 0;
  40. position: relative;
  41. }
  42. .search-area input {
  43. height: 80rpx;
  44. line-height: 80rpx;
  45. }
  46. .search-area .iconfont {
  47. position: absolute;
  48. font-size: 40rpx;
  49. top: 20rpx;
  50. left: 16rpx;
  51. }
  52. .box {
  53. border-radius: 18rpx;
  54. }
  55. .box .rule-area {
  56. background-color: rgba(255, 255, 255, 0.6);
  57. z-index: 2;
  58. flex-shrink: 0;
  59. border-radius: 18rpx;
  60. box-shadow: 0px 0px 21px 0px #ececec;
  61. padding: 30rpx;
  62. }
  63. .box .rule-area .notice {
  64. display: flex;
  65. flex-direction: row;
  66. font-size: 36rpx;
  67. font-weight: bolder;
  68. color: #252525;
  69. padding-bottom: 10rpx;
  70. align-items: center;
  71. justify-content: space-between;
  72. border-bottom: 1px solid rgba(134, 134, 134, 0.1);
  73. }
  74. .box .rule-area .notice ._i {
  75. margin-right: 10rpx;
  76. font-size: 36rpx;
  77. color: orange;
  78. display: inline-block;
  79. }
  80. .box .rule-area ._ul {
  81. -webkit-animation-name: ruleArea;
  82. animation-name: ruleArea;
  83. -webkit-animation-duration: 0.5s;
  84. animation-duration: 0.5s;
  85. }
  86. .box .rule-area ._li {
  87. padding: 10rpx 0;
  88. width: 100%;
  89. overflow: hidden;
  90. /*超出部分隐藏*/
  91. white-space: nowrap;
  92. /*禁止换行*/
  93. text-overflow: ellipsis;
  94. /*省略号*/
  95. display: flex;
  96. align-items: center;
  97. color: #252525;
  98. }
  99. .box .rule-area ._li ._i {
  100. padding-right: 10rpx;
  101. color: #2979ff;
  102. }
  103. .box .rule-area:nth-child(2) {
  104. margin-top: 24rpx;
  105. }
  106. .box .rule-area:nth-child(2) ._i {
  107. color: #19be6b;
  108. }
  109. .box .rule-area:nth-child(2) ._li {
  110. display: flex;
  111. justify-content: space-between;
  112. }
  113. .box .rule-area:nth-child(2) ._li:first-child {
  114. padding-top: 10rpx;
  115. }
  116. @-webkit-keyframes ruleArea {
  117. from {
  118. max-height: 0;
  119. }
  120. to {
  121. max-height: 400rpx;
  122. }
  123. }
  124. @keyframes ruleArea {
  125. from {
  126. max-height: 0;
  127. }
  128. to {
  129. max-height: 400rpx;
  130. }
  131. }
  132. .borrow-area_bck {
  133. flex-shrink: 0;
  134. margin-bottom: 20rpx;
  135. height: 120rpx;
  136. }
  137. .borrow-area_bck .notice-li {
  138. line-height: 200%;
  139. display: flex;
  140. flex-direction: row;
  141. justify-content: space-between;
  142. }
  143. .scan-area {
  144. flex-shrink: 1;
  145. height: 100%;
  146. position: relative;
  147. }
  148. .scan-area .scan-code {
  149. width: 280rpx;
  150. height: 280rpx;
  151. background-color: rgba(21, 184, 88, 0.9);
  152. box-shadow: 0 2rpx 8rpx 2rpx rgba(0, 0, 0, 0.4);
  153. color: #fff;
  154. border-radius: 50%;
  155. position: absolute;
  156. top: 50%;
  157. left: 50%;
  158. -webkit-transform: translate(-50%, -50%);
  159. transform: translate(-50%, -50%);
  160. display: flex;
  161. align-items: center;
  162. justify-content: center;
  163. text-align: center;
  164. flex-direction: column;
  165. font-size: 36rpx;
  166. -webkit-box-reflect: below 10rpx -webkit-linear-gradient(transparent, transparent 75%, rgba(255, 255, 255, 0.3));
  167. }
  168. .scan-area .scan-code .iconfont {
  169. font-size: 80rpx;
  170. margin: 20rpx 0;
  171. }
  172. .scan-area .scan-mine {
  173. width: 80rpx;
  174. height: 80rpx;
  175. color: #505050;
  176. border-radius: 21px;
  177. line-height: 150%;
  178. box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.5);
  179. display: flex;
  180. align-items: center;
  181. justify-content: center;
  182. text-align: center;
  183. flex-direction: column;
  184. font-size: 36rpx;
  185. position: absolute;
  186. bottom: 20rpx;
  187. left: 20rpx;
  188. }