index.less 8.8 KB

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