index.less 10 KB

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