index.wxss 13 KB

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