store.wxss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. .store {
  28. padding-bottom: 80rpx;
  29. background: #F9F9F9;
  30. }
  31. .store .bg {
  32. background: linear-gradient(180deg, #3988FF 0%, #F9F9F9 100%);
  33. height: 430rpx;
  34. background-size: 100% 430rpx;
  35. display: flex;
  36. justify-content: center;
  37. align-items: center;
  38. color: #fff;
  39. position: relative;
  40. }
  41. .store .bg .jump-img {
  42. position: absolute;
  43. bottom: 20rpx;
  44. left: 50%;
  45. -webkit-transform: translateX(-50%);
  46. transform: translateX(-50%);
  47. width: 660rpx;
  48. height: 134rpx;
  49. }
  50. .store .bg .info {
  51. text-align: center;
  52. color: #222222;
  53. }
  54. .store .bg .info .num {
  55. font-size: 56rpx;
  56. font-weight: bold;
  57. }
  58. .store .bg .info .label {
  59. font-size: 24rpx;
  60. }
  61. .store .bg .rule {
  62. position: absolute;
  63. top: 50%;
  64. right: 0%;
  65. -webkit-transform: translateY(-50%);
  66. transform: translateY(-50%);
  67. background: #fff;
  68. color: #FD7300;
  69. font-size: 28rpx;
  70. padding: 10rpx 18rpx;
  71. border-radius: 12rpx;
  72. }
  73. .store .title {
  74. font-size: 28rpx;
  75. font-weight: bold;
  76. color: #0F0F0F;
  77. display: flex;
  78. align-items: center;
  79. margin: 30rpx;
  80. }
  81. .store .title .icon {
  82. width: 40rpx;
  83. height: 40rpx;
  84. margin-right: 10rpx;
  85. }
  86. .store .item {
  87. display: flex;
  88. flex-direction: column;
  89. justify-content: space-between;
  90. padding: 25rpx;
  91. margin: 0 30rpx 20rpx;
  92. border-radius: 16rpx;
  93. background: #fff;
  94. }
  95. .store .item .top {
  96. display: flex;
  97. align-items: center;
  98. justify-content: space-between;
  99. }
  100. .store .item .top .item-title {
  101. font-size: 28rpx;
  102. }
  103. .store .item .top .score {
  104. font-size: 38rpx;
  105. color: #3951fb;
  106. color: #0F0F0F;
  107. font-weight: bold;
  108. }
  109. .store .item .bottom {
  110. display: flex;
  111. align-items: center;
  112. justify-content: space-between;
  113. color: #999999;
  114. margin-top: 15rpx;
  115. font-size: 24rpx;
  116. }
  117. .store .goods-box {
  118. padding: 20rpx 50rpx;
  119. }
  120. .store .goods-box .store-title {
  121. font-size: 34rpx;
  122. display: flex;
  123. align-items: center;
  124. position: relative;
  125. padding-left: 18rpx;
  126. font-weight: bold;
  127. margin: 20rpx 0 30rpx;
  128. }
  129. .store .goods-box .store-title::before {
  130. width: 7rpx;
  131. height: 100%;
  132. background: #3951fb;
  133. content: '';
  134. display: flex;
  135. position: absolute;
  136. top: 0%;
  137. left: 0;
  138. }
  139. .store .goods-box .box {
  140. display: flex;
  141. justify-content: space-between;
  142. border-bottom: 1rpx solid #cacaca;
  143. padding-bottom: 30rpx;
  144. }
  145. .store .goods-box .box .item {
  146. width: 200rpx;
  147. display: flex;
  148. flex-direction: column;
  149. justify-content: space-between;
  150. }
  151. .store .goods-box .box .item .icon {
  152. width: 100%;
  153. height: 210rpx !important;
  154. border-radius: 12rpx;
  155. object-fit: cover;
  156. }
  157. .store .goods-box .box .item .item-title {
  158. font-size: 26rpx;
  159. display: -webkit-box;
  160. -webkit-box-orient: vertical;
  161. overflow: hidden;
  162. -webkit-line-clamp: 2;
  163. text-overflow: ellipsis;
  164. margin-top: 10rpx;
  165. }
  166. .store .goods-box .box .item .handle-box {
  167. display: flex;
  168. justify-content: space-between;
  169. align-items: center;
  170. margin-top: 15rpx;
  171. }
  172. .store .goods-box .box .item .handle-box .price {
  173. font-size: 26rpx;
  174. color: #FE5B47;
  175. }
  176. .store .goods-box .box .item .handle-box .exchange-btn {
  177. width: 96rpx;
  178. height: 40rpx;
  179. line-height: 40rpx;
  180. background: #61B5FD;
  181. border-radius: 20rpx;
  182. text-align: center;
  183. color: #fff;
  184. font-size: 22rpx;
  185. }