index.wxss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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 {
  22. border: none;
  23. }
  24. .spu {
  25. display: block;
  26. background: #fff;
  27. width: 710rpx;
  28. border-radius: 20rpx;
  29. overflow: hidden;
  30. position: relative;
  31. box-shadow: 0 0 40rpx rgba(0, 0, 0, 0.05);
  32. margin: 0 auto 15rpx;
  33. padding: 20rpx;
  34. box-sizing: border-box;
  35. }
  36. .spu .img-class {
  37. width: 240rpx;
  38. height: 240rpx;
  39. border-radius: 10rpx;
  40. }
  41. .spu .mask {
  42. background: rgba(255, 255, 255, 0.5);
  43. width: 240rpx;
  44. height: 240rpx;
  45. position: absolute;
  46. left: 0;
  47. top: 0;
  48. }
  49. .spu .act-end {
  50. position: absolute;
  51. height: 60rpx;
  52. border-radius: 10rpx;
  53. background: rgba(0, 0, 0, 0.5);
  54. color: #fff;
  55. font-size: 28rpx;
  56. text-align: center;
  57. line-height: 60rpx;
  58. left: 120rpx;
  59. top: 100rpx;
  60. padding: 0 12rpx;
  61. transform: translateX(-50%);
  62. }
  63. .spu .act-end.act-out {
  64. left: 120rpx;
  65. }
  66. .spu .spu-content {
  67. position: relative;
  68. display: flex;
  69. }
  70. .spu .spu-content.disabled {
  71. opacity: 0.6;
  72. }
  73. .spu .spu-content .item-left {
  74. width: 240rpx;
  75. height: 240rpx;
  76. position: relative;
  77. }
  78. .spu .spu-content .item-right {
  79. box-sizing: border-box;
  80. margin-left: 20rpx;
  81. display: flex;
  82. flex-direction: column;
  83. justify-content: space-between;
  84. }
  85. .spu .spu-content .item-right .spu-title {
  86. color: #333;
  87. font-size: 30rpx;
  88. height: 32rpx;
  89. width: 400rpx;
  90. margin-bottom: 12rpx;
  91. font-weight: bold;
  92. position: relative;
  93. }
  94. .spu .spu-content .item-right .spu-title .span {
  95. width: 100%;
  96. height: 40rpx;
  97. position: absolute;
  98. left: 0;
  99. top: -4rpx;
  100. line-height: 40rpx;
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. white-space: nowrap;
  104. margin: 0;
  105. }
  106. .spu .spu-content .item-right .spu-tag {
  107. padding-left: 196rpx;
  108. margin-bottom: 20rpx;
  109. display: flex;
  110. height: 28rpx;
  111. }
  112. .spu .spu-content .item-right .spu-desc {
  113. font-size: 26rpx;
  114. line-height: 26rpx;
  115. color: #999;
  116. position: relative;
  117. width: 400rpx;
  118. height: 26rpx;
  119. margin-bottom: 12rpx;
  120. }
  121. .spu .spu-content .item-right .spu-desc .em {
  122. width: 100%;
  123. height: 32rpx;
  124. position: absolute;
  125. left: 0;
  126. top: -2rpx;
  127. line-height: 32rpx;
  128. overflow: hidden;
  129. text-overflow: ellipsis;
  130. white-space: nowrap;
  131. }
  132. .spu .spu-content .item-right .spu-price {
  133. display: flex;
  134. align-items: flex-end;
  135. font-size: 26rpx;
  136. line-height: 26rpx;
  137. overflow: hidden;
  138. margin-top: 10rpx;
  139. }
  140. .spu .spu-content .item-right .spu-price .sale-price {
  141. color: #ff5344;
  142. margin-right: 12rpx;
  143. }
  144. .spu .spu-content .item-right .spu-price .sale-price .span {
  145. font-size: 46rpx;
  146. line-height: 42rpx;
  147. margin: 0;
  148. font-weight: bold;
  149. }
  150. .spu .spu-content .item-right .spu-price .market-price {
  151. text-decoration: line-through;
  152. color: #999;
  153. margin-right: 20rpx;
  154. }
  155. .spu .spu-content .item-right .spu-count {
  156. font-size: 24rpx;
  157. height: 24rpx;
  158. color: #999;
  159. margin-bottom: 20rpx;
  160. }
  161. .spu .spu-content .item-right .spu-count .spu-count-border {
  162. display: inline-flex;
  163. border: 1rpx solid #f78076;
  164. border-radius: 20rpx;
  165. overflow: hidden;
  166. height: 30rpx;
  167. line-height: 30rpx;
  168. }
  169. .spu .spu-content .item-right .spu-count .spu-count-border .txt {
  170. padding: 0 10rpx;
  171. color: #f78076;
  172. height: 30rpx;
  173. line-height: 30rpx;
  174. }
  175. .spu .spu-content .item-right .spu-count .spu-count-border .spu-count-num {
  176. background-color: #f78076;
  177. color: #fff;
  178. }
  179. .spu .spu-content .add-cart {
  180. width: 68rpx;
  181. height: 68rpx;
  182. padding: 0;
  183. margin: 0;
  184. position: absolute;
  185. right: 0;
  186. bottom: -10rpx;
  187. display: flex;
  188. align-items: center;
  189. justify-content: center;
  190. }
  191. .spu .spu-content .add-cart .img {
  192. width: 54rpx;
  193. height: 54rpx;
  194. display: block;
  195. }
  196. .spu .spu-content .spu-active {
  197. position: absolute;
  198. left: 0;
  199. bottom: 0;
  200. z-index: 9;
  201. display: flex;
  202. flex-direction: column-reverse;
  203. align-items: flex-start;
  204. }
  205. .spu .spu-content .spu-active .tag {
  206. background: linear-gradient(to right, #ff5041, #ff994b);
  207. border-radius: 0 14rpx 14rpx 0;
  208. padding: 0 12rpx;
  209. height: 30rpx;
  210. font-size: 22rpx;
  211. line-height: 30rpx;
  212. color: #fff;
  213. display: inline-block;
  214. align-items: center;
  215. justify-content: center;
  216. width: auto;
  217. max-width: 180rpx;
  218. overflow: hidden;
  219. text-overflow: ellipsis;
  220. white-space: nowrap;
  221. }
  222. .spu .spu-content .spu-active .tag-green {
  223. background: linear-gradient(to left, #46c8d0, #29ba9a);
  224. }
  225. /* 标签 */
  226. .spu .item-tag {
  227. position: absolute;
  228. left: -1rpx;
  229. top: 0;
  230. width: 54rpx;
  231. height: 62rpx;
  232. z-index: 1;
  233. color: #fff;
  234. text-align: center;
  235. }
  236. .item-tag-bg {
  237. position: absolute;
  238. left: 0;
  239. top: 0;
  240. width: 54rpx;
  241. height: 62rpx;
  242. z-index: 0;
  243. }
  244. .spu .item-tag .tag-name {
  245. position: relative;
  246. padding-top: 6rpx;
  247. font-size: 20rpx;
  248. line-height: 1;
  249. font-weight: 600;
  250. z-index: 1;
  251. }
  252. .spu .item-tag .tag-name.two-word {
  253. font-size: 22rpx;
  254. padding-top: 14rpx;
  255. }
  256. .spu .index-input-number {
  257. position: absolute;
  258. right: 0;
  259. bottom: -20rpx;
  260. display: flex;
  261. justify-content: center;
  262. align-items: center;
  263. }
  264. .spu .index-input-number .i-input-number-view {
  265. width: 80rpx;
  266. height: 80rpx;
  267. display: flex;
  268. justify-content: center;
  269. align-items: center;
  270. }
  271. .spu .index-input-number .i-input-number-view .img{
  272. width: 40rpx;
  273. height: 40rpx;
  274. }
  275. .spu .index-input-number .i-input-number-minus {
  276. justify-content: flex-end;
  277. }
  278. .spu .index-input-number .i-input-number-plus {
  279. justify-content: flex-start;
  280. }
  281. .spu .index-input-number .input-number-text {
  282. height: 88rpx;
  283. line-height: 88rpx;
  284. font-size: 24rpx;
  285. color: #333;
  286. width: 58rpx;
  287. }
  288. .spu-play {
  289. position: absolute;
  290. left: 50%;
  291. top: 50%;
  292. width: 100rpx;
  293. height: 100rpx;
  294. margin-top: -50rpx;
  295. margin-left: -50rpx;
  296. }
  297. .spu-play .img {
  298. width: 100%;
  299. height: 100%;
  300. }
  301. .picktime {
  302. display: flex;
  303. align-items: center;
  304. justify-content: space-between;
  305. font-size: 24rpx;
  306. font-weight: bold;
  307. margin-top: 20rpx;
  308. color: #ed7b3a;
  309. border-top: .1rpx solid #e5e5e5;
  310. padding-top: 20rpx;
  311. }