index.wxss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. .i-btn {
  2. text-align: center;
  3. vertical-align: middle;
  4. touch-action: manipulation;
  5. cursor: pointer;
  6. background-image: none;
  7. white-space: nowrap;
  8. user-select: none;
  9. font-size: 28rpx;
  10. border: 0 !important;
  11. position: relative;
  12. text-decoration: none;
  13. height: 88rpx;
  14. line-height: 88rpx;
  15. background:none;
  16. color: #495060;
  17. border-radius: 0;
  18. margin: 0;
  19. box-shadow: none;
  20. }
  21. .i-btn::after{ border: none; }
  22. .spu {
  23. width: 100%;
  24. display: block;
  25. }
  26. .spu .img-class {
  27. width: 240rpx;
  28. height: 240rpx;
  29. border-radius: 10rpx;
  30. }
  31. .spu .mask {
  32. background: rgba(255, 255, 255, 0.5);
  33. width: 240rpx;
  34. height: 240rpx;
  35. position: absolute;
  36. left: 20rpx;
  37. top: 20rpx;
  38. }
  39. .spu .act-end {
  40. position: absolute;
  41. height: 60rpx;
  42. border-radius: 10rpx;
  43. background: rgba(0, 0, 0, 0.5);
  44. color: #fff;
  45. font-size: 28rpx;
  46. text-align: center;
  47. line-height: 60rpx;
  48. left: 140rpx;
  49. top: 112rpx;
  50. padding: 0 12rpx;
  51. transform: translateX(-50%);
  52. }
  53. .spu .act-end.act-out {
  54. left: 140rpx;
  55. }
  56. .spu .spu-content {
  57. background: #fff;
  58. width: 710rpx;
  59. border-radius: 20rpx;
  60. overflow: hidden;
  61. position: relative;
  62. box-shadow: 0 0 40rpx rgba(0, 0, 0, 0.05);
  63. margin: 0 auto 20rpx;
  64. display: flex;
  65. padding: 20rpx;
  66. box-sizing: border-box;
  67. }
  68. .spu .spu-content.disabled {
  69. opacity: 0.6;
  70. }
  71. .spu .spu-content .item-left {
  72. width: 240rpx;
  73. height: 240rpx;
  74. position: relative;
  75. }
  76. .spu .spu-content .item-right {
  77. box-sizing: border-box;
  78. margin-left: 20rpx;
  79. display: flex;
  80. flex-direction: column;
  81. justify-content: space-between;
  82. }
  83. .spu .spu-content .item-right .spu-title {
  84. color: #222;
  85. font-size: 30rpx;
  86. height: 32rpx;
  87. width: 400rpx;
  88. margin-bottom: 12rpx;
  89. margin-top: 10rpx;
  90. font-weight: 500;
  91. position: relative;
  92. }
  93. .spu .spu-content .item-right .spu-title .span {
  94. width: 100%;
  95. height: 40rpx;
  96. position: absolute;
  97. left: 0;
  98. top: -4rpx;
  99. line-height: 40rpx;
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. white-space: nowrap;
  103. margin: 0;
  104. }
  105. .spu .spu-content .item-right .spu-tag {
  106. padding-left: 196rpx;
  107. margin-bottom: 20rpx;
  108. display: flex;
  109. height: 28rpx;
  110. }
  111. .spu .spu-content .item-right .spu-desc {
  112. font-size: 26rpx;
  113. line-height: 26rpx;
  114. color: #999;
  115. position: relative;
  116. width: 400rpx;
  117. height: 26rpx;
  118. margin-bottom: 12rpx;
  119. }
  120. .spu .spu-content .item-right .spu-desc em {
  121. width: 100%;
  122. height: 32rpx;
  123. position: absolute;
  124. left: 0;
  125. top: -2rpx;
  126. line-height: 32rpx;
  127. overflow: hidden;
  128. text-overflow: ellipsis;
  129. white-space: nowrap;
  130. }
  131. .spu .spu-content .item-right .spu-price {
  132. display: flex;
  133. align-items: flex-end;
  134. font-size: 26rpx;
  135. line-height: 26rpx;
  136. overflow: hidden;
  137. margin-bottom: 10rpx;
  138. }
  139. .spu .spu-content .item-right .spu-price .sale-price {
  140. color: #ff5344;
  141. margin-right: 12rpx;
  142. }
  143. .spu .spu-content .item-right .spu-price .sale-price .span {
  144. font-size: 46rpx;
  145. line-height: 42rpx;
  146. margin: 0;
  147. font-weight: bold;
  148. }
  149. .spu .spu-content .item-right .spu-price .market-price {
  150. text-decoration: line-through;
  151. color: #999;
  152. margin-right: 30rpx;
  153. }
  154. .spu .spu-content .item-right .spu-count {
  155. font-size: 24rpx;
  156. height: 24rpx;
  157. color: #999;
  158. margin-bottom: 30rpx;
  159. }
  160. /* .spu .spu-content .item-right .spu-count text {
  161. border: 1rpx solid rgb(218, 218, 218);
  162. padding: 0 10rpx;
  163. border-radius: 20rpx;
  164. } */
  165. .spu .spu-content .item-right .spu-count .spu-count-border {
  166. display: inline-block;
  167. border: 1rpx solid #f78076;
  168. border-radius: 20rpx;
  169. overflow: hidden;
  170. height: 30rpx;
  171. line-height: 30rpx;
  172. }
  173. .spu .spu-content .item-right .spu-count .spu-count-border .txt {
  174. padding: 0 10rpx;
  175. color: #f78076;
  176. height: 30rpx;
  177. line-height: 30rpx;
  178. }
  179. .spu .spu-content .item-right .spu-count .spu-count-border .spu-count-num {
  180. background-color: #f78076;
  181. color: #fff;
  182. }
  183. .spu .spu-content .add-cart {
  184. width: 68rpx;
  185. height: 68rpx;
  186. padding: 0;
  187. margin: 0;
  188. position: absolute;
  189. right: 28rpx;
  190. bottom: 20rpx;
  191. display: flex;
  192. align-items: center;
  193. justify-content: center;
  194. }
  195. .spu .spu-content .add-cart .img {
  196. width: 54rpx;
  197. height: 54rpx;
  198. display: block;
  199. }
  200. .spu .spu-content .spu-active {
  201. position: absolute;
  202. left: 0;
  203. bottom: 0;
  204. z-index: 9;
  205. display: flex;
  206. flex-direction: column-reverse;
  207. align-items: flex-start;
  208. }
  209. .spu .spu-content .spu-active .tag {
  210. background: linear-gradient(to right, #ff5041, #ff994b);
  211. border-radius: 0 14rpx 14rpx 0;
  212. padding: 0 12rpx;
  213. height: 30rpx;
  214. font-size: 22rpx;
  215. line-height: 30rpx;
  216. color: #fff;
  217. display: inline-block;
  218. align-items: center;
  219. justify-content: center;
  220. width: auto;
  221. max-width: 180rpx;
  222. overflow: hidden;
  223. text-overflow: ellipsis;
  224. white-space: nowrap;
  225. }
  226. .spu .spu-content .spu-active .tag-green {
  227. background: linear-gradient(to left, #46c8d0, #29ba9a);
  228. }
  229. /* 标签 */
  230. .spu .item-tag {
  231. position: absolute;
  232. left: -1rpx;
  233. top: 0;
  234. width: 54rpx;
  235. height: 62rpx;
  236. z-index: 1;
  237. color: #fff;
  238. text-align: center;
  239. }
  240. .item-tag-bg {
  241. position: absolute;
  242. left: 0;
  243. top: 0;
  244. width: 54rpx;
  245. height: 62rpx;
  246. z-index: 0;
  247. }
  248. .spu .item-tag .tag-name {
  249. position: relative;
  250. padding-top: 6rpx;
  251. font-size: 20rpx;
  252. line-height: 1;
  253. font-weight: 600;
  254. z-index: 1;
  255. }
  256. .spu .item-tag .tag-name.two-word {
  257. font-size: 22rpx;
  258. padding-top: 14rpx;
  259. }