index.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. @font-face {
  2. font-family: "HMfont-home";
  3. src: url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAn8AAsAAAAAE1wAAAmvAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFDAqWYJI9ATYCJANACyIABCAFhFUHgV8bThBRlFFWNdkXBXbDsSFQq221McNWrxUbYqGhiTju98MTeXqNh/9fo90388cEMe0bwSOJRIjavZIgESqnE5J5JqQVDZH/XdNfoHSAjqKqRsA+Tf/Ruya33E/bkdHsJtycY2XWAGbM5oenzf173A3lHrEilsmMbu74Y5VmYtxpgza9DMxkWL0gfjGbGRE54AL2f2ut3h2u8Q7RaZRCjDPLIv8cfAUR30MtEUWbSReVJkk0RB4lWWkNg7WVA1sBKmIUdr0uzibQOmxA4vrWwQXkJUweKHPfdwXkA+FSik2o1aVizyTegEKdvWINwG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CGgGhDaMo0tXMHwiUq3gG5entO2xmnECa3H53AjRpKFFYIK7qrHjMJ75sEC91BPlGc0TlZY9qlsdcuZaXy0D3hfz4cmLd2WzbK3Xhhdw7c2VLCxtxsFCMEo8bArEww9ruOrc5joK9g1xp85MghQ4wyuPV71+/tMVxAMmzA1lSt+WmbjFkwL/lV6az7APzZ5qvVmmy7b1bJGrTDhmRfMBYbWMZmNOu3bJdPlLL/5WOR2XZCTJpmU4mx8lv9Fg76T8NagO4vUacJ+n/Sr0b/LYb8+1z5QCb935a0m6WWYXzwh4DO2Sa9g2jEnJ6tYwTU5jp7N2RmaHkn/gjEb/fXpmpXbkpAGaAv7pnKAfdc6bg4GZx1L3QuQ8lVC3BvXbC8f2eHQEqkBuc9aO6h9849M3oPucrgAyQY/HEv7PYJJQy23Ft3/R+xczqmsHWDgrDCyzfcl1o5ehKxnUOr5Bm6NhTGR4u1rtDEvlZ8dGgklLeNCk3ZbeKaO0bkcMfoKt+6ng/DUPPI6AAlDXlE0dzwsKPadkjqKjDXGEgg4b2CK7vx65M0xSlPmNsOA58/g1xWSDDKeq/KV5AR89+zc6OGjKSKtxUqR4NtF47VuMZemcTBDQxGqzqqrXIMCnm2xkXq1QJIIkO8EpmROcOkIyevYmhUqurWBmgCe4U5WJFHiiLKqKKOJtrooo8hxphihl6g5bGv3MAXkfBvPaFbVq6ga4Uq+wWdEfo6NVTmr1oVkYoye2NvfCWLmYQx0sjozFSxszhZ4Ctjb7QtavLQDNa0L5HRZQYJYxrNLbJR4QhZvOV46Fm/lqB428nsrJSx/OwbEgYA') format('woff2');
  4. }
  5. .icon {
  6. font-family: "HMfont-home" !important;
  7. font-size: 56rpx;
  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. page {
  57. background-color: #f0f2f6;
  58. }
  59. .im-v {
  60. .notData-box {
  61. width: 100%;
  62. height: 100%;
  63. justify-content: center;
  64. align-items: center;
  65. padding-top: 400rpx;
  66. .notData-inner {
  67. width: 280rpx;
  68. height: 308rpx;
  69. align-items: center;
  70. .iconImg {
  71. width: 100%;
  72. height: 100%;
  73. }
  74. .notData-inner-text {
  75. padding: 30rpx 0;
  76. color: #909399;
  77. }
  78. }
  79. }
  80. .msg-end {
  81. padding: 40rpx 0;
  82. font-size: 28rpx;
  83. text-align: center;
  84. color: #999;
  85. }
  86. .hidden {
  87. display: none !important;
  88. }
  89. .popup-layer {
  90. &.showLayer {
  91. transform: translate3d(0, -42vw, 0);
  92. }
  93. transition: all .15s linear;
  94. width: 100%;
  95. height: 42vw;
  96. padding: 20rpx 2%;
  97. background-color: #f2f2f2;
  98. position: fixed;
  99. z-index: 20;
  100. top: 100%;
  101. .emoji-swiper {
  102. height: 40vw;
  103. swiper-item {
  104. display: flex;
  105. align-content: flex-start;
  106. flex-wrap: wrap;
  107. .emoji-item {
  108. width: 12vw;
  109. height: 12vw;
  110. display: flex;
  111. justify-content: center;
  112. align-items: center;
  113. .emoji-item-img {
  114. width: 8.4vw;
  115. height: 8.4vw;
  116. }
  117. }
  118. }
  119. }
  120. .more-layer {
  121. width: 100%;
  122. height: 42vw;
  123. .list {
  124. width: 100%;
  125. display: flex;
  126. flex-wrap: wrap;
  127. .box {
  128. width: 18vw;
  129. height: 18vw;
  130. border-radius: 20rpx;
  131. background-color: #fff;
  132. display: flex;
  133. justify-content: center;
  134. align-items: center;
  135. margin: 0 3vw 2vw 3vw;
  136. .icon {
  137. font-size: 70rpx;
  138. }
  139. }
  140. }
  141. }
  142. }
  143. .input-box {
  144. width: 100%;
  145. box-sizing: border-box;
  146. min-height: 80rpx;
  147. padding: 24rpx 32rpx;
  148. background-color: #f2f2f2;
  149. display: flex;
  150. align-items: flex-end;
  151. position: fixed;
  152. z-index: 20;
  153. bottom: 0;
  154. &.showLayer {
  155. transform: translate3d(0, -42vw, 0);
  156. }
  157. transition: all .15s linear;
  158. .input-box-icon {
  159. flex-shrink: 0;
  160. height: 56rpx;
  161. width: 56rpx;
  162. margin-bottom: 6rpx;
  163. margin-right: 16rpx;
  164. &.add {
  165. margin-right: 0;
  166. }
  167. }
  168. .send-btn {
  169. flex-shrink: 0;
  170. width: 90rpx;
  171. margin-bottom: 6rpx;
  172. height: 56rpx;
  173. line-height: 56rpx;
  174. background: #339AFF;
  175. color: #fff;
  176. border-radius: 6rpx;
  177. font-size: 24rpx;
  178. text-align: center;
  179. margin-left: 16rpx;
  180. }
  181. .voice-mode {
  182. flex: 1;
  183. height: 68rpx;
  184. border-radius: 16rpx;
  185. display: flex;
  186. justify-content: center;
  187. align-items: center;
  188. font-size: 28rpx;
  189. background-color: #fff;
  190. color: #555;
  191. margin-right: 16rpx;
  192. &.recording {
  193. background-color: #e5e5e5;
  194. }
  195. }
  196. .text-mode {
  197. flex: 1;
  198. min-height: 68rpx;
  199. display: flex;
  200. background-color: #fff;
  201. border-radius: 16rpx;
  202. margin-right: 16rpx;
  203. .input-area {
  204. width: 100%;
  205. padding: 16rpx;
  206. display: flex;
  207. align-items: center;
  208. max-height: 100rpx;
  209. overflow-y: scroll;
  210. textarea {
  211. width: 100%;
  212. font-size: 28rpx;
  213. }
  214. }
  215. }
  216. }
  217. .record {
  218. width: 40vw;
  219. height: 40vw;
  220. position: fixed;
  221. top: 55%;
  222. left: 30%;
  223. background-color: rgba(0, 0, 0, .6);
  224. border-radius: 20rpx;
  225. .ing {
  226. width: 100%;
  227. height: 30vw;
  228. display: flex;
  229. justify-content: center;
  230. align-items: center;
  231. // 模拟录音音效动画
  232. @keyframes volatility {
  233. 0% {
  234. background-position: 0% 130%;
  235. }
  236. 20% {
  237. background-position: 0% 150%;
  238. }
  239. 30% {
  240. background-position: 0% 155%;
  241. }
  242. 40% {
  243. background-position: 0% 150%;
  244. }
  245. 50% {
  246. background-position: 0% 145%;
  247. }
  248. 70% {
  249. background-position: 0% 150%;
  250. }
  251. 80% {
  252. background-position: 0% 155%;
  253. }
  254. 90% {
  255. background-position: 0% 140%;
  256. }
  257. 100% {
  258. background-position: 0% 135%;
  259. }
  260. }
  261. .icon {
  262. background-image: linear-gradient(to bottom, #f09b37, #fff 50%);
  263. background-size: 100% 200%;
  264. animation: volatility 1.5s ease-in-out -1.5s infinite alternate;
  265. -webkit-background-clip: text;
  266. -webkit-text-fill-color: transparent;
  267. font-size: 150rpx;
  268. color: #f09b37;
  269. }
  270. }
  271. .cancel {
  272. width: 100%;
  273. height: 30vw;
  274. display: flex;
  275. justify-content: center;
  276. align-items: center;
  277. .icon {
  278. color: #fff;
  279. font-size: 150rpx;
  280. }
  281. }
  282. .tis {
  283. width: 100%;
  284. height: 10vw;
  285. display: flex;
  286. justify-content: center;
  287. font-size: 28rpx;
  288. color: #fff;
  289. &.change {
  290. color: #f09b37;
  291. }
  292. }
  293. }
  294. .msg-list {
  295. padding: 0 24rpx;
  296. .msg-list-item {
  297. display: flex;
  298. align-items: flex-start;
  299. padding: 20rpx 0;
  300. &.msg-list-item-l {
  301. flex-direction: row;
  302. .avatar {
  303. flex-shrink: 0;
  304. width: 80rpx;
  305. height: 80rpx;
  306. margin-right: 20rpx;
  307. }
  308. }
  309. &.msg-list-item-r {
  310. flex-direction: row-reverse;
  311. .avatar {
  312. flex-shrink: 0;
  313. width: 80rpx;
  314. height: 80rpx;
  315. margin-left: 20rpx;
  316. }
  317. }
  318. .msg-text {
  319. max-width: 70%;
  320. min-height: 50rpx;
  321. border-radius: 4rpx 30rpx 30rpx 30rpx;
  322. padding: 16rpx 32rpx;
  323. display: flex;
  324. align-items: center;
  325. font-size: 32rpx;
  326. word-break: break-word;
  327. flex-wrap: wrap;
  328. background-color: #fff;
  329. color: #303133;
  330. .msg-text-txt {
  331. font-size: 32rpx;
  332. line-height: 48rpx;
  333. }
  334. .msg-text-emoji {
  335. vertical-align: top;
  336. width: 48rpx;
  337. height: 48rpx;
  338. display: inline-block;
  339. }
  340. }
  341. .msg-img {
  342. background-color: transparent;
  343. padding: 0;
  344. overflow: hidden;
  345. image {
  346. max-width: 350rpx;
  347. max-height: 350rpx;
  348. border-radius: 16rpx;
  349. }
  350. }
  351. .msg-voice {
  352. .icon {
  353. font-size: 40rpx;
  354. display: flex;
  355. align-items: center;
  356. }
  357. .icon:after {
  358. content: " ";
  359. width: 53rpx;
  360. height: 53rpx;
  361. border-radius: 100%;
  362. position: absolute;
  363. box-sizing: border-box;
  364. }
  365. .length {
  366. font-size: 28rpx;
  367. }
  368. &.play {
  369. @keyframes my-play {
  370. 0% {
  371. transform: translateX(80%);
  372. }
  373. 100% {
  374. transform: translateX(0%);
  375. }
  376. }
  377. .icon:after {
  378. border-left: solid 10rpx rgba(186, 230, 253, .8);
  379. animation: my-play 1s linear infinite;
  380. }
  381. }
  382. }
  383. }
  384. // .msg-list-item {
  385. // padding: 20rpx 0;
  386. // .content {
  387. // width: 100%;
  388. // display: flex;
  389. // .msg-text {
  390. // max-width: 70%;
  391. // min-height: 50rpx;
  392. // border-radius: 4rpx 30rpx 30rpx 30rpx;
  393. // padding: 16rpx 32rpx;
  394. // display: flex;
  395. // align-items: center;
  396. // font-size: 32rpx;
  397. // word-break: break-word;
  398. // flex-wrap: wrap;
  399. // background-color: #fff;
  400. // color: #3A3A3A;
  401. // .msg-text-txt{
  402. // font-size: 32rpx;
  403. // line-height: 48rpx;
  404. // }
  405. // .msg-text-emoji{
  406. // vertical-align: top;
  407. // width: 48rpx;
  408. // height: 48rpx;
  409. // display: inline-block;
  410. // }
  411. // }
  412. // .msg-img {
  413. // background-color: transparent;
  414. // padding: 0;
  415. // overflow: hidden;
  416. // image {
  417. // max-width: 350rpx;
  418. // max-height: 350rpx;
  419. // border-radius: 16rpx;
  420. // }
  421. // }
  422. // .msg-voice {
  423. // .icon {
  424. // font-size: 40rpx;
  425. // display: flex;
  426. // align-items: center;
  427. // }
  428. // .icon:after {
  429. // content: " ";
  430. // width: 53rpx;
  431. // height: 53rpx;
  432. // border-radius: 100%;
  433. // position: absolute;
  434. // box-sizing: border-box;
  435. // }
  436. // .length {
  437. // font-size: 28rpx;
  438. // }
  439. // }
  440. // }
  441. // .avatar {
  442. // // flex-shrink: 0;
  443. // // width: 80rpx;
  444. // // height: 80rpx;
  445. // }
  446. // .my {
  447. // display: flex;
  448. // justify-content: flex-end;
  449. // .content {
  450. // min-height: 80rpx;
  451. // align-items: center;
  452. // justify-content: flex-end;
  453. // .msg-text {
  454. // background-color: #BAE6FD;
  455. // border-radius: 30rpx 4rpx 30rpx 30rpx;
  456. // }
  457. // .msg-voice {
  458. // .length {
  459. // margin-right: 20rpx;
  460. // }
  461. // &.play {
  462. // @keyframes my-play {
  463. // 0% {
  464. // transform: translateX(80%);
  465. // }
  466. // 100% {
  467. // transform: translateX(0%);
  468. // }
  469. // }
  470. // .icon:after {
  471. // border-left: solid 10rpx rgba(186, 230, 253, .8);
  472. // animation: my-play 1s linear infinite;
  473. // }
  474. // }
  475. // }
  476. // }
  477. // .avatar {
  478. // margin-left: 16rpx;
  479. // }
  480. // }
  481. // .other {
  482. // display: flex;
  483. // .avatar {
  484. // margin-right: 16rpx;
  485. // }
  486. // .content {
  487. // flex-wrap: wrap;
  488. // .msg-voice {
  489. // .icon {
  490. // color: #333;
  491. // }
  492. // .length {
  493. // margin-left: 20rpx;
  494. // }
  495. // &.play {
  496. // @keyframes other-play {
  497. // 0% {
  498. // transform: translateX(-80%);
  499. // }
  500. // 100% {
  501. // transform: translateX(0%);
  502. // }
  503. // }
  504. // .icon:after {
  505. // border-right: solid 10rpx rgba(255, 255, 255, .8);
  506. // animation: other-play 1s linear infinite;
  507. // }
  508. // }
  509. // }
  510. // }
  511. // }
  512. // }
  513. }
  514. }