index.wxss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  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 #04358D;
  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: #04358D;
  150. }
  151. .search-input {
  152. display: flex;
  153. align-items: center;
  154. width: 642rpx;
  155. /* border: 2rpx solid #04358D; */
  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: #04358D;
  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,.swiper-grid{
  280. padding-top: 20rpx;
  281. }
  282. .swiper-grid {
  283. margin-top: -10rpx;
  284. border-radius: 16rpx;
  285. background-color: #fff;
  286. height: 220rpx;
  287. }
  288. .my-grid-item .van-grid-item__content {
  289. padding: 0rpx;
  290. /* margin-top: 20rpx; */
  291. }
  292. .swiper-grid-image{
  293. width:100rpx;
  294. height:100rpx;
  295. border-radius: 32rpx;
  296. }
  297. .swiper-grid .swiper-grid-image{
  298. width:72rpx;
  299. height:72rpx;
  300. border-radius: 50%;
  301. }
  302. .swiper-grid-text {
  303. font-weight: normal;
  304. font-size: 24rpx;
  305. color: #222222;
  306. overflow: hidden;
  307. white-space: nowrap;
  308. text-overflow: ellipsis;
  309. width: 120rpx;
  310. text-align: center;
  311. line-height:2.4;
  312. letter-spacing: normal;
  313. }
  314. .notice{
  315. display: flex;
  316. align-items: center;
  317. font-weight: bold;
  318. font-size: 24rpx;
  319. color: #E70C11;
  320. background: #fff;
  321. border-radius: 16rpx;
  322. padding: 16rpx 24rpx;
  323. margin-bottom: 20rpx;
  324. }
  325. .notice .icon{
  326. width: 40rpx;
  327. height: 40rpx;
  328. }
  329. .adv{
  330. width: 100%;
  331. vertical-align: bottom;
  332. margin-bottom: 20rpx;
  333. }
  334. .adv1{
  335. height: 392rpx;
  336. }
  337. .adv2{
  338. height: 473rpx;
  339. }
  340. .bonus-box {
  341. display: flex;
  342. }
  343. .content-bonus {
  344. display: flex;
  345. align-items: center;
  346. justify-content: center;
  347. width: 192rpx;
  348. height: 64rpx;
  349. background: #FFFFFF;
  350. border-radius: 16rpx 16rpx 16rpx 16rpx;
  351. }
  352. .content-bonus+.content-bonus{
  353. margin-left: 20rpx;
  354. }
  355. .bonus-text {
  356. margin-left: 10rpx;
  357. font-size: 24rpx;
  358. }
  359. /*秒杀*/
  360. .seckill-box {
  361. margin: 20rpx;
  362. padding: 20rpx;
  363. background: linear-gradient(91deg, #FFEEEE 0%, #FFFFFF 18%, #FFFFFF 100%);
  364. display: flex;
  365. position: relative;
  366. overflow: hidden;
  367. }
  368. .seckill-time {
  369. width: 160rpx;
  370. text-align: center;
  371. }
  372. .seckill-title {
  373. font-weight: 800;
  374. font-size: 28rpx;
  375. }
  376. .more-icon {
  377. position: absolute;
  378. display: flex;
  379. align-items: center;
  380. height: 100%;
  381. top: 0;
  382. right: 0;
  383. width: 40rpx;
  384. background-color: #fff;
  385. }
  386. .times {
  387. margin-top: 8rpx;
  388. margin-bottom: 8rpx;
  389. font-size: 20rpx;
  390. color: #AAAAAA;
  391. }
  392. .seckill-content {
  393. display: flex;
  394. }
  395. .seckill-product-box {
  396. margin-left: 30rpx;
  397. }
  398. .seckill-Price {
  399. position: relative;
  400. font-weight: bold;
  401. font-size: 24rpx;
  402. color: #FF4A39;
  403. }
  404. .price-bg {
  405. position: absolute;
  406. }
  407. .price-num {
  408. position: absolute;
  409. left: 10rpx;
  410. }
  411. .custom-class {
  412. background-color: #FFFFFF;
  413. }
  414. .recommended-card {
  415. position: relative;
  416. margin: 20rpx 0;
  417. padding: 20rpx;
  418. background-color: #FFFFFF;
  419. display: flex;
  420. width: 670rpx;
  421. overflow: hidden;
  422. }
  423. .new-text {
  424. text-align: center;
  425. }
  426. .new-text-two {
  427. width: 120rpx;
  428. }
  429. .recommended-Price {
  430. text-align: center;
  431. height: 32rpx;
  432. background: #FFEEEC;
  433. border-radius: 16rpx;
  434. font-weight: bold;
  435. font-size: 24rpx;
  436. color: #FF4A39;
  437. }
  438. /* 分页分类 */
  439. .tab-box{
  440. white-space: nowrap;
  441. margin-bottom: 20rpx;
  442. }
  443. .tab-box .tab{
  444. display: inline-block;
  445. font-size: 32rpx;
  446. color: #222222;
  447. margin-right: 44rpx;
  448. }
  449. .tab-box .tab .icon{
  450. width: 105rpx;
  451. height: 29rpx;
  452. }
  453. .tab-box .tab.active{
  454. font-weight: 800;
  455. font-size: 36rpx;
  456. }
  457. /* 每日上新 */
  458. .content {
  459. text-align: justify;
  460. display: flex;
  461. justify-content: space-between;
  462. }
  463. .reset-localization{
  464. text-align: center;
  465. font-size: 26rpx;
  466. color: #AAAAAA;
  467. }
  468. .swiper-card-box {
  469. margin-bottom: 20rpx;
  470. height: 470rpx;
  471. /* margin-left: 3%; */
  472. /* width: 96%; */
  473. width: 344rpx;
  474. }
  475. .wx-swiper-dots-horizontal .wx-swiper-dot {
  476. width: 24rpx;
  477. height: 8rpx;
  478. border-radius: 4rpx;
  479. }
  480. .swiper-card {
  481. /* margin-top: 10rpx; */
  482. height: 462rpx;
  483. background: #FFFFFF;
  484. border-radius: 16rpx;
  485. }
  486. .swiper-card-img {
  487. height: 462rpx;
  488. width: 344rpx;
  489. border-radius: 16rpx;
  490. vertical-align: bottom;
  491. }
  492. .item {
  493. background-color: #fff;
  494. /* margin-top: 20rpx; */
  495. margin-bottom: 20rpx;
  496. display: inline-block;
  497. width: 344rpx;
  498. border-radius: 16rpx;
  499. overflow: hidden;
  500. }
  501. .item-ava {
  502. width: 40rpx;
  503. height: 40rpx;
  504. border-radius: 16rpx;
  505. }
  506. .heart {
  507. display: flex;
  508. align-items: center;
  509. justify-content: space-between;
  510. margin-right: 8rpx;
  511. margin-top: 20rpx;
  512. }
  513. .name-price {
  514. display: flex;
  515. align-items: center;
  516. font-weight: 800;
  517. font-size: 36rpx;
  518. color: #FF4D3A;
  519. }
  520. .item-img {
  521. width: 100%;
  522. vertical-align: bottom;
  523. }
  524. .item-title {
  525. font-weight: bold;
  526. font-size: 28rpx;
  527. text-overflow: ellipsis;
  528. display: -webkit-box;
  529. -webkit-box-orient: vertical;
  530. -webkit-line-clamp: 2;
  531. overflow: hidden;
  532. font-family: 'PingFang SC-Medium';
  533. color: #1e1e1e;
  534. margin: 10rpx;
  535. height: 40rpx;
  536. line-height: 40rpx;
  537. /* background-color: turquoise; */
  538. }
  539. .item .name {
  540. padding: 0 15rpx;
  541. margin-top: 20rpx;
  542. padding-bottom: 10rpx;
  543. align-items: center;
  544. font-size: 22rpx;
  545. font-family: 'PingFang SC-Medium';
  546. }
  547. .name image {
  548. flex: 0 0 auto;
  549. }
  550. .item-title-box {
  551. display: flex;
  552. position: relative;
  553. z-index: 2;
  554. }
  555. .name-title {
  556. font-weight: normal;
  557. font-size: 22rpx;
  558. color: #AAAAAA;
  559. }
  560. .name text:last-child {
  561. color: #c4c4c4;
  562. text-decoration: underline;
  563. line-height: 10rpx;
  564. }
  565. .left,
  566. .right {
  567. display: inline-block;
  568. vertical-align: top;
  569. width: 344rpx;
  570. }
  571. .stepper-box {
  572. display: flex;
  573. align-items: center;
  574. }
  575. .stepper-minus {
  576. width: 40rpx;
  577. height: 40rpx;
  578. background-color: #F0F0F0;
  579. font-size: 40rpx;
  580. text-align: center;
  581. line-height: 40rpx;
  582. }
  583. .stepper-num {
  584. width: 80rpx;
  585. height: 40rpx;
  586. background-color: #F0F0F0;
  587. text-align: center;
  588. line-height: 40rpx;
  589. margin-left: 4rpx;
  590. }
  591. .stepper-add {
  592. margin-left: 4rpx;
  593. width: 40rpx;
  594. height: 40rpx;
  595. background-color: #F0F0F0;
  596. font-size: 40rpx;
  597. text-align: center;
  598. line-height: 40rpx;
  599. }
  600. .tips {
  601. height: 60rpx;
  602. line-height: 60rpx;
  603. text-align: center;
  604. font-size: 24rpx;
  605. color: #AAAAAA;
  606. }
  607. .loading-box{
  608. text-align: center;
  609. line-height: 80rpx;
  610. height: 80rpx;
  611. }
  612. .popup-box {
  613. padding: 20rpx;
  614. }
  615. .popup-detail {
  616. display: flex;
  617. align-items: center;
  618. }
  619. .shop-price {
  620. font-family: PingFang SC, PingFang SC;
  621. font-weight: 800;
  622. font-size: 48rpx;
  623. color: #FF4D3A;
  624. }
  625. .shop-detail {
  626. margin-top: 24rpx;
  627. display: flex;
  628. align-items: center;
  629. }
  630. .shop-isselect {
  631. font-weight: normal;
  632. font-size: 24rpx;
  633. color: #AAAAAA;
  634. }
  635. .shop-info {
  636. font-family: PingFang SC, PingFang SC;
  637. font-weight: 800;
  638. font-size: 24rpx;
  639. color: #222222;
  640. }
  641. .shop-address-info {
  642. width: 500rpx;
  643. overflow: hidden;
  644. white-space: nowrap;
  645. text-overflow: ellipsis;
  646. display: flex;
  647. align-items: center;
  648. font-size: 32rpx;
  649. }
  650. .position-icon{
  651. width: 36rpx;
  652. height: 36rpx;
  653. vertical-align: bottom;
  654. }
  655. .popup-line {
  656. border: 2rpx solid #F0F0F0;
  657. }
  658. .shop-color {
  659. margin-top: 28rpx;
  660. }
  661. .color-text {
  662. font-family: PingFang SC, PingFang SC;
  663. font-weight: 800;
  664. font-size: 28rpx;
  665. }
  666. .color-btn-box {
  667. display: flex;
  668. align-items: centers;
  669. margin-top: 10rpx;
  670. }
  671. .color-btn {
  672. width: 136rpx;
  673. height: 64rpx;
  674. background: #04358D;
  675. border-radius: 32rpx;
  676. font-weight: normal;
  677. font-size: 28rpx;
  678. color: #FFFFFF;
  679. display: flex;
  680. align-items: center;
  681. justify-content: center;
  682. margin-right: 20rpx;
  683. }
  684. .popup-num-box {
  685. margin-top: 40rpx;
  686. display: flex;
  687. align-items: center;
  688. justify-content: space-between;
  689. }
  690. .bottom-button-box {
  691. background: #FFFFFF;
  692. box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(0, 0, 0, 0.09);
  693. border-radius: 32rpx 32rpx 0rpx 0rpx;
  694. display: flex;
  695. justify-content: center;
  696. }
  697. .bottom-button {
  698. width: 702rpx;
  699. height: 80rpx;
  700. background: #04358D;
  701. border-radius: 40rpx;
  702. margin-top: 30rpx;
  703. font-family: PingFang SC, PingFang SC;
  704. font-weight: bold;
  705. font-size: 28rpx;
  706. color: #FFFFFF;
  707. text-align: center;
  708. line-height: 80rpx;
  709. }