home.wxss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. /* pages/home/home.wxss */
  2. page {
  3. height: auto !important;
  4. }
  5. .page {
  6. /* background-color: rgba(0, 0, 0, 0); */
  7. background-color: #F8F8F8;
  8. }
  9. .custom {
  10. position: sticky;
  11. width: 100%;
  12. top: 0;
  13. left: 0;
  14. z-index: 999;
  15. height: 80rpx;
  16. display: flex;
  17. align-items: center;
  18. justify-content: center;
  19. background-color: rgba(0, 0, 0, 0);
  20. /* padding-left: 40rpx; */
  21. background: #FFFFFF;
  22. text-align: center;
  23. }
  24. .customBg {
  25. background: #FFFFFF;
  26. transition: all .5s;
  27. }
  28. .swiper {
  29. width: 750rpx;
  30. height: 360rpx;
  31. }
  32. .swiper image {
  33. width: 750rpx;
  34. height: 360rpx;
  35. }
  36. .search {
  37. height: 68rpx;
  38. background: #FFFFFF;
  39. margin: 24rpx 20rpx 24rpx 20rpx;
  40. position: relative;
  41. }
  42. .search input {
  43. width: 100%;
  44. height: 100%;
  45. font-weight: 500;
  46. font-size: 28rpx;
  47. padding: 20rpx;
  48. padding-right: 60rpx;
  49. box-sizing: border-box;
  50. }
  51. .search icon {
  52. position: absolute;
  53. right: 15rpx;
  54. top: 14rpx;
  55. font-size: 28rpx;
  56. }
  57. .menu {
  58. padding: 30rpx 0;
  59. background: #FFFFFF;
  60. overflow: hidden;
  61. overflow-x: auto;
  62. white-space: nowrap;
  63. }
  64. .menu-item {
  65. display: inline-block;
  66. width: 106rpx;
  67. margin: 0 22rpx;
  68. box-sizing: border-box;
  69. text-align: center;
  70. }
  71. .menu-item image {
  72. width: 64rpx;
  73. height: 64rpx;
  74. }
  75. .menu-item .text {
  76. display: block;
  77. font-size: 24rpx;
  78. color: #0D0D0D;
  79. }
  80. .floorTitle {
  81. line-height: 80rpx;
  82. font-weight: 600;
  83. font-size: 28rpx;
  84. color: #000000;
  85. text-align: center;
  86. }
  87. .goodsPanel {
  88. padding: 0 24rpx;
  89. background: #FFFFFF;
  90. }
  91. .goodsQuery {
  92. position: sticky;
  93. top: 116rpx;
  94. background: #FFFFFF;
  95. }
  96. .queryItem {
  97. display: inline-block;
  98. font-size: 28rpx;
  99. line-height: 96rpx;
  100. margin-right: 45rpx;
  101. }
  102. .queryItem:nth-child(2) {
  103. content: "\e617";
  104. }
  105. .queryItem:last-child {
  106. float: right;
  107. margin-right: 0;
  108. vertical-align: middle;
  109. top: 0;
  110. }
  111. .queryItem icon {
  112. vertical-align: middle;
  113. /* height: 62rpx; */
  114. }
  115. .xiaoliang {
  116. vertical-align: middle;
  117. }
  118. .xiaoliang::after {
  119. vertical-align: middle;
  120. padding-left: 5rpx;
  121. color: #D9D9D9;
  122. content: "\e625";
  123. }
  124. .jiage {
  125. vertical-align: middle;
  126. }
  127. .jiage::after {
  128. vertical-align: middle;
  129. padding-left: 5rpx;
  130. content: "\e623";
  131. }
  132. .jiage::after {
  133. fill: red;
  134. }
  135. .shaixuan {
  136. vertical-align: middle;
  137. position: relative;
  138. /* padding-right: 36rpx; */
  139. }
  140. .shaixuan::after {
  141. vertical-align: middle;
  142. padding-left: 10rpx;
  143. content: "\e61e";
  144. }
  145. .goodsList {
  146. display: flex;
  147. justify-content: space-between;
  148. flex-wrap: wrap
  149. }
  150. .goods {
  151. width: 342rpx;
  152. height: 496rpx;
  153. background: #FFFFFF;
  154. }
  155. .goods image {
  156. width: 342rpx;
  157. height: 342rpx;
  158. background-color: #F8F8F8;
  159. }
  160. .goods .name {
  161. font-weight: 400;
  162. font-size: 24rpx;
  163. color: #0D0D0D;
  164. line-height: 36rpx;
  165. padding: 0 22rpx;
  166. margin: 12rpx 0;
  167. }
  168. .goods .bar {
  169. padding: 0 22rpx;
  170. padding-bottom: 20rpx;
  171. display: flex;
  172. justify-content: space-between
  173. }
  174. .goods .bar .price {
  175. flex: 1;
  176. /* float: left; */
  177. font-weight: bold;
  178. font-size: 28rpx;
  179. color: #202020;
  180. vertical-align: middle;
  181. }
  182. .goods .bar .icon {
  183. /* float: right; */
  184. font-size: 28rpx;
  185. color: #00BC8A;
  186. margin-top: 6rpx;
  187. }
  188. .goods .bar::after {
  189. content: "";
  190. display: table;
  191. clear: both;
  192. }
  193. .icon-guanbi {
  194. position: absolute;
  195. top: 22rpx;
  196. right: 42rpx;
  197. color: #D9D9D9;
  198. }
  199. .shaixuanBox {
  200. padding: 0 24rpx;
  201. }
  202. .shaixuanBoxTitle {
  203. font-weight: 600;
  204. font-size: 32rpx;
  205. color: #000000;
  206. }
  207. .shaixuanBoxBrand {
  208. padding: 40rpx 0;
  209. display: flex;
  210. justify-content: space-between;
  211. flex-wrap: wrap;
  212. }
  213. .shaixuanBoxBrand::after {
  214. min-width: 214rpx;
  215. content: "";
  216. }
  217. .shaixuanBoxBrand view {
  218. width: 214rpx;
  219. height: 68rpx;
  220. font-weight: 400;
  221. font-size: 28rpx;
  222. text-align: center;
  223. color: #000000;
  224. line-height: 68rpx;
  225. background: #F8F8F8;
  226. border-radius: 8rpx 8rpx 8rpx 8rpx;
  227. margin-bottom: 16rpx;
  228. padding: 0 10rpx;
  229. box-sizing: border-box;
  230. }
  231. .shaixuanBoxBrand view.active {
  232. color: #FFFFFF;
  233. background: linear-gradient(180deg, #0D0D0D 0%, #4F4F4F 100%);
  234. }
  235. .shaixuanBoxPrice {
  236. padding: 40rpx 0;
  237. display: flex;
  238. justify-content: space-between;
  239. flex-wrap: nowrap;
  240. }
  241. .shaixuanBoxPrice input {
  242. width: 324rpx;
  243. height: 68rpx;
  244. border-radius: 8rpx 8rpx 8rpx 8rpx;
  245. border: 1rpx solid #A2A2A2;
  246. padding: 0 20rpx;
  247. box-sizing: border-box;
  248. text-align: center;
  249. }
  250. .shaixuanBoxBtn {
  251. display: flex;
  252. justify-content: space-between;
  253. flex-wrap: nowrap;
  254. margin-bottom: 70rpx;
  255. }
  256. .shaixuanBoxBtn button {
  257. width: 264rpx;
  258. height: 92rpx;
  259. background: #EEEEEE;
  260. border-radius: 8rpx 8rpx 8rpx 8rpx;
  261. text-align: center;
  262. line-height: 92rpx;
  263. font-weight: 500;
  264. font-size: 32rpx;
  265. padding: 0;
  266. margin: 0;
  267. }
  268. .shaixuanBoxBtn button:last-child {
  269. /* width: 407rpx; */
  270. color: white !important;
  271. background: #00BC8A !important;
  272. border-radius: 8rpx 8rpx 8rpx 8rpx;
  273. }