index.scss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. .hc-user-page {
  2. :deep(.user-nav-bar) {
  3. background: rgba(85, 77, 132, 0);
  4. transition: background .2s;
  5. color: white;
  6. }
  7. :deep(.hc-nav-bar) {
  8. display: flex;
  9. align-items: center;
  10. padding: .6rem .9rem;
  11. justify-content: flex-end;
  12. font-size: 46rpx;
  13. }
  14. .user-nav-bg {
  15. position: fixed;
  16. top: 0;
  17. width: 100%;
  18. background: rgb(85, 77, 132);
  19. border-radius: 0 0 40rpx 40rpx;
  20. height: calc(var(--status-bar-height) + 280rpx);
  21. background-image: url(/static/image/bg-2.jpg);
  22. background-position: center;
  23. background-size: 100%;
  24. }
  25. .hc-user-content-box {
  26. position: relative;
  27. margin: 0 28rpx;
  28. z-index: 22;
  29. }
  30. .user-nav-h {
  31. position: relative;
  32. height: 86rpx;
  33. }
  34. .user-info-card {
  35. position: relative;
  36. background: white;
  37. z-index: 4;
  38. border-radius: 14rpx;
  39. box-shadow: 0 4rpx 5rpx 0 rgba(16, 16, 16, .1);
  40. .name-avatar-bar {
  41. position: relative;
  42. padding: 38rpx;
  43. .name {
  44. font-size: 32rpx;
  45. padding-right: 240rpx;
  46. }
  47. .avatar {
  48. position: absolute;
  49. right: 44rpx;
  50. top: -60rpx;
  51. display: inline-flex;
  52. background: white;
  53. border: 8rpx solid white;
  54. border-radius: 50%;
  55. .avatar-img {
  56. border-radius: 50%;
  57. }
  58. }
  59. }
  60. .user-auth-bar {
  61. position: relative;
  62. padding: 0 38rpx;
  63. display: flex;
  64. align-items: center;
  65. .auth-tag {
  66. position: relative;
  67. display: flex;
  68. align-items: center;
  69. border-radius: 120rpx;
  70. background: #AF52DE;
  71. color: white;
  72. font-size: 22rpx;
  73. padding: 6rpx 22rpx;
  74. }
  75. .auth-tag.visit {
  76. background: #AF52DE;
  77. .name {
  78. margin-left: 10rpx;
  79. }
  80. }
  81. .auth-tag.approve {
  82. position: relative;
  83. background: #7F83F7;
  84. .name {
  85. margin-right: 30rpx;
  86. }
  87. .check-icon, .close-icon {
  88. position: absolute;
  89. font-size: 44rpx;
  90. right: 0;
  91. }
  92. .check-icon {
  93. color: #A2EF4D;
  94. }
  95. .close-icon {
  96. color: #e5e5e5;
  97. }
  98. }
  99. .auth-tag + .auth-tag {
  100. margin-left: 20rpx;
  101. }
  102. }
  103. .info-num-bar {
  104. position: relative;
  105. padding: 24rpx 0;
  106. margin-top: 24rpx;
  107. .col-bar {
  108. text-align: center;
  109. font-size: 25rpx;
  110. color: grey;
  111. .num {
  112. color: black;
  113. }
  114. .text {
  115. margin-top: 10rpx;
  116. }
  117. }
  118. }
  119. &.is-animation {
  120. animation-name: user-info-card-animation;
  121. }
  122. }
  123. .common-operation-box {
  124. position: relative;
  125. margin-top: 50rpx;
  126. z-index: 4;
  127. .title {
  128. color: #333333;
  129. }
  130. .handle-row-bar {
  131. margin-top: 20rpx;
  132. .col-item-card {
  133. position: relative;
  134. background: white;
  135. border-radius: 8rpx;
  136. padding: 20rpx;
  137. font-size: 26rpx;
  138. }
  139. }
  140. .handle-row-bar .col-item-card {
  141. display: flex;
  142. align-items: center;
  143. .content {
  144. position: relative;
  145. flex: 1;
  146. .title {
  147. font-size: 26rpx;
  148. font-weight: bold;
  149. }
  150. .text {
  151. margin-top: 6rpx;
  152. font-size: 25rpx;
  153. color: grey;
  154. }
  155. }
  156. .icon-bar {
  157. position: relative;
  158. font-size: 50rpx;
  159. display: flex;
  160. align-items: center;
  161. justify-content: center;
  162. color: #1f1f1f;
  163. }
  164. &.in-left {
  165. animation-name: user-handle-card-left-animation;
  166. }
  167. &.in-right {
  168. animation-name: user-handle-card-right-animation;
  169. }
  170. }
  171. }
  172. .news-dynamics-box {
  173. position: relative;
  174. margin-top: 60rpx;
  175. z-index: 4;
  176. color: white;
  177. background: rgb(85, 77, 132);
  178. border-radius: 12rpx;
  179. padding: 22rpx;
  180. background-image: url(/static/image/bg-3.jpg);
  181. background-position: center;
  182. background-size: 100%;
  183. .title-bar {
  184. position: relative;
  185. display: flex;
  186. align-items: center;
  187. justify-content: center;
  188. padding: 22rpx 0;
  189. .name {
  190. margin-left: 12rpx;
  191. }
  192. }
  193. &.is-animation {
  194. animation-name: user-info-card-animation;
  195. }
  196. }
  197. .exit-button-bar {
  198. position: relative;
  199. margin-top: 50rpx;
  200. margin-bottom: 30rpx;
  201. z-index: 4;
  202. .exit-button {
  203. background: white;
  204. color: #F96654;
  205. font-size: 27rpx;
  206. border-radius: 8rpx;
  207. border: none;
  208. height: 74rpx;
  209. display: flex;
  210. align-items: center;
  211. justify-content: center;
  212. margin: 0;
  213. padding: 0;
  214. &:after {
  215. display: none;
  216. }
  217. }
  218. &.is-animation {
  219. .exit-button {
  220. animation-name: user-exit-btn-animation;
  221. }
  222. }
  223. }
  224. // 动画
  225. @keyframes user-info-card-animation {
  226. 0% {
  227. transform: translatez(100px) perspective(600rpx) rotate3d(1, 0, 0, 90deg);
  228. animation-timing-function: ease-in;
  229. opacity: 0;
  230. }
  231. 40% {
  232. transform:translatez(100px) perspective(600rpx) rotate3d(1, 0, 0, -20deg);
  233. animation-timing-function: ease-in;
  234. }
  235. 60% {
  236. transform:translatez(100px) perspective(600rpx) rotate3d(1, 0, 0, 10deg);
  237. opacity: 1;
  238. }
  239. 80% {
  240. transform:translatez(100px) perspective(600rpx) rotate3d(1, 0, 0, -5deg);
  241. }
  242. 100% {
  243. transform:translatez(100px) perspective(600rpx);
  244. }
  245. }
  246. // 动画
  247. @keyframes user-handle-card-left-animation {
  248. 0%, 60%, 75%, 90%, 100% {
  249. animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  250. }
  251. 0% {
  252. opacity: 0;
  253. transform: translate3d(-3000px, 0px, 0px);
  254. }
  255. 60% {
  256. opacity: 1;
  257. transform: translate3d(25px, 0px, 0px);
  258. }
  259. 75% {
  260. transform: translate3d(-10px, 0px, 0px);
  261. }
  262. 90% {
  263. transform: translate3d(5px, 0px, 0px);
  264. }
  265. 100% {
  266. transform: none;
  267. }
  268. }
  269. // 动画
  270. @keyframes user-handle-card-right-animation {
  271. 0%, 60%, 75%, 90%, 100% {
  272. animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  273. }
  274. 0% {
  275. opacity: 0;
  276. transform: translate3d(3000px, 0px, 0px);
  277. }
  278. 60% {
  279. opacity: 1;
  280. transform: translate3d(-25px, 0px, 0px);
  281. }
  282. 75% {
  283. transform: translate3d(10px, 0px, 0px);
  284. }
  285. 90% {
  286. transform: translate3d(-5px, 0px, 0px);
  287. }
  288. 100% {
  289. transform: none;
  290. }
  291. }
  292. //动画
  293. @keyframes user-exit-btn-animation {
  294. 0%, 60%, 75%, 90%, 100% {
  295. animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  296. }
  297. 0% {
  298. opacity: 0;
  299. transform: translate3d(0px, 3000px, 0px);
  300. }
  301. 60% {
  302. opacity: 1;
  303. transform: translate3d(0px, -20px, 0px);
  304. }
  305. 75% {
  306. transform: translate3d(0px, 10px, 0px);
  307. }
  308. 90% {
  309. transform: translate3d(0px, -5px, 0px);
  310. }
  311. 100% {
  312. transform: translate3d(0px, 0px, 0px);
  313. }
  314. }
  315. }