common.scss 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. $pagegap:32rpx;
  2. .page-wrap{padding: $pagegap;}
  3. .top-search{
  4. position: absolute;
  5. z-index: 31;
  6. background-color: rgba(0,0,0,0.04);
  7. border-radius: 100rpx;
  8. margin-bottom: 20rpx;
  9. margin-left: $pagegap;
  10. }
  11. .search-wrap{
  12. background-color: #fff;
  13. position: relative;
  14. padding: 20rpx;
  15. margin-bottom: 24rpx;
  16. }
  17. .search-wrap::after {
  18. content: "";
  19. position: absolute;
  20. width: 100%;
  21. height: 14rpx;
  22. bottom: -20rpx;
  23. left: 0;
  24. background: linear-gradient(to bottom, #F5F5F5, #fff);
  25. z-index: -1;
  26. }
  27. .search-wrap{
  28. .position{
  29. font-size: 28rpx;
  30. font-weight: bold;
  31. color: #2D2D2D;
  32. /deep/ .u-icon{
  33. position: relative;
  34. top: 5rpx;
  35. margin-left: 8rpx;
  36. }
  37. }
  38. .search-out{
  39. flex: 1;
  40. border: 1px solid #DADADA;
  41. border-radius: 50rpx;
  42. margin-left: 24rpx;
  43. }
  44. .conditions{
  45. // margin-top: 48rpx;
  46. .item{
  47. margin: 0 24rpx;
  48. padding: 48rpx 0 20rpx;
  49. font-size: 24rpx;
  50. font-weight: 400;
  51. color: #363636;
  52. .text{
  53. margin-right: 10rpx;
  54. }
  55. }
  56. }
  57. }
  58. .gray{
  59. color: #999;
  60. }
  61. .red{
  62. color: #FF3C3F;
  63. }
  64. .view-wrap{
  65. padding: 30rpx 20rpx;
  66. }
  67. .full-btn{
  68. background-color: #F01414;
  69. color: #fff;
  70. border-radius: 44rpx;
  71. padding: 22rpx 0;
  72. text-align: center;
  73. margin-bottom: 40rpx;
  74. margin-top: 20rpx;
  75. font-weight: bold;
  76. &.gray{
  77. background-color: #ddd;
  78. color: #999;
  79. }
  80. &.white{
  81. background-color: #fff;
  82. color: #606060;
  83. }
  84. &.red{
  85. background-color: #ED0000;
  86. color: #fff;
  87. }
  88. }
  89. .single-til{
  90. margin-bottom: 20rpx;
  91. .text{
  92. font-size: 32rpx;
  93. color: #333;
  94. font-weight: 600;
  95. .sub-title{
  96. margin-left: 20rpx;
  97. font-size: 24rpx;
  98. font-weight: 400;
  99. color: #999999;
  100. }
  101. }
  102. .more-text{
  103. font-size: 24rpx;
  104. color: #999;
  105. }
  106. }
  107. .date-list{
  108. .date-item{
  109. position: relative;
  110. overflow: hidden;
  111. flex: 1;
  112. background: #FFFFFF;
  113. border-radius: 16rpx;
  114. border: 2rpx solid #7F7F7F;
  115. text-align: center;
  116. margin: 0 8rpx;
  117. box-sizing: border-box;
  118. &.active{
  119. border-color: #ED0000;
  120. background-color: #FFC8C8 ;
  121. .name,.date{
  122. color: #ED0000;
  123. }
  124. .selected-img{
  125. display: block;
  126. }
  127. }
  128. &.stock-over{
  129. // border-color: #7F7F7F;
  130. background-color: #FFFFFF ;
  131. .name,.date{
  132. color: #7F7F7F;
  133. }
  134. }
  135. .selected-img{
  136. width: 32rpx;
  137. height: 32rpx;
  138. position: absolute;
  139. right: 0;
  140. bottom: 0;
  141. display: none;
  142. }
  143. &.dot::after{
  144. content: '';
  145. width: 4px;
  146. height: 4px;
  147. border-radius: 50%;
  148. background-color: #ED0000;
  149. position: absolute;
  150. right: 10rpx;
  151. top: 5px; }
  152. .name{
  153. padding-top: 26rpx;
  154. margin-bottom: 12rpx;
  155. font-size: 24rpx;
  156. font-weight: 400;
  157. color: #7F7F7F;
  158. line-height: 36rpx;
  159. }
  160. .sold-out{
  161. position: absolute;
  162. right: -2rpx;
  163. top: -2rpx;
  164. background: #D8D8D8;
  165. border-radius: 0rpx 16rpx 0rpx 16rpx;
  166. font-weight: bold;
  167. font-size: 20rpx;
  168. color: #3C3838;
  169. padding: 4rpx 10rpx;
  170. box-sizing: border-box;
  171. }
  172. .date{
  173. font-size: 28rpx;
  174. font-weight: 500;
  175. color: #2D2D2D;
  176. line-height: 42rpx;
  177. padding-bottom: 28rpx;
  178. }
  179. }
  180. .more-date{
  181. height: 148rpx;
  182. .text{
  183. margin-left: 20rpx;
  184. margin-right: 10rpx;
  185. font-size: 24rpx;
  186. font-weight: 400;
  187. color: #7F7F7F;
  188. line-height: 36rpx;
  189. }
  190. }
  191. }
  192. .date-block.generic-block{
  193. .date-list{
  194. display: grid;
  195. grid-template-columns: repeat(3, 1fr);
  196. gap: 10rpx;
  197. }
  198. .name{
  199. padding-top: 0;
  200. margin-bottom: 0;
  201. display: grid;
  202. align-content: center;
  203. height: 52px;
  204. // padding: 34rpx 0;
  205. }
  206. }
  207. // 分享 海报
  208. .share-option{
  209. transform: translateY(100%);
  210. .overlay{
  211. position: fixed;
  212. left: 0;
  213. top: 0;
  214. width: 100vw;
  215. height: 100vh;
  216. background-color: rgba(0, 0, 0, 0.35);
  217. transform: translateY(-100%);
  218. }
  219. &.shareShow{
  220. transform: translateY(0);
  221. }
  222. position: fixed;
  223. width: 100%;
  224. left: 0;
  225. bottom: 0;
  226. z-index: 50;
  227. background-color: #fff;
  228. .share-option-item{
  229. position: relative;
  230. height: 46px;
  231. line-height: 46px;
  232. border: 0;
  233. background-color: #fff;
  234. text-align: center;
  235. border-radius: 0;
  236. border-bottom: 1px solid #eee;
  237. font-size: 30rpx;
  238. }
  239. .wx-share{
  240. border-bottom: 0;
  241. }
  242. }
  243. .poster-wrap{
  244. position: fixed;
  245. left: 0;
  246. top: 0;
  247. width: 100%;
  248. height: 100vh;
  249. .poster-inner{
  250. flex: 1;
  251. margin: 0 75rpx;
  252. .close-wrap{
  253. display: flex;
  254. justify-content: flex-end;
  255. margin-bottom: 16rpx;
  256. }
  257. }
  258. .poster{
  259. position: relative;
  260. // padding-bottom: 90rpx;
  261. background-color: transparent;
  262. .posterBg{
  263. position: absolute;
  264. left: 0;
  265. bottom: 0;
  266. right: 0;
  267. width: 100%;
  268. z-index: 1;
  269. }
  270. .placard{
  271. position: relative;
  272. z-index: 10;
  273. }
  274. .bottom{
  275. position: relative;
  276. z-index: 20;
  277. margin: 33rpx 40rpx 0;
  278. .left{
  279. margin-right: 58rpx;
  280. .price{
  281. font-size: 22rpx;
  282. font-weight: 600;
  283. color: #FF3538;
  284. line-height: 30rpx;
  285. margin-bottom: 10rpx;
  286. .num{
  287. font-size: 40rpx;
  288. font-weight: 600;
  289. margin-left: 5rpx;
  290. }
  291. }
  292. .goodsName{
  293. font-size: 30rpx;
  294. font-weight: 400;
  295. color: #333333;
  296. line-height: 38rpx;
  297. margin-bottom: 16rpx;
  298. }
  299. .slogan{
  300. font-size: 26rpx;
  301. font-weight: 600;
  302. line-height: 37rpx;
  303. }
  304. }
  305. .right{
  306. text-align: center;
  307. .imgTip{
  308. margin-top: 12rpx;
  309. font-size: 20rpx;
  310. font-weight: 400;
  311. color: #333333;
  312. line-height: 28rpx;
  313. }
  314. .qrcode{
  315. width: 108rpx;
  316. height:108rpx;
  317. }
  318. }
  319. }
  320. }
  321. .poster-btn{
  322. height: 88rpx;
  323. line-height: 88rpx;
  324. border-radius: 44rpx;
  325. text-align: center;
  326. color: #fff;
  327. margin-top: 40rpx;
  328. font-size: 32rpx;
  329. font-weight: 600;
  330. background: linear-gradient(90deg, #FF7979 0%, #ED0000 100%);
  331. }
  332. }
  333. // 分享 海报
  334. // 富文本
  335. .parse-content{
  336. font-size: 26rpx;
  337. font-family: SourceHanSansCN, SourceHanSansCN;
  338. font-weight: 400;
  339. color: #4E4E4E;
  340. line-height: 40rpx;
  341. rich-text,p{
  342. display: block;
  343. margin-bottom: 8px;
  344. }
  345. }
  346. .coupon-list{
  347. .item{
  348. position: relative;
  349. margin-bottom: 16rpx;
  350. background-size: contain;
  351. text-align: center;
  352. background-repeat: no-repeat;
  353. height: 236rpx;
  354. &.ifReceive{
  355. .right {
  356. .btn{
  357. background-color: #FFC4C4;
  358. }
  359. }
  360. }
  361. .content{
  362. // padding-top: 30rpx;
  363. height: calc( 236rpx - 40rpx );
  364. }
  365. .left{
  366. width: 34%;
  367. padding-left: 6rpx;
  368. .quota{
  369. font-weight: 500;
  370. font-size: 28rpx;
  371. background-clip: text;
  372. text-fill-color: transparent;
  373. background: linear-gradient(180deg, #FF9B81 0%, #FF1D45 100%);
  374. -webkit-background-clip: text;
  375. -webkit-text-fill-color: transparent; /* 使用 WebKit 前缀以支持 Safari 和旧版本的 Chrome */
  376. }
  377. .number{
  378. font-weight: bold;
  379. font-size: 100rpx;
  380. &.small{
  381. font-size: 54rpx;
  382. }
  383. }
  384. .condition{
  385. font-weight: 400;
  386. font-size: 22rpx;
  387. color: #D56442;
  388. line-height: 34rpx
  389. }
  390. }
  391. .center{
  392. flex: 1;
  393. text-align: left;
  394. padding-left: 40rpx;
  395. .name{
  396. font-weight: bold;
  397. font-size: 28rpx;
  398. color: #C5412B;
  399. line-height: 42rpx;
  400. margin-bottom: 16rpx;
  401. &.small{
  402. font-size: 24rpx;
  403. }
  404. }
  405. .condition{
  406. font-weight: 400;
  407. font-size: 22rpx;
  408. color: #D56442;
  409. line-height: 34rpx;
  410. }
  411. .tip{
  412. font-weight: 400;
  413. font-size: 22rpx;
  414. color: #D56442;
  415. line-height: 30rpx;
  416. }
  417. }
  418. .bottom-time{
  419. position: absolute;
  420. left: 48rpx;
  421. bottom: 18rpx;
  422. font-weight: 400;
  423. font-size: 22rpx;
  424. color: #C5412B;
  425. }
  426. .right{
  427. // flex: 1;
  428. padding-top: 20rpx;
  429. .btn{
  430. display: inline-block;
  431. width: 144rpx;
  432. text-align: center;
  433. height: 50rpx;
  434. line-height: 50rpx;
  435. background: #FF1212;
  436. border-radius: 25rpx;
  437. margin-bottom: 14rpx;
  438. margin-right: 30rpx;
  439. font-weight: bold;
  440. font-size: 24rpx;
  441. color: #fff;
  442. }
  443. .time{
  444. font-weight: 400;
  445. font-size: 20rpx;
  446. color: #FEF1D3;
  447. }
  448. }
  449. .type{
  450. position: absolute;
  451. left: 8rpx;
  452. top: 22rpx;
  453. font-weight: 500;
  454. font-size: 20rpx;
  455. color: #FFF6E1;
  456. transform: rotate(-45deg);
  457. }
  458. .status-img{
  459. position: absolute;
  460. top: 40rpx;
  461. left: 66%;
  462. width: 120rpx;
  463. height: 94rpx;
  464. }
  465. }
  466. }