style.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. page{
  2. background-color: #f4f4f4;
  3. }
  4. @font-face {font-family:"HMfont-home";src:url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAn8AAsAAAAAE1wAAAmvAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFDAqWYJI9ATYCJANACyIABCAFhFUHgV8bThBRlFFWNdkXBXbDsSFQq221McNWrxUbYqGhiTju98MTeXqNh/9fo90388cEMe0bwSOJRIjavZIgESqnE5J5JqQVDZH/XdNfoHSAjqKqRsA+Tf/Ruya33E/bkdHsJtycY2XWAGbM5oenzf173A3lHrEilsmMbu74Y5VmYtxpgza9DMxkWL0gfjGbGRE54AL2f2ut3h2u8Q7RaZRCjDPLIv8cfAUR30MtEUWbSReVJkk0RB4lWWkNg7WVA1sBKmIUdr0uzibQOmxA4vrWwQXkJUweKH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f27fjV18spjdTfQUuVANcgldRA3hKhSUutCGgGhDaMo0tXMHwiUq3gG5entO2xmnECa3H53AjRpKFFYIK7qrHjMJ75sEC91BPlGc0TlZY9qlsdcuZaXy0D3hfz4cmLd2WzbK3Xhhdw7c2VLCxtxsFCMEo8bArEww9ruOrc5joK9g1xp85MghQ4wyuPV71+/tMVxAMmzA1lSt+WmbjFkwL/lV6az7APzZ5qvVmmy7b1bJGrTDhmRfMBYbWMZmNOu3bJdPlLL/5WOR2XZCTJpmU4mx8lv9Fg76T8NagO4vUacJ+n/Sr0b/LYb8+1z5QCb935a0m6WWYXzwh4DO2Sa9g2jEnJ6tYwTU5jp7N2RmaHkn/gjEb/fXpmpXbkpAGaAv7pnKAfdc6bg4GZx1L3QuQ8lVC3BvXbC8f2eHQEqkBuc9aO6h9849M3oPucrgAyQY/HEv7PYJJQy23Ft3/R+xczqmsHWDgrDCyzfcl1o5ehKxnUOr5Bm6NhTGR4u1rtDEvlZ8dGgklLeNCk3ZbeKaO0bkcMfoKt+6ng/DUPPI6AAlDXlE0dzwsKPadkjqKjDXGEgg4b2CK7vx65M0xSlPmNsOA58/g1xWSDDKeq/KV5AR89+zc6OGjKSKtxUqR4NtF47VuMZemcTBDQxGqzqqrXIMCnm2xkXq1QJIIkO8EpmROcOkIyevYmhUqurWBmgCe4U5WJFHiiLKqKKOJtrooo8hxphihl6g5bGv3MAXkfBvPaFbVq6ga4Uq+wWdEfo6NVTmr1oVkYoye2NvfCWLmYQx0sjozFSxszhZ4Ctjb7QtavLQDNa0L5HRZQYJYxrNLbJR4QhZvOV46Fm/lqB428nsrJSx/OwbEgYA') format('woff2');}
  5. .icon {
  6. font-family:"HMfont-home" !important;
  7. font-size:56upx;
  8. font-style:normal;
  9. color: #333;
  10. &.biaoqing:before {
  11. content: "\e797";
  12. }
  13. &.jianpan:before {
  14. content: "\e7b2";
  15. }
  16. &.yuyin:before {
  17. content: "\e805";
  18. }
  19. &.tupian:before {
  20. content: "\e639";
  21. }
  22. &.chehui:before {
  23. content: "\e904";
  24. }
  25. &.luyin:before {
  26. content: "\e905";
  27. }
  28. &.luyin2:before {
  29. content: "\e677";
  30. }
  31. &.other-voice:before {
  32. content: "\e667";
  33. }
  34. &.my-voice:before {
  35. content: "\e906";
  36. }
  37. &.hongbao:before {
  38. content: "\e626";
  39. }
  40. &.tupian2:before {
  41. content: "\e674";
  42. }
  43. &.paizhao:before {
  44. content: "\e63e";
  45. }
  46. &.add:before {
  47. content: "\e655";
  48. }
  49. &.close:before {
  50. content: "\e607";
  51. }
  52. &.to:before {
  53. content: "\e675";
  54. }
  55. }
  56. .hidden{
  57. display: none !important;
  58. }
  59. .popup-layer{
  60. &.showLayer{transform: translate3d(0,-42vw,0);}
  61. transition: all .15s linear;
  62. width: 96%;
  63. height: 42vw;
  64. padding: 20upx 2%;
  65. background-color: #f3f3f3;
  66. border-top: solid 1upx #ddd;
  67. position: fixed;
  68. z-index: 20;
  69. top: 100%;
  70. .emoji-swiper{
  71. height: 40vw;
  72. swiper-item{
  73. display: flex;
  74. align-content: flex-start;
  75. flex-wrap: wrap;
  76. view{
  77. width: 12vw;
  78. height: 12vw;
  79. display: flex;
  80. justify-content: center;
  81. align-items: center;
  82. image{
  83. width: 8.4vw;
  84. height: 8.4vw;
  85. }
  86. }
  87. }
  88. }
  89. .more-layer{
  90. width: 100%;
  91. height: 42vw;
  92. .list{
  93. width: 100%;
  94. display: flex;
  95. flex-wrap: wrap;
  96. .box{
  97. width: 18vw;
  98. height: 18vw;
  99. border-radius: 20upx;
  100. background-color: #fff;
  101. display: flex;
  102. justify-content: center;
  103. align-items: center;
  104. margin: 0 3vw 2vw 3vw;
  105. .icon{
  106. font-size: 70upx;
  107. }
  108. }
  109. }
  110. }
  111. }
  112. .input-box{
  113. width: 98%;
  114. min-height: 100upx;
  115. padding: 0 1%;
  116. background-color: #f8f8f8;
  117. display: flex;
  118. position: fixed;
  119. z-index: 20;
  120. bottom:-2upx;
  121. &.showLayer{transform: translate3d(0,-42vw,0);}
  122. transition: all .15s linear;
  123. border-bottom: solid 1upx #ddd;
  124. .voice,.more{
  125. flex-shrink: 0;
  126. width: 90upx;
  127. height: 100upx;
  128. display: flex;
  129. justify-content: center;
  130. align-items: center;
  131. }
  132. .send{
  133. //H5发送按钮左边距
  134. /* #ifdef H5 */
  135. margin-left: 20upx;
  136. /* #endif */
  137. flex-shrink: 0;
  138. width: 100upx;
  139. height: 100upx;
  140. display: flex;
  141. align-items: center;
  142. .btn{
  143. width: 90upx;
  144. height: 56upx;
  145. display: flex;
  146. justify-content: center;
  147. align-items: center;
  148. background:#06c160;
  149. color: #fff;
  150. border-radius: 6upx;
  151. font-size: 24upx;
  152. }
  153. }
  154. .textbox{
  155. width: 100%;
  156. min-height: 70upx;
  157. margin-top: 15upx;
  158. .voice-mode{
  159. width: calc(100% - 2upx);
  160. height: 68upx;
  161. border-radius: 70upx;
  162. border:solid 1upx #cdcdcd;
  163. display: flex;
  164. justify-content: center;
  165. align-items: center;
  166. font-size: 28upx;
  167. background-color: #fff;
  168. color: #555;
  169. &.recording{
  170. background-color: #e5e5e5;
  171. }
  172. }
  173. .text-mode{
  174. width: 100%;
  175. min-height: 70upx;
  176. display: flex;
  177. background-color: #fff;
  178. border-radius: 40upx;
  179. .box{
  180. width: 100%;
  181. padding-left: 30upx;
  182. min-height: 70upx;
  183. display: flex;
  184. align-items: center;
  185. textarea{
  186. width: 100%;
  187. }
  188. }
  189. .em{
  190. flex-shrink: 0;
  191. width: 80upx;
  192. padding-left: 10upx;
  193. height: 70upx;
  194. display: flex;
  195. justify-content: center;
  196. align-items: center;
  197. }
  198. }
  199. }
  200. }
  201. .record{
  202. width: 40vw;
  203. height: 40vw;
  204. position: fixed;
  205. top: 55%;
  206. left: 30%;
  207. background-color: rgba(0,0,0,.6);
  208. border-radius: 20upx;
  209. .ing{
  210. width: 100%;
  211. height: 30vw;
  212. display: flex;
  213. justify-content: center;
  214. align-items: center;
  215. // 模拟录音音效动画
  216. @keyframes volatility {
  217. 0% {background-position: 0% 130%;}
  218. 20% {background-position: 0% 150%;}
  219. 30% {background-position: 0% 155%;}
  220. 40% {background-position: 0% 150%;}
  221. 50% {background-position: 0% 145%;}
  222. 70% {background-position: 0% 150%;}
  223. 80% {background-position: 0% 155%;}
  224. 90% {background-position: 0% 140%;}
  225. 100% {background-position: 0% 135%;}
  226. }
  227. .icon{
  228. background-image:linear-gradient(to bottom,#f09b37,#fff 50%);
  229. background-size:100% 200%;
  230. animation: volatility 1.5s ease-in-out -1.5s infinite alternate;
  231. -webkit-background-clip:text;
  232. -webkit-text-fill-color:transparent;
  233. font-size: 150upx;
  234. color: #f09b37;
  235. }
  236. }
  237. .cancel{
  238. width: 100%;
  239. height: 30vw;
  240. display: flex;
  241. justify-content: center;
  242. align-items: center;
  243. .icon{
  244. color: #fff;
  245. font-size: 150upx;
  246. }
  247. }
  248. .tis{
  249. width: 100%;
  250. height: 10vw;
  251. display: flex;
  252. justify-content: center;
  253. font-size: 28upx;
  254. color: #fff;
  255. &.change{
  256. color: #f09b37;
  257. }
  258. }
  259. }
  260. .content{
  261. width: 100%;
  262. .msg-list{
  263. width: 96%;
  264. padding: 0 2%;
  265. position: absolute;
  266. top: 0;
  267. bottom: 100upx;
  268. .loading{
  269. //loading动画
  270. display: flex;
  271. justify-content: center;
  272. @keyframes stretchdelay {
  273. 0%, 40%, 100% {
  274. transform: scaleY(0.6);
  275. }
  276. 20% {
  277. transform: scaleY(1.0);
  278. }
  279. }
  280. .spinner {
  281. margin: 20upx 0;
  282. width: 60upx;
  283. height: 100upx;
  284. display: flex;
  285. align-items: center;
  286. justify-content: space-between;
  287. view {
  288. background-color: #f06c7a;
  289. height: 50upx;
  290. width: 6upx;
  291. border-radius: 6upx;
  292. animation: stretchdelay 1.2s infinite ease-in-out;
  293. }
  294. .rect2 {
  295. animation-delay: -1.1s;
  296. }
  297. .rect3 {
  298. animation-delay: -1.0s;
  299. }
  300. .rect4 {
  301. animation-delay: -0.9s;
  302. }
  303. .rect5 {
  304. animation-delay: -0.8s;
  305. }
  306. }
  307. }
  308. .row{
  309. .system{
  310. display: flex;
  311. justify-content: center;
  312. view{
  313. padding: 0 30upx;
  314. height: 50upx;
  315. display: flex;
  316. justify-content: center;
  317. align-items: center;
  318. background-color: #c9c9c9;
  319. color: #fff;
  320. font-size: 24upx;
  321. border-radius: 40upx;
  322. }
  323. .red-envelope{
  324. image{
  325. margin-right: 5upx;
  326. width: 30upx;
  327. height: 30upx;
  328. }
  329. }
  330. }
  331. &:first-child{
  332. margin-top: 20upx;
  333. }
  334. padding: 20upx 0;
  335. .my .left,.other .right{
  336. width: 100%;
  337. display: flex;
  338. .bubble{
  339. max-width: 70%;
  340. min-height: 50upx;
  341. border-radius: 10upx;
  342. padding: 15upx 20upx;
  343. display: flex;
  344. align-items: center;
  345. font-size: 32upx;
  346. word-break: break-word;
  347. &.img{
  348. background-color: transparent;
  349. padding:0;
  350. overflow: hidden;
  351. image{
  352. max-width: 350upx;
  353. max-height: 350upx;
  354. }
  355. }
  356. &.red-envelope{
  357. background-color: transparent;
  358. padding:0;
  359. overflow: hidden;
  360. position: relative;
  361. justify-content: center;
  362. align-items: flex-start;
  363. image{
  364. width: 250upx;
  365. height: 313upx;
  366. }
  367. .tis{
  368. position: absolute;
  369. top: 6%;
  370. font-size: 26upx;
  371. color: #9c1712;
  372. }
  373. .blessing{
  374. position: absolute;
  375. bottom: 14%;
  376. color: #e9b874;
  377. width: 80%;
  378. text-align: center;
  379. overflow: hidden;
  380. // 最多两行
  381. display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;
  382. }
  383. }
  384. &.voice{
  385. .icon{
  386. font-size: 40upx;
  387. display: flex;
  388. align-items: center;
  389. }
  390. .icon:after
  391. {
  392. content:" ";
  393. width: 53upx;
  394. height: 53upx;
  395. border-radius: 100%;
  396. position: absolute;
  397. box-sizing: border-box;
  398. }
  399. .length{
  400. font-size: 28upx;
  401. }
  402. }
  403. }
  404. }
  405. .my .right,.other .left{
  406. flex-shrink: 0;
  407. width: 80upx;
  408. height: 80upx;
  409. image{
  410. width: 80upx;
  411. height: 80upx;
  412. border-radius: 10upx;
  413. }
  414. }
  415. .my{
  416. width: 100%;
  417. display: flex;
  418. justify-content: flex-end;
  419. .left{
  420. min-height: 80upx;
  421. align-items: center;
  422. justify-content: flex-end;
  423. .bubble{
  424. background-color: #f06c7a;
  425. color: #fff;
  426. &.voice{
  427. .icon{
  428. color: #fff;
  429. }
  430. .length{
  431. margin-right: 20upx;
  432. }
  433. }
  434. &.play{
  435. @keyframes my-play {
  436. 0% {
  437. transform: translateX(80%);
  438. }
  439. 100% {
  440. transform: translateX(0%);
  441. }
  442. }
  443. .icon:after
  444. {
  445. border-left: solid 10upx rgba(240,108,122,.5);
  446. animation: my-play 1s linear infinite;
  447. }
  448. }
  449. }
  450. }
  451. .right{
  452. margin-left: 15upx;
  453. }
  454. }
  455. .other{
  456. width: 100%;
  457. display: flex;
  458. .left{
  459. margin-right: 15upx;
  460. }
  461. .right{
  462. flex-wrap: wrap;
  463. .username{
  464. width: 100%;
  465. height: 45upx;
  466. font-size: 24upx;
  467. color: #999;
  468. display: flex;
  469. .name{
  470. margin-right: 50upx;
  471. }
  472. }
  473. .bubble{
  474. background-color: #fff;
  475. color: #333;
  476. &.voice{
  477. .icon{
  478. color: #333;
  479. }
  480. .length{
  481. margin-left: 20upx;
  482. }
  483. }
  484. &.play{
  485. @keyframes other-play {
  486. 0% {
  487. transform: translateX(-80%);
  488. }
  489. 100% {
  490. transform: translateX(0%);
  491. }
  492. }
  493. .icon:after
  494. {
  495. border-right: solid 10upx rgba(255,255,255,.8);
  496. animation: other-play 1s linear infinite;
  497. }
  498. }
  499. }
  500. }
  501. }
  502. }
  503. }
  504. }
  505. .windows{
  506. .mask{
  507. position: fixed;
  508. top: 100%;
  509. width: 100%;
  510. height: 100%;
  511. z-index: 1000;
  512. background-color: rgba(0,0,0,.6);
  513. opacity: 0;
  514. transition: opacity .2s ease-out;
  515. }
  516. .layer{
  517. position: fixed;
  518. width: 80%;
  519. height: 70%;
  520. left: 10%;
  521. z-index: 1001;
  522. border-radius: 20upx;
  523. overflow: hidden;
  524. top:100%;
  525. transform: scale3d(.5,.5,1);
  526. transition: all .2s ease-out;
  527. }
  528. &.show{
  529. display: block;
  530. .mask{
  531. top: 0;
  532. opacity: 1;
  533. }
  534. .layer{
  535. transform: translate3d(0,-85vh,0) scale3d(1,1,1);
  536. }
  537. }
  538. &.hide{
  539. display: block;
  540. .mask{
  541. top: 0;
  542. opacity: 0;
  543. }
  544. .layer{
  545. //transform: translate3d(0,-85vh,0) scale3d(.5,.5,1);
  546. }
  547. }
  548. }
  549. .open-redenvelope{
  550. width: 100%;
  551. height: 70vh;
  552. background-color: #cf3c35;
  553. position: relative;
  554. .top{
  555. width: 100%;
  556. background-color: #fe5454;
  557. display: flex;
  558. justify-content: center;
  559. flex-wrap: wrap;
  560. border-radius: 0 0 100% 100%;
  561. box-shadow: inset 0 -20upx 0 #9c1712;
  562. .close-btn{
  563. width: 100%;
  564. height: 80upx;
  565. display: flex;
  566. justify-content: flex-end;
  567. margin-bottom: 30upx;
  568. .icon{
  569. color: #9c1712;
  570. margin-top: 10upx;
  571. margin-right: 10upx;
  572. }
  573. }
  574. image{
  575. width: 130upx;
  576. height: 130upx;
  577. border: solid 12upx #cf3c35;
  578. border-radius: 100%;
  579. margin-bottom: -65upx;
  580. }
  581. margin-bottom: 65upx;
  582. }
  583. .from,.blessing,.money,.showDetails{
  584. width: 90%;
  585. padding: 5upx 5%;
  586. display: flex;
  587. justify-content: center;
  588. font-size: 32upx;
  589. color: #fff;
  590. }
  591. .money{
  592. font-size: 100upx;
  593. color: #f8d757;
  594. display: flex;
  595. padding-top: 20upx;
  596. }
  597. .showDetails{
  598. position: absolute;
  599. bottom: 20upx;
  600. align-items: center;
  601. font-size: 28upx;
  602. color: #f8d757;
  603. .icon{
  604. font-size: 26upx;
  605. color: #f8d757;
  606. }
  607. }
  608. }