snapUpDetail.wxss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. /* pages/snapUpDetail/snapUpDetail.wxss */
  2. page{
  3. height: 100%;
  4. overflow: hidden;
  5. background-color: #f8f8f8;
  6. }
  7. clearfix::after {
  8. display: block;
  9. content: '';
  10. clear: both;
  11. }
  12. image {
  13. display: block;
  14. width: 100%;
  15. height: 100%;
  16. }
  17. .goods-img {
  18. width: 100%;
  19. height: 750rpx;
  20. }
  21. .display {
  22. display: none;
  23. }
  24. .sub {
  25. font-size: 26rpx;
  26. }
  27. /* 倒计时栏 */
  28. .countdown-box {
  29. width: 100%;
  30. height: 85rpx;
  31. line-height: 85rpx;
  32. background: #04358D;
  33. color: #fff;
  34. padding: 0 30rpx;
  35. box-sizing: border-box;
  36. /* box-shadow: 0 -5rpx 10rpx 8rpx #e4e4e4; */
  37. }
  38. .second-kill {
  39. font-size: 32rpx;
  40. }
  41. .countdown-content {
  42. float: right;
  43. font-size: 25rpx;
  44. height: 85rpx;
  45. line-height: 1em;
  46. text-align: left;
  47. }
  48. .countdown-tips {
  49. padding: 10rpx 0;
  50. font-size: 22rpx;
  51. opacity: 0.8;
  52. }
  53. .countdown-time {
  54. padding-top: 0rpx;
  55. }
  56. /* 商品信息 */
  57. .goods-msg {
  58. position: relative;
  59. box-sizing: border-box;
  60. padding: 20rpx;
  61. margin-bottom: 20rpx;
  62. background-color: #fff;
  63. }
  64. .goods-title {
  65. font-size: 30rpx;
  66. }
  67. /* 价格 */
  68. .goods-price {
  69. padding: 15rpx 0;
  70. border-bottom: 1px solid #f3f3f3;
  71. }
  72. .current-price {
  73. display: inline-block;
  74. color: #e43130;
  75. font-size: 34rpx;
  76. margin-right: 15rpx;
  77. vertical-align: middle;
  78. line-height: 1em;
  79. }
  80. .original {
  81. font-size: 23rpx;
  82. color: #888888;
  83. margin-top: 15rpx;
  84. }
  85. .original-price {
  86. display: inline-block;
  87. font-size: 28rpx;
  88. text-decoration: line-through;
  89. color: #999999;
  90. margin-left: 10rpx;
  91. vertical-align: middle;
  92. }
  93. /* 运费&库存 */
  94. .other-infor {
  95. font-size: 23rpx;
  96. color: #aaa;
  97. padding-top: 15rpx;
  98. text-align: left;
  99. }
  100. .inventory {
  101. font-size: 26rpx;
  102. color: #777777;
  103. }
  104. /* 选择颜色 */
  105. .choose-color {
  106. position: relative;
  107. padding: 20rpx;
  108. font-size: 30rpx;
  109. margin-bottom: 20rpx;
  110. background-color: #fff;
  111. }
  112. .more-icon {
  113. position: absolute;
  114. right: 20rpx;
  115. top: 50%;
  116. transform: translateY(-50%);
  117. display: block;
  118. width: 20rpx;
  119. height: 20rpx;
  120. }
  121. /* 店铺 */
  122. .shop-box {
  123. position: relative;
  124. padding: 30rpx 20rpx;
  125. font-size: 28rpx;
  126. border-bottom: 1rpx solid #f2f2f2;
  127. margin-bottom: 90rpx;
  128. }
  129. .shop-icon {
  130. display: inline-block;
  131. width: 50rpx;
  132. height: 50rpx;
  133. margin-left: 20rpx;
  134. margin-right:30rpx;
  135. vertical-align: middle;
  136. }
  137. .shop-name {
  138. vertical-align: middle;
  139. }
  140. /* 评价 */
  141. .estimate {
  142. border-top: 20rpx solid #f7f7f7;
  143. border-bottom: 20rpx solid #f7f7f7;
  144. font-size: 25rpx;
  145. padding: 25rpx 20rpx;
  146. text-align: left;
  147. margin-bottom: 150rpx;
  148. }
  149. .estimate-num {
  150. float: right;
  151. font-size: 23rpx;
  152. color: #999;
  153. }
  154. /** 商品详情 */
  155. .prod-detail {
  156. background: rgb(255, 255, 255);
  157. margin-top: 20rpx;
  158. position: relative;
  159. line-height: 48rpx;
  160. overflow: hidden;
  161. padding: 20rpx 0;
  162. }
  163. rich-text {
  164. width: 100%!important;
  165. }
  166. .button-placeholder{
  167. height: 150rpx;
  168. }
  169. .det-tit {
  170. width: 300rpx;
  171. }
  172. .detail-tit {
  173. font-size: 32rpx;
  174. position: relative;
  175. border-bottom: 1px solid #ddd;
  176. padding: 20rpx;
  177. }
  178. .prod-detail image {
  179. width: 750rpx !important;
  180. display: block;
  181. }
  182. rich-text image {
  183. width: 100% !important;
  184. }
  185. img {
  186. width: 100% !important;
  187. display: block;
  188. }
  189. /** end 商品详情 */
  190. /* 立即抢购 */
  191. .buynow {
  192. position: fixed;
  193. bottom: 0;
  194. left: 0;
  195. width: 100%;
  196. margin-top: 80rpx;
  197. padding: 0 20rpx;
  198. box-sizing: border-box;
  199. background: #fff;
  200. }
  201. .buynow-btn {
  202. display: block;
  203. text-align: center;
  204. color: #fff;
  205. font-size: 30rpx;
  206. background: #04358D;
  207. width: 100%;
  208. line-height: 90rpx;
  209. margin-top: 20rpx;
  210. margin-bottom: 20rpx;
  211. border-radius: 60rpx;
  212. }
  213. /* 零售价goumai */
  214. .retail-price-buy {
  215. background: #ff8854;
  216. }
  217. /** 底部按钮 */
  218. .foot-box {
  219. margin-top: 100rpx;
  220. }
  221. .footer {
  222. position: fixed;
  223. bottom: 0;
  224. width: 100%;
  225. box-sizing: border-box;
  226. height: 90rpx;
  227. background: #fff;
  228. box-shadow: 10rpx 0 10rpx 0 #f0f0f0;
  229. }
  230. .foot-btn {
  231. display: inline-block;
  232. width: 125rpx;
  233. font-size: 20rpx;
  234. color: #666;
  235. text-align: center;
  236. padding-top: 8rpx;
  237. background: #fff;
  238. }
  239. .foot-btn > image {
  240. display: block;
  241. width: 50rpx;
  242. height: 50rpx;
  243. margin: 0 auto;
  244. }
  245. .buy-btn {
  246. display: inline-block;
  247. font-size: 30rpx;
  248. height: 90rpx;
  249. line-height: 95rpx;
  250. vertical-align: top;
  251. width: 33.3%;
  252. color: #fff;
  253. text-align: center;
  254. }
  255. .alone-buy {
  256. background: #fe8854;
  257. }
  258. .group-buy {
  259. background: #fe4443;
  260. }
  261. /** end 底部按钮 */
  262. /* 弹框 */
  263. /*模态框*/
  264. .modals{
  265. position:fixed;
  266. z-index: 999;
  267. top:0;
  268. left: 0;
  269. right:0;
  270. bottom: 0;
  271. }
  272. .modals-cancel{
  273. position:absolute;
  274. z-index:190;
  275. top:0; left: 0;
  276. right:0;
  277. bottom: 0;
  278. background-color: rgba(0,0,0,.5);
  279. }
  280. .bottom-dialog-body {
  281. position:absolute;
  282. z-index:200;
  283. bottom:0;
  284. left:0;
  285. right:0;
  286. max-height: 80%;
  287. background-color: #fff;
  288. }
  289. /*动画前初始位置*/
  290. .bottom-pos{
  291. -webkit-transform:translateY(100%);
  292. transform:translateY(100%);
  293. }
  294. /* 上部内容 */
  295. .top-content {
  296. position: relative;
  297. border-bottom: 1px solid #f2f2f2;
  298. font-size: 26rpx;
  299. padding: 20rpx;
  300. }
  301. .top-content-img-box {
  302. display: inline-block;
  303. width: 150rpx;
  304. height: 150rpx;
  305. background: #f2f2f2;
  306. vertical-align: middle;
  307. }
  308. .top-content-img-box > image {
  309. width: 100%;
  310. height: 100%;
  311. }
  312. .goods-msg-box {
  313. display: inline-block;
  314. width: 70%;
  315. margin-left: 20rpx;
  316. vertical-align: middle;
  317. }
  318. .goods-names {
  319. line-height: 1.5em;
  320. color: #000;
  321. font-size: 30rpx;
  322. padding-right: 15rpx;
  323. display: -webkit-box;
  324. -webkit-line-clamp: 2; /*设定显示行数*/
  325. -webkit-box-orient: vertical;
  326. word-break: break-all;
  327. overflow: hidden;
  328. text-overflow: ellipsis;
  329. text-align: justify;
  330. }
  331. .group-tips {
  332. font-size: 20rpx;
  333. color: #e43130;
  334. padding: .3em 0;
  335. padding-top: 0;
  336. }
  337. .goods-prices {
  338. font-size: 30rpx;
  339. color: #e43130;
  340. margin-top: 5rpx;
  341. }
  342. .rmb-symbol {
  343. font-size: 34rpx;
  344. }
  345. .close-btn {
  346. position: absolute;
  347. display: block;
  348. right: 20rpx;
  349. top: 15rpx;
  350. width: 40rpx;
  351. height: 40rpx;
  352. z-index: 250;
  353. }
  354. .close-btn > image {
  355. width: 100%;
  356. height: 100%;
  357. }
  358. .sku-selectbox {
  359. max-height: 550rpx;
  360. overflow-y: scroll;
  361. }
  362. /* 颜色选择 */
  363. .choose-color-box {
  364. padding: 20rpx;
  365. font-size: 25rpx;
  366. border-bottom: 1px solid #f2f2f2;
  367. }
  368. .color-txt {
  369. font-weight: 600;
  370. margin-bottom: 15rpx;
  371. }
  372. .color-box {
  373. display: block;
  374. box-sizing: border-box;
  375. padding: 8rpx 0;
  376. }
  377. .color-item {
  378. display: inline-block;
  379. padding: 0 16px;
  380. max-width: 270px;
  381. overflow: hidden;
  382. line-height: 2em;
  383. text-align: center;
  384. margin-left: 10px;
  385. margin-bottom: 10px;
  386. color: #333;
  387. background-color: #f7f7f7;
  388. font-size: 24rpx;
  389. border:1px solid #aaa;
  390. border-radius: 60rpx;
  391. }
  392. .color-item.gray{
  393. background-color: #f9f9f9;
  394. color: #ddd;
  395. }
  396. .color-item.dashed{
  397. border:1px dashed #ccc;
  398. }
  399. .color-item-current {
  400. background: #04358D;
  401. color: #fff;
  402. border:1px dashed #04358D !important;
  403. }
  404. /* 数量选择 */
  405. .quantity {
  406. position: relative;
  407. padding: 20rpx;
  408. font-size: 28rpx;
  409. border-bottom: 1px solid #f2f2f2;
  410. margin-bottom: 180rpx;
  411. }
  412. .left-text {
  413. line-height: 1.5em;
  414. }
  415. .left-text-bottom {
  416. font-size: 25rpx;
  417. color: #666666;
  418. }
  419. .left-text-bottom-max-num{
  420. color: #f00;
  421. }
  422. /* choose-quantity */
  423. .right-choose {
  424. position: absolute;
  425. right: 1em;
  426. top: 1em;
  427. }
  428. .subtract,
  429. .show-num,
  430. .add {
  431. display: inline-block;
  432. background: #f5f5f5;
  433. color: #cfcfcf;
  434. padding: 14rpx 18rpx;
  435. width: 25rpx;
  436. height: 25rpx;
  437. line-height: 25rpx;
  438. text-align: center;
  439. }
  440. .show-num {
  441. margin: 0 3rpx;
  442. }
  443. .current-state {
  444. background: #ebebeb;
  445. color: #6d6d6e;
  446. }
  447. /* 确认按钮 */
  448. .confirm-btn {
  449. position: fixed;
  450. bottom: 0;
  451. left: 0;
  452. width: 100%;
  453. display: flex;
  454. flex-direction: row nowrap;
  455. height: 110rpx;
  456. z-index: 6;
  457. }
  458. .confirm-btn .confirm {
  459. position: relative;
  460. display: flex;
  461. flex-grow: 1;
  462. justify-content: center;
  463. align-items: center;
  464. background-color: #fff;
  465. font-size: 30rpx;
  466. flex-flow: column;
  467. border-radius: 60rpx;
  468. height: 2.8em;
  469. width: 45%;
  470. margin: 0 15rpx;
  471. background: #04358D;
  472. color: #fff;
  473. }
  474. .confirm-btn.gray,
  475. .confirm.gray {
  476. background:#ddd;
  477. }
  478. /* 底部弹框end */
  479. /* 悬浮按钮 */
  480. .suspension-box {
  481. position: fixed;
  482. top:860rpx;
  483. right:40rpx;
  484. z-index: 11;
  485. }
  486. .scroll-top {
  487. top: 780rpx;
  488. }
  489. .suspension-btn {
  490. display: flex;
  491. justify-content: center;
  492. align-items: center;
  493. text-align: center;
  494. width: 80rpx;
  495. height: 80rpx;
  496. border-radius: 50%;
  497. background: #fff;
  498. border: 1rpx solid #ccc;
  499. margin-top: 30rpx;
  500. }
  501. button.btn-type {
  502. background: #fff;
  503. padding: 0;
  504. margin: 0;
  505. margin-top: 30rpx;
  506. }
  507. button.btn-type::after {
  508. border: 0;
  509. }
  510. .suspension-btn image {
  511. display: block;
  512. width: 40rpx;
  513. height: 40rpx;
  514. }
  515. /* /悬浮按钮 */