index.wxss 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. /**index.wxss**/
  2. page {
  3. background: #f7f7f7;
  4. height: auto;
  5. }
  6. /* 轮播图及搜索框 */
  7. swiper {
  8. width: 100%;
  9. height: 400rpx;
  10. overflow: hidden;
  11. margin-top: 80rpx;
  12. }
  13. swiper.pic-swiper {
  14. margin-top: 101rpx;
  15. padding: 10rpx 0;
  16. background: #fff;
  17. height: 400rpx;
  18. }
  19. swiper-item {
  20. font-size: 26rpx;
  21. font-weight: bold;
  22. }
  23. swiper.pic-swiper .img-box {
  24. font-size: 0;
  25. }
  26. .wx-swiper-dots {
  27. margin-bottom: 15rpx;
  28. }
  29. .banner-item {
  30. box-sizing: border-box;
  31. }
  32. .banner-item .img-box {
  33. width: 100%;
  34. height: 100%;
  35. box-sizing: border-box;
  36. padding: 20rpx 10rpx;
  37. }
  38. .banner-item .img-box image {
  39. border-radius: 8rpx;
  40. box-shadow: 0 4px 10px 0 rgba(83, 83, 83, 0.288);
  41. }
  42. swiper.pic-swiper .banner {
  43. position: absolute;
  44. width: 690rpx;
  45. margin: 0 10rpx;
  46. height: 388rpx;
  47. border-radius: 8rpx;
  48. display: inline-block;
  49. box-shadow: 0 4px 10px 0 rgba(83, 83, 83, 0.288);
  50. }
  51. .top-navbar-box {
  52. display: flex;
  53. align-items: center;
  54. margin-left: 20rpx;
  55. }
  56. .top-navbar-box .shop-title {
  57. font-weight: bold;
  58. font-size: 36rpx;
  59. }
  60. .shop-info {
  61. margin-left: 12rpx;
  62. display: flex;
  63. font-weight: bold;
  64. font-size: 24rpx;
  65. }
  66. .search-box {
  67. display: flex;
  68. padding: 20rpx 20rpx 30rpx;
  69. }
  70. .top-search-input {
  71. margin-left: 20rpx;
  72. margin-top: -10rpx;
  73. display: flex;
  74. align-items: center;
  75. width: 500rpx;
  76. border: 2rpx solid #04358D;
  77. border-radius: 40rpx;
  78. height: 60rpx;
  79. }
  80. .top-search-swiper {
  81. height: 60rpx;
  82. line-height: 60rpx;
  83. margin-top: 0;
  84. font-size: 24rpx;
  85. color: #AAAAAA;
  86. margin-left: 28rpx;
  87. }
  88. .top-search-line {
  89. color: #DEDEDE;
  90. margin-right: 16rpx;
  91. }
  92. .top-search-text {
  93. width: 100rpx;
  94. font-weight: bold;
  95. font-size: 28rpx;
  96. color: #04358D;
  97. }
  98. .search-input {
  99. display: flex;
  100. align-items: center;
  101. width: 642rpx;
  102. border: 2rpx solid #04358D;
  103. border-radius: 40rpx;
  104. height: 60rpx;
  105. }
  106. .search-swiper {
  107. height: 60rpx;
  108. line-height: 60rpx;
  109. margin-top: 0;
  110. font-weight: normal;
  111. font-size: 24rpx;
  112. color: #AAAAAA;
  113. margin-left: 28rpx;
  114. }
  115. .search-line {
  116. color: #DEDEDE;
  117. margin-right: 16rpx;
  118. }
  119. .search-text {
  120. width: 100rpx;
  121. font-weight: bold;
  122. font-size: 28rpx;
  123. color: #04358D;
  124. }
  125. .top-share {
  126. position: relative;
  127. text-align: center;
  128. margin-left: 16rpx;
  129. }
  130. .share-btn {
  131. position: absolute;
  132. top: 0;
  133. left: 0;
  134. height: 90rpx;
  135. text-align: center;
  136. background-color: transparent;
  137. /*按钮透明*/
  138. border: none;
  139. }
  140. .share-btn::after {
  141. border: none;
  142. }
  143. .share-text {
  144. font-weight: normal;
  145. font-size: 22rpx;
  146. color: #222222;
  147. }
  148. .recommended-box {
  149. height: 80rpx;
  150. }
  151. .recommended-swiper {
  152. height: 80rpx;
  153. white-space: nowrap;
  154. }
  155. .recommended-text {
  156. margin-left: 20rpx;
  157. display: inline-block;
  158. padding: 6rpx 12rpx;
  159. background: #dddbdb;
  160. text-align: center;
  161. border-radius: 22rpx 22rpx 22rpx 22rpx;
  162. font-size: 24rpx;
  163. color: #222222;
  164. }
  165. .container .bg-sear {
  166. position: fixed;
  167. z-index: 999;
  168. width: 100%;
  169. line-height: 56rpx;
  170. background: #fff;
  171. padding: 20rpx 0;
  172. text-align: center;
  173. top: 0;
  174. }
  175. .bg-sear .section {
  176. display: flex;
  177. justify-content: center;
  178. align-items: center;
  179. height: 60rpx;
  180. background: #fff;
  181. z-index: 1;
  182. border-radius: 50rpx;
  183. width: 92%;
  184. margin: auto;
  185. left: 4%;
  186. background: #eeeeee;
  187. }
  188. .bg-sear .section .placeholder {
  189. display: block;
  190. font-size: 28rpx;
  191. color: #999;
  192. }
  193. .bg-sear .section .search-img {
  194. width: 32rpx;
  195. height: 32rpx;
  196. margin-right: 10rpx;
  197. }
  198. /* 分类栏目 */
  199. .swiper-grid-box {
  200. padding: 16rpx;
  201. margin-top: -30rpx;
  202. }
  203. .swiper-grid {
  204. margin-top: -10rpx;
  205. border-radius: 16rpx;
  206. background-color: #fff;
  207. }
  208. .my-grid-item .van-grid-item__content {
  209. padding: 0rpx;
  210. margin-top: 20rpx;
  211. }
  212. .swiper-grid-image{
  213. width:100rpx;
  214. height:100rpx;
  215. border-radius: 50%;
  216. }
  217. .swiper-grid-text {
  218. font-weight: normal;
  219. font-size: 24rpx;
  220. color: #222222;
  221. overflow: hidden;
  222. white-space: nowrap;
  223. text-overflow: ellipsis;
  224. width: 120rpx;
  225. text-align: center;
  226. line-height:2.4;
  227. letter-spacing: normal;
  228. }
  229. .bonus-box {
  230. display: flex;
  231. }
  232. .content-bonus {
  233. display: flex;
  234. align-items: center;
  235. justify-content: center;
  236. width: 216rpx;
  237. height: 64rpx;
  238. background: #FFFFFF;
  239. border-radius: 16rpx 16rpx 16rpx 16rpx;
  240. margin-left: 20rpx;
  241. }
  242. .bonus-text {
  243. margin-left: 10rpx;
  244. font-size: 24rpx;
  245. }
  246. /*秒杀*/
  247. .seckill-box {
  248. margin: 20rpx;
  249. padding: 20rpx;
  250. background: linear-gradient(91deg, #FFEEEE 0%, #FFFFFF 18%, #FFFFFF 100%);
  251. display: flex;
  252. position: relative;
  253. overflow: hidden;
  254. }
  255. .seckill-time {
  256. width: 160rpx;
  257. text-align: center;
  258. }
  259. .seckill-title {
  260. font-weight: 800;
  261. font-size: 28rpx;
  262. }
  263. .more-icon {
  264. position: absolute;
  265. display: flex;
  266. align-items: center;
  267. height: 100%;
  268. top: 0;
  269. right: 0;
  270. width: 40rpx;
  271. background-color: #fff;
  272. }
  273. .times {
  274. margin-top: 8rpx;
  275. margin-bottom: 8rpx;
  276. font-size: 20rpx;
  277. color: #AAAAAA;
  278. }
  279. .seckill-content {
  280. display: flex;
  281. }
  282. .seckill-product-box {
  283. margin-left: 30rpx;
  284. }
  285. .seckill-Price {
  286. position: relative;
  287. font-weight: bold;
  288. font-size: 24rpx;
  289. color: #FF4A39;
  290. }
  291. .price-bg {
  292. position: absolute;
  293. }
  294. .price-num {
  295. position: absolute;
  296. left: 10rpx;
  297. }
  298. .custom-class {
  299. background-color: #FFFFFF;
  300. }
  301. .recommended-card {
  302. position: relative;
  303. margin: 20rpx;
  304. padding: 20rpx;
  305. background-color: #FFFFFF;
  306. display: flex;
  307. width: 670rpx;
  308. overflow: hidden;
  309. }
  310. .new-text {
  311. text-align: center;
  312. }
  313. .new-text-two {
  314. width: 120rpx;
  315. }
  316. .recommended-Price {
  317. text-align: center;
  318. height: 32rpx;
  319. background: #FFEEEC;
  320. border-radius: 16rpx;
  321. font-weight: bold;
  322. font-size: 24rpx;
  323. color: #FF4A39;
  324. }
  325. /* 每日上新 */
  326. .content {
  327. text-align: justify;
  328. }
  329. .reset-localization{
  330. text-align: center;
  331. font-size: 26rpx;
  332. color: #AAAAAA;
  333. }
  334. .swiper-card-box {
  335. margin-top: 10rpx;
  336. height: 470rpx;
  337. margin-left: 3%;
  338. width: 96%;
  339. }
  340. .wx-swiper-dots-horizontal .wx-swiper-dot {
  341. width: 24rpx;
  342. height: 8rpx;
  343. border-radius: 4rpx;
  344. }
  345. .swiper-card {
  346. margin-top: 10rpx;
  347. height: 462rpx;
  348. background: #FFFFFF;
  349. border-radius: 16rpx;
  350. }
  351. .swiper-card-img {
  352. height: 462rpx;
  353. width: 354rpx;
  354. border-radius: 16rpx;
  355. }
  356. .item {
  357. background-color: #fff;
  358. margin: 10rpx 4%;
  359. margin-bottom: 0rpx;
  360. display: inline-block;
  361. width: 96%;
  362. border-radius: 16rpx;
  363. overflow: hidden;
  364. }
  365. .item-ava {
  366. width: 40rpx;
  367. height: 40rpx;
  368. border-radius: 16rpx;
  369. }
  370. .heart {
  371. display: flex;
  372. align-items: center;
  373. justify-content: space-between;
  374. margin-right: 8rpx;
  375. margin-top: 20rpx;
  376. }
  377. .name-price {
  378. display: flex;
  379. align-items: center;
  380. font-weight: 800;
  381. font-size: 36rpx;
  382. color: #FF4D3A;
  383. }
  384. .item-img {
  385. width: 100%
  386. }
  387. .item-title {
  388. font-weight: bold;
  389. font-size: 28rpx;
  390. text-overflow: ellipsis;
  391. display: -webkit-box;
  392. -webkit-box-orient: vertical;
  393. -webkit-line-clamp: 2;
  394. overflow: hidden;
  395. font-family: 'PingFang SC-Medium';
  396. color: #1e1e1e;
  397. margin: 10rpx;
  398. height: 40rpx;
  399. line-height: 40rpx;
  400. /* background-color: turquoise; */
  401. }
  402. .item .name {
  403. padding: 0 15rpx;
  404. margin-top: 20rpx;
  405. padding-bottom: 10rpx;
  406. align-items: center;
  407. font-size: 22rpx;
  408. font-family: 'PingFang SC-Medium';
  409. }
  410. .name image {
  411. flex: 0 0 auto;
  412. }
  413. .item-title-box {
  414. display: flex;
  415. position: relative;
  416. z-index: 2;
  417. }
  418. .name-title {
  419. font-weight: normal;
  420. font-size: 22rpx;
  421. color: #AAAAAA;
  422. }
  423. .name text:last-child {
  424. color: #c4c4c4;
  425. text-decoration: underline;
  426. line-height: 10rpx;
  427. }
  428. .left,
  429. .right {
  430. display: inline-block;
  431. vertical-align: top;
  432. width: 49%;
  433. }
  434. .stepper-box {
  435. display: flex;
  436. align-items: center;
  437. }
  438. .stepper-minus {
  439. width: 40rpx;
  440. height: 40rpx;
  441. background-color: #F0F0F0;
  442. font-size: 40rpx;
  443. text-align: center;
  444. line-height: 40rpx;
  445. }
  446. .stepper-num {
  447. width: 80rpx;
  448. height: 40rpx;
  449. background-color: #F0F0F0;
  450. text-align: center;
  451. line-height: 40rpx;
  452. margin-left: 4rpx;
  453. }
  454. .stepper-add {
  455. margin-left: 4rpx;
  456. width: 40rpx;
  457. height: 40rpx;
  458. background-color: #F0F0F0;
  459. font-size: 40rpx;
  460. text-align: center;
  461. line-height: 40rpx;
  462. }
  463. .tips {
  464. height: 60rpx;
  465. line-height: 60rpx;
  466. text-align: center;
  467. font-size: 24rpx;
  468. color: #AAAAAA;
  469. }
  470. .loading-box{
  471. text-align: center;
  472. line-height: 80rpx;
  473. height: 80rpx;
  474. }
  475. .popup-box {
  476. padding: 20rpx;
  477. }
  478. .popup-detail {
  479. display: flex;
  480. align-items: center;
  481. }
  482. .shop-price {
  483. font-family: PingFang SC, PingFang SC;
  484. font-weight: 800;
  485. font-size: 48rpx;
  486. color: #FF4D3A;
  487. }
  488. .shop-detail {
  489. margin-top: 24rpx;
  490. display: flex;
  491. align-items: center;
  492. }
  493. .shop-isselect {
  494. font-weight: normal;
  495. font-size: 24rpx;
  496. color: #AAAAAA;
  497. }
  498. .shop-info {
  499. font-family: PingFang SC, PingFang SC;
  500. font-weight: 800;
  501. font-size: 28rpx;
  502. color: #222222;
  503. }
  504. .shop-address-info {
  505. width: 300rpx;
  506. overflow: hidden;
  507. white-space: nowrap;
  508. text-overflow: ellipsis;
  509. }
  510. .popup-line {
  511. border: 2rpx solid #F0F0F0;
  512. }
  513. .shop-color {
  514. margin-top: 28rpx;
  515. }
  516. .color-text {
  517. font-family: PingFang SC, PingFang SC;
  518. font-weight: 800;
  519. font-size: 28rpx;
  520. }
  521. .color-btn-box {
  522. display: flex;
  523. align-items: centers;
  524. margin-top: 10rpx;
  525. }
  526. .color-btn {
  527. width: 136rpx;
  528. height: 64rpx;
  529. background: #04358D;
  530. border-radius: 32rpx;
  531. font-weight: normal;
  532. font-size: 28rpx;
  533. color: #FFFFFF;
  534. display: flex;
  535. align-items: center;
  536. justify-content: center;
  537. margin-right: 20rpx;
  538. }
  539. .popup-num-box {
  540. margin-top: 40rpx;
  541. display: flex;
  542. align-items: center;
  543. justify-content: space-between;
  544. }
  545. .bottom-button-box {
  546. background: #FFFFFF;
  547. box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(0, 0, 0, 0.09);
  548. border-radius: 32rpx 32rpx 0rpx 0rpx;
  549. display: flex;
  550. justify-content: center;
  551. }
  552. .bottom-button {
  553. width: 702rpx;
  554. height: 80rpx;
  555. background: #04358D;
  556. border-radius: 40rpx;
  557. margin-top: 30rpx;
  558. font-family: PingFang SC, PingFang SC;
  559. font-weight: bold;
  560. font-size: 28rpx;
  561. color: #FFFFFF;
  562. text-align: center;
  563. line-height: 80rpx;
  564. }