myBox.wxss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. .an {
  28. height: 25px;
  29. width: 25px;
  30. float: left;
  31. position: relative;
  32. top: 42px;
  33. }
  34. .box_head {
  35. position: -webkit-sticky;
  36. position: sticky;
  37. top: 88rpx;
  38. left: 0;
  39. background: #fafafa;
  40. z-index: 2021;
  41. width: 100%;
  42. }
  43. .box_head .box_head_li {
  44. flex: 1;
  45. font-size: 30rpx;
  46. height: 90rpx;
  47. font-weight: bold;
  48. }
  49. .box_head .active {
  50. border-radius: 100rpx;
  51. color: #69a8f8;
  52. }
  53. .box_ul {
  54. padding: 0 30rpx 98rpx 30rpx;
  55. }
  56. .box_ul .box_ul_li {
  57. padding: 15rpx;
  58. margin-bottom: 20rpx;
  59. background: #ffffff;
  60. border-radius: 20rpx;
  61. }
  62. .box_ul .box_ul_li .box_ul_li_img {
  63. width: 30%;
  64. float: left;
  65. margin-right: 20rpx;
  66. }
  67. .box_ul .box_ul_li .box_ul_li_img image {
  68. width: 200rpx;
  69. height: 200rpx;
  70. border-radius: 10rpx;
  71. }
  72. .box_ul .box_ul_li .box_ul_li_main {
  73. flex: 1;
  74. }
  75. .box_ul .box_ul_li .box_ul_li_name {
  76. font-size: 28rpx;
  77. display: flex;
  78. overflow: hidden;
  79. }
  80. .box_ul .box_ul_li .box_ul_li_name text {
  81. display: -webkit-box;
  82. -webkit-box-orient: vertical;
  83. -webkit-line-clamp: 2;
  84. flex: 1;
  85. font-weight: bold;
  86. }
  87. .box_ul .box_ul_li .box_ul_li_price {
  88. margin: 15rpx 0;
  89. }
  90. .box_ul .box_ul_li .box_ul_li_price text {
  91. color: #66a6ff;
  92. font-size: 28rpx;
  93. font-weight: 600;
  94. }
  95. .box_ul .box_ul_li .box_ul_li_price image {
  96. width: 44rpx;
  97. height: 44rpx;
  98. }
  99. .box_ul .box_ul_li .box_ul_li_price .hsj,
  100. .box_ul .box_ul_li .khj,
  101. .box_ul .box_ul_li .xsj {
  102. display: block;
  103. margin: 10rpx 0;
  104. }
  105. .box_ul .box_ul_li .box_ul_li_price .hsj uni-text,
  106. .box_ul .box_ul_li .khj uni-text,
  107. .box_ul .box_ul_li .xsj uni-text {
  108. float: right;
  109. }
  110. .box_ul .box_ul_li .box_ul_li_price .hsj uni-text {
  111. color: #000000;
  112. }
  113. .box_ul .box_ul_li .box_ul_li_time {
  114. color: #999999;
  115. font-size: 22rpx;
  116. align-items: center;
  117. margin-top: 20rpx;
  118. }
  119. .box_ul .box_ul_li .box_ul_li_time uni-text {
  120. line-height: 70rpx;
  121. }
  122. .box_ul .box_ul_li .box_ul_li_time uni-image {
  123. width: 48rpx;
  124. height: 48rpx;
  125. float: right;
  126. }
  127. .box_ul .box_ul_li .box_ul_li_time .item-btn {
  128. background-image: -ms-linear-gradient(0deg, #89f7fe 0%, #66a6ff 100%);
  129. color: #ffffff;
  130. border-radius: 19px;
  131. font-size: 28rpx;
  132. margin-left: auto;
  133. width: 200rpx;
  134. height: 60rpx;
  135. float: right;
  136. }
  137. .box_footer {
  138. height: 98rpx;
  139. z-index: 20;
  140. position: fixed;
  141. bottom: 0rpx;
  142. width: 100%;
  143. padding: 0 30rpx;
  144. background: #ffffff;
  145. }
  146. .box_footer .box_footer_all image {
  147. width: 44rpx;
  148. height: 44rpx;
  149. margin-right: 10rpx;
  150. }
  151. .box_footer .box_footer_all text {
  152. color: #000000;
  153. font-size: 28rpx;
  154. }
  155. .box_footer .box_footer_li {
  156. color: #ffffff;
  157. width: 200rpx;
  158. height: 70rpx;
  159. border-radius: 39rpx;
  160. font-size: 30rpx;
  161. margin-left: 30rpx;
  162. }
  163. .box_footer .box_footer_li:first-child {
  164. background-image: -ms-linear-gradient(60deg, #ffc8de 0%, #ff67a4 100%);
  165. }
  166. .box_footer .box_footer_li:last-child {
  167. background-image: -ms-linear-gradient(0deg, #89f7fe 0%, #66a6ff 100%);
  168. }
  169. .donation {
  170. background-color: #fff;
  171. padding: 30rpx 40rpx;
  172. border-radius: 10px;
  173. }
  174. .donation .title {
  175. font-size: 16px;
  176. font-weight: bold;
  177. text-align: center;
  178. margin-bottom: 30rpx;
  179. }
  180. .donation .input-container {
  181. background-color: #f3f3f3;
  182. padding: 16rpx 20rpx;
  183. border-radius: 6rpx;
  184. margin-bottom: 20rpx;
  185. }
  186. .donation .input-container input {
  187. font-size: 30rpx;
  188. }
  189. .donation .tip {
  190. font-size: 12px;
  191. color: red;
  192. text-align: center;
  193. margin-bottom: 30rpx;
  194. }
  195. .donation .donation-btns {
  196. display: flex;
  197. gap: 30rpx;
  198. }
  199. .donation .donation-btns view {
  200. color: #ffffff;
  201. flex: 1;
  202. width: 100%;
  203. height: 70rpx;
  204. border-radius: 39rpx;
  205. font-size: 30rpx;
  206. }
  207. .donation .donation-btns view:first-child {
  208. background: -webkit-linear-gradient(60deg, #ffc8de 0%, #ff67a4 100%);
  209. }
  210. .donation .donation-btns view:last-child {
  211. background: -webkit-linear-gradient(0deg, #89f7fe 0%, #66a6ff 100%);
  212. }