home.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /* pages/home/home.wxss */
  2. .bigBox {
  3. position: relative;
  4. height: 210rpx;
  5. z-index: 100;
  6. }
  7. /* 头部区域 */
  8. .head {
  9. height: 130rpx;
  10. background-color: #f5f5f5;
  11. /* margin-top: -20rpx; */
  12. /*怎么办啊啊啊*/
  13. }
  14. .head-portrait-bg {
  15. float: left;
  16. width: 104rpx;
  17. height: 104rpx;
  18. background-color: #DDDEDF;
  19. border-radius: 20rpx;
  20. }
  21. .head-portrait-img {
  22. width: 100rpx;
  23. height: 100rpx;
  24. border-radius: 20rpx;
  25. }
  26. .username {
  27. float: left;
  28. width: 530rpx;
  29. white-space: nowrap;
  30. overflow: hidden;
  31. text-overflow: ellipsis;
  32. margin-top: 30rpx;
  33. margin-left: 20rpx;
  34. font-size: 18px;
  35. }
  36. .head_bell {
  37. float: left;
  38. margin-top: -75rpx;
  39. margin-left: 650rpx;
  40. }
  41. /* ------------------------------ */
  42. /* 搜索栏 */
  43. .search_box {
  44. width: 720rpx;
  45. height: 80rpx;
  46. background-color: #E8E7E7;
  47. border-radius: 20rpx;
  48. }
  49. .search_text {
  50. float: left;
  51. padding-left: 15rpx;
  52. padding-top: 15rpx;
  53. }
  54. .search_icon {
  55. margin-bottom: 1rpx;
  56. }
  57. .search_button {
  58. float: right;
  59. width: 80rpx;
  60. height: 80rpx;
  61. margin-right: 10rpx;
  62. }
  63. /* 去除button边框 */
  64. button[plain]{ border:0 }
  65. /* ------------------------------ */
  66. /* 分类栏 */
  67. .categories {
  68. margin-top: 18rpx;
  69. }
  70. .categories view:nth-child(1) {
  71. float: left;
  72. margin-right: 75rpx;
  73. }
  74. .categories view:nth-child(2) {
  75. float: right;
  76. margin-top: 12rpx;
  77. }
  78. .categories_block {
  79. position: absolute;
  80. top: 18rpx;
  81. }
  82. /* 分类卡片展示 */
  83. .categories_card {
  84. display: inline-block;
  85. margin-right: 10rpx;
  86. }
  87. .name_show {
  88. position: absolute;
  89. top: 93rpx;
  90. width: 150rpx;
  91. height: 60rpx;
  92. background-color: #eeeeee;
  93. opacity: 0.7;
  94. text-align: center;
  95. line-height: 60rpx;
  96. }
  97. /* ------------------------------ */
  98. /* 商品 */
  99. .recommend_block {
  100. position: absolute;
  101. width: 170rpx;
  102. top: 32rpx
  103. }
  104. /* ------------------------------ */
  105. /* 商品 */
  106. .commodity {
  107. display: flex;
  108. flex-wrap: wrap; /*自动换行*/
  109. margin-top: 10rpx;
  110. }
  111. .commodity_show {
  112. display: flex;
  113. position: relative;
  114. width: 48%;
  115. height: 500rpx;
  116. padding: 7rpx;
  117. justify-content: center;
  118. }
  119. .commodity_image {
  120. width: 340rpx;
  121. height: 340rpx;
  122. border-radius: 20rpx;
  123. }
  124. .commodity_name {
  125. position: absolute;
  126. top: 360rpx;
  127. left: 15rpx;
  128. width: 350rpx;
  129. white-space: nowrap;
  130. overflow: hidden;
  131. text-overflow: ellipsis;
  132. }
  133. .price {
  134. position: absolute;
  135. top: 400rpx;
  136. left: 12rpx;
  137. color: #a08016;
  138. font-weight: 600;
  139. }
  140. .seller {
  141. position: absolute;
  142. top: 450rpx;
  143. left: 12rpx;
  144. }
  145. .avater{
  146. float: left;
  147. }
  148. .avatar_pic {
  149. width: 45rpx !important;
  150. height: 45rpx !important;
  151. border-radius: 20rpx;
  152. }
  153. .seller_name {
  154. float: left;
  155. margin-left: 10rpx;
  156. font-weight: 300;
  157. }