猎豆优选小程序

goodsDetail.scss 8.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. .page-wrap {
  2. min-height: 100vh;
  3. background-color: #F5F5F5;
  4. padding-bottom: 200rpx;
  5. .back-btn {
  6. position: fixed;
  7. left: 38rpx;
  8. top: 80rpx;
  9. width: 52rpx;
  10. height: 52rpx;
  11. z-index: 9;
  12. }
  13. .swiper-wrap {
  14. width: 100vw;
  15. height: 100vw;
  16. }
  17. .con-block{
  18. margin: 24rpx;
  19. border-radius: 30rpx;
  20. padding: 24rpx;
  21. background-color: #fff;
  22. }
  23. .salesVolume{
  24. background: url('https://ld.726p.com/ldyx_static/imgs/huo-bg.png') no-repeat;
  25. background-size: 100%;
  26. width: 200rpx;
  27. line-height: 28rpx;
  28. color: #FF4040;
  29. font-size: 24rpx;
  30. line-height: 54rpx;
  31. text-align: center;
  32. padding-left: 16rpx;
  33. }
  34. .info-wrap {
  35. .tp-wrap {
  36. display: flex;
  37. align-items: center;
  38. justify-content: space-between;
  39. .lt-wrap {
  40. display: flex;
  41. align-items: baseline;
  42. .price-title{
  43. color: #FF4040;
  44. font-size: 28rpx;
  45. line-height: 40rpx;
  46. }
  47. .price {
  48. font-size: 48rpx;
  49. color: #FF4040;
  50. font-weight: bold;
  51. line-height: 66rpx;
  52. margin-left: 12rpx;
  53. }
  54. .price-old {
  55. margin-left: 16rpx;
  56. font-size: 24rpx;
  57. line-height: 34rpx;
  58. text-decoration: line-through;
  59. color: #999999;
  60. }
  61. }
  62. .rt-wrap {
  63. display: flex;
  64. align-items: center;
  65. .btn-wrap {
  66. display: flex;
  67. align-items: center;
  68. .btn-img {
  69. width: 32rpx;
  70. height: 32rpx;
  71. }
  72. .btn-text {
  73. font-size: 25rpx;
  74. color: #999;
  75. }
  76. }
  77. }
  78. }
  79. .bm-wrap {
  80. margin-top: 20rpx;
  81. font-size: 34rpx;
  82. font-weight: bold;
  83. line-height: 48rpx;
  84. color: #333333;
  85. .shop-icon {
  86. margin-right: 6rpx;
  87. width: 32rpx;
  88. height: 32rpx;
  89. margin-top: -10rpx;
  90. border-radius: 10rpx;
  91. vertical-align: middle; // 解决图片下边框缝隙问题
  92. }
  93. }
  94. .quan-block{
  95. width: 100%;
  96. height: 132rpx;
  97. background: url('https://ld.726p.com/ldyx_static/imgs/quan-bg.png') no-repeat;
  98. background-size: 100%;
  99. margin-top: 44rpx;
  100. display: flex;
  101. align-items: center;
  102. justify-content: space-between;
  103. .quan-button{
  104. width: 213rpx;
  105. color: #FFFFFF;
  106. font-size: 36rpx;
  107. line-height: 50rpx;
  108. text-align: center;
  109. }
  110. .quan-info{
  111. flex:1;
  112. padding-left: 20rpx;
  113. .quan-info-1{
  114. color: #FFFFFF;
  115. font-size: 24rpx;
  116. line-height: 34rpx;
  117. .quan-price{
  118. color:#FFFFFF;
  119. font-size:56rpx;
  120. line-height: 70rpx;
  121. }
  122. }
  123. .quan-time{
  124. color: #FFFFFF;
  125. font-size: 22rpx;
  126. line-height: 32rpx;
  127. }
  128. }
  129. }
  130. .btm-wrap {
  131. margin-top: 10rpx;
  132. display: flex;
  133. align-items: center;
  134. justify-content: space-between;
  135. .commission-wrap {
  136. display: flex;
  137. flex-direction: column;
  138. justify-content: center;
  139. width: 346rpx;
  140. height: 108rpx;
  141. padding-left: 20rpx;
  142. color: #9F5C0A;
  143. background-color: #FEF5E3;
  144. border-radius: 4rpx;
  145. .price {
  146. font-size: 32rpx;
  147. }
  148. .tips {
  149. margin-top: 6rpx;
  150. font-size: 22rpx;
  151. }
  152. }
  153. .coupon-wrap {
  154. display: flex;
  155. flex-direction: column;
  156. justify-content: center;
  157. width: 346rpx;
  158. height: 108rpx;
  159. padding-left: 20rpx;
  160. background-image: url("https://ld.726p.com/ldyx_static/imgs/bg-quan-medium.png");
  161. background-repeat: no-repeat;
  162. background-size: 100% 100%;
  163. color: #F23D45;
  164. .price {
  165. font-size: 32rpx;
  166. }
  167. .tips {
  168. margin-top: 6rpx;
  169. font-size: 22rpx;
  170. }
  171. }
  172. }
  173. }
  174. .shop-wrap {
  175. background-color: #fff;
  176. margin-top: 10rpx;
  177. display: flex;
  178. align-items: center;
  179. .lt-wrap {
  180. display: flex;
  181. align-items: center;
  182. justify-content: center;
  183. .shop-img {
  184. border-radius: 10rpx;
  185. width: 90rpx;
  186. height: 90rpx;
  187. }
  188. }
  189. .rt-wrap {
  190. flex: 1;
  191. margin-left: 20rpx;
  192. padding-right: 40rpx;
  193. .tp-wrap {
  194. display: flex;
  195. align-items: center;
  196. justify-content: space-between;
  197. .shop-name {
  198. width: 430rpx;
  199. font-size: 34rpx;
  200. line-height: 40rpx;
  201. color: #333;
  202. overflow: hidden;
  203. white-space: nowrap;
  204. text-overflow: ellipsis;
  205. -o-text-overflow:ellipsis;
  206. }
  207. .enter-wrap {
  208. display: flex;
  209. align-items: center;
  210. font-size: 24rpx;
  211. color: #333;
  212. .enter-img {
  213. width: 10rpx;
  214. height: 20rpx;
  215. margin-left: 6rpx;
  216. }
  217. }
  218. }
  219. .point-wrap {
  220. margin-top: 20rpx;
  221. display: flex;
  222. justify-content: space-between;
  223. color: #999;
  224. font-size: 24rpx;
  225. line-height: 30rpx;
  226. }
  227. }
  228. }
  229. .recommend-wrap {
  230. margin-top: 10rpx;
  231. padding-top: 22rpx;
  232. background-color: #fff;
  233. .goods-list-wrap {
  234. padding: 20rpx 6rpx 10rpx;
  235. display: flex;
  236. justify-content: space-between;
  237. .goods-item-wrap {
  238. width: 200rpx;
  239. .goods-img {
  240. width: 200rpx;
  241. height: 200rpx;
  242. border-radius: 10rpx;
  243. vertical-align: middle;
  244. }
  245. .goods-commission {
  246. padding: 4rpx 0;
  247. text-align: center;
  248. background: linear-gradient(45deg, #F57B2A 0%, #F13840 100%);
  249. color: #fff;
  250. font-size: 20rpx;
  251. }
  252. .goods-title {
  253. margin-top: 4rpx;
  254. padding-right: 4rpx;
  255. font-size: 26rpx;
  256. line-height: 40rpx;
  257. color: #333;
  258. overflow: hidden;
  259. white-space: nowrap;
  260. text-overflow: ellipsis;
  261. -o-text-overflow:ellipsis;
  262. }
  263. .goods-price {
  264. display: flex;
  265. align-items: center;
  266. justify-content: space-between;
  267. margin-top: 4rpx;
  268. .price {
  269. font-size: 26rpx;
  270. color: #F51400;
  271. }
  272. .price-old {
  273. margin-right: 4rpx;
  274. font-size: 20rpx;
  275. color: #999;
  276. text-decoration: line-through;
  277. }
  278. }
  279. }
  280. }
  281. }
  282. .detail-wrap {
  283. margin-top: 10rpx;
  284. padding-top: 10rpx;
  285. background-color: #fff;
  286. padding-top: 20rpx;
  287. .content {
  288. .price-img {
  289. width: 100%;
  290. height: 368rpx;
  291. }
  292. }
  293. }
  294. .guess-wrap {
  295. padding-top: 10rpx;
  296. background-color: transparent;
  297. padding: 0;
  298. .goods-list-double-wrap {
  299. display: flex;
  300. justify-content: space-between;
  301. flex-wrap: wrap;
  302. background: #f5f5f5;
  303. margin:auto;
  304. margin-top: 22rpx;
  305. .verticalGoodItem{
  306. margin-bottom: 22rpx;
  307. }
  308. }
  309. }
  310. .footer-wrap {
  311. position: fixed;
  312. bottom: 0;
  313. left: 0;
  314. right: 0;
  315. background-color: #fff;
  316. display: flex;
  317. align-items: center;
  318. justify-content: center;
  319. width: 100%;
  320. height: 150rpx;
  321. padding: 25rpx;
  322. border-top: 1rpx solid #eee;
  323. .btn-wrap {
  324. background-color: #FFBB93;
  325. display: flex;
  326. align-items: center;
  327. width: 600rpx;
  328. height: 84rpx;
  329. border-radius: 84rpx;
  330. overflow: hidden;
  331. .btn-item {
  332. height: 100%;
  333. flex: 1;
  334. display: flex;
  335. justify-content: center;
  336. align-items: center;
  337. .btn-icon {
  338. margin-right: 10rpx;
  339. }
  340. .btn-text {
  341. color: #fff;
  342. font-size: 36rpx;
  343. font-weight: bold;
  344. line-height: 84rpx;
  345. }
  346. &.lt-btn {
  347. .btn-icon {
  348. width: 42rpx;
  349. height: 38rpx;
  350. }
  351. }
  352. &.rt-btn {
  353. background: linear-gradient(90deg, #FF9048 0%, #FB3F3C 100%);
  354. border-radius: 42rpx;
  355. .btn-icon {
  356. width: 42rpx;
  357. height: 44rpx;
  358. }
  359. }
  360. }
  361. }
  362. }
  363. }
  364. .btn-collect-wrap{
  365. display: flex;
  366. flex-direction: column;
  367. align-items: center;
  368. margin-right: 28rpx;
  369. .btn-collect-img{
  370. width: 42rpx;
  371. height: 42rpx;
  372. }
  373. .btn-collect-text{
  374. color: #666666;
  375. font-size: 20rpx;
  376. line-height: 28rpx;
  377. }
  378. }
  379. .block-title{
  380. line-height: 60rpx;
  381. font-size: 34rpx;
  382. padding: 0;
  383. font-weight: bold;
  384. text-align: center;
  385. }
  386. .sales2{
  387. color: #999;
  388. font-size: 24rpx;
  389. margin-left: 4rpx;
  390. text-decoration: line-through;
  391. }
  392. .commission-price-view{
  393. width: 100%;
  394. line-height: 72rpx;
  395. background: linear-gradient(90deg, #FF9048 0%, #FB3F3C 100%);
  396. border-radius: 20rpx 20rpx 0px 0px;
  397. color: #FFFFFF;
  398. font-size: 32rpx;
  399. padding: 0 44rpx;
  400. position: relative;
  401. margin-top: -30rpx;
  402. }