topic.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* pages/topic/topic.wxss */
  2. /* .banner{padding: 20rpx 20rpx 0;}
  3. .banner image{width: 100%;height: 255rpx;border-radius: 12rpx;} */
  4. /* 分块一 */
  5. .list1{padding: 0 20rpx 20rpx;}
  6. .list1 .li{background: #fff;border-radius: 12rpx;padding: 20rpx;overflow: hidden;align-items: flex-start;margin-top: 20rpx;}
  7. .liimg{width: 200rpx;height: 200rpx;border-radius: 12rpx;margin-right: 20rpx;}
  8. .list1 .li .info{overflow: hidden;/* height: 200rpx; */}
  9. .list1 .li .title{font-size: 28rpx;color: #333;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}
  10. .list1 .li .infos{font-size: 24rpx;color: #999;margin: 25rpx 0 40rpx;/* height: 20rpx; */}
  11. .operate{justify-content: space-between;align-items: center;}
  12. .price{font-size: 25rpx;color: #FE0419;align-items: center;}
  13. .price text{font-size: 38rpx;font-weight: bold;}
  14. .price text.del{font-size: 24rpx !important;color: #999;text-decoration: line-through;margin-left: 15rpx;font-weight: normal;}
  15. .btn{width:150rpx;height:50rpx;background:linear-gradient(90deg,rgba(254,147,76,1) 0%,rgba(253,58,49,1) 100%);font-size: 24rpx;color: #fff;text-align: center;line-height: 50rpx;border-radius: 25rpx;}
  16. /* yml */
  17. .jsdimgs1{position: relative;}
  18. .jsdimg1{position: absolute;top: 5rpx;left: 0rpx;width: 82rpx;height: 36rpx;}
  19. /* 分块二 */
  20. .list2{flex-wrap: wrap;padding: 0 20rpx 20rpx;}
  21. .list2 .li{background: #fff;border-radius: 10rpx;width: 345rpx;margin: 20rpx 20rpx 0 0;overflow: hidden;}
  22. .list2 .li:nth-child(2n){margin-right: 0;}
  23. .jsdimgs{width: 345rpx;height: 345rpx;position: relative;}
  24. .jsdpro{width: 100%;height: 100%;border-radius: 10rpx 10rpx 0 0;}
  25. .proname{font-size: 28rpx;color: #333;margin-bottom: 20rpx;overflow: hidden;line-height: 36rpx;height: 72rpx;}
  26. .jsdimg{width: 82rpx;height: 36rpx;position: absolute;top: 20rpx;left: 20rpx;}
  27. .jsdinfo{padding: 15rpx 20rpx 30rpx;}
  28. .add-cart image{width: 42rpx;height: 42rpx;}
  29. .list2 .li .price{font-size: 24rpx;}
  30. .list2 .li .price text{font-size: 36rpx;}
  31. /* 分块三 */
  32. .list3{flex-wrap: wrap;padding: 0 20rpx 20rpx;}
  33. .list3 .li{background: #fff;border-radius: 10rpx;width: 220rpx;margin: 20rpx 25rpx 0 0;}
  34. .list3 .li:nth-child(3n){margin-right: 0;}
  35. .list3 .jsdimgs{width: 100%;height: 220rpx;}
  36. .list3 .li .jsdinfo{padding: 10px 14px 15rpx;}
  37. .list3 .li .proname{margin-bottom: 10rpx;}
  38. .list3 .li .price{font-size: 20rpx;}
  39. .list3 .li .price text{font-size: 28rpx;}
  40. .list3 .li .jsdimg{top: 0;left: 0;}
  41. /* 分隔线一 */
  42. .list4{padding: 0 20rpx;background: #fff;}
  43. .list4 .li{border-radius: 0;background-color: none;border-bottom: 2rpx solid #f4f1f4;padding: 20rpx 0;margin-top: 0;}
  44. .list4 .li:last-child{border-bottom: none;}
  45. /* 分隔线二 */
  46. .list5{padding: 20rpx;background: #fff;}
  47. .list5 .li{width: 355rpx;border-radius: 0;background-color: none;border-bottom: 2rpx solid #f4f1f4;border-right: 2rpx solid #f4f1f4;margin: 0;box-sizing: border-box;padding-top: 20rpx;}
  48. .list5 .li:nth-child(2n){padding-left: 10rpx;border-right: none;}
  49. .list5 .li:nth-child(3n){padding-right: 10rpx;}
  50. .list5 .li:first-child{padding-right: 10rpx;}
  51. .list5 .li:first-child,.list5 .li:nth-child(2){padding-top: 0;}
  52. /* .list5 .li:nth-last-child(2),.list5 .li:last-child{border-bottom: none;} */
  53. .list5 .li:last-child{border-bottom: none;}
  54. .list5 .li .jsdinfo{padding-bottom: 20rpx;}
  55. .list5 .li:nth-last-child(2) .jsdinfo,.list5 .li:last-child .jsdinfo{padding-bottom: 10rpx;}
  56. /* 分隔线三 */
  57. .list6{padding: 20rpx;background: #fff;}
  58. .list6 .li{width: 237rpx;border-radius: 0;background-color: none;border-bottom: 2rpx solid #f4f1f4;border-right: 2rpx solid #f4f1f4;margin: 0;box-sizing: border-box;padding: 20rpx 10rpx 0;}
  59. .list6 .li:nth-child(3n){padding-right: 0;border-right: none;}
  60. .list6 .li:first-child,.list6 .li:nth-child(3n+1){padding-left: 0;}
  61. .list6 .li:first-child,.list6 .li:nth-child(2),.list6 .li:nth-child(3){padding-top: 0;}
  62. .list6 .li:nth-last-child(3),.list6 .li:nth-last-child(2),.list6 .li:last-child{border-bottom: none;}
  63. .list6 .li .jsdinfo{padding: 10rpx 10rpx 15rpx;}
  64. /* 无分隔线 */
  65. .list7{background: #fff;margin: 20rpx;border-radius: 12rpx;padding: 0 20rpx 15rpx;}
  66. .list7 .li{width: 210rpx;margin-right: 22rpx;}
  67. .list7 .li:nth-child(3n){margin-right: 0;}
  68. .list7 .li .jsdinfo{padding: 10rpx 0 15rpx;}
  69. /* yml banner图 */
  70. .banner{margin-bottom: 20rpx; height: 300rpx; overflow: hidden;position: relative;}
  71. .banner2{padding:0 20rpx; height: 300rpx; overflow: hidden;position: relative;}
  72. .banner .swiper,.banner .swiper image{width: 100%;height: 300rpx; }
  73. .banner2 .swiper,.banner2 .swiper image{width: 100%;height: 300rpx; border-radius: 20rpx;}
  74. .dots{position: absolute;left: 0;right: 0;bottom:20rpx;align-items: center;justify-content: center;}
  75. .dot{background: #fff;width: 10rpx;height: 10rpx;border-radius: 5rpx;margin: 0 3rpx;}
  76. .dot.active{width: 30rpx;}
  77. .quan{margin: 0 20rpx;background: #FFEBEB;padding: 20rpx;border-radius: 8rpx;}
  78. .quan text{height: 45rpx;background: linear-gradient(90deg, #FE934C 0%, #FD3A31 100%);border-radius: 8rpx;font-size: 24rpx;color: #fff;padding: 0 14rpx;margin-right: 10rpx;line-height: 45rpx;font-weight: normal;}
  79. .rico{width: 12rpx;height: 21rpx;margin-left: 12rpx;}