index.scss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. page {
  2. background-color: #f3f3f3;
  3. }
  4. .content {
  5. &-showfn{
  6. padding-bottom: 0rpx;
  7. padding-bottom: calc(420rpx + constant(safe-area-inset-bottom));
  8. padding-bottom: calc(420rpx + env(safe-area-inset-bottom) );
  9. /* #ifdef MP-WEIXIN */
  10. /* #endif */
  11. }
  12. &-box {
  13. width: 100%;
  14. height: auto;
  15. min-height: calc(100vh - env(safe-area-inset-top) - 200rpx);
  16. box-sizing: content-box;
  17. position: relative;
  18. padding-bottom: 120rpx;
  19. /* #ifdef APP-PLUS */
  20. margin-bottom: 0rpx;
  21. margin-bottom: constant(safe-area-inset-bottom);
  22. margin-bottom: env(safe-area-inset-bottom);
  23. /* #endif */
  24. /* #ifdef MP-WEIXIN */
  25. padding-bottom: 0rpx;
  26. padding-bottom: calc(120rpx + constant(safe-area-inset-bottom));
  27. padding-bottom: calc(120rpx + env(safe-area-inset-bottom) );
  28. /* #endif */
  29. &-bg {
  30. width: 100%;
  31. position: fixed;
  32. /* #ifdef MP-WEIXIN */
  33. bottom: 0;
  34. bottom: constant(safe-area-inset-bottom);
  35. bottom: env(safe-area-inset-bottom);
  36. /* #endif */
  37. /* #ifndef MP-WEIXIN */
  38. top: 0;
  39. left: 0;
  40. /* #endif */
  41. }
  42. &-loading {
  43. text-align: center;
  44. padding: 20rpx 0;
  45. }
  46. .message {
  47. padding: 13rpx 20rpx;
  48. }
  49. .message-item {
  50. display: flex;
  51. justify-content: flex-start;
  52. align-items: flex-start;
  53. align-content: flex-start;
  54. flex-wrap: nowrap;
  55. flex-direction: row;
  56. .img {
  57. width: 80rpx;
  58. height: 80rpx;
  59. border-radius: 40rpx;
  60. }
  61. .content {
  62. padding: 20rpx;
  63. max-width: 500rpx;
  64. border-radius: 10rpx;
  65. font-size: 28rpx;
  66. }
  67. // 语音
  68. .contentType2 {
  69. display: flex;
  70. flex-direction: row;
  71. align-items: center;
  72. .voice_icon {
  73. height: 34rpx;
  74. width: 34rpx;
  75. background-repeat: no-repeat;
  76. background-size: 100%;
  77. }
  78. .voice_icon_right {
  79. background-image: url(../../static/voice-left-3.png);
  80. margin-left: 10rpx;
  81. }
  82. .voice_icon_left {
  83. background-image: url(../../static/voice-right-3.png);
  84. margin-right: 10rpx;
  85. }
  86. .voice_icon_right_an {
  87. animation: voiceAn_right 1s linear alternate infinite;
  88. }
  89. .voice_icon_left_an {
  90. animation: voiceAn_left 1s linear alternate infinite;
  91. }
  92. @keyframes voiceAn_right {
  93. 0% {
  94. background-image: url(../../static/voice-left-1.png);
  95. }
  96. 50% {
  97. background-image: url(../../static/voice-left-2.png);
  98. }
  99. 100% {
  100. background-image: url(../../static/voice-left-3.png);
  101. }
  102. }
  103. @keyframes voiceAn_left {
  104. 0% {
  105. background-image: url(../../static/voice-right-1.png);
  106. }
  107. 50% {
  108. background-image: url(../../static/voice-right-2.png);
  109. }
  110. 100% {
  111. background-image: url(../../static/voice-right-3.png);
  112. }
  113. }
  114. }
  115. //图片
  116. .contentType3{
  117. padding: 0;
  118. border-radius: 2rpx;
  119. background-color: transparent !important;
  120. .img{
  121. width: 200rpx;
  122. height: auto;
  123. max-width: 300rpx;
  124. max-height: 400rpx;
  125. }
  126. }
  127. .contentType3::after{
  128. border: none !important;
  129. display: none !important;
  130. }
  131. .content-type-right {
  132. flex-direction: row-reverse;
  133. }
  134. &.right {
  135. flex-direction: row-reverse;
  136. .content {
  137. background-color: $uni-color-success;
  138. margin-right: 28rpx;
  139. word-break: break-all;
  140. line-height: 36rpx;
  141. position: relative;
  142. &::after {
  143. content: '';
  144. display: block;
  145. width: 0;
  146. height: 0;
  147. border-top: 10rpx solid transparent;
  148. border-bottom: 10rpx solid transparent;
  149. border-left: 16rpx solid $uni-color-success;
  150. position: absolute;
  151. right: -16rpx;
  152. top: 30rpx;
  153. }
  154. }
  155. }
  156. &.left {
  157. .content {
  158. background-color: $uni-text-color-inverse;
  159. margin-left: 28rpx;
  160. word-break: break-all;
  161. line-height: 36rpx;
  162. position: relative;
  163. &::after {
  164. content: '';
  165. display: block;
  166. width: 0;
  167. height: 0;
  168. border-top: 10rpx solid transparent;
  169. border-bottom: 10rpx solid transparent;
  170. border-right: 16rpx solid $uni-text-color-inverse;
  171. position: absolute;
  172. left: -16rpx;
  173. top: 30rpx;
  174. }
  175. }
  176. }
  177. }
  178. }
  179. .input-box {
  180. position: fixed;
  181. bottom: 0;
  182. left: 0;
  183. width: 100%;
  184. box-sizing: content-box;
  185. z-index: 999;
  186. // background-color: #eaeaea;
  187. /* #ifdef APP-PLUS */
  188. margin-bottom: 0rpx;
  189. margin-bottom: constant(safe-area-inset-bottom);
  190. margin-bottom: env(safe-area-inset-bottom);
  191. /* #endif */
  192. /* #ifdef MP-WEIXIN */
  193. padding-bottom: 0rpx;
  194. padding-bottom: constant(safe-area-inset-bottom);
  195. padding-bottom: env(safe-area-inset-bottom);
  196. /* #endif */
  197. &-flex {
  198. display: flex;
  199. justify-content: flex-start;
  200. align-items: center;
  201. flex-wrap: nowrap;
  202. flex-direction: row;
  203. padding: 20rpx;
  204. box-sizing: border-box;
  205. image{
  206. width: 56rpx;
  207. height: 56rpx;
  208. }
  209. .icon_img {
  210. margin-right: 20rpx;
  211. }
  212. .icon_btn_add{
  213. margin-left: 20rpx;
  214. }
  215. &-grow {
  216. flex-grow: 1;
  217. .content {
  218. box-sizing: border-box;
  219. background-color: #fff;
  220. height: 80rpx;
  221. padding: 0 20rpx;
  222. border-radius: 12rpx;
  223. font-size: 28rpx;
  224. caret-color: $uni-color-success;
  225. }
  226. .voice_title {
  227. text-align: center;
  228. background-color:#85ce61;
  229. color: #fff;
  230. height: 80rpx;
  231. line-height: 80rpx;
  232. border-radius: 12rpx;
  233. }
  234. }
  235. .btn {
  236. margin-left: 20rpx;
  237. background-color: $u-type-success;
  238. border: none;
  239. }
  240. }
  241. .fun-box{
  242. opacity: 0;
  243. transition: all 0.1s ease-in-out;
  244. height: 0;
  245. .grid-text{
  246. padding-top: 10rpx;
  247. color: $uni-text-color-grey;
  248. }
  249. }
  250. .show-fun-box{
  251. opacity: 1;
  252. height: 300rpx;
  253. }
  254. }
  255. .input-box-mpInputMargin {
  256. /* #ifdef MP-WEIXIN */
  257. padding-bottom: 0rpx;
  258. /* #endif */
  259. }
  260. .voice_an{
  261. width: 300rpx;
  262. height: 300rpx;
  263. position: fixed;
  264. top: 50%;
  265. left: 50%;
  266. transform: translate(-50%,-55%);
  267. background-color: rgba(41,41,41,0.7);
  268. color: white;
  269. display: flex;
  270. flex-direction: column;
  271. align-items: center;
  272. text-align: center;
  273. border-radius: 10rpx;
  274. .text{
  275. padding-top: 30rpx;
  276. }
  277. @keyframes runVoice{
  278. 0%{
  279. height: 10%;
  280. }
  281. 20%{
  282. height: 50%;
  283. }
  284. 50%{
  285. height: 100%;
  286. }
  287. 80%{
  288. height: 50%;
  289. }
  290. 100%{
  291. height: 0%;
  292. }
  293. }
  294. .wave{
  295. width:6rpx;
  296. height: 100%;
  297. margin-left: 10rpx;
  298. border-radius: 50rpx;
  299. background-color: #999;
  300. vertical-align: middle;
  301. display: inline-block;
  302. }
  303. .voice_an_icon{
  304. width: 200rpx;
  305. height: 100rpx;
  306. line-height: 50rpx;
  307. margin: 50rpx 0;
  308. }
  309. .voice_an_icon #one{
  310. animation:runVoice 0.6s infinite 0.1s;
  311. }
  312. .voice_an_icon #two{
  313. animation:runVoice 0.6s infinite 0.3s;
  314. }
  315. .voice_an_icon #three{
  316. animation:runVoice 0.6s infinite 0.6s;
  317. }
  318. .voice_an_icon #four{
  319. animation:runVoice 0.6s infinite 0.1s;
  320. }
  321. .voice_an_icon #five{
  322. animation:runVoice 0.6s infinite 0.3s;
  323. }
  324. .voice_an_icon #six{
  325. animation:runVoice 0.6s infinite 0.6s;
  326. }
  327. .voice_an_icon #seven{
  328. animation:runVoice 0.6s infinite 0.1s;
  329. }
  330. }
  331. }
  332. .history-font {
  333. color: blueviolet;
  334. position: absolute;
  335. top: 40px;
  336. left: 10px;
  337. font-size: 36rpx;
  338. cursor: pointer;
  339. }
  340. .marginTop50 {
  341. margin-top: 50px;
  342. }
  343. .pay-btn-class {
  344. background-color: #02a7f0;
  345. width: 200rpx;
  346. height: 60rpx;
  347. color: #fff;
  348. font-size: 26rpx;
  349. margin-top: 20rpx;
  350. }