details.wxss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  1. /* pages/details/details.wxss */
  2. @import "../../wxParse/wxParse.wxss";
  3. .comment_swiper {
  4. position: absolute;
  5. bottom: 90rpx;
  6. left: 19rpx;
  7. background: rgba(140, 140, 140, 0.5);
  8. max-width: 430rpx;
  9. height: 50rpx;
  10. line-height: 50rpx;
  11. overflow: hidden;
  12. white-space: nowrap;
  13. text-overflow: ellipsis;
  14. border-radius: 30rpx;
  15. padding: 0 21rpx;
  16. box-sizing: border-box;
  17. color: #fff;
  18. font-size: 24rpx;
  19. }
  20. .comment_content {
  21. max-width: 346rpx;
  22. font-size: 24rpx;
  23. height: 40rpx;
  24. line-height: 40rpx;
  25. display: inline-block;
  26. vertical-align: middle;
  27. }
  28. .nickname {
  29. height: 40rpx;
  30. line-height: 40rpx;
  31. font-size: 24rpx;
  32. display: inline-block;
  33. vertical-align: middle;
  34. }
  35. .comment_swiper image {
  36. width: 40rpx;
  37. height: 40rpx;
  38. border-radius: 50rpx;
  39. display: inline-block;
  40. vertical-align: middle;
  41. }
  42. .details_collection {
  43. position: absolute;
  44. bottom: 96rpx;
  45. right: 19rpx;
  46. color: #fff;
  47. padding: 10rpx 30rpx;
  48. background: #7e7e7e;
  49. border-radius: 50rpx;
  50. font-size: 24rpx;
  51. }
  52. .goods_content {
  53. text-align: center;
  54. position: relative;
  55. }
  56. .goods_content::after {
  57. position: absolute;
  58. content: "";
  59. bottom: 0;
  60. left: 0;
  61. width: 100%;
  62. height: 1px;
  63. background: #dadada;
  64. }
  65. .goods_name_title {
  66. font-size: 34rpx;
  67. color: rgb(0, 0, 0);
  68. }
  69. .bonus_price {
  70. font-size: 36rpx;
  71. color: #ef524d;
  72. overflow: hidden;
  73. }
  74. .goods_price {
  75. color: #9b9b9b;
  76. font-size: 22rpx;
  77. }
  78. .goods_desc {
  79. font-size: 24rpx;
  80. display: -webkit-box;
  81. -webkit-box-orient: vertical;
  82. -webkit-line-clamp: 2;
  83. overflow: hidden;
  84. color: #7e7e7e;
  85. min-height: 56rpx;
  86. line-height: 28rpx;
  87. }
  88. .congratulation_text {
  89. position: relative;
  90. padding: 16rpx 0;
  91. margin-left: 25rpx;
  92. color: rgb(167, 167, 167);
  93. font-size: 24rpx;
  94. }
  95. .congratulation_text::after {
  96. content: " ";
  97. position: absolute;
  98. left: 0;
  99. bottom: 1rpx;
  100. right: 0;
  101. height: 1rpx;
  102. border-bottom: 1px solid #c7c7c7;
  103. color: #c7c7c7;
  104. -webkit-transform-origin: 0 100%;
  105. transform-origin: 0 100%;
  106. -webkit-transform: scaleY(0.5);
  107. transform: scaleY(0.5);
  108. }
  109. .congratulation_text.colef524d {
  110. color: #ef524d;
  111. }
  112. .tospecial {
  113. float: right;
  114. padding: 4rpx 16rpx;
  115. margin-right: 25rpx;
  116. background: rgb(236, 92, 86);
  117. border-radius: 20rpx;
  118. color: rgb(242, 203, 100);
  119. font-size: 20rpx;
  120. }
  121. .details_stamps {
  122. /* height: 166rpx; */
  123. padding-top: 40rpx;
  124. padding-bottom: 30rpx;
  125. box-sizing: border-box;
  126. display: flex;
  127. flex-direction: row;
  128. flex-wrap: wrap;
  129. }
  130. .stamps_item {
  131. width: 50%;
  132. display: flex;
  133. align-items: center;
  134. padding-left: 90rpx;
  135. color: #a7a7a7;
  136. font-size: 24rpx;
  137. height: 46rpx;
  138. box-sizing: border-box;
  139. }
  140. .goods_logo {
  141. width: 30rpx;
  142. height: 30rpx;
  143. margin-right: 22rpx;
  144. }
  145. .place-bac247 {
  146. background: rgb(247, 247, 247);
  147. height: 20rpx;
  148. }
  149. .place-bacd9 {
  150. background: #D9D9D9;
  151. height: 1px;
  152. transform: scaleY(.5);
  153. }
  154. /* 评论 */
  155. .comments_box {
  156. padding: 30rpx 30rpx 0;
  157. }
  158. .comments_header {
  159. position: relative;
  160. text-align: center;
  161. height: 42rpx;
  162. font-size: 30rpx;
  163. color: #333333;
  164. }
  165. .all_comments {
  166. position: absolute;
  167. top: 0;
  168. right: 0;
  169. display: flex;
  170. align-items: center;
  171. width: 140rpx;
  172. height: 42rpx;
  173. font-size: 24rpx;
  174. color: #333333;
  175. }
  176. .all_comments_icon {
  177. position: absolute;
  178. right: 0;
  179. margin-left: 10rpx;
  180. width: 16rpx;
  181. height: 30rpx;
  182. }
  183. .comments_basic_info {
  184. margin: 20rpx 0 0;
  185. display: flex;
  186. justify-content: space-between;
  187. align-items: center;
  188. height: 42rpx;
  189. }
  190. .comments_block {
  191. position: relative;
  192. display: flex;
  193. justify-content: space-between;
  194. align-items: center;
  195. height: 70rpx;
  196. margin: 0 24rpx;
  197. color: #a7a7a7;
  198. font-size: 28rpx;
  199. }
  200. .comments_block::after {
  201. content: " ";
  202. position: absolute;
  203. bottom: 0;
  204. right: 0;
  205. left: 0;
  206. height: 1px;
  207. border-bottom: 1px solid #c7c7c7;
  208. color: #c7c7c7;
  209. -webkit-transform-origin: 0 100%;
  210. transform-origin: 0 100%;
  211. -webkit-transform: scaleY(0.5);
  212. transform: scaleY(0.5);
  213. }
  214. .comment {
  215. position: relative;
  216. color: #a7a7a7;
  217. padding: 0 30rpx;
  218. /* padding-top: 28rpx;
  219. padding-bottom: 20rpx; */
  220. }
  221. .comments_item {
  222. padding-top: 30rpx;
  223. padding-bottom: 30rpx;
  224. }
  225. .user {
  226. overflow: hidden;
  227. margin-bottom: 18rpx;
  228. padding: 0 24rpx;
  229. line-height: 1.6;
  230. }
  231. .member_avatar image {
  232. width: 60rpx;
  233. height: 60rpx;
  234. border-radius: 10rpx;
  235. display: block;
  236. }
  237. .flex-stars {
  238. display: flex;
  239. align-items: center;
  240. height: 44rpx;
  241. }
  242. .star {
  243. /* display: inline-block; */
  244. float: left;
  245. width: 30rpx;
  246. height: 30rpx;
  247. margin-right: 5rpx;
  248. /* vertical-align: middle; */
  249. }
  250. .comment_time {
  251. text-align: right;
  252. font-size: 20rpx;
  253. }
  254. .spec {
  255. padding: 0 24rpx;
  256. margin-bottom: 10rpx;
  257. font-size: 20rpx;
  258. }
  259. .content {
  260. padding: 0 24rpx;
  261. margin-bottom: 0;
  262. font-size: 22rpx;
  263. color: #000;
  264. line-height: 36rpx;
  265. padding-bottom: 10rpx;
  266. }
  267. .attr_list_item {
  268. display: flex;
  269. justify-content: space-between;
  270. align-items: center;
  271. line-height: 70rpx;
  272. padding: 0 25rpx;
  273. overflow: hidden;
  274. font-size: 24rpx;
  275. color: rgb(167, 167, 167);
  276. }
  277. .details_tabbar {
  278. position: fixed;
  279. display: flex;
  280. z-index: 500;
  281. left: 0;
  282. right: 0;
  283. bottom: 0;
  284. background: #fff;
  285. box-shadow: 0 -2rpx 4rpx 0 rgba(0,0,0,0.09);
  286. }
  287. /* .details_tabbar:before {
  288. content: " ";
  289. position: absolute;
  290. left: 0;
  291. top: 0;
  292. right: 0;
  293. height: 1px;
  294. border-top: 1px solid #c0bfc4;
  295. color: #c0bfc4;
  296. -webkit-transform-origin: 0 0;
  297. transform-origin: 0 0;
  298. -webkit-transform: scaleY(0.5);
  299. transform: scaleY(0.5);
  300. } */
  301. .right_line {
  302. position: relative;
  303. }
  304. .right_line::after {
  305. content: '';
  306. position: absolute;
  307. bottom: 0;
  308. top: 0;
  309. right: 0;
  310. width: 1px;
  311. transform: scaleX(.5);
  312. transform-origin: 0 0;
  313. pointer-events: none;
  314. background: #D1D1D1;
  315. }
  316. .details_tabbar_item {
  317. position: relative;
  318. display: block;
  319. -webkit-box-flex: 4;
  320. -webkit-flex: 4;
  321. flex: 4;
  322. font-size: 0;
  323. color: #999;
  324. text-align: center;
  325. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  326. padding: 18rpx 0 0;
  327. }
  328. .tabbar_icon_wrap {
  329. width: 40rpx;
  330. height: 40rpx;
  331. margin: 0 auto 4rpx;
  332. }
  333. .home_icon {
  334. width: 34rpx;
  335. height: 30rpx;
  336. }
  337. .shopcart_icon {
  338. width: 36rpx;
  339. height: 36rpx;
  340. }
  341. .details_tabbar_label {
  342. text-align: center;
  343. line-height: 28rpx;
  344. font-size: 20rpx;
  345. color: #666;
  346. }
  347. .place_details_tabbar {
  348. height: 100rpx;
  349. }
  350. .see_more_details {
  351. margin: 40rpx auto;
  352. text-align: center;
  353. width: 40%;
  354. padding: 15rpx;
  355. font-size: 30rpx;
  356. border-radius: 8rpx;
  357. color: rgb(255, 78, 78);
  358. border: 1px solid #ff4e4e;
  359. }
  360. .details_tabbar_simple {
  361. text-align: center;
  362. background: #D3BB7E;
  363. flex: 10 1 0%;
  364. padding: 0;
  365. height: 100rpx;
  366. line-height: 100rpx;
  367. font-size: 30rpx;
  368. color: #fff;
  369. }
  370. .details_tabbar_simple.buy {
  371. background: #2B2B2B;
  372. }
  373. .details_tabbar_simple.buy.soldout {
  374. flex: 3 1 0%;
  375. }
  376. .simple_shopcart, .simple_explain {
  377. position: fixed;
  378. left: 0;
  379. right: 0;
  380. bottom: 0;
  381. z-index: 502;
  382. font-size: 34rpx;
  383. background: #fff;
  384. -webkit-transition: all 0.3s;
  385. transition: all 0.3s;
  386. -webkit-transform: translateY(110%);
  387. transform: translateY(110%);
  388. }
  389. .simple_shopcart {
  390. height: 800rpx;
  391. }
  392. .simple_explain {
  393. height: 900rpx;
  394. overflow: hidden;
  395. }
  396. .show_animation {
  397. -webkit-transform: translateY(0);
  398. transform: translateY(0);
  399. }
  400. .animation_popup {
  401. position: fixed;
  402. left: 0;
  403. right: 0;
  404. top: 0;
  405. bottom: 0;
  406. z-index: -1;
  407. background: rgba(0, 0, 0, 0.5);
  408. opacity: 0;
  409. /* -webkit-transition: opacity 400ms;
  410. transition: opacity 400ms; */
  411. }
  412. .animation_popup.show_popup {
  413. z-index: 501;
  414. opacity: 1;
  415. }
  416. .pal30 {
  417. padding-left: 30rpx;
  418. }
  419. .pab30 {
  420. padding-bottom: 30rpx;
  421. }
  422. .simple_goods_info {
  423. width: 100%;
  424. display: flex;
  425. display: -webkit-flex;
  426. -webkit-align-items: center;
  427. align-items: center;
  428. }
  429. .flexbox_item {
  430. flex: 1;
  431. -webkit-flex: 1;
  432. min-width: 20px;
  433. width: 0%;
  434. text-align: left;
  435. margin-left: 8rpx;
  436. }
  437. .goods_small_img {
  438. display: block;
  439. width: 228rpx;
  440. height: 228rpx;
  441. margin-top: -50rpx;
  442. margin-left: 5rpx;
  443. border-radius: 10rpx;
  444. }
  445. .simple_goods_price {
  446. line-height: 50rpx;
  447. font-size: 36rpx;
  448. color: #333;
  449. }
  450. .goods_original_price {
  451. font-size: 24rpx;
  452. color: rgb(167, 167, 167);
  453. }
  454. .simple_goods_spec {
  455. padding: 15rpx 0 15rpx 25rpx;
  456. }
  457. .simple_sec_content {
  458. height: 200rpx;
  459. overflow-x: hidden;
  460. margin: 20rpx 0;
  461. padding-bottom: 30rpx;
  462. }
  463. .sec_content_btn {
  464. display: inline-block;
  465. background: #fff;
  466. color: #000;
  467. border-radius: 5rpx;
  468. padding: 10rpx 15rpx;
  469. font-size: 24rpx;
  470. border: 1rpx solid #000;
  471. margin-right: 15rpx;
  472. margin-bottom: 15rpx;
  473. }
  474. .sec_content_btn.sec_active {
  475. background: #2b2b2b;
  476. color: #fff;
  477. border: 1rpx solid #fff;
  478. }
  479. .simple_goods_compute {
  480. color: #333;
  481. font-size: 40rpx;
  482. display: inline-block;
  483. width: 80rpx;
  484. text-align: center;
  485. }
  486. .simple_goods_result {
  487. display: inline-block;
  488. width: 140rpx;
  489. text-align: center;
  490. font-size: 30rpx;
  491. }
  492. .simple_goods_buy {
  493. position: absolute;
  494. bottom: 0;
  495. left: 0;
  496. right: 0;
  497. background: #2b2b2b;
  498. color: #fff;
  499. border: none;
  500. text-align: center;
  501. height: 90rpx;
  502. line-height: 90rpx;
  503. font-size: 30rpx;
  504. }
  505. .close_btn,.close_explain {
  506. position: absolute;
  507. right: 0;
  508. top: 0;
  509. padding: 15rpx;
  510. }
  511. .close_btn {
  512. width: 40rpx;
  513. height: 40rpx;
  514. }
  515. .close_explain {
  516. width: 100rpx;
  517. height: 100rpx;
  518. }
  519. .close_btn::before, .close_btn::after {
  520. content: '';
  521. position: absolute;
  522. height: 2rpx;
  523. top: 50%;
  524. left: 15rpx;
  525. right: 15rpx;
  526. background: #2b2b2b;
  527. }
  528. .close_btn::before {
  529. -webkit-transform: rotate(45deg);
  530. transform: rotate(45deg);
  531. }
  532. .close_btn::after {
  533. -webkit-transform: rotate(-45deg);
  534. transform: rotate(-45deg);
  535. }
  536. .gifts_wrap {
  537. font-size: 20rpx;
  538. background: #ffe3c6;
  539. border-radius: 5rpx;
  540. padding: 10rpx;
  541. margin-right: 18rpx;
  542. margin-top: 10rpx;
  543. }
  544. .gift_tag {
  545. background: #2b2b2b;
  546. border-radius: 4rpx;
  547. padding: 2rpx;
  548. color: #fff;
  549. }
  550. .gift_underline {
  551. text-decoration: underline;
  552. }
  553. /* 新版 */
  554. .align_center {
  555. display: flex;
  556. align-items: center;
  557. }
  558. .n_goods_content {
  559. padding: 20rpx 48rpx 20rpx 30rpx;
  560. }
  561. .n_price_content {
  562. height: 48rpx;
  563. }
  564. .n_goods_title {
  565. margin-top: 20rpx;
  566. line-height: 50rpx;
  567. font-size: 34rpx;
  568. font-weight: bold;
  569. color: #333333;
  570. }
  571. .promotion_header {
  572. padding-left: 30rpx;
  573. background: #FFEEBD;
  574. font-size: 24rpx;
  575. color: #7E7E7E;
  576. height: 48rpx;
  577. }
  578. .promotion_single {
  579. padding: 2rpx 8rpx;
  580. margin-right: 10rpx;
  581. font-size: 20rpx;
  582. border-radius: 40rpx;
  583. color: #fff;
  584. background: #2b2b2b;
  585. }
  586. .brand_auth {
  587. position: relative;
  588. float: left;
  589. margin-top: 7rpx;
  590. margin-right: 10rpx;
  591. padding: 10rpx 10rpx 6rpx;
  592. height: 20rpx;
  593. line-height: 20rpx;
  594. font-size: 20rpx;
  595. color: #2B2B2B;
  596. }
  597. .brand_auth::after {
  598. content: '';
  599. position: absolute;
  600. top: 0;
  601. left: 0;
  602. width: 200%;
  603. height: 200%;
  604. transform: scale(.5);
  605. transform-origin: 0 0;
  606. pointer-events: none;
  607. box-sizing: border-box;
  608. border: 0 solid #2b2b2b;
  609. border-radius: 40rpx;
  610. border-width: 1px;
  611. }
  612. .ensure_desc {
  613. position: relative;
  614. padding: 30rpx 50rpx 30rpx 30rpx;
  615. }
  616. .see_ensure_wrap {
  617. position: absolute;
  618. display: flex;
  619. align-items: center;
  620. width: 100rpx;
  621. right: 0rpx;
  622. top: 0;
  623. bottom: 0;
  624. }
  625. .see_ensure_desc {
  626. width: 16rpx;
  627. height: 30rpx;
  628. position: absolute;
  629. right: 30rpx;
  630. }
  631. .ensure_desc_text {
  632. margin-top: 10rpx;
  633. line-height: 34rpx;
  634. font-size: 24rpx;
  635. color: #666666;
  636. }
  637. .stamps_list {
  638. display: flex;
  639. }
  640. .n_stamps_item {
  641. display: flex;
  642. /* flex: 0 1 auto; */
  643. align-items: center;
  644. margin-right: 50rpx;
  645. color: #666;
  646. font-size: 24rpx;
  647. height: 40rpx;
  648. box-sizing: border-box;
  649. }
  650. .stamp_pic {
  651. width: 40rpx;
  652. height: 40rpx;
  653. margin-right: 10rpx;
  654. }
  655. .stamp_pic.zg {
  656. width: 35rpx;
  657. }
  658. .content_img {
  659. display: inline-block;
  660. width: 116rpx;
  661. margin: 24rpx 24rpx 24rpx 0;
  662. vertical-align: middle
  663. }