style.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828
  1. page{
  2. }
  3. // 顶部导航栏样式
  4. .top-navbar {
  5. background: #fff;
  6. .navbar-content {
  7. display: flex;
  8. align-items: center;
  9. justify-content: space-between;
  10. padding: 32rpx;
  11. .navbar-left {
  12. display: flex;
  13. align-items: center;
  14. justify-content: center;
  15. }
  16. .navbar-center {
  17. flex: 1;
  18. display: flex;
  19. justify-content: flex-start;
  20. margin-left: 40rpx;
  21. .user-info {
  22. display: flex;
  23. align-items: center;
  24. .avatar-container {
  25. position: relative;
  26. margin-right: 20rpx;
  27. .user-avatar {
  28. width: 70rpx;
  29. height: 70rpx;
  30. border-radius: 50%;
  31. }
  32. .status-indicator {
  33. position: absolute;
  34. bottom: 4rpx;
  35. right: 4rpx;
  36. width: 16rpx;
  37. height: 16rpx;
  38. background: #4CAF50;
  39. border-radius: 50%;
  40. border: 2rpx solid #fff;
  41. }
  42. }
  43. .user-details {
  44. .user-name {
  45. color: rgba(29, 33, 34, 1);
  46. font-family: DM Sans;
  47. font-size: 14px;
  48. font-weight: 400;
  49. line-height: 18px;
  50. letter-spacing: 0px;
  51. text-align: left;
  52. }
  53. .user-title {
  54. color: rgba(153, 153, 153, 1);
  55. font-family: DM Sans;
  56. font-size: 12px;
  57. font-weight: 400;
  58. line-height: 16px;
  59. letter-spacing: 0px;
  60. text-align: left;
  61. }
  62. }
  63. }
  64. }
  65. .navbar-right {
  66. position: relative;
  67. width: 60rpx;
  68. height: 60rpx;
  69. display: flex;
  70. align-items: center;
  71. justify-content: center;
  72. .more-icon {
  73. display: block;
  74. width: 52rpx;
  75. height: 52rpx;
  76. }
  77. .more-button-list {
  78. position: absolute;
  79. right: 40rpx;
  80. padding: 20rpx 0;
  81. background: #fff;
  82. border-radius: 4px;
  83. box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12),0px 6px 16px 0px rgba(0, 0, 0, 0.08),0px 9px 28px 8px rgba(0, 0, 0, 0.05);
  84. .button-item {
  85. width: 200rpx;
  86. line-height: 72rpx;
  87. text-align: center;
  88. color: rgba(102, 102, 102, 1);
  89. font-size: 14px;
  90. font-weight: 400;
  91. }
  92. }
  93. }
  94. }
  95. }
  96. // 顶部固定按钮
  97. .topSe {
  98. padding: 20rpx 0;
  99. }
  100. @font-face {font-family:"HMfont-home";src:url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAn8AAsAAAAAE1wAAAmvAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAA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6ga4Uq+wWdEfo6NVTmr1oVkYoye2NvfCWLmYQx0sjozFSxszhZ4Ctjb7QtavLQDNa0L5HRZQYJYxrNLbJR4QhZvOV46Fm/lqB428nsrJSx/OwbEgYA') format('woff2');}
  101. .icon {
  102. font-family:"HMfont-home" !important;
  103. font-size:56upx;
  104. font-style:normal;
  105. color: #016BF6;
  106. &.biaoqing:before {
  107. content: "\e797";
  108. }
  109. &.jianpan:before {
  110. content: "\e7b2";
  111. }
  112. &.yuyin:before {
  113. content: "\e805";
  114. }
  115. &.tupian:before {
  116. content: "\e639";
  117. }
  118. &.chehui:before {
  119. content: "\e904";
  120. }
  121. &.luyin:before {
  122. content: "\e905";
  123. }
  124. &.luyin2:before {
  125. content: "\e677";
  126. }
  127. &.other-voice:before {
  128. content: "\e667";
  129. }
  130. &.my-voice:before {
  131. content: "\e906";
  132. }
  133. &.hongbao:before {
  134. content: "\e626";
  135. }
  136. &.tupian2:before {
  137. content: "\e674";
  138. }
  139. &.paizhao:before {
  140. content: "\e63e";
  141. }
  142. &.add:before {
  143. content: "\e655";
  144. }
  145. &.close:before {
  146. content: "\e607";
  147. }
  148. &.to:before {
  149. content: "\e675";
  150. }
  151. }
  152. .hidden{
  153. display: none !important;
  154. }
  155. .popup-layer{
  156. &.showLayer{transform: translate3d(0,-42vw,0);}
  157. transition: all .15s linear;
  158. width: 100%;
  159. height: 200vw;
  160. padding: 20upx 2%;
  161. background-color: #FFFFFF;
  162. position: fixed;
  163. z-index: 20;
  164. top: 100%;
  165. .emoji-swiper{
  166. height: 40vw;
  167. swiper-item{
  168. display: flex;
  169. align-content: flex-start;
  170. flex-wrap: wrap;
  171. view{
  172. width: 12vw;
  173. height: 12vw;
  174. display: flex;
  175. justify-content: center;
  176. align-items: center;
  177. image{
  178. width: 8.4vw;
  179. height: 8.4vw;
  180. }
  181. }
  182. }
  183. }
  184. .more-layer{
  185. width: 100%;
  186. height: 200vw;
  187. .list{
  188. width: 100%;
  189. display: flex;
  190. flex-wrap: wrap;
  191. .box{
  192. width: 18vw;
  193. // height: 18vw;
  194. border-radius: 20upx;
  195. background-color: #FFFFFF;
  196. display: flex;
  197. justify-content: center;
  198. align-items: center;
  199. margin: 0 3vw 2vw 3vw;
  200. .icon{
  201. font-size: 70upx;
  202. }
  203. }
  204. }
  205. }
  206. }
  207. .input-box{
  208. width: 100%;
  209. min-height: 100upx;
  210. padding: 0 1%;
  211. background-color: #FFFFFF;
  212. display: flex;
  213. position: fixed;
  214. z-index: 20;
  215. bottom:-2upx;
  216. padding-bottom: 20rpx;
  217. &.showLayer{transform: translate3d(0,-42vw,0);}
  218. transition: all .15s linear;
  219. box-shadow: 0px -4px 40px 0px rgba(31, 63, 102, 0.05);
  220. // border-bottom: solid 1upx #ddd;
  221. .voice,.more{
  222. flex-shrink: 0;
  223. width: 90upx;
  224. height: 100upx;
  225. display: flex;
  226. justify-content: center;
  227. align-items: center;
  228. }
  229. .send{
  230. //H5发送按钮左边距
  231. /* #ifdef H5 */
  232. margin-left: 20upx;
  233. /* #endif */
  234. flex-shrink: 0;
  235. width: 100upx;
  236. height: 100upx;
  237. display: flex;
  238. align-items: center;
  239. .btn{
  240. width: 90upx;
  241. height: 56upx;
  242. display: flex;
  243. justify-content: center;
  244. align-items: center;
  245. background:#016BF6;
  246. color: #fff;
  247. border-radius: 6upx;
  248. font-size: 24upx;
  249. }
  250. }
  251. .textbox{
  252. width: 100%;
  253. min-height: 70upx;
  254. margin-top: 15upx;
  255. .voice-mode{
  256. width: calc(100% - 2upx);
  257. height: 68upx;
  258. border-radius: 70upx;
  259. border:solid 1upx #016BF6;
  260. display: flex;
  261. justify-content: center;
  262. align-items: center;
  263. font-size: 28upx;
  264. background-color: #016BF6;
  265. color: #FFFFFF;
  266. &.recording{
  267. background-color: #016BF6;
  268. }
  269. }
  270. .text-mode{
  271. width: 100%;
  272. min-height: 70upx;
  273. display: flex;
  274. background: #F5F5F5;
  275. border-radius: 8px;
  276. .box{
  277. width: 100%;
  278. padding-left: 30upx;
  279. min-height: 70upx;
  280. display: flex;
  281. align-items: center;
  282. textarea{
  283. width: 100%;
  284. }
  285. }
  286. .changgui{
  287. flex-shrink: 0;
  288. width: 80upx;
  289. padding-left: 10upx;
  290. height: 70upx;
  291. display: flex;
  292. justify-content: center;
  293. align-items: center;
  294. }
  295. .em{
  296. flex-shrink: 0;
  297. width: 80upx;
  298. padding-left: 10upx;
  299. height: 70upx;
  300. display: flex;
  301. justify-content: center;
  302. align-items: center;
  303. }
  304. }
  305. }
  306. }
  307. .record{
  308. width: 40vw;
  309. height: 40vw;
  310. position: fixed;
  311. top: 55%;
  312. left: 30%;
  313. background-color: rgba(0,0,0,.6);
  314. border-radius: 20upx;
  315. .ing{
  316. width: 100%;
  317. height: 30vw;
  318. display: flex;
  319. justify-content: center;
  320. align-items: center;
  321. // 模拟录音音效动画
  322. @keyframes volatility {
  323. 0% {background-position: 0% 130%;}
  324. 20% {background-position: 0% 150%;}
  325. 30% {background-position: 0% 155%;}
  326. 40% {background-position: 0% 150%;}
  327. 50% {background-position: 0% 145%;}
  328. 70% {background-position: 0% 150%;}
  329. 80% {background-position: 0% 155%;}
  330. 90% {background-position: 0% 140%;}
  331. 100% {background-position: 0% 135%;}
  332. }
  333. .icon{
  334. background-image:linear-gradient(to bottom,#f09b37,#fff 50%);
  335. background-size:100% 200%;
  336. animation: volatility 1.5s ease-in-out -1.5s infinite alternate;
  337. -webkit-background-clip:text;
  338. -webkit-text-fill-color:transparent;
  339. font-size: 150upx;
  340. color: #f09b37;
  341. }
  342. }
  343. .cancel{
  344. width: 100%;
  345. height: 30vw;
  346. display: flex;
  347. justify-content: center;
  348. align-items: center;
  349. .icon{
  350. color: #fff;
  351. font-size: 150upx;
  352. }
  353. }
  354. .tis{
  355. width: 100%;
  356. height: 10vw;
  357. display: flex;
  358. justify-content: center;
  359. font-size: 28upx;
  360. color: #fff;
  361. &.change{
  362. color: #f09b37;
  363. }
  364. }
  365. }
  366. .content{
  367. width: 100%;
  368. .msg-list{
  369. width: 96%;
  370. padding: 0 2%;
  371. position: absolute;
  372. top: 0;
  373. bottom: 100upx;
  374. .loading{
  375. //loading动画
  376. display: flex;
  377. justify-content: center;
  378. @keyframes stretchdelay {
  379. 0%, 40%, 100% {
  380. transform: scaleY(0.6);
  381. }
  382. 20% {
  383. transform: scaleY(1.0);
  384. }
  385. }
  386. .spinner {
  387. margin: 20upx 0;
  388. width: 60upx;
  389. height: 100upx;
  390. display: flex;
  391. align-items: center;
  392. justify-content: space-between;
  393. view {
  394. background-color: #f06c7a;
  395. height: 50upx;
  396. width: 6upx;
  397. border-radius: 6upx;
  398. animation: stretchdelay 1.2s infinite ease-in-out;
  399. }
  400. .rect2 {
  401. animation-delay: -1.1s;
  402. }
  403. .rect3 {
  404. animation-delay: -1.0s;
  405. }
  406. .rect4 {
  407. animation-delay: -0.9s;
  408. }
  409. .rect5 {
  410. animation-delay: -0.8s;
  411. }
  412. }
  413. }
  414. .row{
  415. .system{
  416. display: flex;
  417. justify-content: center;
  418. view{
  419. padding: 0 30upx;
  420. height: 50upx;
  421. display: flex;
  422. justify-content: center;
  423. align-items: center;
  424. background-color: #c9c9c9;
  425. color: #fff;
  426. font-size: 24upx;
  427. border-radius: 40upx;
  428. }
  429. .red-envelope{
  430. image{
  431. margin-right: 5upx;
  432. width: 30upx;
  433. height: 30upx;
  434. }
  435. }
  436. }
  437. &:first-child{
  438. margin-top: 20upx;
  439. }
  440. padding: 20upx 0;
  441. .my .left,.other .right{
  442. width: 100%;
  443. display: flex;
  444. .bubble{
  445. max-width: 70%;
  446. min-height: 50upx;
  447. border-radius: 10upx;
  448. padding: 15upx 20upx;
  449. display: flex;
  450. align-items: center;
  451. font-size: 32upx;
  452. word-break: break-word;
  453. &.img{
  454. background-color: transparent;
  455. padding:0;
  456. overflow: hidden;
  457. image{
  458. max-width: 350upx;
  459. max-height: 350upx;
  460. }
  461. }
  462. &.red-envelope{
  463. background-color: transparent;
  464. padding:0;
  465. overflow: hidden;
  466. position: relative;
  467. justify-content: center;
  468. align-items: flex-start;
  469. image{
  470. width: 250upx;
  471. height: 313upx;
  472. }
  473. .tis{
  474. position: absolute;
  475. top: 6%;
  476. font-size: 26upx;
  477. color: #9c1712;
  478. }
  479. .blessing{
  480. position: absolute;
  481. bottom: 14%;
  482. color: #e9b874;
  483. width: 80%;
  484. text-align: center;
  485. overflow: hidden;
  486. // 最多两行
  487. display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;
  488. }
  489. }
  490. &.voice{
  491. .icon{
  492. font-size: 40upx;
  493. display: flex;
  494. align-items: center;
  495. }
  496. .icon:after
  497. {
  498. content:" ";
  499. width: 53upx;
  500. height: 53upx;
  501. border-radius: 100%;
  502. position: absolute;
  503. box-sizing: border-box;
  504. }
  505. .length{
  506. font-size: 28upx;
  507. }
  508. }
  509. }
  510. }
  511. .my .right,.other .left{
  512. flex-shrink: 0;
  513. width: 80upx;
  514. height: 80upx;
  515. image{
  516. width: 80upx;
  517. height: 80upx;
  518. border-radius: 10upx;
  519. }
  520. }
  521. .my{
  522. width: 100%;
  523. display: flex;
  524. justify-content: flex-end;
  525. .left{
  526. min-height: 80upx;
  527. align-items: center;
  528. justify-content: flex-end;
  529. .bubble{
  530. background-color: #f06c7a;
  531. color: #fff;
  532. &.voice{
  533. .icon{
  534. color: #fff;
  535. }
  536. .length{
  537. margin-right: 20upx;
  538. }
  539. }
  540. &.play{
  541. @keyframes my-play {
  542. 0% {
  543. transform: translateX(80%);
  544. }
  545. 100% {
  546. transform: translateX(0%);
  547. }
  548. }
  549. .icon:after
  550. {
  551. border-left: solid 10upx rgba(240,108,122,.5);
  552. animation: my-play 5s linear infinite;
  553. }
  554. }
  555. }
  556. }
  557. .right{
  558. margin-left: 15upx;
  559. }
  560. }
  561. .other{
  562. width: 100%;
  563. display: flex;
  564. .left{
  565. margin-right: 15upx;
  566. }
  567. .right{
  568. flex-wrap: wrap;
  569. .username{
  570. width: 100%;
  571. height: 45upx;
  572. font-size: 24upx;
  573. color: #999;
  574. display: flex;
  575. .name{
  576. margin-right: 50upx;
  577. }
  578. }
  579. .bubble{
  580. background-color: #fff;
  581. color: #333;
  582. &.voice{
  583. .icon{
  584. color: #333;
  585. }
  586. .length{
  587. margin-left: 20upx;
  588. }
  589. }
  590. &.play{
  591. @keyframes other-play {
  592. 0% {
  593. transform: translateX(-80%);
  594. }
  595. 100% {
  596. transform: translateX(0%);
  597. }
  598. }
  599. .icon:after
  600. {
  601. border-right: solid 10upx rgba(255,255,255,.8);
  602. animation: other-play 1s linear infinite;
  603. }
  604. }
  605. }
  606. }
  607. }
  608. }
  609. }
  610. }
  611. .windows{
  612. .mask{
  613. position: fixed;
  614. top: 100%;
  615. width: 100%;
  616. height: 100%;
  617. z-index: 1000;
  618. background-color: rgba(0,0,0,.6);
  619. opacity: 0;
  620. transition: opacity .2s ease-out;
  621. }
  622. .layer{
  623. position: fixed;
  624. width: 80%;
  625. height: 70%;
  626. left: 10%;
  627. z-index: 1001;
  628. border-radius: 20upx;
  629. overflow: hidden;
  630. top:100%;
  631. transform: scale3d(.5,.5,1);
  632. transition: all .2s ease-out;
  633. }
  634. &.show{
  635. display: block;
  636. .mask{
  637. top: 0;
  638. opacity: 1;
  639. }
  640. .layer{
  641. transform: translate3d(0,-85vh,0) scale3d(1,1,1);
  642. }
  643. }
  644. &.hide{
  645. display: block;
  646. .mask{
  647. top: 0;
  648. opacity: 0;
  649. }
  650. .layer{
  651. //transform: translate3d(0,-85vh,0) scale3d(.5,.5,1);
  652. }
  653. }
  654. }
  655. .open-redenvelope{
  656. width: 100%;
  657. height: 70vh;
  658. background-color: #cf3c35;
  659. position: relative;
  660. .top{
  661. width: 100%;
  662. background-color: #fe5454;
  663. display: flex;
  664. justify-content: center;
  665. flex-wrap: wrap;
  666. border-radius: 0 0 100% 100%;
  667. box-shadow: inset 0 -20upx 0 #9c1712;
  668. .close-btn{
  669. width: 100%;
  670. height: 80upx;
  671. display: flex;
  672. justify-content: flex-end;
  673. margin-bottom: 30upx;
  674. .icon{
  675. color: #9c1712;
  676. margin-top: 10upx;
  677. margin-right: 10upx;
  678. }
  679. }
  680. image{
  681. width: 130upx;
  682. height: 130upx;
  683. border: solid 12upx #cf3c35;
  684. border-radius: 100%;
  685. margin-bottom: -65upx;
  686. }
  687. margin-bottom: 65upx;
  688. }
  689. .from,.blessing,.money,.showDetails{
  690. width: 90%;
  691. padding: 5upx 5%;
  692. display: flex;
  693. justify-content: center;
  694. font-size: 32upx;
  695. color: #fff;
  696. }
  697. .money{
  698. font-size: 100upx;
  699. color: #f8d757;
  700. display: flex;
  701. padding-top: 20upx;
  702. }
  703. .showDetails{
  704. position: absolute;
  705. bottom: 20upx;
  706. align-items: center;
  707. font-size: 28upx;
  708. color: #f8d757;
  709. .icon{
  710. font-size: 26upx;
  711. color: #f8d757;
  712. }
  713. }
  714. }
  715. // 交换手机号弹窗样式
  716. .phone-exchange-popup {
  717. border-radius: 24rpx;
  718. overflow: hidden;
  719. .phone-exchange-header {
  720. position: relative;
  721. height: 280rpx;
  722. overflow: hidden;
  723. background: #ff6b35; // 备用背景色
  724. .phone-exchange-bg {
  725. width: 100%;
  726. height: 100%;
  727. object-fit: cover;
  728. object-position: center;
  729. display: block;
  730. }
  731. .phone-exchange-overlay {
  732. position: absolute;
  733. top: 0;
  734. left: 0;
  735. right: 0;
  736. bottom: 0;
  737. background: rgba(255, 255, 255, 0.1);
  738. display: flex;
  739. align-items: center;
  740. justify-content: center;
  741. .phone-number-mask {
  742. background: rgba(255, 255, 255, 0.8);
  743. padding: 20rpx 40rpx;
  744. border-radius: 12rpx;
  745. font-size: 32rpx;
  746. font-weight: bold;
  747. color: #333;
  748. }
  749. }
  750. }
  751. .phone-exchange-content {
  752. padding: 40rpx 30rpx;
  753. text-align: left;
  754. border-bottom: 0.5px solid rgba(153, 153, 153, 0.2);
  755. .phone-exchange-title {
  756. color: rgba(88, 88, 88, 1);
  757. font-family: DM Sans;
  758. font-size: 16px;
  759. font-weight: 400;
  760. line-height: 16px;
  761. letter-spacing: 0%;
  762. text-align: left;
  763. margin-bottom: 20rpx;
  764. }
  765. .phone-exchange-desc {
  766. color: rgba(158, 158, 158, 1);
  767. font-family: DM Sans;
  768. font-size: 14px;
  769. font-weight: 400;
  770. line-height: 20px;
  771. letter-spacing: 0%;
  772. text-align: left;
  773. }
  774. }
  775. .phone-exchange-buttons {
  776. display: flex;
  777. padding: 0 30rpx 30rpx;
  778. gap: 20rpx;
  779. .phone-exchange-btn {
  780. flex: 1;
  781. height: 80rpx;
  782. display: flex;
  783. align-items: center;
  784. justify-content: center;
  785. border-radius: 12rpx;
  786. font-size: 18px;
  787. &.phone-exchange-btn-cancel {
  788. color: rgba(153, 153, 153, 0.5);
  789. }
  790. &.phone-exchange-btn-confirm {
  791. color: rgba(1, 107, 246, 1);
  792. }
  793. }
  794. }
  795. }