index.wxss 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. @charset "UTF-8";
  2. /* 页面左右间距 */
  3. /* 文字尺寸 */
  4. /*文字颜色*/
  5. /* 边框颜色 */
  6. /*颜色*/
  7. /* 图片加载中颜色 */
  8. /* 行为相关颜色 */
  9. /* 功能栏字体大小 */
  10. /*功能栏左侧小图标*/
  11. page {
  12. background: #ffff;
  13. min-height: 100%;
  14. height: auto;
  15. }
  16. .top-search {
  17. position: relative;
  18. z-index: 2;
  19. height: 80rpx;
  20. padding: 0 20rpx;
  21. }
  22. .top-search .top-logo {
  23. width: 50rpx;
  24. margin-right: 10rpx;
  25. }
  26. .top-search .top-logo image {
  27. width: 48rpx;
  28. }
  29. .top-search .search-box {
  30. justify-content: center;
  31. width: 698rpx;
  32. height: 60rpx;
  33. background: #eeeeee;
  34. border-radius: 30rpx;
  35. }
  36. .top-search .search-box .search {
  37. width: 34rpx;
  38. height: 34rpx;
  39. }
  40. .top-search .search-box .search-font {
  41. margin-left: 14rpx;
  42. font-size: 28rpx;
  43. font-family: PingFang SC;
  44. font-weight: 500;
  45. color: #cbcbcb;
  46. }
  47. .top-swiper {
  48. width: 690rpx;
  49. height: 360rpx;
  50. border-radius: 20rpx;
  51. margin: 20rpx auto 0;
  52. }
  53. .top-swiper image {
  54. width: 690rpx;
  55. height: 360rpx;
  56. border-radius: 20rpx;
  57. }
  58. .swiper-btm {
  59. height: 60rpx;
  60. width: 750rpx;
  61. background-color: #fff;
  62. margin-bottom: 20rpx;
  63. font-size: 21rpx;
  64. font-weight: 500;
  65. color: #333333;
  66. }
  67. .swiper-btm .btm-item {
  68. flex-grow: 1;
  69. justify-content: center;
  70. }
  71. .swiper-btm .btm-item image {
  72. width: 25rpx;
  73. height: 25rpx;
  74. margin-right: 14rpx;
  75. }
  76. .jg {
  77. height: 20rpx;
  78. background: #f8f8f8;
  79. }
  80. .cate-section {
  81. justify-content: space-around;
  82. background-color: #fff;
  83. padding: 45rpx 0 30rpx;
  84. }
  85. .cate-section .cate-item {
  86. flex-grow: 0;
  87. width: 20%;
  88. flex-direction: column;
  89. text-align: center;
  90. align-items: center;
  91. justify-content: center;
  92. }
  93. .cate-section .cate-item .img-wrapper {
  94. width: 90rpx;
  95. height: 90rpx;
  96. border-radius: 20rpx;
  97. position: relative;
  98. }
  99. .cate-section .cate-item .img-wrapper image {
  100. width: 90rpx;
  101. height: 90rpx;
  102. position: absolute;
  103. left: 50%;
  104. top: 50%;
  105. -webkit-transform: translate(-50%, -50%);
  106. transform: translate(-50%, -50%);
  107. }
  108. .cate-section .cate-item .item-title {
  109. margin-top: 15rpx;
  110. font-size: 26rpx;
  111. font-weight: 500;
  112. color: #666666;
  113. }
  114. .product-box {
  115. margin-top: 20rpx;
  116. background: #ffffff;
  117. padding: 26rpx 0 20rpx;
  118. }
  119. .product-box .product-tit {
  120. justify-content: center;
  121. }
  122. .product-box .product-tit .hx {
  123. width: 120rpx;
  124. height: 1rpx;
  125. background: #4a2723;
  126. }
  127. .product-box .product-tit .tit {
  128. margin: 0 70rpx;
  129. font-size: 32rpx;
  130. font-family: PingFang SC;
  131. font-weight: 500;
  132. color: #4a2723;
  133. }
  134. .hotgoods {
  135. margin-top: 38rpx;
  136. width: 100%;
  137. display: flex;
  138. flex-wrap: wrap;
  139. padding: 0 20rpx 30rpx;
  140. justify-content: space-between;
  141. }
  142. .hotgoods .hotgoods-item {
  143. width: 345rpx;
  144. background-color: #ffffff;
  145. border-radius: 12rpx;
  146. box-shadow: 0 0 15rpx rgba(0, 0, 0, 0.2);
  147. margin-bottom: 15rpx;
  148. }
  149. .hotgoods .hotgoods-item .image-wrapper {
  150. width: 345rpx;
  151. height: 345rpx;
  152. border-radius: 3px;
  153. overflow: hidden;
  154. position: relative;
  155. }
  156. .hotgoods .hotgoods-item .image-wrapper .image-bg {
  157. position: absolute;
  158. top: 0;
  159. left: 0;
  160. right: 0;
  161. bottom: 0;
  162. width: 100%;
  163. height: 100%;
  164. opacity: 1;
  165. border-radius: 12rpx 12rpx 0 0;
  166. z-index: 2;
  167. }
  168. .hotgoods .hotgoods-item .image-wrapper .image {
  169. width: 100%;
  170. height: 100%;
  171. opacity: 1;
  172. border-radius: 12rpx 12rpx 0 0;
  173. }
  174. .hotgoods .hotgoods-item .title {
  175. margin-top: 24rpx;
  176. padding: 0 20rpx;
  177. font-size: 28rpx;
  178. font-family: PingFang SC;
  179. font-weight: 500;
  180. color: #333333;
  181. }
  182. .hotgoods .hotgoods-item .hot-price {
  183. display: flex;
  184. justify-content: flex-start;
  185. align-items: center;
  186. }
  187. .hotgoods .hotgoods-item .hot-price .hotPrice-box {
  188. padding: 2rpx 6rpx;
  189. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  190. border-radius: 5rpx;
  191. text-align: center;
  192. line-height: 28rpx;
  193. font-size: 20rpx;
  194. font-family: Source Han Sans CN;
  195. font-weight: 400;
  196. color: #ffffff;
  197. }
  198. .hotgoods .hotgoods-item .hot-price .price {
  199. margin-left: 10rpx;
  200. font-size: 40rpx;
  201. color: #ff0000;
  202. font-weight: 500;
  203. }
  204. .hotgoods .hotgoods-item .hot-price .price .jf {
  205. font-size: 20rpx;
  206. }
  207. .hotgoods .hotgoods-item .hot-price .yuanPrice {
  208. margin-left: 10rpx;
  209. font-size: 20rpx;
  210. font-family: PingFang SC;
  211. font-weight: 500;
  212. text-decoration: line-through;
  213. color: #999999;
  214. }
  215. .hotgoods .hotgoods-item .hot-price .cart-icon image {
  216. width: 44rpx;
  217. height: 44rpx;
  218. }
  219. .index-bg {
  220. position: absolute;
  221. top: 0;
  222. left: 0;
  223. right: 0;
  224. width: 750rpx;
  225. height: 460rpx;
  226. }
  227. .index-bg image {
  228. width: 100%;
  229. height: 100%;
  230. }
  231. .popup-box {
  232. width: 522rpx;
  233. height: 605rpx;
  234. background-color: #ffffff;
  235. border-radius: 20rpx;
  236. position: relative;
  237. }
  238. .popup-box .product-tit {
  239. justify-content: center;
  240. }
  241. .popup-box .product-tit .hx {
  242. width: 120rpx;
  243. height: 1rpx;
  244. background: #989898;
  245. }
  246. .popup-box .product-tit .tit {
  247. margin: 0 70rpx;
  248. font-size: 30rpx;
  249. font-weight: 500;
  250. color: #363636;
  251. }
  252. .popup-box .img {
  253. position: relative;
  254. top: -56rpx;
  255. left: 0;
  256. width: 522rpx;
  257. height: 132rpx;
  258. display: flex;
  259. justify-content: center;
  260. }
  261. .popup-box .img image {
  262. border-radius: 20rpx 20rpx 0 0;
  263. width: 450rpx;
  264. height: 132rpx;
  265. }
  266. .popup-box .mian {
  267. margin-top: -44rpx;
  268. display: flex;
  269. flex-direction: column;
  270. align-items: center;
  271. background-color: #ffffff;
  272. border-radius: 0 0 20rpx 20rpx;
  273. text-align: center;
  274. }
  275. .popup-box .mian .delivery {
  276. font-size: 40rpx;
  277. color: #333333;
  278. display: flex;
  279. align-items: center;
  280. flex-direction: column;
  281. }
  282. .popup-box .mian .delivery image {
  283. margin-top: 48rpx;
  284. width: 172rpx;
  285. height: 160rpx;
  286. }
  287. .popup-box .mian .nocancel {
  288. font-size: 32rpx;
  289. color: #333333;
  290. margin-top: 14rpx;
  291. }
  292. .popup-box .mian .comfirm-box {
  293. margin-top: 52rpx;
  294. display: flex;
  295. }
  296. .popup-box .mian .comfirm-box .cancel {
  297. display: flex;
  298. align-items: center;
  299. justify-content: center;
  300. width: 197rpx;
  301. height: 74rpx;
  302. border: 1px solid #dcc786;
  303. border-radius: 38rpx;
  304. font-size: 32rpx;
  305. color: #605128;
  306. }
  307. .popup-box .mian .comfirm-box .comfirm {
  308. margin-left: 32rpx;
  309. display: flex;
  310. align-items: center;
  311. justify-content: center;
  312. width: 197rpx;
  313. height: 74rpx;
  314. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  315. border-radius: 38px;
  316. font-size: 32rpx;
  317. color: #605128;
  318. }
  319. .good-list {
  320. width: 750rpx;
  321. background: #fff;
  322. padding: 30rpx 0;
  323. }
  324. .good-list .good {
  325. width: 690rpx;
  326. height: 276rpx;
  327. background: #ffffff;
  328. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  329. border-radius: 10rpx;
  330. margin: auto;
  331. padding: 20rpx 15rpx;
  332. margin-bottom: 20rpx;
  333. }
  334. .good-list .good:last-of-type {
  335. margin-bottom: 0rpx;
  336. }
  337. .good-list .good .good-img {
  338. flex-shrink: 0;
  339. width: 236rpx;
  340. height: 236rpx;
  341. border-radius: 10rpx;
  342. margin-right: 22rpx;
  343. }
  344. .good-list .good .good-img image {
  345. width: 236rpx;
  346. height: 236rpx;
  347. border-radius: 10rpx;
  348. }
  349. .good-list .good .good-info {
  350. flex-grow: 1;
  351. height: 100%;
  352. flex-direction: column;
  353. justify-content: space-between;
  354. align-items: flex-start;
  355. }
  356. .good-list .good .good-info .good-name {
  357. font-size: 32rpx;
  358. font-weight: bold;
  359. padding-top: 10rpx;
  360. color: #333333;
  361. }
  362. .good-list .good .good-info .good-price {
  363. width: 100%;
  364. }
  365. .good-list .good .good-info .good-price image {
  366. width: 14rpx;
  367. margin: 0 6rpx 0 10rpx;
  368. }
  369. .good-list .good .good-info .good-price .old-price .old-left {
  370. font-size: 26rpx;
  371. font-weight: 500;
  372. text-decoration: line-through;
  373. color: #999999;
  374. }
  375. .good-list .good .good-info .good-price .old-price .old-right {
  376. font-size: 24rpx;
  377. font-weight: bold;
  378. color: #b59467;
  379. }
  380. .good-list .good .good-info .good-price .new-price {
  381. width: 100%;
  382. font-size: 36rpx;
  383. font-weight: bold;
  384. color: #ff4c4c;
  385. justify-content: space-between;
  386. }
  387. .good-list .good .good-info .good-price .new-price .good-tip {
  388. width: 137rpx;
  389. height: 52rpx;
  390. background: #ff4a48;
  391. border-radius: 26rpx;
  392. position: relative;
  393. font-size: 26rpx;
  394. font-weight: 500;
  395. color: #ffffff;
  396. line-height: 52rpx;
  397. text-align: center;
  398. }