category.wxss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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: 78rpx;
  15. height: calc(100% - 100rpx);
  16. }
  17. /* 搜索栏 */
  18. .top-search-input {
  19. margin-left: 20rpx;
  20. margin-top: -10rpx;
  21. display: flex;
  22. align-items: center;
  23. width: 500rpx;
  24. border: 2rpx solid #FF941A;
  25. border-radius: 40rpx;
  26. height: 60rpx;
  27. }
  28. .top-search-swiper {
  29. width: 440rpx;
  30. height: 60rpx;
  31. line-height: 60rpx;
  32. margin-top: 0;
  33. font-weight: normal;
  34. font-size: 24rpx;
  35. color: #AAAAAA;
  36. margin-left: 28rpx;
  37. }
  38. .top-search-line {
  39. color: #DEDEDE;
  40. margin-right: 16rpx;
  41. }
  42. .top-search-text {
  43. width: 100rpx;
  44. font-weight: bold;
  45. font-size: 28rpx;
  46. color: #FF941A;
  47. }
  48. /* 左侧菜单栏 */
  49. .leftmenu {
  50. width: 200rpx;
  51. height: 100%;
  52. box-sizing: border-box;
  53. background-color: #f5f6f7;
  54. overflow: scroll;
  55. z-index: 2;
  56. }
  57. scroll-view ::-webkit-scrollbar {
  58. width: 0;
  59. height: 0;
  60. color: transparent;
  61. display: none;
  62. }
  63. .menu-item {
  64. line-height: 94rpx;
  65. height: 94rpx;
  66. text-align: center;
  67. border-bottom: 2rpx silid #e3e3e3;
  68. position: relative;
  69. color: #666;
  70. font-size: 24rpx;
  71. overflow: hidden;
  72. white-space: nowrap;
  73. text-overflow: ellipsis;
  74. }
  75. .menu-item.active {
  76. color: #333;
  77. font-size: 28rpx;
  78. font-weight: bold;
  79. position: relative;
  80. background: #fff;
  81. }
  82. .menu-item.active:before {
  83. position: absolute;
  84. left: 0;
  85. content: "";
  86. width: 8rpx;
  87. height: 60rpx;
  88. top: 20rpx;
  89. background: #FF941A;
  90. }
  91. .menu-item text.tips-num {
  92. position: absolute;
  93. top: 20rpx;
  94. right: 15rpx;
  95. border-radius: 15rpx;
  96. width: 30rpx;
  97. height: 30rpx;
  98. background: red;
  99. color: #fff;
  100. font-size: 25rpx;
  101. line-height: 30rpx;
  102. }
  103. /* 右侧商品栏 */
  104. .rightcontent {
  105. width: 550rpx;
  106. height: 100%;
  107. box-sizing: border-box;
  108. background-color: #fff;
  109. z-index: 1;
  110. }
  111. .rightcontent .adver-map {
  112. width: auto;
  113. box-sizing: border-box;
  114. overflow: hidden;
  115. position: relative;
  116. margin: 30rpx 20rpx 0;
  117. }
  118. .rightcontent .adver-map .item-a {
  119. display: block;
  120. font-size: 0;
  121. width: 100%;
  122. height: 160rpx;
  123. }
  124. .rightcontent .adver-map .item-a image {
  125. width: 100%;
  126. height: 100%;
  127. border-radius: 16rpx;
  128. }
  129. /* .rightcontent .sub-category {
  130. display: flex;
  131. flex-wrap: wrap;
  132. } */
  133. /* 二级分类 */
  134. .sub-category-con {
  135. margin: 20rpx;
  136. }
  137. .sub-cate-title {
  138. display: flex;
  139. align-items: center;
  140. font-weight: 800;
  141. }
  142. .view-all {
  143. color: #999;
  144. font-weight: normal;
  145. font-size: 24rpx;
  146. }
  147. .sub-cate-text {
  148. flex: 1;
  149. }
  150. .th-cate-con {
  151. display: flex;
  152. flex-wrap: wrap;
  153. }
  154. .sub-category-item {
  155. width: 33.33%;
  156. display: flex;
  157. flex-direction: column;
  158. padding: 30rpx;
  159. box-sizing: border-box;
  160. align-items: center;
  161. }
  162. .sub-category-item .sub-category-item-pic {
  163. width: 120rpx !important;
  164. height: 120rpx !important;
  165. border-radius: 16rpx;
  166. }
  167. .sub-category-item text {
  168. margin-top: 10rpx;
  169. font-size: 25rpx;
  170. }
  171. .not-category-data{
  172. padding: 20rpx;
  173. }
  174. .not-data-list{
  175. width: 100%;
  176. }
  177. .reset-localization{
  178. text-align: center;
  179. font-size: 26rpx;
  180. color: #AAAAAA;
  181. }