index.wxss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. .home {
  28. background: linear-gradient(180deg, #FFFFFF 0%, #DCE8FF 100%);
  29. }
  30. .home .card-title {
  31. display: flex;
  32. justify-content: center;
  33. }
  34. .home .card-title .title {
  35. font-size: 32rpx;
  36. text-align: center;
  37. color: #fff;
  38. width: 210rpx;
  39. line-height: 64rpx;
  40. background: linear-gradient(360deg, #3074F8 0%, #568FFF 100%);
  41. border-radius: 0rpx 0rpx 24rpx 24rpx;
  42. }
  43. .home .login-home {
  44. background: #FFF;
  45. }
  46. .home .login-home .discount-list {
  47. display: flex;
  48. flex-wrap: wrap;
  49. margin: 0 24rpx 20rpx;
  50. background: #fff;
  51. border-radius: 16rpx;
  52. position: relative;
  53. top: 20rpx;
  54. padding-top: 20rpx;
  55. }
  56. .home .login-home .discount-list .discount-item {
  57. width: 20%;
  58. display: flex;
  59. flex-direction: column;
  60. align-items: center;
  61. margin-top: 20rpx;
  62. margin-bottom: 20rpx;
  63. position: relative;
  64. }
  65. .home .login-home .discount-list .discount-item .icon {
  66. width: 56rpx;
  67. height: 56rpx;
  68. }
  69. .home .login-home .discount-list .discount-item .title {
  70. font-size: 26rpx;
  71. margin-top: 10rpx;
  72. }
  73. .home .login-home .discount-list .discount-item .tag {
  74. position: absolute;
  75. top: -20rpx;
  76. left: 50%;
  77. background: #FF0615;
  78. box-shadow: inset 0rpx 6rpx 12rpx 2rpx rgba(255, 255, 255, 0.16);
  79. border-radius: 12rpx 14rpx 14rpx 0rpx;
  80. color: #fff;
  81. white-space: nowrap;
  82. font-size: 18rpx;
  83. line-height: -14rpx;
  84. height: 24rpx;
  85. padding: 0 10rpx;
  86. background-size: 100% 34rpx;
  87. }
  88. .home .login-home .discount-list .discount-item .desc {
  89. color: #FF0817;
  90. font-size: 16rpx;
  91. text-align: center;
  92. margin-top: 4rpx;
  93. }
  94. .home .login-home .title-img {
  95. width: 686rpx;
  96. height: 166rpx;
  97. margin: 24rpx 32rpx;
  98. }
  99. .home .login-home .swiper-box {
  100. position: relative;
  101. margin: 0 24rpx 20rpx;
  102. padding-top: 20rpx;
  103. width: 702rpx;
  104. height: 284rpx;
  105. border-radius: 16rpx;
  106. }
  107. .home .login-home .swiper-box .progress {
  108. position: absolute;
  109. top: 38rpx;
  110. right: 20rpx;
  111. z-index: 2;
  112. color: #FFFFFF;
  113. font-size: 16rpx;
  114. background: rgba(255, 255, 255, 0.3);
  115. padding: 2rpx 10rpx;
  116. border-radius: 14rpx;
  117. }
  118. .home .login-home .swiper-box .swiper {
  119. position: relative;
  120. height: 100%;
  121. }
  122. .home .login-home .swiper-box .swiper .swiper-item {
  123. width: 100%;
  124. height: 100%;
  125. border-radius: 16rpx;
  126. object-fit: cover;
  127. }
  128. .home .login-home .advertise-box {
  129. display: flex;
  130. justify-content: space-between;
  131. margin: 0 24rpx;
  132. padding: 20rpx 0;
  133. }
  134. .home .login-home .content {
  135. border-radius: 16rpx 16rpx 0 0;
  136. }
  137. .home .login-home .zs-list {
  138. display: flex;
  139. flex-wrap: wrap;
  140. justify-content: space-between;
  141. padding: 0 24rpx;
  142. }
  143. .home .login-home .zs-list .left .adv-swiper {
  144. width: 340rpx;
  145. height: 444rpx;
  146. margin-bottom: 25rpx;
  147. }
  148. .home .login-home .zs-list .left .adv-swiper .adv-item {
  149. width: 340rpx;
  150. height: 444rpx;
  151. }
  152. .home .login-home .zs-list .store-item {
  153. width: 340rpx;
  154. margin-bottom: 25rpx;
  155. border-radius: 16rpx;
  156. background: #fff;
  157. }
  158. .home .login-home .zs-list .store-item .icon {
  159. width: 100%;
  160. height: 300rpx;
  161. border-radius: 16rpx 16rpx 0 0;
  162. }
  163. .home .login-home .zs-list .store-item .info {
  164. padding: 20rpx;
  165. background: #fff;
  166. border-radius: 0 0 16rpx 16rpx;
  167. position: relative;
  168. }
  169. .home .login-home .zs-list .store-item .info .title {
  170. font-weight: bold;
  171. width: 100%;
  172. white-space: nowrap;
  173. text-overflow: ellipsis;
  174. overflow: hidden;
  175. }
  176. .home .login-home .zs-list .store-item .info .tags {
  177. display: flex;
  178. align-items: center;
  179. }
  180. .home .login-home .zs-list .store-item .info .tags .tag-item {
  181. line-height: 50rpx;
  182. border-radius: 8rpx;
  183. padding: 6rpx 0;
  184. font-size: 24rpx;
  185. margin-left: 10rpx;
  186. display: flex;
  187. }
  188. .home .login-home .zs-list .store-item .info .tags .tag-item .label {
  189. background: #FFF;
  190. color: #FE5B47;
  191. padding: 0 10rpx;
  192. border-radius: 8rpx 0 0 8rpx;
  193. }
  194. .home .login-home .zs-list .store-item .info .tags .tag-item .value {
  195. color: #FFF;
  196. background: rgba(255, 255, 255, 0.2);
  197. padding: 0 14rpx;
  198. border-radius: 0 8rpx 8rpx 0;
  199. }
  200. .home .login-home .zs-list .store-item .info .address {
  201. display: flex;
  202. align-items: center;
  203. margin-top: 15rpx;
  204. color: #999;
  205. }
  206. .home .login-home .zs-list .store-item .info .address .position {
  207. width: 25rpx;
  208. height: 29rpx;
  209. margin-right: 8rpx;
  210. }