goods_item.wxss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. .goods_item {
  2. background: #fff;
  3. font-size: 22rpx;
  4. width: 368rpx;
  5. overflow: hidden;
  6. margin-top: 6rpx;
  7. margin-left: 6rpx;
  8. }
  9. .goods_item .img {
  10. width: 367rpx;
  11. height: 367rpx;
  12. }
  13. .goods_item .goods_name {
  14. color: #4a4a4a;
  15. overflow: hidden;
  16. text-overflow: ellipsis;
  17. white-space: nowrap;
  18. }
  19. .goods_item .goods_desc {
  20. display: -webkit-box;
  21. -webkit-box-orient: vertical;
  22. -webkit-line-clamp: 2;
  23. overflow: hidden;
  24. color: #7e7e7e;
  25. min-height: 64rpx;
  26. }
  27. .goods_item .goods_box {
  28. padding: 12rpx;
  29. }
  30. .goods_item .goods_thumbnail {
  31. border-bottom: 1rpx solid #f9f9f9;
  32. position: relative;
  33. }
  34. .goods_item .current_price {
  35. font-size: 28rpx;
  36. color: #333;
  37. }
  38. .goods_item .original_price, .goods_item .discount {
  39. display: inline-block;
  40. position: relative;
  41. font-size: 18rpx;
  42. color: #7e7e7e;
  43. }
  44. .goods_item .original_price::after {
  45. content: "";
  46. position: absolute;
  47. top: 14rpx;
  48. left: 0;
  49. height: 1rpx;
  50. width: 100%;
  51. background: #7e7e7e;
  52. z-index: 5;
  53. }
  54. .goods_item .discount {
  55. float: right;
  56. }
  57. .goods_item .original_price {
  58. float: left;
  59. }
  60. .goods_item .deduction {
  61. overflow: hidden;
  62. }
  63. .opgoods {
  64. position: absolute;
  65. bottom: 60rpx;
  66. left: 0;
  67. padding: 0 14rpx;
  68. color: #fff;
  69. font-size: 20rpx;
  70. text-align: center;
  71. background: #feacaa;
  72. border-bottom-right-radius: 20rpx;
  73. border-top-right-radius: 20rpx;
  74. }