index.wxss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. page {
  2. height: 100%;
  3. }
  4. .container {
  5. background: url(https://si.geilicdn.com/img-310900000167962321710a026860-unadjust_750_686.png) top no-repeat,
  6. linear-gradient(90deg, #fea044, #f9565d 63%, #e63378);
  7. background-size: 100% auto;
  8. min-height: 100%;
  9. }
  10. /* 头部区域 */
  11. .header {
  12. padding: 30rpx 30rpx;
  13. }
  14. .header .item-touch {
  15. color: #fff;
  16. font-size: 24rpx;
  17. padding: 7rpx 20rpx;
  18. background: rgba(0, 0, 0, 0.17);
  19. border-radius: 22rpx;
  20. }
  21. /* 内容区域 */
  22. .content {
  23. position: relative;
  24. box-sizing: border-box;
  25. padding: 10rpx 30rpx 60rpx 30rpx;
  26. }
  27. /* 砍价信息 */
  28. .infos-wrap {
  29. background: #fff;
  30. box-shadow: 0 4rpx 40rpx 0 rgba(144, 52, 52, 0.1);
  31. padding: 0 30rpx 40rpx;
  32. border-radius: 16rpx;
  33. }
  34. .infos-top {
  35. position: relative;
  36. top: -42rpx;
  37. margin-bottom: -22rpx;
  38. }
  39. .infos-img {
  40. width: 120rpx;
  41. height: 120rpx;
  42. padding: 8rpx;
  43. background: #fff;
  44. overflow: hidden;
  45. margin: 0 auto;
  46. border-radius: 50%;
  47. }
  48. .infos-img image {
  49. width: 100%;
  50. height: 100%;
  51. border-radius: 50%;
  52. }
  53. .infos-name {
  54. margin: 8rpx auto 0;
  55. width: 80%;
  56. font-size: 26rpx;
  57. color: #9a9a9a;
  58. text-align: center;
  59. line-height: 32rpx;
  60. }
  61. .infos-prompt {
  62. text-align: center;
  63. font-size: 30rpx;
  64. color: #222;
  65. line-height: 48rpx;
  66. margin-bottom: 30rpx;
  67. }
  68. .infos-item {
  69. margin-top: 40rpx;
  70. display: flex;
  71. }
  72. .infos-item-img {
  73. flex: none;
  74. width: 180rpx;
  75. height: 180rpx;
  76. }
  77. .infos-item-img image {
  78. width: 100%;
  79. height: 100%;
  80. }
  81. .infos-item-info {
  82. margin-left: 25rpx;
  83. flex: auto;
  84. }
  85. .infos-item-name {
  86. font-size: 28rpx;
  87. color: #404040;
  88. line-height: 40rpx;
  89. height: 80rpx;
  90. }
  91. .infos-item-stock {
  92. /* margin-top: 8rpx; */
  93. }
  94. .infos-item-stock .stock-widget {
  95. display: inline-block;
  96. min-width: 100rpx;
  97. padding: 0 20rpx;
  98. background-image: linear-gradient(-90deg, #fe9c3f, #fb6253 99%);
  99. border-radius: 40rpx;
  100. height: 40rpx;
  101. font-size: 24rpx;
  102. color: #fff;
  103. line-height: 40rpx;
  104. }
  105. .infos-item-price {
  106. font-size: 0;
  107. margin-top: 12rpx;
  108. }
  109. .infos-item-price .price1 {
  110. font-size: 24rpx;
  111. line-height: 32rpx;
  112. }
  113. .infos-item-price .price2 {
  114. margin-left: 4rpx;
  115. font-size: 36rpx;
  116. line-height: 40rpx;
  117. }
  118. .infos-item-price .price3 {
  119. margin-left: 10rpx;
  120. font-size: 24rpx;
  121. color: #9a9a9a;
  122. line-height: 32rpx;
  123. text-decoration: line-through;
  124. }
  125. /* 分割线 */
  126. .connect {
  127. position: relative;
  128. height: 20rpx;
  129. }
  130. .connect-ring {
  131. position: absolute;
  132. top: -28rpx;
  133. height: 76rpx;
  134. width: 20rpx;
  135. padding: 8rpx 6rpx;
  136. box-sizing: border-box;
  137. }
  138. .connect-ring text {
  139. position: relative;
  140. z-index: 8;
  141. display: block;
  142. height: 100%;
  143. width: 100%;
  144. background: #fff;
  145. border-radius: 20rpx;
  146. }
  147. .connect-ring:after, .connect-ring:before {
  148. content: "";
  149. position: absolute;
  150. z-index: 6;
  151. left: 0;
  152. height: 20rpx;
  153. width: 20rpx;
  154. border-radius: 20rpx;
  155. }
  156. .connect-ring.bgf-ring--left {
  157. left: 20rpx;
  158. }
  159. .connect-ring.bgf-ring--left:before {
  160. top: 0;
  161. background: #f4914e;
  162. }
  163. .connect-ring.bgf-ring--left:after {
  164. bottom: 0;
  165. background: #f4914e;
  166. }
  167. .connect-ring.bgf-ring--right {
  168. right: 20rpx;
  169. }
  170. .connect-ring.bgf-ring--right:before {
  171. top: 0;
  172. background: #e03e71;
  173. }
  174. .connect-ring.bgf-ring--right:after {
  175. bottom: 0;
  176. background: #e03e71;
  177. }
  178. /* 砍价进度 */
  179. .bargain-wrap {
  180. position: relative;
  181. background: #fff;
  182. padding: 40rpx 30rpx 30rpx;
  183. box-shadow: 0 4rpx 40rpx 0 rgba(144, 52, 52, 0.1);
  184. border-radius: 16rpx;
  185. }
  186. .bargain-info {
  187. display: flex;
  188. align-items: center;
  189. justify-content: center;
  190. font-size: 28rpx;
  191. color: #404040;
  192. line-height: 40rpx;
  193. }
  194. .bargain-info .focal {
  195. margin: 0 5rpx;
  196. }
  197. .bargain-p {
  198. margin-top: 40rpx;
  199. min-height: 32rpx;
  200. }
  201. .bargain-people {
  202. font-size: 24rpx;
  203. color: #9a9a9a;
  204. text-align: center;
  205. line-height: 32rpx;
  206. }
  207. /* 进度条 */
  208. .bgn__process {
  209. position: relative;
  210. padding: 30rpx 0;
  211. }
  212. .bgn__process-bottom {
  213. z-index: 1;
  214. overflow: hidden;
  215. background-image: linear-gradient(0deg, #f0f2f7, #e8ebf3);
  216. }
  217. .bgn__process-bottom, .bgn__process-process {
  218. position: relative;
  219. height: 30rpx;
  220. border-radius: 30rpx;
  221. }
  222. .bgn__process-process {
  223. background-image: linear-gradient(90deg, #ffc108, #fde586);
  224. background: #ffc108;
  225. }
  226. .bgn__process-process.process--ani:after {
  227. content: "";
  228. position: absolute;
  229. width: 100%;
  230. height: 32rpx;
  231. top: 50%;
  232. left: 0;
  233. margin-top: -16rpx;
  234. }
  235. /* 操作按钮 */
  236. .btn-container .btn-item {
  237. color: #fff;
  238. height: 80rpx;
  239. line-height: 80rpx;
  240. text-align: center;
  241. font-size: 30rpx;
  242. border-radius: 15rpx;
  243. flex: 1;
  244. }
  245. .btn-item__buy {
  246. width: 240rpx;
  247. margin-right: 30rpx;
  248. background-image: linear-gradient(90deg, #fa9e1b, #fe5b1b);
  249. box-shadow: #fe5b1b 0 22rpx 48rpx -22rpx;
  250. }
  251. .btn-item__buy.complete {
  252. width: 360rpx;
  253. animation: btn_anim 0.9s linear infinite;
  254. transform-origin: center;
  255. }
  256. .btn-item__main {
  257. width: 320rpx;
  258. background-image: linear-gradient(90deg, #fe316c, #fd584e);
  259. box-shadow: #fd584e 0 22rpx 48rpx -22rpx;
  260. animation: btn_anim 0.9s linear infinite;
  261. transform-origin: center;
  262. }
  263. .btn-item-long {
  264. width: 460rpx;
  265. }
  266. /* 按钮动画 */
  267. @keyframes btn_anim {
  268. 0% {
  269. -webkit-transform: scale(1);
  270. transform: scale(1);
  271. }
  272. 40% {
  273. -webkit-transform: scale(1.05);
  274. transform: scale(1.05);
  275. }
  276. }
  277. /* 好友助力榜 */
  278. .records-container {
  279. margin-top: 44rpx;
  280. }
  281. .records {
  282. position: relative;
  283. color: #404040;
  284. box-shadow: 0 4rpx 40rpx 0 rgba(0, 0, 0, 0.08);
  285. }
  286. .records-back {
  287. position: absolute;
  288. left: -14rpx;
  289. right: -14rpx;
  290. top: -14rpx;
  291. height: 28rpx;
  292. border-radius: 28rpx;
  293. z-index: 1;
  294. background: #cb272d;
  295. }
  296. .records-content {
  297. position: relative;
  298. z-index: 2;
  299. background: #fff;
  300. padding: 40rpx 30rpx;
  301. }
  302. .records-h2 {
  303. display: flex;
  304. justify-content: space-between;
  305. height: 60rpx;
  306. align-items: center;
  307. }
  308. .records-h2 text {
  309. position: relative;
  310. font-weight: 700;
  311. font-size: 34rpx;
  312. line-height: 48rpx;
  313. }
  314. .friend-help {
  315. overflow: hidden;
  316. padding: 40rpx 0 20rpx;
  317. transition: max-height 0.6s ease-out;
  318. /* max-height: 280rpx; */
  319. }
  320. .records-left, .records-item {
  321. display: flex;
  322. align-items: center;
  323. justify-content: space-between;
  324. margin-bottom: 10rpx;
  325. }
  326. .records-left image {
  327. width: 80rpx;
  328. height: 80rpx;
  329. border-radius: 50%;
  330. }
  331. .records-left text {
  332. display: inline-block;
  333. margin-left: 14rpx;
  334. }
  335. .records-left text, .records-right {
  336. font-size: 28rpx;
  337. line-height: 40rpx;
  338. }
  339. .records-right .red {
  340. color: #e53a40;
  341. }