myStar.scss 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. .star-container {
  2. width: 100%;
  3. min-height: 100vh;
  4. background-color: #f5f5f5;
  5. .loading-area {
  6. position: fixed;
  7. top: 0;
  8. left: 0;
  9. right: 0;
  10. bottom: 0;
  11. display: flex;
  12. flex-direction: column;
  13. justify-content: center;
  14. align-items: center;
  15. background: url("../../static/me/loadBackground.png") no-repeat top center /
  16. 100% auto,
  17. #fff;
  18. .svga-player {
  19. width: 200px;
  20. height: 200px;
  21. }
  22. }
  23. .star-content {
  24. width: 100%;
  25. padding: 20rpx;
  26. }
  27. .gender-popup {
  28. position: fixed;
  29. top: 0;
  30. left: 0;
  31. right: 0;
  32. bottom: 0;
  33. background: rgba(0, 0, 0, 0.5);
  34. display: flex;
  35. justify-content: top center;
  36. align-items: center;
  37. z-index: 1000;
  38. }
  39. .character-page {
  40. width: 100%;
  41. min-height: 100vh;
  42. background-color: #f5f5f5;
  43. display: flex;
  44. flex-direction: column;
  45. position: relative;
  46. .character-container {
  47. flex: 1;
  48. display: flex;
  49. justify-content: center;
  50. align-items: center;
  51. padding: 40rpx;
  52. margin-bottom: 120rpx; // 为底部按钮留出空间
  53. .character-image {
  54. width: 100%;
  55. // height: 800rpx; // 调整角色图片高度
  56. object-fit: contain;
  57. }
  58. }
  59. .bottom-button {
  60. position: fixed;
  61. bottom: 40rpx;
  62. left: 40rpx;
  63. right: 40rpx;
  64. height: 98rpx;
  65. background: #333333;
  66. border-radius: 49rpx;
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. color: #ffffff;
  71. font-size: 32rpx;
  72. font-weight: 500;
  73. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  74. transition: all 0.2s ease;
  75. &:active {
  76. opacity: 0.95;
  77. transform: scale(0.98);
  78. }
  79. }
  80. }
  81. }
  82. @keyframes rotate {
  83. from {
  84. transform: rotate(0deg);
  85. }
  86. to {
  87. transform: rotate(-360deg);
  88. }
  89. }
  90. @keyframes moveBall {
  91. 0% {
  92. transform: translateY(0) scale(1);
  93. opacity: 1;
  94. }
  95. 98% {
  96. transform: translateY(180rpx) scale(0.1);
  97. opacity: 0.2;
  98. }
  99. 99% {
  100. transform: translateY(180rpx) scale(0.01);
  101. opacity: 0;
  102. }
  103. 100% {
  104. transform: translateY(0) scale(1);
  105. opacity: 0;
  106. }
  107. }
  108. .form-page {
  109. width: 100%;
  110. min-height: 100vh;
  111. background: url("../../static/me/cz_bg_top.png") no-repeat top center / 100%
  112. auto,
  113. #f2f6f2;
  114. padding: 30rpx;
  115. box-sizing: border-box;
  116. .reserveASeat {
  117. width: 100vh;
  118. height: calc(108rpx + var(--status-bar-height));
  119. }
  120. .PageHeader {
  121. background: url("../../static/me/cz_bg_top.png") no-repeat top center / 100%
  122. auto,
  123. #f2f6f2;
  124. // background-position-y: var(--status-bar-height);
  125. }
  126. .form-group {
  127. margin-bottom: 20rpx;
  128. background: #fff;
  129. border-radius: 20rpx;
  130. padding: 20rpx;
  131. padding-bottom: 26rpx;
  132. .label {
  133. display: flex;
  134. align-items: center;
  135. margin-bottom: 16rpx;
  136. font-size: 28rpx;
  137. color: #333;
  138. font-weight: 400;
  139. font-size: 28rpx;
  140. color: #1f1f1f;
  141. font-family: "PingFang SC-Bold";
  142. .required {
  143. color: #ff4d4f;
  144. margin-right: 8rpx;
  145. display: none;
  146. &.error {
  147. animation: shake 0.5s ease-in-out;
  148. }
  149. }
  150. }
  151. .input {
  152. width: 100%;
  153. height: 88rpx;
  154. padding: 0 24rpx;
  155. font-size: 28rpx;
  156. background: #f2f6f2;
  157. border-radius: 16rpx;
  158. &.error {
  159. border: 2rpx solid #ff4d4f;
  160. }
  161. }
  162. .gender-options {
  163. display: flex;
  164. gap: 20rpx;
  165. .gender-option {
  166. width: 152rpx;
  167. height: 64rpx;
  168. border-radius: 16rpx;
  169. border: 2rpx solid #1f1f1f;
  170. display: flex;
  171. align-items: center;
  172. justify-content: center;
  173. font-weight: 400;
  174. font-size: 28rpx;
  175. color: #1f1f1f;
  176. font-family: "PingFang SC-Bold";
  177. image {
  178. width: 32rpx;
  179. height: 32rpx;
  180. margin-bottom: -5rpx;
  181. margin-right: 4rpx;
  182. }
  183. .other {
  184. image {
  185. margin-top: -8rpx;
  186. }
  187. }
  188. &.selected {
  189. background: #f7ffea;
  190. border-color: #7ebc00;
  191. }
  192. }
  193. }
  194. .textarea-container {
  195. position: relative;
  196. .textarea {
  197. width: 100%;
  198. height: 240rpx;
  199. background: #f5f5f5;
  200. border-radius: 12rpx;
  201. padding: 24rpx;
  202. font-size: 28rpx;
  203. &.error {
  204. border: 2rpx solid #ff4d4f;
  205. }
  206. }
  207. .word-count {
  208. position: absolute;
  209. right: 24rpx;
  210. bottom: 24rpx;
  211. font-size: 24rpx;
  212. color: #999;
  213. }
  214. }
  215. .tags-scroll {
  216. width: 100%;
  217. white-space: nowrap;
  218. }
  219. .tags-container {
  220. display: inline-flex;
  221. padding: 20rpx 0;
  222. gap: 20rpx;
  223. .tag {
  224. &.selected {
  225. background: #333;
  226. color: #fff;
  227. }
  228. }
  229. }
  230. }
  231. .submit-button {
  232. position: fixed;
  233. bottom: 40rpx;
  234. left: 40rpx;
  235. right: 40rpx;
  236. height: 98rpx;
  237. background: #333333;
  238. border-radius: 49rpx;
  239. display: flex;
  240. align-items: center;
  241. justify-content: center;
  242. color: #ffffff;
  243. font-size: 32rpx;
  244. font-weight: 500;
  245. transition: all 0.2s ease;
  246. &:active {
  247. opacity: 0.95;
  248. transform: scale(0.98);
  249. }
  250. }
  251. }
  252. @keyframes shake {
  253. 0%,
  254. 100% {
  255. transform: translateX(0);
  256. }
  257. 25% {
  258. transform: translateX(-5rpx);
  259. }
  260. 75% {
  261. transform: translateX(5rpx);
  262. }
  263. }
  264. .character-info {
  265. width: 100%;
  266. min-height: 100vh;
  267. background-color: #f2f6f2;
  268. position: relative;
  269. padding-bottom: 120rpx;
  270. .info-container {
  271. padding-bottom: 30rpx;
  272. .character-portrait {
  273. display: flex;
  274. flex-direction: column;
  275. align-items: center;
  276. margin-bottom: 40rpx;
  277. .portrait-image {
  278. width: 100%;
  279. // height: 600rpx;
  280. object-fit: contain;
  281. }
  282. }
  283. .info-section {
  284. padding: 0 20rpx;
  285. .character-name {
  286. font-size: 40rpx;
  287. font-weight: 600;
  288. color: #333;
  289. margin-bottom: 20rpx;
  290. height: 94rpx;
  291. background: #ffffff;
  292. border-radius: 20rpx;
  293. display: flex;
  294. align-items: center;
  295. padding: 22rpx 32rpx;
  296. font-weight: 400;
  297. font-size: 36rpx;
  298. font-family: PingFang SC-Bold;
  299. color: #1f1f1f;
  300. image {
  301. width: 32rpx;
  302. height: 32rpx;
  303. margin-bottom: -5rpx;
  304. margin-left: 8rpx;
  305. }
  306. .other {
  307. image {
  308. margin-top: -8rpx;
  309. }
  310. }
  311. }
  312. background: #f2f6f2;
  313. border-radius: 20rpx;
  314. padding: 30rpx;
  315. .description-box {
  316. background: #ffffff;
  317. border-radius: 16rpx;
  318. padding: 24rpx;
  319. margin-bottom: 30rpx;
  320. .description-title {
  321. font-weight: 400;
  322. font-size: 32rpx;
  323. color: #1f1f1f;
  324. font-family: "PingFang SC-Bold";
  325. display: flex;
  326. align-items: center;
  327. justify-content: space-between;
  328. padding-bottom: 20rpx;
  329. .edit-button {
  330. font-size: 24rpx;
  331. color: #999;
  332. display: flex;
  333. align-items: center;
  334. justify-content: center;
  335. .fa{
  336. color: #999 !important;
  337. font-size: 36rpx;
  338. margin-left: 10rpx;
  339. }
  340. }
  341. }
  342. .description-text {
  343. font-size: 28rpx;
  344. color: #666;
  345. line-height: 1.6;
  346. min-height: 280rpx;
  347. }
  348. }
  349. .tags-box {
  350. display: flex;
  351. flex-wrap: wrap;
  352. gap: 16rpx;
  353. padding: 16rpx 0;
  354. .tag-item {
  355. padding: 12rpx 18rpx 10rpx 18rpx;
  356. background: #fff;
  357. border-radius: 12rpx;
  358. border: 2rpx solid #E6E6E6;
  359. font-size: 24rpx;
  360. color: #666;
  361. }
  362. }
  363. }
  364. }
  365. .join-button {
  366. position: fixed;
  367. bottom: 40rpx;
  368. left: 40rpx;
  369. right: 40rpx;
  370. height: 98rpx;
  371. background: #1f1f1f;
  372. border-radius: 49rpx;
  373. display: flex;
  374. align-items: center;
  375. justify-content: center;
  376. color: #ffffff;
  377. font-size: 32rpx;
  378. font-weight: 500;
  379. box-shadow: 0 4rpx 12rpx rgba(156, 39, 176, 0.3);
  380. transition: all 0.2s ease;
  381. }
  382. }