index.wxss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. /**index.wxss**/
  2. page {
  3. background: #F6F6F6;
  4. height: auto;
  5. position: relative;
  6. }
  7. scroll-view::-webkit-scrollbar{
  8. display: none;
  9. width: 0;
  10. height: 0;
  11. color: transparent;
  12. }
  13. .bg-box{
  14. position: absolute;
  15. z-index: -1;
  16. top: 0;
  17. left: 0;
  18. width: 100%;
  19. height: 524rpx;
  20. }
  21. .bg{
  22. position: relative;
  23. /* z-index: -1;
  24. top: 0;
  25. left: 0; */
  26. width: 100%;
  27. height: 524rpx;
  28. vertical-align: bottom;
  29. }
  30. .bg-box .white-block{
  31. position: absolute;
  32. left: 0;
  33. bottom: 0;
  34. width: 100%;
  35. height: 70rpx;
  36. background: linear-gradient( 180deg, rgba(255,255,255,0) 0%, rgba(248,248,248,0.52) 39%, #F6F6F6 100%);
  37. }
  38. .swiper-box{
  39. width: 704rpx!important;
  40. height: 180rpx;
  41. border-radius: 16rpx;
  42. position: absolute;
  43. left: 24rpx;
  44. bottom: 38rpx;
  45. }
  46. .swiper-box swiper-item{
  47. width: 704rpx!important;
  48. }
  49. .swiper-box swiper-item .block{
  50. height: 180rpx;
  51. width: 704rpx;
  52. vertical-align: bottom;
  53. }
  54. /* 轮播图及搜索框 */
  55. swiper {
  56. width: 100%;
  57. /* height: 400rpx; */
  58. overflow: hidden;
  59. }
  60. swiper.pic-swiper {
  61. margin-top: 101rpx;
  62. padding: 10rpx 0;
  63. background: #fff;
  64. height: 400rpx;
  65. }
  66. swiper-item {
  67. font-size: 26rpx;
  68. font-weight: bold;
  69. }
  70. swiper.pic-swiper .img-box {
  71. font-size: 0;
  72. }
  73. .wx-swiper-dots {
  74. margin-bottom: 15rpx;
  75. }
  76. .banner-item {
  77. box-sizing: border-box;
  78. }
  79. .banner-item .img-box {
  80. width: 100%;
  81. height: 100%;
  82. box-sizing: border-box;
  83. padding: 20rpx 10rpx;
  84. }
  85. .banner-item .img-box image {
  86. border-radius: 8rpx;
  87. box-shadow: 0 4px 10px 0 rgba(83, 83, 83, 0.288);
  88. }
  89. swiper.pic-swiper .banner {
  90. position: absolute;
  91. width: 690rpx;
  92. margin: 0 10rpx;
  93. height: 388rpx;
  94. border-radius: 8rpx;
  95. display: inline-block;
  96. box-shadow: 0 4px 10px 0 rgba(83, 83, 83, 0.288);
  97. }
  98. .top-navbar-box {
  99. display: flex;
  100. align-items: center;
  101. margin-left: 20rpx;
  102. color: #fff;
  103. }
  104. .top-navbar-box .shop-title {
  105. font-weight: bold;
  106. font-size: 36rpx;
  107. }
  108. .top-navbar-box .shop-info{
  109. color: #fff;
  110. }
  111. .shop-info {
  112. margin-left: 12rpx;
  113. display: flex;
  114. font-weight: bold;
  115. font-size: 24rpx;
  116. }
  117. .search-box {
  118. display: flex;
  119. padding-bottom: 20rpx;
  120. margin-top: 20rpx;
  121. }
  122. .top-search-input {
  123. margin-left: 20rpx;
  124. margin-top: -10rpx;
  125. display: flex;
  126. align-items: center;
  127. width: 500rpx;
  128. border: 2rpx solid #FF941A;
  129. border-radius: 40rpx;
  130. height: 60rpx;
  131. background: #fff;
  132. }
  133. .top-search-swiper {
  134. height: 60rpx;
  135. line-height: 60rpx;
  136. margin-top: 0;
  137. font-size: 24rpx;
  138. color: #AAAAAA;
  139. margin-left: 28rpx;
  140. }
  141. .top-search-line {
  142. color: #DEDEDE;
  143. margin-right: 16rpx;
  144. }
  145. .top-search-text {
  146. width: 100rpx;
  147. font-weight: bold;
  148. font-size: 24rpx;
  149. color: #FF941A;
  150. }
  151. .search-input {
  152. display: flex;
  153. align-items: center;
  154. width: 642rpx;
  155. /* border: 2rpx solid #FF941A; */
  156. border-radius: 40rpx;
  157. height: 60rpx;
  158. background: #fff;
  159. }
  160. .search-swiper {
  161. height: 60rpx;
  162. line-height: 60rpx;
  163. margin-top: 0;
  164. font-weight: normal;
  165. font-size: 24rpx;
  166. color: #AAAAAA;
  167. margin-left: 28rpx;
  168. }
  169. .search-line {
  170. color: #DEDEDE;
  171. margin-right: 16rpx;
  172. }
  173. .search-text {
  174. width: 100rpx;
  175. line-height: 50rpx;
  176. text-align: center;
  177. border-radius: 25rpx;
  178. font-weight: bold;
  179. font-size: 28rpx;
  180. color: #FFF;
  181. background: #FF941A;
  182. margin-right: 10rpx;
  183. }
  184. .top-share {
  185. position: relative;
  186. text-align: center;
  187. margin-left: 16rpx;
  188. }
  189. .share-btn {
  190. position: absolute;
  191. top: 0;
  192. left: 0;
  193. height: 90rpx;
  194. text-align: center;
  195. background-color: transparent;
  196. /*按钮透明*/
  197. border: none;
  198. }
  199. .share-btn::after {
  200. border: none;
  201. }
  202. .share-text {
  203. font-weight: normal;
  204. font-size: 22rpx;
  205. color: #fff;
  206. white-space: nowrap;
  207. }
  208. .recommended-box {
  209. /* height: 80rpx; */
  210. margin-bottom: 20rpx;
  211. position: absolute;
  212. left: 24rpx;
  213. top: 254rpx;
  214. width: 726rpx;
  215. }
  216. .recommended-swiper {
  217. /* height: 80rpx; */
  218. white-space: nowrap;
  219. }
  220. .recommended-text {
  221. margin-left: 20rpx;
  222. display: inline-block;
  223. padding: 6rpx 12rpx;
  224. background: rgba(255, 255, 255, .5);
  225. text-align: center;
  226. border-radius: 22rpx 22rpx 22rpx 22rpx;
  227. font-size: 24rpx;
  228. color: #222222;
  229. }
  230. .container{
  231. padding-left:24rpx;
  232. padding-right: 24rpx;
  233. }
  234. .container .bg-sear {
  235. position: fixed;
  236. z-index: 999;
  237. width: 100%;
  238. line-height: 56rpx;
  239. background: #fff;
  240. padding: 20rpx 0;
  241. text-align: center;
  242. top: 0;
  243. }
  244. .bg-sear .section {
  245. display: flex;
  246. justify-content: center;
  247. align-items: center;
  248. height: 60rpx;
  249. background: #fff;
  250. z-index: 1;
  251. border-radius: 50rpx;
  252. width: 92%;
  253. margin: auto;
  254. left: 4%;
  255. background: #eeeeee;
  256. }
  257. .bg-sear .section .placeholder {
  258. display: block;
  259. font-size: 28rpx;
  260. color: #999;
  261. }
  262. .bg-sear .section .search-img {
  263. width: 32rpx;
  264. height: 32rpx;
  265. margin-right: 10rpx;
  266. }
  267. /* 分类栏目 */
  268. .swiper-grid-box {
  269. /* padding: 16rpx 0; */
  270. margin-bottom: 20rpx;
  271. border-radius: 16rpx;
  272. background: #fff;
  273. margin-top: 213rpx;
  274. /* margin-top: 300rpx; */
  275. }
  276. .swiper-grid-box .grid-box .van-grid{
  277. border-radius: 16rpx;
  278. }
  279. .grid-box{
  280. display: grid;
  281. /* 列规则:5列等宽(1fr 代表"剩余空间等份分配") */
  282. grid-template-columns: repeat(5, 1fr);
  283. /* 行列间距:10rpx(小程序常用 rpx 适配多端) */
  284. gap: 16rpx;
  285. /* 容器内边距:避免网格贴边 */
  286. padding: 20rpx;
  287. }
  288. .grid-box,.swiper-grid{
  289. /* padding-top: 20rpx; */
  290. }
  291. .swiper-grid {
  292. margin-top: -10rpx;
  293. border-radius: 16rpx;
  294. background-color: #fff;
  295. height: 220rpx;
  296. }
  297. .my-grid-item{
  298. position: relative;
  299. text-align: center;
  300. }
  301. .my-grid-item .van-grid-item__content {
  302. padding: 0rpx;
  303. /* margin-top: 20rpx; */
  304. padding-top: 30rpx;
  305. }
  306. .my-grid-item .label{
  307. font-size: 16rpx;
  308. color: #FFFFFF;
  309. padding: 4rpx 8rpx;
  310. border-radius: 14rpx;
  311. background: #FF5030;
  312. position: absolute;
  313. left: 50%;
  314. top:0rpx;
  315. white-space: nowrap;
  316. }
  317. .swiper-grid-image{
  318. width:100rpx;
  319. height:100rpx;
  320. border-radius: 32rpx;
  321. }
  322. .swiper-grid .swiper-grid-image{
  323. width:72rpx;
  324. height:72rpx;
  325. border-radius: 50%;
  326. }
  327. .swiper-grid-text {
  328. font-weight: normal;
  329. font-size: 24rpx;
  330. color: #222222;
  331. overflow: hidden;
  332. white-space: nowrap;
  333. text-overflow: ellipsis;
  334. width: 120rpx;
  335. text-align: center;
  336. line-height:2.4;
  337. letter-spacing: normal;
  338. }
  339. .notice{
  340. display: flex;
  341. align-items: center;
  342. font-weight: bold;
  343. font-size: 24rpx;
  344. color: #E70C11;
  345. background: #fff;
  346. border-radius: 16rpx;
  347. padding: 16rpx 24rpx;
  348. margin-bottom: 20rpx;
  349. }
  350. .notice .icon{
  351. width: 40rpx;
  352. height: 40rpx;
  353. }
  354. .adv{
  355. width: 100%;
  356. vertical-align: bottom;
  357. margin-bottom: 20rpx;
  358. }
  359. .adv1{
  360. height: 392rpx;
  361. }
  362. .adv2{
  363. height: 473rpx;
  364. }
  365. .bonus-box {
  366. display: flex;
  367. }
  368. .content-bonus {
  369. display: flex;
  370. align-items: center;
  371. justify-content: center;
  372. width: 192rpx;
  373. height: 64rpx;
  374. background: #FFFFFF;
  375. border-radius: 16rpx 16rpx 16rpx 16rpx;
  376. }
  377. .content-bonus+.content-bonus{
  378. margin-left: 20rpx;
  379. }
  380. .bonus-text {
  381. margin-left: 10rpx;
  382. font-size: 24rpx;
  383. }
  384. /*秒杀*/
  385. .seckill-box {
  386. margin: 20rpx;
  387. padding: 20rpx;
  388. background: linear-gradient(91deg, #FFEEEE 0%, #FFFFFF 18%, #FFFFFF 100%);
  389. display: flex;
  390. position: relative;
  391. overflow: hidden;
  392. }
  393. .seckill-time {
  394. width: 160rpx;
  395. text-align: center;
  396. }
  397. .seckill-title {
  398. font-weight: 800;
  399. font-size: 28rpx;
  400. }
  401. .more-icon {
  402. position: absolute;
  403. display: flex;
  404. align-items: center;
  405. height: 100%;
  406. top: 0;
  407. right: 0;
  408. width: 40rpx;
  409. background-color: #fff;
  410. }
  411. .times {
  412. margin-top: 8rpx;
  413. margin-bottom: 8rpx;
  414. font-size: 20rpx;
  415. color: #AAAAAA;
  416. }
  417. .seckill-content {
  418. display: flex;
  419. }
  420. .seckill-product-box {
  421. margin-left: 30rpx;
  422. }
  423. .seckill-Price {
  424. position: relative;
  425. font-weight: bold;
  426. font-size: 24rpx;
  427. color: #FF4A39;
  428. }
  429. .price-bg {
  430. position: absolute;
  431. }
  432. .price-num {
  433. position: absolute;
  434. left: 10rpx;
  435. }
  436. .custom-class {
  437. background-color: #FFFFFF;
  438. }
  439. .recommended-card {
  440. position: relative;
  441. margin: 20rpx 0;
  442. padding: 20rpx;
  443. background-color: #FFFFFF;
  444. display: flex;
  445. width: 670rpx;
  446. overflow: hidden;
  447. }
  448. .new-text {
  449. text-align: center;
  450. }
  451. .new-text-two {
  452. width: 120rpx;
  453. }
  454. .recommended-Price {
  455. text-align: center;
  456. height: 32rpx;
  457. background: #FFEEEC;
  458. border-radius: 16rpx;
  459. font-weight: bold;
  460. font-size: 24rpx;
  461. color: #FF4A39;
  462. }
  463. /* 分页分类 */
  464. .tab-box{
  465. white-space: nowrap;
  466. margin-bottom: 20rpx;
  467. }
  468. .tab-box .tab{
  469. display: inline-block;
  470. font-size: 32rpx;
  471. color: #222222;
  472. margin-right: 44rpx;
  473. }
  474. .tab-box .tab .icon{
  475. width: 105rpx;
  476. height: 29rpx;
  477. }
  478. .tab-box .tab.active{
  479. font-weight: 800;
  480. font-size: 36rpx;
  481. }
  482. /* 每日上新 */
  483. .content {
  484. text-align: justify;
  485. display: flex;
  486. justify-content: space-between;
  487. }
  488. .reset-localization{
  489. text-align: center;
  490. font-size: 26rpx;
  491. color: #AAAAAA;
  492. }
  493. .swiper-card-box {
  494. margin-bottom: 20rpx;
  495. height: 470rpx;
  496. /* margin-left: 3%; */
  497. /* width: 96%; */
  498. width: 344rpx;
  499. }
  500. .wx-swiper-dots-horizontal .wx-swiper-dot {
  501. width: 24rpx;
  502. height: 8rpx;
  503. border-radius: 4rpx;
  504. }
  505. .swiper-card {
  506. /* margin-top: 10rpx; */
  507. height: 462rpx;
  508. background: #FFFFFF;
  509. border-radius: 16rpx;
  510. }
  511. .swiper-card-img {
  512. height: 462rpx;
  513. width: 344rpx;
  514. border-radius: 16rpx;
  515. vertical-align: bottom;
  516. }
  517. .item {
  518. background-color: #fff;
  519. /* margin-top: 20rpx; */
  520. margin-bottom: 20rpx;
  521. display: inline-block;
  522. width: 344rpx;
  523. border-radius: 16rpx;
  524. overflow: hidden;
  525. }
  526. .item-ava {
  527. width: 40rpx;
  528. height: 40rpx;
  529. border-radius: 16rpx;
  530. }
  531. .heart {
  532. display: flex;
  533. align-items: center;
  534. justify-content: space-between;
  535. margin-right: 8rpx;
  536. margin-top: 20rpx;
  537. }
  538. .name-price {
  539. display: flex;
  540. align-items: center;
  541. font-weight: 800;
  542. font-size: 36rpx;
  543. color: #FF4D3A;
  544. }
  545. .item-img {
  546. width: 100%;
  547. vertical-align: bottom;
  548. }
  549. .item-title {
  550. font-weight: bold;
  551. font-size: 28rpx;
  552. text-overflow: ellipsis;
  553. display: -webkit-box;
  554. -webkit-box-orient: vertical;
  555. -webkit-line-clamp: 2;
  556. overflow: hidden;
  557. font-family: 'PingFang SC-Medium';
  558. color: #1e1e1e;
  559. margin: 10rpx;
  560. height: 40rpx;
  561. line-height: 40rpx;
  562. /* background-color: turquoise; */
  563. }
  564. .item .name {
  565. padding: 0 15rpx;
  566. margin-top: 20rpx;
  567. padding-bottom: 10rpx;
  568. align-items: center;
  569. font-size: 22rpx;
  570. font-family: 'PingFang SC-Medium';
  571. }
  572. .name image {
  573. flex: 0 0 auto;
  574. }
  575. .item-title-box {
  576. display: flex;
  577. position: relative;
  578. z-index: 2;
  579. }
  580. .name-title {
  581. font-weight: normal;
  582. font-size: 22rpx;
  583. color: #AAAAAA;
  584. }
  585. .tag-box{
  586. display: flex;
  587. }
  588. .tag-box .tag{
  589. width: 68rpx;
  590. height: 32rpx;
  591. line-height: 32rpx;
  592. text-align: center;
  593. background: #FFF1E2;
  594. border-radius: 8rpx 8rpx 8rpx 8rpx;
  595. border: 1rpx solid #FF941A;
  596. font-size: 22rpx;
  597. color: #FF941A;
  598. }
  599. .tag-box .text{
  600. font-size: 22rpx;
  601. color: #BC9264;
  602. margin-left: 10rpx;
  603. }
  604. .name text:last-child {
  605. color: #c4c4c4;
  606. text-decoration: underline;
  607. line-height: 10rpx;
  608. }
  609. .rank-box{
  610. display: flex;
  611. align-items: center;
  612. background: #FCECDA;
  613. border-radius: 8rpx 8rpx 8rpx 8rpx;
  614. margin-top: 10rpx;
  615. }
  616. .rank-box .icon{
  617. width: 40rpx;
  618. height: 44rpx;
  619. }
  620. .rank-box .text{
  621. font-size: 22rpx;
  622. color: #BC9264;
  623. margin-left: 10rpx;
  624. }
  625. .rank-box .top{
  626. width: 72rpx;
  627. height: 36rpx;
  628. }
  629. .left,
  630. .right {
  631. display: inline-block;
  632. vertical-align: top;
  633. width: 344rpx;
  634. }
  635. .stepper-box {
  636. display: flex;
  637. align-items: center;
  638. }
  639. .stepper-minus {
  640. width: 40rpx;
  641. height: 40rpx;
  642. background-color: #F0F0F0;
  643. font-size: 40rpx;
  644. text-align: center;
  645. line-height: 40rpx;
  646. }
  647. .stepper-num {
  648. width: 80rpx;
  649. height: 40rpx;
  650. background-color: #F0F0F0;
  651. text-align: center;
  652. line-height: 40rpx;
  653. margin-left: 4rpx;
  654. }
  655. .stepper-add {
  656. margin-left: 4rpx;
  657. width: 40rpx;
  658. height: 40rpx;
  659. background-color: #F0F0F0;
  660. font-size: 40rpx;
  661. text-align: center;
  662. line-height: 40rpx;
  663. }
  664. .tips {
  665. height: 60rpx;
  666. line-height: 60rpx;
  667. text-align: center;
  668. font-size: 24rpx;
  669. color: #AAAAAA;
  670. }
  671. .loading-box{
  672. text-align: center;
  673. line-height: 80rpx;
  674. height: 80rpx;
  675. }
  676. .popup-box {
  677. padding: 20rpx;
  678. }
  679. .popup-detail {
  680. display: flex;
  681. align-items: center;
  682. }
  683. .shop-price {
  684. font-family: PingFang SC, PingFang SC;
  685. font-weight: 800;
  686. font-size: 48rpx;
  687. color: #FF4D3A;
  688. }
  689. .shop-detail {
  690. margin-top: 24rpx;
  691. display: flex;
  692. align-items: center;
  693. }
  694. .shop-isselect {
  695. font-weight: normal;
  696. font-size: 24rpx;
  697. color: #AAAAAA;
  698. }
  699. .shop-info {
  700. font-family: PingFang SC, PingFang SC;
  701. font-weight: 800;
  702. font-size: 24rpx;
  703. color: #222222;
  704. }
  705. .shop-address-info {
  706. width: 500rpx;
  707. overflow: hidden;
  708. white-space: nowrap;
  709. text-overflow: ellipsis;
  710. display: flex;
  711. align-items: center;
  712. font-size: 32rpx;
  713. }
  714. .position-icon{
  715. width: 36rpx;
  716. height: 36rpx;
  717. vertical-align: bottom;
  718. }
  719. .popup-line {
  720. border: 2rpx solid #F0F0F0;
  721. }
  722. .shop-color {
  723. margin-top: 28rpx;
  724. }
  725. .color-text {
  726. font-family: PingFang SC, PingFang SC;
  727. font-weight: 800;
  728. font-size: 28rpx;
  729. }
  730. .color-btn-box {
  731. display: flex;
  732. align-items: centers;
  733. margin-top: 10rpx;
  734. }
  735. .color-btn {
  736. width: 136rpx;
  737. height: 64rpx;
  738. background: #FF941A;
  739. border-radius: 32rpx;
  740. font-weight: normal;
  741. font-size: 28rpx;
  742. color: #FFFFFF;
  743. display: flex;
  744. align-items: center;
  745. justify-content: center;
  746. margin-right: 20rpx;
  747. }
  748. .popup-num-box {
  749. margin-top: 40rpx;
  750. display: flex;
  751. align-items: center;
  752. justify-content: space-between;
  753. }
  754. .bottom-button-box {
  755. background: #FFFFFF;
  756. box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(0, 0, 0, 0.09);
  757. border-radius: 32rpx 32rpx 0rpx 0rpx;
  758. display: flex;
  759. justify-content: center;
  760. }
  761. .bottom-button {
  762. width: 702rpx;
  763. height: 80rpx;
  764. background: #FF941A;
  765. border-radius: 40rpx;
  766. margin-top: 30rpx;
  767. font-family: PingFang SC, PingFang SC;
  768. font-weight: bold;
  769. font-size: 28rpx;
  770. color: #FFFFFF;
  771. text-align: center;
  772. line-height: 80rpx;
  773. }