index.less 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. page {
  2. padding-bottom: 300rpx;
  3. background: #f8f8f8;
  4. .flexd {
  5. position: fixed;
  6. z-index: 999;
  7. width: 100%;
  8. .nav-background {
  9. background: #f39283;
  10. height: 40rpx;
  11. }
  12. .nav-info {
  13. margin: 0 32rpx;
  14. background: #ffffff;
  15. box-shadow: -3px 5px 5px 0px rgba(16, 16, 16, 0.07);
  16. border-radius: 36rpx;
  17. position: relative;
  18. top: -40rpx;
  19. .info-top {
  20. display: flex;
  21. align-items: center;
  22. justify-content: space-between;
  23. padding: 16rpx 32rpx 16rpx 8rpx;
  24. .top-left {
  25. display: flex;
  26. align-items: center;
  27. .name-distance {
  28. text-indent: 16rpx;
  29. .name {
  30. font-size: 25rpx;
  31. font-family: Source Han Sans CN;
  32. font-weight: 400;
  33. color: #030000;
  34. }
  35. .distance {
  36. font-size: 16rpx;
  37. font-family: Source Han Sans CN;
  38. font-weight: 400;
  39. color: #747474;
  40. }
  41. }
  42. }
  43. .top-right {
  44. font-size: 17rpx;
  45. font-family: Source Han Sans CN;
  46. font-weight: 400;
  47. color: #363636;
  48. >view {
  49. display: flex;
  50. // align-items: center;
  51. margin-bottom: 8rpx;
  52. .right-info {
  53. text-indent: 4rpx;
  54. }
  55. }
  56. }
  57. }
  58. .v-search {
  59. // box-shadow: 0px 5rpx 10rpx rgba(0, 0, 0, 0.2);
  60. background-color: transparent;
  61. }
  62. }
  63. }
  64. .cate_info {
  65. margin-top: 16rpx;
  66. .cate_container {
  67. // height: calc(100vh - 420rpx);
  68. display: flex;
  69. .left_menu {
  70. width: 175rpx;
  71. background: #fff;
  72. .left_content {
  73. width: 180rpx;
  74. background: #f4f4f4;
  75. color: #aaaaaa;
  76. .left_item {
  77. font-size: 30rpx;
  78. // font-weight: 600;
  79. height: 112rpx;
  80. display: flex;
  81. align-items: center;
  82. justify-content: center;
  83. position: relative;
  84. border-bottom: 2rpx solid #f6f6f6;
  85. .post_asb {
  86. position: absolute;
  87. top: 4px;
  88. right: 0px;
  89. font-size: 60rpx;
  90. color: #FF5722;
  91. }
  92. }
  93. .active {
  94. color: #000000;
  95. // text-shadow: -2rpx 2rpx 0 #333, 2rpx 2rpx 0 #333, 2rpx -2rpx 0 #333, -2rpx -2rpx 0 #333;
  96. background: #ffffff;
  97. border-left: 10rpx solid #f39283;
  98. margin-left: 10rpx;
  99. }
  100. }
  101. }
  102. .right_list {
  103. .loading {
  104. width: 100%;
  105. height: 100%;
  106. display: flex;
  107. align-items: center;
  108. justify-content: center;
  109. }
  110. // height: calc(100vh - 320rpx);
  111. ::-webkit-scrollbar {
  112. width: 0;
  113. height: 0;
  114. color: transparent;
  115. }
  116. .right_content {
  117. // width: calc(100vw - 210rpx);
  118. padding-bottom: 50rpx;
  119. margin: 0 auto;
  120. margin-top: -5rpx;
  121. .right_swiper{
  122. height: 220rpx;
  123. padding: 24rpx 24rpx 0 24rpx;
  124. }
  125. .title {
  126. position: relative;
  127. width: 100%;
  128. height: 60rpx;
  129. margin: 10rpx 0;
  130. text-align: center;
  131. line-height: 60rpx;
  132. &::before,
  133. &::after {
  134. content: '';
  135. position: absolute;
  136. top: 29rpx;
  137. width: 30%;
  138. height: 2rpx;
  139. border: 1rpx solid #bbb;
  140. // background: #bbb;
  141. }
  142. &::before {
  143. left: 20rpx;
  144. }
  145. &::after {
  146. right: 20rpx;
  147. }
  148. }
  149. .right_item {
  150. display: flex;
  151. align-items: center;
  152. padding: 20rpx 10rpx;
  153. margin: 0 15rpx;
  154. margin-top: 10rpx;
  155. box-shadow: 0 0 8px #e0e0e0;
  156. border-radius: 10rpx;
  157. background: #fff;
  158. .image {
  159. width: 120rpx;
  160. height: 120rpx;
  161. flex-shrink: 0;
  162. }
  163. .li_right {
  164. font-size: 32rpx;
  165. flex: 1;
  166. margin-left: 20rpx;
  167. .name {
  168. margin-bottom: 10rpx;
  169. width: 300rpx;
  170. white-space: nowrap;
  171. text-overflow: ellipsis;
  172. overflow: hidden;
  173. word-break: break-all;
  174. }
  175. .li_desc {
  176. color: #989898;
  177. margin-bottom: 10rpx;
  178. font-size: 24rpx;
  179. text-overflow: -o-ellipsis-lastline;
  180. overflow: hidden; //溢出内容隐藏
  181. text-overflow: ellipsis; //文本溢出部分用省略号表示
  182. display: -webkit-box; //特别显示模式
  183. -webkit-line-clamp: 2; //行数
  184. line-clamp: 2;
  185. -webkit-box-orient: vertical; //盒子中内容竖直排列
  186. }
  187. .li_num {
  188. color: #989898;
  189. margin-bottom: 10rpx;
  190. font-size: 24rpx;
  191. display: flex;
  192. justify-content: space-between;
  193. .li_desc_row {}
  194. }
  195. .li_row {
  196. display: flex;
  197. justify-content: space-between;
  198. align-items: center;
  199. .price {
  200. color: red;
  201. display: flex;
  202. font-weight: 600;
  203. }
  204. .count {
  205. display: flex;
  206. .num {
  207. margin-right: 10rpx;
  208. color: #6d6d6d;
  209. }
  210. .tag {
  211. background: white;
  212. color: #f39283;
  213. font-size: 44rpx;
  214. }
  215. }
  216. .decoration {
  217. text-decoration: line-through;
  218. color: #989898;
  219. margin-left: 10rpx;
  220. font-weight: 500;
  221. }
  222. }
  223. }
  224. }
  225. .right_item:first-child {
  226. margin-top: none;
  227. }
  228. }
  229. }
  230. }
  231. }
  232. .shopcart {
  233. position: fixed;
  234. bottom: 120rpx;
  235. width: 100%;
  236. display: flex;
  237. align-items: center;
  238. justify-content: space-between;
  239. padding: 16rpx 24rpx;
  240. background-color: #fafafa;
  241. .price {
  242. display: flex;
  243. align-items: center;
  244. font-size: 36rpx;
  245. font-family: Source Han Sans CN;
  246. font-weight: bold;
  247. .total{
  248. content: '';
  249. position: absolute;
  250. top: -10rpx;
  251. right: -10rpx;
  252. width: 40rpx;
  253. height: 40rpx;
  254. border-radius: 50%;
  255. color: #fff;
  256. font-size: 24rpx;
  257. text-align: center;
  258. line-height: 40rpx;
  259. background: #f00;
  260. }
  261. .sum {
  262. text-indent: 12rpx;
  263. }
  264. }
  265. .cart-btn {
  266. button {
  267. padding: 20rpx 60rpx;
  268. margin: 0;
  269. line-height: normal;
  270. background: #f39283;
  271. border-radius: 48rpx;
  272. color: #ffffff;
  273. font-size: 27rpx;
  274. font-family: Source Han Sans CN;
  275. font-weight: bold;
  276. }
  277. }
  278. }
  279. .shopGoods {
  280. position: relative;
  281. >.title {
  282. width: 100%;
  283. height: 80rpx;
  284. text-align: center;
  285. line-height: 80rpx;
  286. box-shadow: 0 5rpx 10rpx rgb(0 0 0 / 30%);
  287. z-index: 9;
  288. }
  289. .goods {
  290. .cart_info {
  291. width: 93%;
  292. background: #ffffff;
  293. border-radius: 12rpx;
  294. margin: 10rpx auto;
  295. display: flex;
  296. box-shadow: 0 0 13px #dedede;
  297. position: relative;
  298. .left_info {
  299. width: 40%;
  300. display: flex;
  301. align-items: center;
  302. .radio {
  303. margin: 0 10rpx;
  304. }
  305. .image_box {
  306. position: relative;
  307. width: 188rpx;
  308. height: 188rpx;
  309. .image {
  310. width: 188rpx;
  311. height: 188rpx;
  312. border-radius: 16rpx;
  313. }
  314. .open {
  315. position: absolute;
  316. top: 0;
  317. left: 0;
  318. width: 100%;
  319. height: 100%;
  320. display: flex;
  321. align-items: center;
  322. justify-content: center;
  323. background: rgb(31 31 31 / 43%);
  324. border-radius: 50%;
  325. color: white;
  326. padding: 20rpx;
  327. text-align: center;
  328. font-size: 30rpx;
  329. }
  330. }
  331. }
  332. .right_info {
  333. display: flex;
  334. flex-direction: column;
  335. justify-content: space-around;
  336. align-items: center;
  337. width: 58%;
  338. .title {
  339. font-size: 28rpx;
  340. width: 300rpx;
  341. margin: 10rpx 0;
  342. font-weight: 700;
  343. overflow: hidden;
  344. display: -webkit-box;
  345. -webkit-box-orient: vertical;
  346. -webkit-line-clamp: 1;
  347. }
  348. .desc {
  349. font-size: 24rpx;
  350. margin-bottom: 10rpx;
  351. overflow: hidden;
  352. display: -webkit-box;
  353. -webkit-box-orient: vertical;
  354. -webkit-line-clamp: 1;
  355. }
  356. .down_info {
  357. display: flex;
  358. align-items: center;
  359. justify-content: space-between;
  360. width: 100%;
  361. padding: 20rpx 0;
  362. .price {
  363. font-size: 34rpx;
  364. color: #fd3030;
  365. font-weight: 700;
  366. }
  367. .ipt {
  368. color: #333;
  369. }
  370. .van-stepper {
  371. .van-stepper__input {
  372. z-index: 0;
  373. }
  374. }
  375. }
  376. }
  377. .post {
  378. position: absolute;
  379. right: 4rpx;
  380. top: 4rpx;
  381. padding: 4rpx 20rpx;
  382. background: #2196F3;
  383. color: white;
  384. border-radius: 6rpx;
  385. font-size: 28rpx;
  386. }
  387. }
  388. .delete {
  389. background: #e42929;
  390. color: #fff;
  391. width: 120rpx;
  392. height: 100%;
  393. text-align: center;
  394. line-height: 175rpx;
  395. }
  396. .bottom {
  397. width: 100%;
  398. height: 100rpx;
  399. }
  400. }
  401. .cart_down {
  402. display: flex;
  403. position: fixed;
  404. bottom: var(--bottom);
  405. z-index: 999;
  406. left: 0;
  407. width: 100%;
  408. background: #ffffff;
  409. align-items: center;
  410. justify-content: space-between;
  411. padding: 0 20rpx;
  412. height: 100rpx;
  413. box-shadow: 0px -6px 11px #dedede;
  414. .cart_left {
  415. display: flex;
  416. }
  417. .cart_right {
  418. display: flex;
  419. .total_info {
  420. margin-right: 20rpx;
  421. text-align: center;
  422. flex-direction: column;
  423. display: flex;
  424. justify-content: center;
  425. align-items: flex-start;
  426. .total_price {
  427. font-size: 30rpx;
  428. color: #fd3030;
  429. font-weight: 600;
  430. }
  431. .text {
  432. font-size: 24rpx;
  433. color: #979393;
  434. }
  435. }
  436. .button {
  437. width: 140rpx;
  438. text-align: center;
  439. background: #b3afaf;
  440. color: #fff;
  441. font-size: 30rpx;
  442. border-radius: 36rpx;
  443. // font-weight: 700;
  444. margin-right: 10rpx;
  445. }
  446. .active {
  447. background: #dd4848;
  448. }
  449. .actives {
  450. background-color: #fff;
  451. color: #808080;
  452. border: 1px solid #808080 !important;
  453. }
  454. }
  455. }
  456. }
  457. .play-list{
  458. justify-content: space-between;
  459. display: flex;
  460. flex-wrap: wrap;
  461. padding: 24rpx;
  462. .play-item {
  463. width: 246rpx;
  464. height: 400rpx;
  465. background: #FFFFFF;
  466. box-shadow: 0px 5px 9px 0px rgba(14, 5, 9, 0.05);
  467. border-radius: 12rpx;
  468. margin-bottom: 24rpx;
  469. .body {
  470. padding: 0 16rpx;
  471. height: 130rpx;
  472. display: flex;
  473. flex-direction: column;
  474. justify-content: space-around;
  475. .item-text {
  476. font-size: 24rpx;
  477. font-weight: 300;
  478. display: -webkit-box;
  479. -webkit-box-orient: vertical;
  480. -webkit-line-clamp: 1;
  481. overflow: hidden;
  482. }
  483. .label {
  484. display: flex;
  485. font-size: 15rpx;
  486. font-weight: 400;
  487. -webkit-box-orient: vertical;
  488. -webkit-line-clamp: 2;
  489. overflow: hidden;
  490. >view {
  491. background-color: #fdefed;
  492. border-radius: 12rpx;
  493. padding: 5rpx 16rpx;
  494. margin-right: 12rpx;
  495. -webkit-box-orient: vertical;
  496. -webkit-line-clamp: 2;
  497. overflow: hidden;
  498. }
  499. }
  500. .detail {
  501. display: flex;
  502. align-items: center;
  503. font-size: 18rpx;
  504. font-weight: 300;
  505. justify-content: space-between;
  506. .d-light {
  507. font-weight: bold;
  508. font-size: 26rpx;
  509. color: #FB8737;
  510. }
  511. }
  512. }
  513. }
  514. }
  515. }