activity.wxss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. /* 图片尺寸 */
  23. /* Border Radius */
  24. /* 水平间距 */
  25. /* 垂直间距 */
  26. /* 透明度 */
  27. /* 文章场景相关 */
  28. page {
  29. height: auto !important;
  30. background-color: #FF457B;
  31. }
  32. .activity-banner {
  33. width: 100%;
  34. height: 600rpx;
  35. float: left;
  36. margin-bottom: 64rpx;
  37. }
  38. .activity-banner .activity-banner-image {
  39. width: 100%;
  40. height: 100%;
  41. display: block;
  42. }
  43. .container-section {
  44. width: 100%;
  45. height: auto;
  46. box-sizing: border-box;
  47. padding: 0 24rpx;
  48. }
  49. .container-section .product-list {
  50. width: 339rpx;
  51. height: 532rpx;
  52. float: left;
  53. margin-right: 24rpx;
  54. margin-bottom: 24rpx;
  55. background-color: #FFFFFF;
  56. border-radius: 16rpx;
  57. }
  58. .container-section .product-list:nth-child(2n) {
  59. margin-right: 0;
  60. }
  61. .container-section .product-list .product-list-image {
  62. width: 100%;
  63. height: 339rpx;
  64. float: left;
  65. position: relative;
  66. }
  67. .container-section .product-list .product-list-image .product-image {
  68. width: 100%;
  69. height: 100%;
  70. display: block;
  71. border-radius: 16rpx 16rpx 0 0;
  72. }
  73. .container-section .product-list .product-list-image .product-icon {
  74. width: 68rpx;
  75. height: 55rpx;
  76. display: block;
  77. position: absolute;
  78. top: 0;
  79. left: 34rpx;
  80. }
  81. .container-section .product-list .product-list-msg {
  82. width: 100%;
  83. height: 193rpx;
  84. box-sizing: border-box;
  85. padding: 16rpx 24rpx;
  86. float: left;
  87. position: relative;
  88. }
  89. .container-section .product-list .product-list-msg .product-msg-name {
  90. width: 100%;
  91. height: 72rpx;
  92. line-height: 35rpx;
  93. text-overflow: ellipsis;
  94. overflow: hidden;
  95. display: -webkit-box;
  96. -webkit-line-clamp: 2;
  97. line-clamp: 2;
  98. -webkit-box-orient: vertical;
  99. font-size: 26rpx;
  100. color: #333333;
  101. text-align: justify;
  102. float: left;
  103. }
  104. .container-section .product-list .product-list-msg .product-list-tag {
  105. position: relative;
  106. z-index: 9;
  107. width: 100%;
  108. height: 30rpx;
  109. margin-top: 8rpx;
  110. float: left;
  111. }
  112. .container-section .product-list .product-list-msg .product-list-tag .tag {
  113. display: inline-block;
  114. height: 32rpx;
  115. font-size: 22rpx;
  116. line-height: 30rpx;
  117. text-align: center;
  118. color: #f83c6c;
  119. float: left;
  120. margin-right: 10rpx;
  121. }
  122. .container-section .product-list .product-list-msg .product-list-tag .tag.tag-02 {
  123. width: 80rpx;
  124. background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png) top center no-repeat;
  125. background-size: contain;
  126. }
  127. .container-section .product-list .product-list-msg .product-list-tag .tag.tag-01 {
  128. width: 56rpx;
  129. color: #fff;
  130. background-color: #f83c6c;
  131. border-radius: 4rpx;
  132. }
  133. .container-section .product-list .product-list-msg .product-list-pri {
  134. width: 100%;
  135. height: 44rpx;
  136. float: left;
  137. position: absolute;
  138. bottom: 16rpx;
  139. left: 0;
  140. box-sizing: border-box;
  141. padding: 0 24rpx;
  142. }
  143. .container-section .product-list .product-list-msg .product-list-pri .price {
  144. float: left;
  145. font-size: 26rpx;
  146. color: #f83c6c;
  147. font-weight: bold;
  148. line-height: 44rpx;
  149. }
  150. .container-section .product-list .product-list-msg .product-list-pri .carts {
  151. float: right;
  152. }
  153. .container-section .product-list .product-list-msg .product-list-pri .carts .carts-add {
  154. width: 44rpx;
  155. height: 44rpx;
  156. text-align: center;
  157. line-height: 44rpx;
  158. background-color: #ff457b;
  159. border-radius: 50%;
  160. }
  161. .container-section .product-list .product-list-msg .product-list-pri .carts .carts-add .iconfont {
  162. font-size: 32rpx;
  163. color: #FFFFFF;
  164. }