index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. <template>
  2. <view
  3. v-if="!getNoticeContent"
  4. @click="clickMessageItem"
  5. :id="`auchor${source.clientMsgID}`"
  6. class="message_item"
  7. :class="{ message_item_self:isSender,message_item_active: isActive }">
  8. <view v-if="mutipleCheckVisible" class="check_wrap" :class="{ check_wrap_active: source.checked, check_wrap_disabled: canMutipleCheck }">
  9. <u-icon v-show="source.checked" name="checkbox-mark" size="12" color="#fff" />
  10. </view>
  11. <my-avatar @longpress="atUser" @click="showInfo" size="48" :desc="avatarDesc" :src="announcePublisher.faceURL || source.senderFaceUrl">
  12. <image v-if="getRole()==1" class="taoj" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/doctor.svg"></image>
  13. <image v-if="getRole()==2" class="taoj" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/guanjia.svg"></image>
  14. </my-avatar>
  15. <view class="message_container">
  16. <view class="message_sender" :style="{ 'flex-direction': !isSender ? 'row-reverse' : 'row' }">
  17. <text>{{ formattedMessageTime }}</text>
  18. <text style="margin-left: 2rpx; margin-right: 2rpx">{{ '' }}</text>
  19. <text v-if="!isSingle">{{ announcePublisher.nickname || source.senderNickname }}</text>
  20. </view>
  21. <view class="message_send_state_box">
  22. <view style="height: 100%; display: flex; justify-items: center; align-items: center">
  23. <view class="message_send_state">
  24. <u-loading-icon v-if="showSending && !isPreview" />
  25. <image @click="reSendMessage" v-if="isFailedMessage && !isPreview" src="https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/chating_message_failed.png" />
  26. <text v-if="readLimitSensitive" class="read_limit_count">{{ `${count}s` }}</text>
  27. </view>
  28. </view>
  29. <view @longpress.prevent="showMenu" class="message_content_wrap" :class="{ message_content_wrap_shadow: !!meetingMessageData }">
  30. <text-message-render v-if="showTextRender" :message="source" @showInfo="showInfo" />
  31. <media-message-render v-else-if="showMediaRender" :message="source" />
  32. <audio-message-render v-else-if="showAudioRender" :message="source" :isSender="isSender" />
  33. <face-message-render v-else-if="showFaceRender" :message="source" />
  34. <file-message-render v-else-if="showFileRender" :message="source" />
  35. <card-message-render v-else-if="showCardRender" :message="source" />
  36. <merge-message-render v-else-if="showMergeRender" :message="source" />
  37. <location-message-render v-else-if="showLocationRender" :message="source" />
  38. <group-announce-render v-else-if="showGroupAnnouncement" :message="source" />
  39. <rtc-message-render v-else-if="rtcMessageData" :data="rtcMessageData" :isSender="isSender" />
  40. <meeting-invite-message-render v-else-if="meetingMessageData" :data="meetingMessageData" />
  41. <mass-message-render v-else-if="massMessageData" :data="massMessageData" :isSender="isSender" />
  42. <custom-message-render v-else-if="showCustomRender" :message="source" />
  43. <error-message-render v-else />
  44. </view>
  45. </view>
  46. <quote-message-render :message="source" v-if="isQuoteMessage" />
  47. <message-read-state :message="source" v-if="isSender && isSuccessMessage && !showGroupAnnouncement && !isPreview && !rtcMessageData && isShowAsRead" />
  48. <transition name="fade">
  49. <message-menu
  50. v-if="menuState.visible"
  51. :message="source"
  52. :isSender="isSender"
  53. :is_bottom="menuState.isBottom"
  54. :paterWidth="menuState.paterWidth"
  55. @close="menuState.visible = false"/>
  56. </transition>
  57. </view>
  58. <!-- <view class="message_send_state">
  59. <u-loading-icon v-if="showSending && !isPreview" />
  60. <image
  61. @click="reSendMessage"
  62. v-if="isFailedMessage && !isPreview"
  63. src="@https://bjyjb-1362704775.cos.ap-chongqing.myqcloud.com/shop/image/chating_message_failed.png"
  64. />
  65. <text v-if="readLimitSensitive" class="read_limit_count">{{
  66. `${count}s`
  67. }}</text>
  68. </view> -->
  69. </view>
  70. <view v-else class="notice_message_container" :id="`auchor${source.clientMsgID}`">
  71. <!-- <text>{{ getNoticeContent }}</text> -->
  72. <mp-html @linktap="navigate" :previewImg="false" :showImgMenu="false" :lazyLoad="false" :content="getNoticeContent" />
  73. </view>
  74. </template>
  75. <script>
  76. import { mapGetters, mapActions } from 'vuex';
  77. import IMSDK, { AllowType, IMMethods, MessageStatus, MessageType, SessionType } from 'openim-uniapp-polyfill';
  78. import MyAvatar from '../../../../../components/MyAvatar/index.vue';
  79. import ChatingList from '../ChatingList.vue';
  80. import TextMessageRender from './TextMessageRender.vue';
  81. import MediaMessageRender from './MediaMessageRender.vue';
  82. import AudioMessageRender from './AudioMessageRender.vue';
  83. import FaceMessageRender from './FaceMessageRender.vue';
  84. import FileMessageRender from './FileMessageRender.vue';
  85. import CardMessageRender from './CardMessageRender.vue';
  86. import CustomMessageRender from './CustomMessageRender.vue';
  87. import MergeMessageRender from './MergeMessageRender.vue';
  88. import QuoteMessageRender from './QuoteMessageRender.vue';
  89. import LocationMessageRender from './LocationMessageRender.vue';
  90. import GroupAnnounceRender from './GroupAnnounceRender.vue';
  91. import RtcMessageRender from './RTCMessageRender.vue';
  92. import MeetingInviteMessageRender from './MeetingInviteMessageRender.vue';
  93. import ErrorMessageRender from './ErrorMessageRender.vue';
  94. import MessageMenu from './MessageMenu.vue';
  95. import MessageReadState from './MessageReadState.vue';
  96. import MassMessageRender from './MassMessageRender.vue';
  97. import { CustomType, noticeMessageTypes, PageEvents, UpdateMessageTypes } from '../../../../../constant';
  98. import { tipMessaggeFormat, offlinePushInfo, formatMessageTime } from '../../../../../util/imCommon';
  99. const textRenderTypes = [MessageType.TextMessage, MessageType.AtTextMessage, MessageType.QuoteMessage];
  100. const mediaRenderTypes = [MessageType.VideoMessage, MessageType.PictureMessage];
  101. export default {
  102. components: {
  103. MyAvatar,
  104. TextMessageRender,
  105. MediaMessageRender,
  106. AudioMessageRender,
  107. FaceMessageRender,
  108. FileMessageRender,
  109. CardMessageRender,
  110. CustomMessageRender,
  111. MergeMessageRender,
  112. QuoteMessageRender,
  113. LocationMessageRender,
  114. GroupAnnounceRender,
  115. RtcMessageRender,
  116. MeetingInviteMessageRender,
  117. ErrorMessageRender,
  118. MessageMenu,
  119. MessageReadState,
  120. MassMessageRender
  121. },
  122. props: {
  123. source: Object,
  124. isSender: {
  125. type: Boolean,
  126. default: false
  127. },
  128. mutipleCheckVisible: {
  129. type: Boolean,
  130. default: false
  131. },
  132. menuOutsideFlag: Number,
  133. isPreview: Boolean,
  134. isActive: Boolean
  135. },
  136. data() {
  137. return {
  138. menuState: {
  139. visible: false,
  140. isBottom: false,
  141. paterWidth: false,
  142. sendingDelay: true
  143. },
  144. count: 30,
  145. timer: null,
  146. announcePublisher: {},
  147. conversationID: ''
  148. };
  149. },
  150. computed: {
  151. ...mapGetters(['storeCurrentConversation', 'storeCurrentGroup', 'storeSelfInfo', 'storeRevokeMap']),
  152. isSingle() {
  153. return this.storeCurrentConversation.conversationType === SessionType.Single;
  154. },
  155. formattedMessageTime() {
  156. return formatMessageTime(this.source.sendTime);
  157. },
  158. massMessageData() {
  159. if (this.source.contentType === MessageType.CustomMessage) {
  160. try {
  161. const customData = JSON.parse(this.source.customElem.data);
  162. if (customData.customType === CustomType.MassMsg) {
  163. return customData.data;
  164. }
  165. } catch (e) {}
  166. }
  167. return null;
  168. },
  169. showTextRender() {
  170. return textRenderTypes.includes(this.source.contentType);
  171. },
  172. showMediaRender() {
  173. return mediaRenderTypes.includes(this.source.contentType);
  174. },
  175. showAudioRender() {
  176. return this.source.contentType === MessageType.VoiceMessage;
  177. },
  178. showFaceRender() {
  179. return this.source.contentType === MessageType.FaceMessage;
  180. },
  181. showFileRender() {
  182. return this.source.contentType === MessageType.FileMessage;
  183. },
  184. showCardRender() {
  185. return this.source.contentType === MessageType.CardMessage;
  186. },
  187. showMergeRender() {
  188. return this.source.contentType === MessageType.MergeMessage;
  189. },
  190. showLocationRender() {
  191. return this.source.contentType === MessageType.LocationMessage;
  192. },
  193. showCustomRender(){
  194. return this.source.contentType===MessageType.CustomMessage;
  195. },
  196. rtcMessageData() {
  197. if (this.source.contentType === MessageType.CustomMessage) {
  198. try {
  199. const customData = JSON.parse(this.source.customElem.data);
  200. if (customData.customType === CustomType.Call) {
  201. return customData.data;
  202. }
  203. } catch (e) {}
  204. }
  205. return null;
  206. },
  207. meetingMessageData() {
  208. if (this.source.contentType === MessageType.CustomMessage) {
  209. try {
  210. const customData = JSON.parse(this.source.customElem.data);
  211. if (customData.customType === CustomType.MeetingInvitation) {
  212. return customData.data;
  213. }
  214. } catch (e) {}
  215. }
  216. return null;
  217. },
  218. showGroupAnnouncement() {
  219. return this.source.contentType === MessageType.GroupAnnouncementUpdated;
  220. },
  221. getNoticeContent() {
  222. if (this.showGroupAnnouncement) {
  223. return '';
  224. }
  225. const isNoticeMessage = noticeMessageTypes.includes(this.source.contentType);
  226. const showEdit = Boolean(this.storeRevokeMap[this.source.clientMsgID]);
  227. const perfix = showEdit ? `<a style="color:#0089FF; text-decoration:none;" href="${this.source.clientMsgID}"'>重新编辑</a>` : '';
  228. return !isNoticeMessage ? '' : tipMessaggeFormat(this.source, this.$store.getters.storeCurrentUserID) + perfix;
  229. },
  230. isQuoteMessage() {
  231. let isQuoteMessage=this.source.contentType === MessageType.QuoteMessage || this.source.atTextElem?.quoteMessage;
  232. if(isQuoteMessage){
  233. console.log("qxj source:");
  234. console.log(this.source);
  235. }
  236. return isQuoteMessage;
  237. },
  238. isSuccessMessage() {
  239. return this.source.status === MessageStatus.Succeed;
  240. },
  241. isFailedMessage() {
  242. return this.source.status === MessageStatus.Failed;
  243. },
  244. showSending() {
  245. return this.source.status === MessageStatus.Sending && !this.sendingDelay;
  246. },
  247. readLimitSensitive() {
  248. return this.source.attachedInfoElem?.isPrivateChat && this.source.isRead && !this.isPreview;
  249. },
  250. canMutipleCheck() {
  251. return this.source.disabled || this.source.contentType === MessageType.GroupAnnouncementUpdated;
  252. },
  253. isShowAsRead() {
  254. return this.source.sessionType === SessionType.Single || (this.source.sessionType === SessionType.WorkingGroup && this.storeCurrentGroup.displayIsRead);
  255. },
  256. avatarDesc() {
  257. if (this.isSingle) {
  258. return this.storeCurrentConversation.showName;
  259. }
  260. return this.announcePublisher.nickname || this.source.senderNickname;
  261. }
  262. },
  263. mounted() {
  264. this.conversationID = this.$store.getters.storeCurrentConversation.conversationID;
  265. this.$emit('messageItemRender', this.source.clientMsgID);
  266. this.isReadObserver();
  267. this.setSendingDelay();
  268. },
  269. beforeDestroy() {
  270. if (this.count !== 0 && !this.isPreview) {
  271. this.checkPrivateMessage();
  272. }
  273. },
  274. watch: {
  275. menuOutsideFlag(newVal) {
  276. if (this.menuState.visible) {
  277. this.menuState.visible = false;
  278. }
  279. },
  280. readLimitSensitive: {
  281. handler(newVal) {
  282. if (newVal) {
  283. this.startCount();
  284. }
  285. },
  286. immediate: true
  287. },
  288. showGroupAnnouncement: {
  289. handler(newVal) {
  290. if (newVal) {
  291. this.getAnnouncementPublisher();
  292. }
  293. },
  294. immediate: true
  295. }
  296. },
  297. methods: {
  298. ...mapActions('message', ['updateOneMessage', 'deleteMessages']),
  299. navigate(link) {
  300. if (link.innerText == '重新编辑') {
  301. uni.$emit(PageEvents.ReEditMessage, link.href);
  302. return;
  303. }
  304. this.showInfo(link.href);
  305. },
  306. reSendMessage() {
  307. this.updateOneMessage({
  308. message: this.source,
  309. type: UpdateMessageTypes.KeyWords,
  310. keyWords: [
  311. {
  312. key: 'status',
  313. value: MessageStatus.Sending
  314. }
  315. ]
  316. });
  317. IMSDK.asyncApi(IMMethods.SendMessage, IMSDK.uuid(), {
  318. recvID: this.storeCurrentConversation.userID,
  319. groupID: this.storeCurrentConversation.groupID,
  320. message: this.source,
  321. offlinePushInfo
  322. })
  323. .then(({ data }) => {
  324. this.updateOneMessage({
  325. message: data,
  326. isSuccess: true
  327. });
  328. })
  329. .catch(({ data, errCode, errMsg }) => {
  330. this.updateOneMessage({
  331. message: data,
  332. type: UpdateMessageTypes.KeyWords,
  333. keyWords: [
  334. {
  335. key: 'status',
  336. value: MessageStatus.Failed
  337. },
  338. {
  339. key: 'errCode',
  340. value: errCode
  341. }
  342. ]
  343. });
  344. });
  345. },
  346. async showMenu() {
  347. if (this.isPreview) {
  348. return;
  349. }
  350. this.$emit('closeMenu');
  351. this.$nextTick(() => {
  352. uni.createSelectorQuery()
  353. .in(this)
  354. .select('.message_content_wrap')
  355. .boundingClientRect((res) => {
  356. console.log(res.top);
  357. this.menuState.paterWidth = res.width;
  358. this.menuState.isBottom = res.top < 250;
  359. this.menuState.visible = true;
  360. }).exec();
  361. });
  362. },
  363. getAnnouncementPublisher() {
  364. let group = {};
  365. try {
  366. group = JSON.parse(this.source.notificationElem.detail).group;
  367. } catch (e) {}
  368. if (!group.notificationUserID) return;
  369. IMSDK.asyncApi(IMSDK.IMMethods.GetSpecifiedGroupMembersInfo, IMSDK.uuid(), {
  370. groupID: group.groupID,
  371. userIDList: [group.notificationUserID]
  372. }).then(({ data }) => (this.announcePublisher = data[0] ?? {}));
  373. },
  374. checkPrivateMessage() {
  375. if (this.source.attachedInfoElem?.isPrivateChat) {
  376. this.clearPrivateMessage();
  377. }
  378. if (this.timer) {
  379. clearInterval(this.timer);
  380. }
  381. },
  382. startCount() {
  383. this.count = this.source.attachedInfoElem?.burnDuration || 30;
  384. this.timer = setInterval(() => {
  385. if (this.count > 0) {
  386. this.count -= 1;
  387. } else {
  388. this.checkPrivateMessage();
  389. }
  390. }, 1000);
  391. },
  392. clearPrivateMessage() {
  393. IMSDK.asyncApi(IMSDK.IMMethods.DeleteMessage, IMSDK.uuid(), {
  394. conversationID: this.conversationID,
  395. clientMsgID: this.source.clientMsgID
  396. }).then(() => {
  397. this.deleteMessages([this.source]);
  398. }).catch(() => uni.$u.toast('删除失败'));
  399. },
  400. setSendingDelay() {
  401. if (this.source.status === MessageStatus.Sending) {
  402. setTimeout(() => {
  403. this.sendingDelay = false;
  404. }, 2000);
  405. }
  406. },
  407. markGroupMessageReadState() {
  408. if (this.source.isRead || this.source.seq === 0) return;
  409. if (!this.source.groupID) {
  410. this.source.isRead = true;
  411. } else {
  412. if (!this.isShowAsRead) return;
  413. IMSDK.asyncApi('sendGroupMessageReadReceipt', IMSDK.uuid(), {
  414. conversationID: this.$store.getters.storeCurrentConversation.conversationID,
  415. clientMsgIDList: [this.source.clientMsgID]
  416. }).then(() => (this.source.isRead = true));
  417. }
  418. },
  419. isReadObserver() {
  420. const isNoticeMessage = noticeMessageTypes.includes(this.source.contentType);
  421. if (this.isPreview || this.isSender || isNoticeMessage) {
  422. return;
  423. }
  424. const observer = uni.createIntersectionObserver(ChatingList);
  425. observer.relativeTo('#scroll_view').observe(`#auchor${this.source.clientMsgID}`, ({ intersectionRatio }) => {
  426. if (intersectionRatio > 0) {
  427. this.markGroupMessageReadState();
  428. if (this.source.isAppend) {
  429. this.updateOneMessage({
  430. message: this.source,
  431. type: UpdateMessageTypes.KeyWords,
  432. keyWords: {
  433. key: 'isAppend',
  434. value: false
  435. }
  436. });
  437. }
  438. observer.disconnect();
  439. }
  440. });
  441. },
  442. atUser() {
  443. if (!this.isSender && this.source.groupID && !this.isPreview) {
  444. uni.$emit(PageEvents.AtSomeOne, {
  445. userID: this.source.sendID,
  446. nickname: this.source.senderNickname
  447. });
  448. }
  449. },
  450. showInfo(userID) {
  451. if (this.showGroupAnnouncement || this.isPreview || this.mutipleCheckVisible) {
  452. return;
  453. }
  454. const sourceID = userID ?? this.source.sendID;
  455. if (this.source.sessionType === SessionType.Single) {
  456. uni.navigateTo({
  457. url: `/pages/common/userCard/index?sourceID=${sourceID}`
  458. });
  459. } else {
  460. if (this.$store.getters.storeCurrentGroup.lookMemberInfo === AllowType.NotAllowed) {
  461. return;
  462. }
  463. IMSDK.asyncApi(IMSDK.IMMethods.GetSpecifiedGroupMembersInfo, IMSDK.uuid(), {
  464. groupID: this.source.groupID,
  465. userIDList: [sourceID]
  466. }).then(({ data }) => {
  467. const member = data[0];
  468. uni.$u.route('/pages/common/userCard/index', {
  469. sourceID,
  470. memberInfo: member ? JSON.stringify(member) : '',
  471. disableAdd: this.$store.getters.storeCurrentGroup.applyMemberFriend === AllowType.NotAllowed
  472. });
  473. });
  474. }
  475. },
  476. clickMessageItem() {
  477. console.log("--qxj msg item:");
  478. console.log(this.source);
  479. if (this.mutipleCheckVisible && !this.canMutipleCheck) {
  480. console.log("---qxj mutipleCheckVisible:");
  481. this.updateOneMessage({
  482. message: {
  483. ...this.source,
  484. checked: !this.source.checked,
  485. }
  486. });
  487. }
  488. },
  489. getRole(){
  490. let userType=0;
  491. let userId="";
  492. if(this.isSender){
  493. userId=this.storeCurrentUserID;
  494. }else{
  495. userId=this.source.sendID;
  496. }
  497. if(userId!=undefined && (userId!="" || userId.length>0)){
  498. if(userId.indexOf('U')!==-1){
  499. userType=0;
  500. }
  501. if(userId.indexOf('D')!==-1){
  502. userType=1;
  503. }
  504. if(userId.indexOf('C')!==-1){
  505. userType=2;
  506. }
  507. }
  508. return userType;
  509. }
  510. }
  511. };
  512. </script>
  513. <style scoped lang="scss">
  514. .message_item {
  515. display: flex;
  516. flex-direction: row;
  517. padding: 16rpx 44rpx;
  518. // padding-top: 48rpx;
  519. position: relative;
  520. .check_wrap {
  521. @include centerBox();
  522. box-sizing: border-box;
  523. width: 40rpx;
  524. min-width: 40rpx;
  525. height: 40rpx;
  526. min-height: 40rpx;
  527. border: 2px solid #979797;
  528. border-radius: 50%;
  529. margin-top: 16rpx;
  530. margin-right: 24rpx;
  531. &_active {
  532. background-color: #1d6bed;
  533. border: none;
  534. }
  535. &_disabled {
  536. background-color: #c8c9cc;
  537. }
  538. }
  539. .message_container {
  540. display: flex;
  541. flex-direction: column;
  542. align-items: flex-start;
  543. margin-left: 20rpx;
  544. // text-align: start;
  545. max-width: 80%;
  546. position: relative;
  547. .message_sender {
  548. @include nomalEllipsis();
  549. display: flex;
  550. max-width: 480rpx;
  551. // font-size: 24rpx;
  552. font-size: 0.85rem;
  553. color: #666;
  554. margin-bottom: 6rpx;
  555. }
  556. .message_content_wrap {
  557. @include vCenterBox();
  558. text-align: start;
  559. // font-size: 14px;
  560. color: $uni-text-color;
  561. width: fit-content;
  562. overflow: hidden;
  563. .bg_container {
  564. padding: 16rpx 24rpx;
  565. border-radius: 0rpx 12rpx 12rpx 12rpx;
  566. background-color: #f0f0f0;
  567. }
  568. }
  569. }
  570. .message_send_state_box {
  571. display: flex;
  572. flex-direction: row-reverse;
  573. max-width: 100%;
  574. }
  575. .message_send_state {
  576. @include centerBox();
  577. margin-left: 12rpx;
  578. // margin-top: 48rpx;
  579. min-width: 48rpx;
  580. height: 48rpx;
  581. .read_limit_count {
  582. // font-size: 24rpx;
  583. font-size: 0.85rem;
  584. color: #999;
  585. }
  586. image {
  587. width: 16px;
  588. height: 16px;
  589. }
  590. }
  591. ::v-deep .emoji_display {
  592. width: 24px;
  593. height: 18px;
  594. vertical-align: sub;
  595. }
  596. &_self {
  597. flex-direction: row-reverse;
  598. .check_wrap {
  599. margin-right: 0;
  600. margin-left: 24rpx;
  601. }
  602. .message_container {
  603. margin-left: 0;
  604. margin-right: 20rpx;
  605. // text-align: end;
  606. align-items: flex-end;
  607. .message_content_wrap {
  608. flex-direction: row-reverse;
  609. overflow: hidden;
  610. .bg_container {
  611. border-radius: 12rpx 0 12rpx 12rpx;
  612. background-color: #dcebfe !important;
  613. }
  614. }
  615. }
  616. .message_send_state_box {
  617. flex-direction: row;
  618. }
  619. .message_send_state {
  620. margin-left: 0rpx;
  621. margin-right: 12rpx;
  622. }
  623. }
  624. &_active {
  625. background-color: #fdf5e9;
  626. }
  627. }
  628. .notice_message_container {
  629. @include ellipsisWithLine(2);
  630. text-align: center;
  631. margin: 24rpx 48rpx;
  632. // font-size: 24rpx;
  633. font-size: 0.85rem;
  634. color: #999;
  635. position: relative;
  636. }
  637. .fade-leave,
  638. .fade-enter-to {
  639. opacity: 1;
  640. }
  641. .fade-leave-active,
  642. .fade-enter-active {
  643. transition: all 0.5s;
  644. }
  645. .fade-leave-to,
  646. .fade-enter {
  647. opacity: 0;
  648. }
  649. .taoj{
  650. position: absolute;
  651. left: -1px;
  652. top: -1px;
  653. width: 50px;
  654. height: 50px;
  655. }
  656. </style>