index.wxss 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /* pages/index/index.wxss */
  2. .container{
  3. min-height: 100%;
  4. background:#f2f2f2;
  5. display: flex;
  6. width:100%;
  7. position:absolute;
  8. bottom:0px;
  9. top:0px;
  10. }
  11. .type-scroll{
  12. height:100%;
  13. flex: 0 0 80px;
  14. }
  15. .goods-scroll{
  16. height:100%;
  17. flex: 1
  18. }
  19. .type-container{
  20. width: 80px;
  21. height: 100%;
  22. background: #f2f2f2;
  23. margin-top: 2px;
  24. }
  25. .type-navbar{
  26. white-space:nowrap;
  27. display: flex;
  28. height:88rpx
  29. }
  30. .type-box{
  31. display: inline-block;
  32. width:160rpx;
  33. line-height: 84rpx;
  34. text-align:center;
  35. font-size:24rpx;
  36. background:#f2f2f2;
  37. }
  38. .type-navbar-item{
  39. border-bottom:4rpx solid #fff
  40. }
  41. .type-navbar-item{
  42. border-bottom:4rpx solid #fff
  43. }
  44. .type-item-on{
  45. border-left:4rpx solid #e64340;
  46. background: #fff;
  47. }
  48. .goods-container{
  49. display: flex;
  50. flex-wrap:wrap;
  51. justify-content:space-between;
  52. box-sizing: content-box;
  53. padding:4rpx 10rpx 10rpx 0;
  54. }
  55. .goods-box{
  56. width:49%;
  57. overflow:hidden;
  58. margin-bottom:24rpx;
  59. background:#fff;
  60. }
  61. .goods-box .image-box{
  62. width:100%;
  63. overflow: hidden;
  64. padding:8rpx 8rpx 0rpx 8rpx;
  65. box-sizing:border-box;
  66. }
  67. .image-box image{
  68. width:100%;
  69. height:270rpx;
  70. }
  71. .goods-box .goods-title{
  72. width:256rpx;
  73. text-overflow:ellipsis;
  74. white-space:nowrap;
  75. overflow: hidden;
  76. font-size:24rpx;
  77. padding-top:18rpx;
  78. color:#000;
  79. margin:0 12rpx;
  80. }
  81. .goods-box .goods-price{
  82. width:280rpx;
  83. overflow:hidden;
  84. padding:18rpx 0;
  85. color:#e64340;
  86. font-size:24rpx;
  87. margin-left:12rpx;
  88. }/* index.wxss */