quan.wxss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. .page {
  2. width: 100%;
  3. height: 100%;
  4. min-height: 100vh;
  5. padding-top: 59rpx;
  6. padding-bottom: 38rpx;
  7. box-sizing: border-box;
  8. position: relative;
  9. background: #000;
  10. }
  11. page{
  12. background: #f1f1f1;
  13. }
  14. .quan-view{
  15. margin-top: 40rpx;
  16. }
  17. .wrapper {
  18. width: 670rpx;
  19. height: 226rpx;
  20. margin: 0 auto;
  21. display: flex;
  22. background: linear-gradient(135deg, rgba(219, 93, 115, 1) 0%, rgba(137, 29, 34, 1) 100%);
  23. border-radius: 20rpx;
  24. margin-bottom: 28rpx;
  25. }
  26. .wrapper-ed{
  27. opacity: 0.5;
  28. width: 670rpx;
  29. height: 226rpx;
  30. margin: 0 auto;
  31. display: flex;
  32. border-radius: 20rpx;
  33. margin-bottom: 28rpx;
  34. background: linear-gradient(135deg, #999 0%, #CBC9C9 100%);
  35. }
  36. .btnBgActive-ed{
  37. box-shadow: none;
  38. background: #ccc;
  39. }
  40. .moveCm-ed{
  41. animation: none;
  42. }
  43. /*前半部分样式*/
  44. .content {
  45. position: relative;
  46. height: 229rpx;
  47. flex: 0 0 200rpx;
  48. text-align: center;
  49. overflow: hidden;
  50. border-top-left-radius: 18rpx;
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. flex-direction: column;
  55. }
  56. /*后半部分样式*/
  57. .tip {
  58. position: relative;
  59. flex: 1;
  60. height: 229rpx;
  61. box-sizing: border-box;
  62. padding-left: 20rpx;
  63. display: flex;
  64. flex-direction: column;
  65. justify-content: center;
  66. }
  67. /*中间竖直虚线样式*/
  68. .split-line {
  69. position: relative;
  70. flex: 0 0 0;
  71. margin: 0 10rpx 0 6rpx;
  72. border-left: 2rpx dashed #fff;
  73. }
  74. /*给虚线加两个伪类,基本样式如下*/
  75. .split-line:before,
  76. .split-line:after {
  77. content: '';
  78. position: absolute;
  79. width: 32rpx;
  80. height: 16rpx;
  81. background: #000;
  82. left: -18rpx;
  83. z-index: 1;
  84. }
  85. /*几个伪类化成的圆弧的样式以及位置(置于顶部)我把它放在一起了*/
  86. .content:before,
  87. .tip:before,
  88. .split-line:before {
  89. border-radius: 0 0 16rpx 16rpx;
  90. top: 0;
  91. }
  92. /*几个伪类化成的圆弧的样式以及位置(置于底部)我把它放在一起了*/
  93. .content:after,
  94. .tip:after,
  95. .split-line:after {
  96. border-radius: 16rpx 16rpx 0 0;
  97. bottom: 0;
  98. }
  99. .couponCount {
  100. width: 150rpx;
  101. height: 150rpx;
  102. font-size: 30rpx;
  103. font-family: PingFangSC-Semibold, PingFang SC;
  104. font-weight: 600;
  105. color: rgba(140, 31, 37, 1);
  106. transform: rotate(-45deg);
  107. position: absolute;
  108. text-align: center;
  109. line-height: 259rpx;
  110. top: -78rpx;
  111. left: -78rpx;
  112. background: linear-gradient(319deg, rgba(244, 219, 160, 1) 0%, rgba(255, 255, 255, 1) 100%);
  113. }
  114. .couponCount-ed {
  115. width: 150rpx;
  116. height: 150rpx;
  117. font-size: 30rpx;
  118. font-family: PingFangSC-Semibold, PingFang SC;
  119. font-weight: 600;
  120. color: rgba(140, 31, 37, 1);
  121. transform: rotate(-45deg);
  122. position: absolute;
  123. text-align: center;
  124. line-height: 259rpx;
  125. top: -78rpx;
  126. left: -78rpx;
  127. background: #333;
  128. color: #FFF;
  129. }
  130. .oilline {
  131. background: linear-gradient(to right,
  132. rgba(0, 0, 0, 0) 0%,
  133. rgba(0, 0, 0, 0) 10%,
  134. rgba(255, 255, 255, 0.3) 20%,
  135. rgba(255, 255, 255, 0.4) 30%,
  136. rgba(255, 255, 255, 0.5) 40%,
  137. rgba(255, 255, 255, 0.8) 50%,
  138. rgba(255, 255, 255, 0.5) 60%,
  139. rgba(255, 255, 255, 0.4) 70%,
  140. rgba(255, 255, 255, 0.3) 80%,
  141. rgba(0, 0, 0, 0) 90%,
  142. rgba(0, 0, 0, 0) 100%);
  143. height: 2rpx;
  144. }
  145. .linwidth227 {
  146. width: 227rpx;
  147. }
  148. .linwidth160 {
  149. width: 160rpx;
  150. }
  151. .moyfh {
  152. font-size: 69rpx;
  153. font-family: PingFangSC-Semibold, PingFang SC;
  154. font-weight: 600;
  155. color: rgba(255, 255, 255, 1);
  156. margin-right: -2rpx;
  157. }
  158. .moneyNum {
  159. font-size: 96rpx;
  160. font-family: PingFangSC-Semibold, PingFang SC;
  161. font-weight: 600;
  162. color: rgba(255, 255, 255, 1);
  163. }
  164. .couponmaes {
  165. font-size: 30rpx;
  166. font-family: PingFangSC-Semibold, PingFang SC;
  167. font-weight: 600;
  168. color: rgba(255, 255, 255, 1);
  169. width: 260rpx;
  170. overflow: hidden;
  171. text-overflow: ellipsis;
  172. display: -webkit-box;
  173. -webkit-line-clamp: 1;
  174. -webkit-box-orient: vertical;
  175. }
  176. .vnameBx {
  177. text-align: center;
  178. width: 227rpx;
  179. margin: 25rpx 0;
  180. }
  181. .btnbx {
  182. position: absolute;
  183. right: 0;
  184. top: 0;
  185. bottom: 0;
  186. display: flex;
  187. justify-content: center;
  188. align-items: center;
  189. }
  190. .btnbx-ed {
  191. position: absolute;
  192. right: 0;
  193. top: 0;
  194. bottom: 0;
  195. display: flex;
  196. justify-content: center;
  197. align-items: center;
  198. }
  199. .btnw {
  200. display: flex;
  201. justify-content: center;
  202. align-items: center;
  203. width: 148rpx;
  204. height: 148rpx;
  205. border-radius: 50%;
  206. margin-right: 30rpx;
  207. }
  208. .btnBgActive {
  209. color: rgba(140, 31, 37, 1);
  210. box-shadow: 0px 2px 29px 0px rgba(77, 12, 15, 0.56);
  211. background: linear-gradient(319deg, rgba(244, 219, 160, 1) 0%, rgba(255, 255, 255, 1) 100%);
  212. }
  213. .btnBgGray {
  214. /* box-shadow: 0px 2px 29px 0px rgba(77, 12, 15, 0.56); */
  215. color: #cc6031;
  216. border: 1px solid #cc6031;
  217. transform: rotate(-45deg);
  218. }
  219. .btnn {
  220. font-size: 30rpx;
  221. font-family: PingFangSC-Semibold, PingFang SC;
  222. font-weight: 600;
  223. width: 120rpx;
  224. height: 120rpx;
  225. border-radius: 50%;
  226. border: 1rpx solid rgba(142, 33, 39, 1);
  227. text-align: center;
  228. box-sizing: border-box;
  229. padding: 18rpx;
  230. line-height: 46rpx;
  231. }
  232. .btnn-ed{
  233. font-size: 28rpx;
  234. font-family: PingFangSC-Semibold, PingFang SC;
  235. font-weight: 600;
  236. width: 120rpx;
  237. height: 120rpx;
  238. border-radius: 50%;
  239. text-align: center;
  240. box-sizing: border-box;
  241. padding: 18rpx;
  242. line-height: 90rpx;
  243. }
  244. .moveCm {
  245. animation: scale 0.8s ease-in-out infinite alternate;
  246. }
  247. @keyframes scale {
  248. 0% {
  249. transform: scale(0.92);
  250. }
  251. 100% {
  252. transform: scale(1);
  253. }
  254. }