category.wxss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. /* pages/category/category.wxss */
  2. page {
  3. height: 100%;
  4. }
  5. .container {
  6. display: flex;
  7. flex-direction: row;
  8. height: 100%;
  9. }
  10. .main {
  11. position: fixed;
  12. display: flex;
  13. overflow: hidden;
  14. margin-top: 100rpx;
  15. height: calc(100% - 100rpx);
  16. }
  17. /* 搜索栏 */
  18. .search-bar {
  19. width: 100%;
  20. position: fixed;
  21. top: 0;
  22. left: 0;
  23. color: #777;
  24. background: #fff;
  25. box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.07);
  26. z-index: 3;
  27. padding: 20rpx 0;
  28. }
  29. .search-bar .arrow {
  30. width: 20rpx;
  31. height: 20rpx;
  32. border-bottom: 2rpx solid #777;
  33. border-left: 2rpx solid #777;
  34. transform: rotate(45deg);
  35. position: absolute;
  36. left: 30rpx;
  37. top: 41rpx;
  38. }
  39. .search-bar .search-box {
  40. display: flex;
  41. justify-content: center;
  42. align-items: center;
  43. height: 60rpx;
  44. background: #f7f7f7;
  45. z-index: 999;
  46. width: 92%;
  47. border-radius: 50rpx;
  48. text-align: center;
  49. margin: auto;
  50. }
  51. .sear-input {
  52. font-size: 28rpx;
  53. }
  54. .search-bar .search-hint {
  55. font-size: 28rpx;
  56. position: absolute;
  57. right: 30rpx;
  58. top: 32rpx;
  59. }
  60. .search-bar .search-box .search-img {
  61. width: 32rpx;
  62. height: 32rpx;
  63. margin-right: 10rpx;
  64. }
  65. /* 左侧菜单栏 */
  66. .leftmenu {
  67. width: 200rpx;
  68. height: 100%;
  69. box-sizing: border-box;
  70. background-color: #f5f6f7;
  71. overflow: scroll;
  72. z-index: 2;
  73. }
  74. .menu-item {
  75. line-height: 90rpx;
  76. height: 90rpx;
  77. text-align: center;
  78. border-bottom: 2rpx silid #e3e3e3;
  79. position: relative;
  80. color: #777;
  81. font-size: 28rpx;
  82. }
  83. .menu-item.active {
  84. color: #eb2444;
  85. font-size: 28rpx;
  86. font-weight: bold;
  87. position: relative;
  88. background: #fff;
  89. }
  90. .menu-item.active:before {
  91. position: absolute;
  92. left: 0;
  93. content: "";
  94. width: 8rpx;
  95. height: 32rpx;
  96. top: 29rpx;
  97. background: #eb2444;
  98. }
  99. .menu-item text.tips-num {
  100. position: absolute;
  101. top: 20rpx;
  102. right: 15rpx;
  103. border-radius: 15rpx;
  104. width: 30rpx;
  105. height: 30rpx;
  106. background: red;
  107. color: #fff;
  108. font-size: 25rpx;
  109. line-height: 30rpx;
  110. }
  111. /* 右侧商品栏 */
  112. .rightcontent {
  113. width: 550rpx;
  114. height: 100%;
  115. box-sizing: border-box;
  116. background-color: #fff;
  117. z-index: 1;
  118. }
  119. .rightcontent .adver-map {
  120. width: auto;
  121. box-sizing: border-box;
  122. overflow: hidden;
  123. position: relative;
  124. margin: 30rpx 20rpx 0;
  125. }
  126. .rightcontent .adver-map .item-a {
  127. display: block;
  128. font-size: 0;
  129. width: 100%;
  130. }
  131. .rightcontent .adver-map .item-a image {
  132. max-width: 100%;
  133. }
  134. .rightcontent .cont-item {
  135. padding: 0 20rpx 20rpx 20rpx;
  136. }
  137. .rightcontent .cont-item .show-item .more-prod-pic {
  138. text-align: center;
  139. width: 150rpx;
  140. height: 150rpx;
  141. line-height: 150rpx;
  142. font-size: 0;
  143. }
  144. .rightcontent .cont-item .show-item .more-prod-pic .more-pic {
  145. max-width: 100%;
  146. max-height: 100%;
  147. border-radius: 8rpx;
  148. vertical-align: middle;
  149. }
  150. .rightcontent .cont-item .show-item {
  151. position: relative;
  152. display: flex;
  153. justify-content: start;
  154. padding: 20rpx 0;
  155. }
  156. .rightcontent .cont-item .show-item::after {
  157. content: '';
  158. background-color: #f4f4f4;
  159. left: 0;
  160. height: 1px;
  161. transform-origin: 50% 100% 0;
  162. bottom: 0;
  163. position: absolute;
  164. display: block;
  165. width: 510rpx;
  166. padding-left: 20rpx;
  167. }
  168. .rightcontent .cont-item .show-item .prod-text-right {
  169. margin-left: 20rpx;
  170. width: 75%;
  171. }
  172. .rightcontent .cont-item .show-item .prod-text-right .cate-prod-info {
  173. font-size: 22rpx;
  174. color: #999;
  175. margin: 10rpx 0 20rpx 0;
  176. display: -webkit-box;
  177. -webkit-box-orient: vertical;
  178. -webkit-line-clamp: 1;
  179. overflow: hidden;
  180. }
  181. .rightcontent .cont-item .show-item .prod-text-right .prod-text.more {
  182. margin: 0;
  183. font-size: 28rpx;
  184. display: -webkit-box;
  185. word-break: break-all;
  186. overflow: hidden;
  187. text-overflow: ellipsis;
  188. display: -webkit-box;
  189. -webkit-line-clamp: 1;
  190. -webkit-box-orient: vertical;
  191. color: #000;
  192. }
  193. .rightcontent .cont-item .show-item .prod-text-right .prod-price.more {
  194. font-size: 28rpx;
  195. color: #eb2444;
  196. font-family: arial;
  197. }