shopCategory.wxss 4.8 KB

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