style.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  1. @CHARSET "UTF-8";
  2. .align-right{
  3. text-align: right;
  4. }
  5. .lineheight-clear {
  6. line-height:1 !important;
  7. }
  8. .goods-list .goods-wrap,
  9. .goods-list .goods-img {
  10. position: relative;
  11. }
  12. .goods-list .goods-item .goods-tag {
  13. color:#fff;
  14. line-height:1;
  15. padding:4px 6px;
  16. position:absolute;
  17. border-top-left-radius:5px;
  18. border-bottom-right-radius:5px;
  19. top:0;
  20. left:0;
  21. font-size:12px;
  22. background: #FF4544
  23. }
  24. .goods-list .goods-item .goods-tag-img {
  25. position: absolute;
  26. border-top-left-radius: 5px;
  27. width: 40px;
  28. height: 40px;
  29. top: 0;
  30. left: 0;
  31. z-index: 5;
  32. overflow: hidden;
  33. margin: 0;
  34. }
  35. .goods-list .goods-item .goods-tag-img .tag-wrap{
  36. background: #eee;
  37. font-size: 12px;
  38. padding: 5px;
  39. text-align: center;
  40. color: #999;
  41. line-height: 1.2;
  42. }
  43. .goods-list .goods-item .goods-tag-img img {
  44. width: 100%;
  45. height: 100%;
  46. }
  47. .goods-list.single-column .goods-wrap {
  48. margin:5px 0 8px;
  49. padding: 13px 13px;
  50. background: #fff;
  51. border-radius:10px;
  52. box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  53. }
  54. .goods-list.single-column .goods-item {
  55. display:flex;
  56. position:relative;
  57. }
  58. .goods-list.single-column .goods-item:first-child{
  59. margin-top: 0;
  60. }
  61. .goods-list.single-column .goods-item:last-child{
  62. margin-bottom: 0;
  63. }
  64. .goods-list.single-column .goods-item .goods-img {
  65. width:100px;
  66. height:100px;
  67. overflow:hidden;
  68. border-radius:5px;
  69. margin-right:10px;
  70. background:#e5e5e5;
  71. display:flex;
  72. justify-content:center;
  73. align-items:center;
  74. }
  75. .goods-list.single-column .goods-item .goods-img img {
  76. width: 100%;
  77. height: 100%;
  78. }
  79. .goods-list.single-column .goods-item .goods-tag {
  80. color:#fff;
  81. line-height:1;
  82. padding:4px 6px;
  83. position:absolute;
  84. border-top-left-radius:5px;
  85. border-bottom-right-radius:5px;
  86. top:0;
  87. left:0;
  88. font-size:12px;
  89. background: #FF4544
  90. }
  91. .goods-list.single-column .goods-item .goods-tag-img {
  92. position: absolute;
  93. border-top-left-radius: 5px;
  94. width: 40px;
  95. height: 40px;
  96. top: 0;
  97. left: 0;
  98. z-index: 5;
  99. overflow: hidden;
  100. margin: 0;
  101. }
  102. .goods-list.single-column .goods-item .goods-tag-img .tag-wrap{
  103. background: #eee;
  104. font-size: 12px;
  105. padding: 5px;
  106. text-align: center;
  107. color: #999;
  108. line-height: 1.2;
  109. }
  110. .goods-list.single-column .goods-item .goods-tag-img img {
  111. width: 100%;
  112. height: 100%;
  113. }
  114. .goods-list.single-column .goods-item .info-wrap {
  115. flex:1;
  116. display:flex;
  117. flex-direction:column;
  118. }
  119. .goods-list.single-column .goods-item .name-wrap {
  120. flex:1;
  121. }
  122. .goods-list.single-column .goods-item .goods-desc {
  123. font-size:13px;
  124. overflow:hidden;
  125. white-space: nowrap;
  126. text-overflow: ellipsis;
  127. -o-text-overflow:ellipsis;
  128. color: #999;
  129. }
  130. .goods-list.single-column .goods-item .goods-name {
  131. font-size:15px;
  132. line-height:1.3;
  133. overflow:hidden;
  134. white-space: nowrap;
  135. text-overflow: ellipsis;
  136. -o-text-overflow:ellipsis;
  137. color: #333;
  138. font-weight: bold;
  139. }
  140. .goods-list.single-column .goods-item .goods-time {
  141. font-size:10px;
  142. line-height: 10px;
  143. color: #ff5344;
  144. }
  145. .goods-list.single-column .goods-item .price-wrap {
  146. display: flex;
  147. align-items: flex-end;
  148. }
  149. .goods-list.single-column .goods-item .discount-price {
  150. display:inline-block;
  151. line-height:1;
  152. margin-right:5px;
  153. color:#FF4544;
  154. font-weight: 500;
  155. }
  156. .goods-list.single-column .goods-item .discount-price .unit {
  157. font-size:20px;
  158. }
  159. .goods-list.single-column .goods-item .delete-price {
  160. text-decoration:line-through;
  161. flex:1;
  162. font-size:12px;
  163. line-height:1;
  164. color:#999;
  165. }
  166. .goods-list.single-column .goods-item .goods-sale {
  167. margin: 5px 0;
  168. }
  169. .goods-list.single-column .goods-item .goods-sale div {
  170. display: flex;
  171. border: 1px solid #FF4544;
  172. border-radius: 10px;
  173. align-items: center;
  174. justify-content: center;
  175. overflow: hidden;
  176. font-size: 10px;
  177. line-height: 1;
  178. width: 50%;
  179. }
  180. .goods-list.single-column .goods-item .goods-sale div span {
  181. padding: 2px 6px;
  182. flex: 1;
  183. color: #FF4544;
  184. line-height: 1.2;
  185. text-align: center;
  186. }
  187. .goods-list.single-column .goods-item .goods-sale .goods-sale-bg {
  188. background: #FF4544;
  189. color: #ffffff;
  190. }
  191. .goods-list.single-column .goods-item .member-price-tag {
  192. display:inline-block;
  193. width:30px;
  194. line-height:1;
  195. margin-left:3px;
  196. }
  197. .goods-list.single-column .goods-item .member-price-tag image {
  198. width:100%;
  199. }
  200. .goods-list.single-column .goods-wrap .presale-time {
  201. display: flex;
  202. justify-content: space-between;
  203. border-top: 1px solid #ececec;
  204. font-size: 12px;
  205. color: #ed7b3a;
  206. padding-top: 10px;
  207. margin-top: 10px;
  208. font-weight: bold;
  209. }
  210. .goods-list.double-column {
  211. display:flex;
  212. flex-wrap:wrap;
  213. margin: 0;
  214. padding: 0;
  215. }
  216. .goods-list.double-column .goods-wrap {
  217. flex:1;
  218. position:relative;
  219. background:#fff;
  220. flex-basis:48%;
  221. max-width:calc((100% - 15px) / 2);
  222. margin-right:15px;
  223. margin-bottom:10px;
  224. border-radius:5px;
  225. padding: 10px 13px;
  226. box-sizing: border-box;
  227. }
  228. .goods-list.double-column .goods-wrap:nth-child(2n) {
  229. margin-right:0;
  230. }
  231. .goods-list.double-column .goods-wrap .goods-img {
  232. position:relative;
  233. height:0;
  234. overflow:hidden;
  235. padding-top:100%;
  236. border-top-left-radius:5px;
  237. border-top-right-radius:5px;
  238. background-color:#E8E8E8;
  239. }
  240. .goods-list.double-column .goods-wrap .goods-img img {
  241. position:absolute;
  242. top:50%;
  243. left:50%;
  244. transform:translate(-50%,-50%);
  245. width: 100%;
  246. height: 100%;
  247. }
  248. .goods-list.double-column .goods-wrap .goods-tag {
  249. color:#fff;
  250. line-height:1;
  251. padding:4px 8px;
  252. position:absolute;
  253. border-bottom-right-radius:5px;
  254. top:0;
  255. left:0;
  256. font-size:12px;
  257. background: #FF4544;
  258. }
  259. .goods-list.double-column .goods-item .goods-tag-img {
  260. position: absolute;
  261. border-top-left-radius: 5px;
  262. width: 40px;
  263. height: 40px;
  264. top: 0;
  265. left: 0;
  266. z-index: 5;
  267. overflow: hidden;
  268. margin: 0;
  269. }
  270. .goods-list.double-column .goods-item .goods-tag-img .tag-wrap{
  271. background: #eee;
  272. font-size: 12px;
  273. padding: 5px;
  274. text-align: center;
  275. color: #999;
  276. }
  277. .goods-list.double-column .goods-item .goods-tag-img .tag-wrap{
  278. background: #eee;
  279. font-size: 12px;
  280. }
  281. .goods-list.double-column .goods-item .goods-tag-img img {
  282. width: 100%;
  283. height: 100%;
  284. }
  285. .goods-list.double-column .goods-item .info-wrap {
  286. margin-top: 10px;
  287. }
  288. .goods-list.double-column .goods-item .goods-name {
  289. font-size:14px;
  290. line-height:1.3;
  291. overflow:hidden;
  292. text-overflow:ellipsis;
  293. display:-webkit-box;
  294. -webkit-line-clamp:1;
  295. -webkit-box-orient:vertical;
  296. margin-top:10px;
  297. }
  298. .goods-list.double-column .goods-item .discount-price {
  299. display:inline-block;
  300. font-weight:bold;
  301. line-height:1;
  302. margin-top:8px;
  303. color:#ff5041;
  304. }
  305. .goods-list.double-column .goods-item .discount-price .unit {
  306. font-size: 20px;
  307. }
  308. .goods-list.double-column .goods-item .pro-info {
  309. display:flex;
  310. margin-top:8px;
  311. }
  312. .goods-list.double-column .goods-item .delete-price {
  313. text-decoration:line-through;
  314. flex:1;
  315. font-size:12px;
  316. line-height:1;
  317. color:#999;
  318. }
  319. .goods-list.double-column .goods-item .pro-info .sale {
  320. font-size:12px;
  321. line-height:1;
  322. color:#999;
  323. }
  324. .goods-list.double-column .goods-item .delete-price .unit {
  325. margin-right:3px;
  326. }
  327. .goods-list.double-column .goods-item .pro-info > view {
  328. line-height:1;
  329. }
  330. .goods-list.double-column .goods-item .pro-info > view:nth-child(2) {
  331. text-align:right;
  332. }
  333. .goods-list.double-column .goods-item .member-price-tag {
  334. display:inline-block;
  335. width:30px;
  336. line-height:1;
  337. margin-left:3px;
  338. }
  339. .goods-list.double-column .goods-item .member-price-tag image {
  340. width:100%;
  341. }
  342. /* 显示内容 */
  343. .goods-show-box .layui-input-inline {
  344. padding-left:20px;
  345. }
  346. .control-goods-list-small .control-goods-sellnum-abs {
  347. position:absolute;
  348. right:5px;
  349. bottom:10px;
  350. line-height:25px;
  351. }
  352. /* 商品来源选择 */
  353. .source-selected {
  354. display:flex;
  355. }
  356. .source-selected .source {
  357. flex:1;
  358. }
  359. .source-selected .source-item {
  360. display:inline-block;
  361. width:50px;
  362. height:32px;
  363. text-align:center;
  364. border:1px solid #e5e5e5;
  365. padding:5px;
  366. cursor:pointer;
  367. background:#ffffff;
  368. box-sizing:border-box;
  369. border-right:1px transparent solid;
  370. display:flex;
  371. align-items:center;
  372. justify-content:center;
  373. }
  374. .source-selected .source-item img {
  375. display:inline-block;
  376. }
  377. .source-selected .source-item:last-child {
  378. border-right:1px solid #e5e5e5;
  379. }
  380. .goods-tag-img {
  381. display:flex;
  382. margin-left: 15px;
  383. }
  384. .goods-tag-img .upload-tip {
  385. flex:1;
  386. }
  387. .goods-tag-img .upload-tip p {
  388. color:#666;
  389. font-size:12px;
  390. }
  391. .goods-tag-img .upload-tip p:nth-child(1){
  392. margin-top: 15px;
  393. }
  394. .goods-tag-img .upload-tip p:nth-child(2){
  395. margin-top: 5px;
  396. }
  397. .goods-tag-component .error-msg {
  398. color:#f44;
  399. display:none;
  400. }
  401. /* 商品列表风格 */
  402. .goods-list-style {
  403. display: none;
  404. }
  405. .style-list-con-goods {
  406. display: flex;
  407. flex-wrap: wrap;
  408. }
  409. .style-list-con-goods .style-li-goods {
  410. width: 32%;
  411. height: 465px;
  412. line-height: 465px;
  413. margin-right: 2%;
  414. margin-bottom: 15px;
  415. cursor: pointer;
  416. border: 1px solid #ededed;
  417. background: #f7f8fa;
  418. box-sizing: border-box;
  419. }
  420. .style-list-con-goods .style-li-goods:nth-child(3n) {
  421. margin-right: 0;
  422. }
  423. .style-list-con-goods .style-li-goods img {
  424. width: 100%;
  425. }
  426. .goods-category-layer {
  427. display: none;
  428. }
  429. .layui-layer-content .category-wrap .category-item,.layui-layer-content .category-head {
  430. height: 30px;
  431. line-height: 30px;
  432. border: 1px solid #ededed;
  433. border-radius: 5px;
  434. padding: 0 15px;
  435. margin: 0 15px 10px 0;
  436. box-sizing: border-box;
  437. color: #666;
  438. font-size: 12px;
  439. }
  440. .layui-layer-content .category-head{
  441. background: #eee;
  442. height: 40px;
  443. line-height: 40px;
  444. }
  445. .layui-layer-content .category-wrap {
  446. overflow-y: scroll;
  447. height: calc(100% - 45px);
  448. }
  449. .layui-layer-content .category-wrap::-webkit-scrollbar {
  450. display: none;
  451. }
  452. .layui-layer-content .category-wrap .category-item{
  453. cursor: pointer;
  454. white-space: nowrap;
  455. overflow: hidden;
  456. text-overflow: ellipsis;
  457. }
  458. /* 样式2 */
  459. .goods-list.single-column-s2 .goods-img img {
  460. width: 100%;
  461. height: 200px;
  462. object-fit: cover;
  463. }
  464. .goods-list.single-column-s2 .goods-wrap {
  465. position: relative;
  466. box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  467. border-radius: 10px;
  468. margin: 5px auto 10px;
  469. background: #ffffff;
  470. overflow: hidden;
  471. }
  472. .goods-list.single-column-s2 .goods-wrap .goods-img {
  473. position: relative;
  474. }
  475. .goods-list.single-column-s2 .goods-item .goods-tag {
  476. color:#fff;
  477. line-height:1;
  478. padding:4px 6px;
  479. position:absolute;
  480. border-top-left-radius:5px;
  481. border-bottom-right-radius:5px;
  482. top:0;
  483. left:0;
  484. font-size:12px;
  485. background: #FF4544
  486. }
  487. .goods-list.single-column-s2 .goods-item .goods-tag-img {
  488. position: absolute;
  489. border-top-left-radius: 5px;
  490. width: 40px;
  491. height: 40px;
  492. top: 0;
  493. left: 0;
  494. z-index: 5;
  495. overflow: hidden;
  496. margin: 0;
  497. }
  498. .goods-list.single-column-s2 .goods-item .goods-tag-img .tag-wrap{
  499. background: #eee;
  500. font-size: 12px;
  501. padding: 5px;
  502. text-align: center;
  503. color: #999;
  504. line-height: 1.2;
  505. }
  506. .goods-list.single-column-s2 .goods-item .goods-tag-img img {
  507. width: 100%;
  508. height: 100%;
  509. }
  510. .goods-list.single-column-s2 .goods-item .goods-time {
  511. position: absolute;
  512. z-index: 10;
  513. bottom: 0;
  514. right: 0;
  515. color: #fff;
  516. font-size: 13px;
  517. background: #ff5344;
  518. height: 25px;
  519. line-height: 25px;
  520. border-radius: 5px 0 0 0;
  521. padding: 0 10px;
  522. }
  523. .goods-list.single-column-s2 .goods-item .info-wrap {
  524. padding: 10px;
  525. }
  526. .goods-list.single-column-s2 .goods-item .goods-name {
  527. color: #222;
  528. font-size: 15px;
  529. width: 100%;
  530. margin-bottom: 6px;
  531. margin-top: 5px;
  532. font-weight: 500;
  533. position: relative;
  534. }
  535. .goods-list.single-column-s2 .goods-item .goods-desc {
  536. font-size: 13px;
  537. line-height: 13px;
  538. color: #999;
  539. position: relative;
  540. width: 100%;
  541. height: 13px;
  542. margin-bottom: 6px;
  543. }
  544. .goods-list.single-column-s2 .goods-item .presale-time {
  545. display: flex;
  546. justify-content: space-between;
  547. font-size: 12px;
  548. font-weight: bold;
  549. margin: 5px 0;
  550. color: #ed7b3a;
  551. align-items: center;
  552. }
  553. .goods-list.single-column-s2 .goods-item .price-wrap {
  554. display: flex;
  555. align-items: flex-end;
  556. font-size: 13px;
  557. line-height: 13px;
  558. overflow: hidden;
  559. margin-bottom: 5px;
  560. margin-top: 5px;
  561. }
  562. .goods-list.single-column-s2 .goods-item .price-wrap .discount-price {
  563. color: #ff5344;
  564. margin-right: 6px;
  565. }
  566. .goods-list.single-column-s2 .goods-item .price-wrap .discount-price .unit{
  567. font-size: 23px;
  568. line-height: 1;
  569. margin: 0;
  570. font-weight: bold;
  571. }
  572. .goods-list.single-column-s2 .goods-item .price-wrap .delete-price {
  573. text-decoration: line-through;
  574. color: #999;
  575. }
  576. .goods-list.single-column-s2 .goods-item .goods-sale {
  577. font-size: 11px;
  578. line-height: 12px;
  579. color: #999;
  580. }
  581. /* 样式3 */
  582. .goods-list.three-column {
  583. display: flex;
  584. justify-content: space-between;
  585. flex-wrap: wrap;
  586. background: #ffffff;
  587. }
  588. .goods-list.three-column .goods-wrap {
  589. width: 114px;
  590. padding: 10px 3px;
  591. font-size: 14px;
  592. box-sizing: border-box;
  593. border-radius: 5px;
  594. overflow: hidden;
  595. }
  596. .goods-list.three-column .goods-wrap .goods-img img {
  597. width: 108px;
  598. height: 108px;
  599. object-fit: contain;
  600. }
  601. .goods-list.three-column .goods-wrap .goods-name{
  602. overflow: hidden;
  603. text-overflow: ellipsis;
  604. white-space: nowrap;
  605. margin-top: 6px;
  606. }
  607. .goods-list.three-column .goods-wrap .price-wrap{
  608. color: #ff5041;
  609. margin-top: 5px;
  610. }