@aochuang/client-sdk 1.0.278
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -0
- package/common/avatar/avatar.vue +86 -0
- package/common/avatar/index.js +3 -0
- package/common/badge/badge.vue +105 -0
- package/common/badge/index.js +3 -0
- package/common/context-menu/context-menu-box.vue +61 -0
- package/common/context-menu/context-menu-group.vue +162 -0
- package/common/context-menu/context-menu-item.vue +179 -0
- package/common/context-menu/context-menu.vue +201 -0
- package/common/context-menu/index.js +3 -0
- package/common/context-menu/utils.js +138 -0
- package/common/friend-avatar/default.svg +1 -0
- package/common/friend-avatar/friend-avatar.vue +29 -0
- package/common/friend-avatar/index.js +3 -0
- package/common/image/index.js +3 -0
- package/common/index.js +17 -0
- package/common/room-avatar/default.svg +6 -0
- package/common/room-avatar/index.js +3 -0
- package/common/room-avatar/room-avatar.vue +29 -0
- package/common/scroll-load-more/index.js +3 -0
- package/common/scroll-load-more/scroll-load-more.vue +195 -0
- package/common/user-avatar/default.svg +1 -0
- package/common/user-avatar/index.js +3 -0
- package/common/user-avatar/user-avatar.vue +29 -0
- package/components/account-select/account-select-skeleton.vue +56 -0
- package/components/account-select/account-select.vue +205 -0
- package/components/account-select/all.svg +1 -0
- package/components/account-select/index.js +3 -0
- package/components/chat-editor/MENTION_TOKEN_SUMMARY.md +74 -0
- package/components/chat-editor/chat-editor-button/chat-editor-button.vue +78 -0
- package/components/chat-editor/chat-editor-suggestions/chat-editor-suggestions.vue +329 -0
- package/components/chat-editor/chat-editor-toolbar/chat-editor-toolbar-item.vue +28 -0
- package/components/chat-editor/chat-editor-toolbar/chat-editor-toolbar.vue +17 -0
- package/components/chat-editor/chat-editor.vue +933 -0
- package/components/chat-editor/index.js +12 -0
- package/components/chat-editor/utils.js +189 -0
- package/components/chat-friend-profile/chat-friend-profile.vue +118 -0
- package/components/chat-friend-profile/index.js +3 -0
- package/components/chat-layout/chat-layout.vue +71 -0
- package/components/chat-layout/index.js +3 -0
- package/components/chat-panel/chat-panel-box.vue +350 -0
- package/components/chat-panel/chat-panel-chat.vue +121 -0
- package/components/chat-panel/chat-panel-chats.vue +674 -0
- package/components/chat-panel/chat-panel-empty.vue +32 -0
- package/components/chat-panel/chat-panel-increment.vue +80 -0
- package/components/chat-panel/chat-panel-inner-msg.vue +25 -0
- package/components/chat-panel/chat-panel-loading.vue +29 -0
- package/components/chat-panel/chat-panel-nearest.vue +136 -0
- package/components/chat-panel/chat-panel.vue +292 -0
- package/components/chat-panel/index.js +3 -0
- package/components/chat-panel/util.js +83 -0
- package/components/chat-room-profile/chat-room-profile.vue +103 -0
- package/components/chat-room-profile/index.js +3 -0
- package/components/contacts-friend-select/contacts-friend-select-skeleton.vue +41 -0
- package/components/contacts-friend-select/contacts-friend-select.vue +204 -0
- package/components/contacts-friend-select/index.js +3 -0
- package/components/contacts-group-select/contacts-group-select-item.vue +98 -0
- package/components/contacts-group-select/contacts-group-select-skeleton.vue +81 -0
- package/components/contacts-group-select/contacts-group-select.vue +396 -0
- package/components/contacts-group-select/index.js +3 -0
- package/components/contacts-room-select/contacts-room-select-skeleton.vue +41 -0
- package/components/contacts-room-select/contacts-room-select.vue +208 -0
- package/components/contacts-room-select/index.js +3 -0
- package/components/index.js +43 -0
- package/components/layout/index.js +3 -0
- package/components/layout/layout.vue +70 -0
- package/components/session-select/index.js +11 -0
- package/components/session-select/session-select-item-skeleton.vue +59 -0
- package/components/session-select/session-select-item.vue +190 -0
- package/components/session-select/session-select.vue +386 -0
- package/components/wechat-chat-control/calling/calling.vue +227 -0
- package/components/wechat-chat-control/calling/phone-fill.svg +1 -0
- package/components/wechat-chat-control/calling/vidicon-fill.svg +1 -0
- package/components/wechat-chat-control/channel-live/channel-live.vue +198 -0
- package/components/wechat-chat-control/channel-live/quote-icon.svg +1 -0
- package/components/wechat-chat-control/channel-video/channel-video.vue +180 -0
- package/components/wechat-chat-control/channel-video/quote-icon.svg +1 -0
- package/components/wechat-chat-control/channel-video-card/channel-video-card.vue +139 -0
- package/components/wechat-chat-control/channel-video-card/quote-icon.svg +1 -0
- package/components/wechat-chat-control/company-card/company-card.vue +136 -0
- package/components/wechat-chat-control/company-card/quote-icon.svg +1 -0
- package/components/wechat-chat-control/custom-expression/custom-expression.vue +45 -0
- package/components/wechat-chat-control/empty/empty.vue +27 -0
- package/components/wechat-chat-control/file-url/file-url.vue +307 -0
- package/components/wechat-chat-control/file-url/icons/file-excel-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-info-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-music-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-pdf-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-ppt-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-settings-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-text-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-unknow-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-word-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-zip-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/index.js +24 -0
- package/components/wechat-chat-control/image/image.vue +344 -0
- package/components/wechat-chat-control/image/index.js +1 -0
- package/components/wechat-chat-control/image/util.js +29 -0
- package/components/wechat-chat-control/index.js +104 -0
- package/components/wechat-chat-control/jx-sys-text/jx-sys-text.vue +28 -0
- package/components/wechat-chat-control/location/location.vue +179 -0
- package/components/wechat-chat-control/location/offline-bg.png +0 -0
- package/components/wechat-chat-control/member-change/member-change.vue +37 -0
- package/components/wechat-chat-control/music/icons/163.png +0 -0
- package/components/wechat-chat-control/music/icons/163.svg +12 -0
- package/components/wechat-chat-control/music/icons/default.png +0 -0
- package/components/wechat-chat-control/music/icons/default.svg +1 -0
- package/components/wechat-chat-control/music/icons/kuwo.png +0 -0
- package/components/wechat-chat-control/music/icons/qq.png +0 -0
- package/components/wechat-chat-control/music/icons/qq.svg +1 -0
- package/components/wechat-chat-control/music/music.vue +156 -0
- package/components/wechat-chat-control/music/utils.js +30 -0
- package/components/wechat-chat-control/quote-message/quote-message.vue +257 -0
- package/components/wechat-chat-control/real-time-position/icon.svg +1 -0
- package/components/wechat-chat-control/real-time-position/real-time-position.vue +57 -0
- package/components/wechat-chat-control/red-envelopes/quote-icon.svg +1 -0
- package/components/wechat-chat-control/red-envelopes/red-envelope.svg +1 -0
- package/components/wechat-chat-control/red-envelopes/red-envelopes.vue +168 -0
- package/components/wechat-chat-control/revoke-me-message/revoke-me-message.vue +41 -0
- package/components/wechat-chat-control/revoke-other-message/revoke-other-message.vue +41 -0
- package/components/wechat-chat-control/revoke-you-message/revoke-you-message.vue +41 -0
- package/components/wechat-chat-control/room-calling/phone-fill.svg +1 -0
- package/components/wechat-chat-control/room-calling/room-calling.vue +52 -0
- package/components/wechat-chat-control/room-calling/vidicon-fill.svg +1 -0
- package/components/wechat-chat-control/share-card/quote-icon.svg +1 -0
- package/components/wechat-chat-control/share-card/share-card.vue +140 -0
- package/components/wechat-chat-control/system/system.vue +122 -0
- package/components/wechat-chat-control/system-batch-message/system-batch-message.vue +28 -0
- package/components/wechat-chat-control/system-money/system-money.vue +39 -0
- package/components/wechat-chat-control/text/icons/icon.svg +6 -0
- package/components/wechat-chat-control/text/text.vue +164 -0
- package/components/wechat-chat-control/text-with-at/text-with-at.vue +88 -0
- package/components/wechat-chat-control/transfer/collection.svg +1 -0
- package/components/wechat-chat-control/transfer/quote-icon.svg +1 -0
- package/components/wechat-chat-control/transfer/red-transfer.svg +1 -0
- package/components/wechat-chat-control/transfer/refund.svg +1 -0
- package/components/wechat-chat-control/transfer/transfer.svg +1 -0
- package/components/wechat-chat-control/transfer/transfer.vue +263 -0
- package/components/wechat-chat-control/unknow/unknow.vue +21 -0
- package/components/wechat-chat-control/url/icons/link.svg +1 -0
- package/components/wechat-chat-control/url/icons/video.svg +6 -0
- package/components/wechat-chat-control/url/miniprogram.svg +1 -0
- package/components/wechat-chat-control/url/url-file.vue +47 -0
- package/components/wechat-chat-control/url/url-link.vue +169 -0
- package/components/wechat-chat-control/url/url-merge.vue +164 -0
- package/components/wechat-chat-control/url/url-miniprogram.vue +259 -0
- package/components/wechat-chat-control/url/url.vue +116 -0
- package/components/wechat-chat-control/util.js +234 -0
- package/components/wechat-chat-control/video/icons/video.svg +1 -0
- package/components/wechat-chat-control/video/video.vue +304 -0
- package/components/wechat-chat-control/voice/icons/voice.svg +1 -0
- package/components/wechat-chat-control/voice/voice.vue +464 -0
- package/components/wechat-chat-control/wechat-chat-control-config-item.vue +24 -0
- package/components/wechat-chat-control/wechat-chat-control-config-msg.vue +21 -0
- package/components/wechat-chat-control/wechat-chat-control-config.vue +57 -0
- package/components/wechat-chat-panel/chat-panel-chat-status/chat-panel-chat-status.vue +69 -0
- package/components/wechat-chat-panel/chat-panel-item.vue +695 -0
- package/components/wechat-chat-panel/chat-panel.vue +257 -0
- package/components/wechat-chat-panel/index.js +3 -0
- package/components/wework-chat-control/calling/calling.vue +223 -0
- package/components/wework-chat-control/calling/phone-fill.svg +1 -0
- package/components/wework-chat-control/calling/vidicon-fill.svg +1 -0
- package/components/wework-chat-control/channel-live/channel-live.vue +198 -0
- package/components/wework-chat-control/channel-live/quote-icon.svg +1 -0
- package/components/wework-chat-control/channel-video/channel-video.vue +180 -0
- package/components/wework-chat-control/channel-video/quote-icon.svg +1 -0
- package/components/wework-chat-control/company-card/company-card.vue +136 -0
- package/components/wework-chat-control/company-card/quote-icon.svg +1 -0
- package/components/wework-chat-control/custom-expression/custom-expression.vue +34 -0
- package/components/wework-chat-control/empty/empty.vue +27 -0
- package/components/wework-chat-control/expression/expression.vue +53 -0
- package/components/wework-chat-control/file-url/file-url.vue +247 -0
- package/components/wework-chat-control/file-url/icons/file-excel-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-info-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-music-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-pdf-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-ppt-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-settings-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-text-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-unknow-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-word-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-zip-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/index.js +24 -0
- package/components/wework-chat-control/image/image.vue +296 -0
- package/components/wework-chat-control/image/index.js +1 -0
- package/components/wework-chat-control/image/util.js +21 -0
- package/components/wework-chat-control/index.js +105 -0
- package/components/wework-chat-control/jx-sys-text/jx-sys-text.vue +28 -0
- package/components/wework-chat-control/link/link.vue +100 -0
- package/components/wework-chat-control/location/location.vue +181 -0
- package/components/wework-chat-control/location/offline-bg.png +0 -0
- package/components/wework-chat-control/red-envelopes/quote-icon.svg +1 -0
- package/components/wework-chat-control/red-envelopes/red-envelope.svg +1 -0
- package/components/wework-chat-control/red-envelopes/red-envelopes.vue +168 -0
- package/components/wework-chat-control/share-card/quote-icon.svg +1 -0
- package/components/wework-chat-control/share-card/share-card.vue +140 -0
- package/components/wework-chat-control/text/icons/icon.svg +6 -0
- package/components/wework-chat-control/text/text.vue +157 -0
- package/components/wework-chat-control/unknow/unknow.vue +21 -0
- package/components/wework-chat-control/url/icons/link.svg +1 -0
- package/components/wework-chat-control/url/icons/video.svg +6 -0
- package/components/wework-chat-control/url/miniprogram.svg +1 -0
- package/components/wework-chat-control/url/url-file.vue +37 -0
- package/components/wework-chat-control/url/url-link.vue +169 -0
- package/components/wework-chat-control/url/url-merge.vue +164 -0
- package/components/wework-chat-control/url/url-miniprogram.vue +248 -0
- package/components/wework-chat-control/url/url.vue +103 -0
- package/components/wework-chat-control/util.js +223 -0
- package/components/wework-chat-control/video/icons/video.svg +1 -0
- package/components/wework-chat-control/video/video.vue +304 -0
- package/components/wework-chat-control/voice/icons/voice.svg +1 -0
- package/components/wework-chat-control/voice/voice.vue +464 -0
- package/components/wework-chat-panel/chat-panel-controls/company-card/company-card.vue +35 -0
- package/components/wework-chat-panel/chat-panel-controls/expression/expression.vue +36 -0
- package/components/wework-chat-panel/chat-panel-controls/file-url/file-url.vue +35 -0
- package/components/wework-chat-panel/chat-panel-controls/image/image.vue +36 -0
- package/components/wework-chat-panel/chat-panel-controls/index.js +35 -0
- package/components/wework-chat-panel/chat-panel-controls/jx-sys-text/jx-sys-text.vue +28 -0
- package/components/wework-chat-panel/chat-panel-controls/link/link.vue +35 -0
- package/components/wework-chat-panel/chat-panel-controls/location/location.vue +35 -0
- package/components/wework-chat-panel/chat-panel-controls/text/text.vue +43 -0
- package/components/wework-chat-panel/chat-panel-controls/unkonw/unkonw.vue +39 -0
- package/components/wework-chat-panel/chat-panel-controls/video/video.vue +37 -0
- package/components/wework-chat-panel/chat-panel-controls/voice/voice.vue +35 -0
- package/components/wework-chat-panel/chat-panel-item.vue +650 -0
- package/components/wework-chat-panel/chat-panel.vue +163 -0
- package/components/wework-chat-panel/index.js +3 -0
- package/package.json +23 -0
- package/services/client-chat/client-chat-wechat/client-chat-account.js +426 -0
- package/services/client-chat/client-chat-wechat/client-chat-concats.js +1029 -0
- package/services/client-chat/client-chat-wechat/client-chat-draft.js +92 -0
- package/services/client-chat/client-chat-wechat/client-chat-message.js +588 -0
- package/services/client-chat/client-chat-wechat/client-chat-session-manage.js +67 -0
- package/services/client-chat/client-chat-wechat/client-chat-session.js +1048 -0
- package/services/client-chat/client-chat-wechat/client-chat-socket.js +215 -0
- package/services/client-chat/client-chat-wechat/client-chat.js +1065 -0
- package/services/client-chat/client-chat-wechat/index.js +3 -0
- package/services/client-chat/client-chat-wechat/utils.js +82 -0
- package/services/client-chat/client-chat-wework/client-chat-account.js +310 -0
- package/services/client-chat/client-chat-wework/client-chat-concats.js +772 -0
- package/services/client-chat/client-chat-wework/client-chat-message.js +278 -0
- package/services/client-chat/client-chat-wework/client-chat-session.js +929 -0
- package/services/client-chat/client-chat-wework/client-chat-socket.js +64 -0
- package/services/client-chat/client-chat-wework/client-chat.js +330 -0
- package/services/client-chat/client-chat-wework/index.js +3 -0
- package/services/client-chat/client-chat-wework/utils.js +82 -0
- package/services/index.js +10 -0
- package/services/socket/index.js +5 -0
- package/services/socket/socket.js +797 -0
- package/services/socket/utils.js +7 -0
- package/uni-common/account-portray/account-portray.vue +51 -0
- package/uni-common/account-select/account-select-item.vue +172 -0
- package/uni-common/account-select/account-select.vue +252 -0
- package/uni-common/all-friend-avatar/all-friend-avatar.vue +49 -0
- package/uni-common/friend-avatar/default.svg +1 -0
- package/uni-common/friend-avatar/friend-avatar.vue +27 -0
- package/uni-common/friend-avatar/index.js +3 -0
- package/uni-common/friend-loader/friend-loader.vue +53 -0
- package/uni-common/friend-portray/friend-portray.vue +56 -0
- package/uni-common/group-avatar/default.svg +1 -0
- package/uni-common/group-avatar/group-avatar.vue +18 -0
- package/uni-common/group-avatar/index.js +3 -0
- package/uni-common/room-avatar/default.svg +6 -0
- package/uni-common/room-avatar/index.js +3 -0
- package/uni-common/room-avatar/room-avatar.vue +27 -0
- package/uni-common/room-loader/room-loader.vue +53 -0
- package/uni-common/room-portray/room-portray.vue +56 -0
- package/uni-components/chat-control/calling/calling.vue +91 -0
- package/uni-components/chat-control/calling/phone-fill.svg +1 -0
- package/uni-components/chat-control/calling/vidicon-fill.svg +1 -0
- package/uni-components/chat-control/channel-video/channel-video.vue +89 -0
- package/uni-components/chat-control/channel-video-card/channel-video-card.vue +105 -0
- package/uni-components/chat-control/channel-video-live/channel-video-live.vue +92 -0
- package/uni-components/chat-control/chat-control-config-item/chat-control-config-item.vue +20 -0
- package/uni-components/chat-control/chat-control-config-item/index.js +3 -0
- package/uni-components/chat-control/chat-control-config-msg/chat-control-config-msg-app.vue +25 -0
- package/uni-components/chat-control/chat-control-config-msg/chat-control-config-msg-h5.vue +21 -0
- package/uni-components/chat-control/chat-control-config.vue +59 -0
- package/uni-components/chat-control/chat-control.vue +218 -0
- package/uni-components/chat-control/company-card/company-card.vue +123 -0
- package/uni-components/chat-control/const.js +28 -0
- package/uni-components/chat-control/expression/expression.vue +41 -0
- package/uni-components/chat-control/image/image.vue +68 -0
- package/uni-components/chat-control/index.js +89 -0
- package/uni-components/chat-control/location/location.vue +110 -0
- package/uni-components/chat-control/member-change/member-change.vue +32 -0
- package/uni-components/chat-control/quote-message/quote-message.vue +216 -0
- package/uni-components/chat-control/real-time-position/real-time-position.vue +62 -0
- package/uni-components/chat-control/redpacket/red-envelope.svg +1 -0
- package/uni-components/chat-control/redpacket/redpacket.vue +75 -0
- package/uni-components/chat-control/share-card/share-card.vue +101 -0
- package/uni-components/chat-control/system/system.vue +69 -0
- package/uni-components/chat-control/system-batch-message/system-batch-message.vue +30 -0
- package/uni-components/chat-control/system-text/system-text.vue +32 -0
- package/uni-components/chat-control/text/text.vue +67 -0
- package/uni-components/chat-control/text-with-at/text-with-at.vue +51 -0
- package/uni-components/chat-control/transfer/red-transfer.svg +1 -0
- package/uni-components/chat-control/transfer/transfer.vue +80 -0
- package/uni-components/chat-control/unkonw/unkonw.vue +37 -0
- package/uni-components/chat-control/url/icons/file-excel-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-info-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-music-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-pdf-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-ppt-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-settings-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-text-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-unknow-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-word-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-zip-line.svg +1 -0
- package/uni-components/chat-control/url/icons/index.js +24 -0
- package/uni-components/chat-control/url/miniprogram.svg +1 -0
- package/uni-components/chat-control/url/url-miniprogram.vue +116 -0
- package/uni-components/chat-control/url/url.vue +306 -0
- package/uni-components/chat-control/url-new/icons/file-excel-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-info-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-music-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-pdf-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-ppt-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-settings-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-text-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-unknow-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-word-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-zip-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/index.js +24 -0
- package/uni-components/chat-control/url-new/url-new.vue +110 -0
- package/uni-components/chat-control/utils.js +12 -0
- package/uni-components/chat-control/video/video.vue +156 -0
- package/uni-components/chat-control/voice/voice.vue +166 -0
- package/uni-components/chat-editor/chat-editor-chartlet/chat-editor-chartlet-collect.vue +84 -0
- package/uni-components/chat-editor/chat-editor-chartlet/chat-editor-chartlet-system.vue +28 -0
- package/uni-components/chat-editor/chat-editor-chartlet/chat-editor-chartlet.vue +85 -0
- package/uni-components/chat-editor/chat-editor-func/chat-editor-func.vue +157 -0
- package/uni-components/chat-editor/chat-editor-func-at/chat-editor-func-at-panel.vue +158 -0
- package/uni-components/chat-editor/chat-editor-func-at/chat-editor-func-at.vue +61 -0
- package/uni-components/chat-editor/chat-editor-func-button/chat-editor-func-button.vue +58 -0
- package/uni-components/chat-editor/chat-editor-func-file/chat-editor-func-file.vue +54 -0
- package/uni-components/chat-editor/chat-editor-func-image/chat-editor-func-image.vue +42 -0
- package/uni-components/chat-editor/chat-editor-func-video/chat-editor-func-video.vue +42 -0
- package/uni-components/chat-editor/chat-editor-func-voice/chat-editor-func-voice.vue +25 -0
- package/uni-components/chat-editor/chat-editor-message-send/chat-editor-message-send.vue +158 -0
- package/uni-components/chat-editor/chat-editor-quote/chat-editor-quote.vue +75 -0
- package/uni-components/chat-editor/chat-editor.vue +257 -0
- package/uni-components/chat-editor/index.js +10 -0
- package/uni-components/chat-editor/util.js +65 -0
- package/uni-components/chat-panel/chat-panel-chats-box.vue +238 -0
- package/uni-components/chat-panel/chat-panel-chats-forward/chat-panel-chats-forward.vue +273 -0
- package/uni-components/chat-panel/chat-panel-chats-item.vue +578 -0
- package/uni-components/chat-panel/chat-panel-chats-status/chat-panel-chats-status.vue +71 -0
- package/uni-components/chat-panel/chat-panel-chats.vue +368 -0
- package/uni-components/chat-panel/chat-panel.vue +227 -0
- package/uni-components/contacts-group-select/contacts-group-select-item.vue +85 -0
- package/uni-components/contacts-group-select/contacts-group-select-panel.vue +119 -0
- package/uni-components/contacts-group-select/contacts-group-select.vue +150 -0
- package/utils/color.js +178 -0
- package/utils/data.js +11 -0
- package/utils/date.js +107 -0
- package/utils/event.js +3 -0
- package/utils/file.js +26 -0
- package/utils/index.js +5 -0
- package/utils/json.js +40 -0
- package/utils/log.js +243 -0
- package/utils/queue.js +97 -0
- package/utils/regexp.js +9 -0
- package/utils/string.js +66 -0
- package/utils/url.js +48 -0
- package/utils/util.js +130 -0
|
@@ -0,0 +1,578 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<chat-control-config-msg
|
|
3
|
+
:msgData="data"
|
|
4
|
+
>
|
|
5
|
+
<template slot-scope="{ configData }">
|
|
6
|
+
<view class="bi-chat-panel-chats-item">
|
|
7
|
+
<template v-if="data.msgType !== '_EMPTY_'">
|
|
8
|
+
<slot name="chat-prefix" :data="data"></slot>
|
|
9
|
+
</template>
|
|
10
|
+
<template v-if="'_EMPTY_' === data.msgType">
|
|
11
|
+
<view class="bi-chat-panel-chats-item__empty">{{ data.content }}</view>
|
|
12
|
+
</template>
|
|
13
|
+
<template v-else-if="MESSAGE_TYPE.TEXT === data.msgType">
|
|
14
|
+
<chat-panel-chats-box
|
|
15
|
+
:type="type"
|
|
16
|
+
:data="data"
|
|
17
|
+
:fetch-user-method="fetchUserMethod"
|
|
18
|
+
@more-action-click="handleMoreActionClick"
|
|
19
|
+
>
|
|
20
|
+
<chat-control-text
|
|
21
|
+
v-bind="configData"
|
|
22
|
+
:type="type"
|
|
23
|
+
:dir="dir"
|
|
24
|
+
:data="msgContent"
|
|
25
|
+
></chat-control-text>
|
|
26
|
+
<template slot="append">
|
|
27
|
+
<slot name="chat-append" :data="data"></slot>
|
|
28
|
+
</template>
|
|
29
|
+
</chat-panel-chats-box>
|
|
30
|
+
</template>
|
|
31
|
+
<template v-else-if="MESSAGE_TYPE.IMAGE === data.msgType">
|
|
32
|
+
<chat-panel-chats-box
|
|
33
|
+
:type="type"
|
|
34
|
+
:data="data"
|
|
35
|
+
:fetch-user-method="fetchUserMethod"
|
|
36
|
+
@more-action-click="handleMoreActionClick"
|
|
37
|
+
>
|
|
38
|
+
<chat-control-image
|
|
39
|
+
v-bind="configData"
|
|
40
|
+
:type="type"
|
|
41
|
+
:dir="dir"
|
|
42
|
+
:data="msgContent"
|
|
43
|
+
></chat-control-image>
|
|
44
|
+
<template slot="append">
|
|
45
|
+
<slot name="chat-append" :data="data"></slot>
|
|
46
|
+
</template>
|
|
47
|
+
</chat-panel-chats-box>
|
|
48
|
+
</template>
|
|
49
|
+
<template v-else-if="MESSAGE_TYPE.URLNew === data.msgType">
|
|
50
|
+
<chat-panel-chats-box
|
|
51
|
+
:type="type"
|
|
52
|
+
:data="data"
|
|
53
|
+
:fetch-user-method="fetchUserMethod"
|
|
54
|
+
@more-action-click="handleMoreActionClick"
|
|
55
|
+
>
|
|
56
|
+
<chat-control-url-new
|
|
57
|
+
v-bind="configData"
|
|
58
|
+
:type="type"
|
|
59
|
+
:dir="dir"
|
|
60
|
+
:data="msgContent"
|
|
61
|
+
></chat-control-url-new>
|
|
62
|
+
<template slot="append">
|
|
63
|
+
<slot name="chat-append" :data="data"></slot>
|
|
64
|
+
</template>
|
|
65
|
+
</chat-panel-chats-box>
|
|
66
|
+
</template>
|
|
67
|
+
<template v-else-if="MESSAGE_TYPE.READ_ENVELOPES === data.msgType">
|
|
68
|
+
<chat-panel-chats-box
|
|
69
|
+
:type="type"
|
|
70
|
+
:data="data"
|
|
71
|
+
:fetch-user-method="fetchUserMethod"
|
|
72
|
+
@more-action-click="handleMoreActionClick"
|
|
73
|
+
>
|
|
74
|
+
<chat-control-redpacket
|
|
75
|
+
v-bind="configData"
|
|
76
|
+
:type="type"
|
|
77
|
+
:dir="dir"
|
|
78
|
+
:data="msgContent"
|
|
79
|
+
></chat-control-redpacket>
|
|
80
|
+
<template slot="append">
|
|
81
|
+
<slot name="chat-append" :data="data"></slot>
|
|
82
|
+
</template>
|
|
83
|
+
</chat-panel-chats-box>
|
|
84
|
+
</template>
|
|
85
|
+
<template v-else-if="MESSAGE_TYPE.ACCOUNT_TRANSFER === data.msgType">
|
|
86
|
+
<chat-panel-chats-box
|
|
87
|
+
:type="type"
|
|
88
|
+
:data="data"
|
|
89
|
+
:fetch-user-method="fetchUserMethod"
|
|
90
|
+
@more-action-click="handleMoreActionClick"
|
|
91
|
+
>
|
|
92
|
+
<chat-control-transfer
|
|
93
|
+
v-bind="configData"
|
|
94
|
+
:type="type"
|
|
95
|
+
:dir="dir"
|
|
96
|
+
:data="msgContent"
|
|
97
|
+
></chat-control-transfer>
|
|
98
|
+
<template slot="append">
|
|
99
|
+
<slot name="chat-append" :data="data"></slot>
|
|
100
|
+
</template>
|
|
101
|
+
</chat-panel-chats-box>
|
|
102
|
+
</template>
|
|
103
|
+
<template v-else-if="MESSAGE_TYPE.URL === data.msgType">
|
|
104
|
+
<chat-panel-chats-box
|
|
105
|
+
:type="type"
|
|
106
|
+
:data="data"
|
|
107
|
+
:fetch-user-method="fetchUserMethod"
|
|
108
|
+
@more-action-click="handleMoreActionClick"
|
|
109
|
+
>
|
|
110
|
+
<chat-control-url
|
|
111
|
+
v-bind="configData"
|
|
112
|
+
:type="type"
|
|
113
|
+
:dir="dir"
|
|
114
|
+
:data="msgContent"
|
|
115
|
+
></chat-control-url>
|
|
116
|
+
<template slot="append">
|
|
117
|
+
<slot name="chat-append" :data="data"></slot>
|
|
118
|
+
</template>
|
|
119
|
+
</chat-panel-chats-box>
|
|
120
|
+
</template>
|
|
121
|
+
<template v-else-if="MESSAGE_TYPE.CUSTOM_EXPRESSION === data.msgType">
|
|
122
|
+
<chat-panel-chats-box
|
|
123
|
+
:type="type"
|
|
124
|
+
:data="data"
|
|
125
|
+
:fetch-user-method="fetchUserMethod"
|
|
126
|
+
@more-action-click="handleMoreActionClick"
|
|
127
|
+
>
|
|
128
|
+
<chat-control-expression
|
|
129
|
+
v-bind="configData"
|
|
130
|
+
:type="type"
|
|
131
|
+
:dir="dir"
|
|
132
|
+
:data="msgContent"
|
|
133
|
+
></chat-control-expression>
|
|
134
|
+
<template slot="append">
|
|
135
|
+
<slot name="chat-append" :data="data"></slot>
|
|
136
|
+
</template>
|
|
137
|
+
</chat-panel-chats-box>
|
|
138
|
+
</template>
|
|
139
|
+
<template v-else-if="MESSAGE_TYPE.CHANNEL_VIDEO_LIVE === data.msgType">
|
|
140
|
+
<chat-panel-chats-box
|
|
141
|
+
:type="type"
|
|
142
|
+
:data="data"
|
|
143
|
+
:fetch-user-method="fetchUserMethod"
|
|
144
|
+
@more-action-click="handleMoreActionClick"
|
|
145
|
+
>
|
|
146
|
+
<chat-control-channel-video-live
|
|
147
|
+
v-bind="configData"
|
|
148
|
+
:type="type"
|
|
149
|
+
:dir="dir"
|
|
150
|
+
:data="msgContent"
|
|
151
|
+
></chat-control-channel-video-live>
|
|
152
|
+
<template slot="append">
|
|
153
|
+
<slot name="chat-append" :data="data"></slot>
|
|
154
|
+
</template>
|
|
155
|
+
</chat-panel-chats-box>
|
|
156
|
+
</template>
|
|
157
|
+
<template v-else-if="MESSAGE_TYPE.CHANNEL_VIDEO_CARD === data.msgType">
|
|
158
|
+
<chat-panel-chats-box
|
|
159
|
+
:type="type"
|
|
160
|
+
:data="data"
|
|
161
|
+
:fetch-user-method="fetchUserMethod"
|
|
162
|
+
@more-action-click="handleMoreActionClick"
|
|
163
|
+
>
|
|
164
|
+
<chat-control-channel-video-card
|
|
165
|
+
v-bind="configData"
|
|
166
|
+
:type="type"
|
|
167
|
+
:dir="dir"
|
|
168
|
+
:data="msgContent"
|
|
169
|
+
></chat-control-channel-video-card>
|
|
170
|
+
<template slot="append">
|
|
171
|
+
<slot name="chat-append" :data="data"></slot>
|
|
172
|
+
</template>
|
|
173
|
+
</chat-panel-chats-box>
|
|
174
|
+
</template>
|
|
175
|
+
<template v-else-if="MESSAGE_TYPE.CHANNEL_VIDEO === data.msgType">
|
|
176
|
+
<chat-panel-chats-box
|
|
177
|
+
:type="type"
|
|
178
|
+
:data="data"
|
|
179
|
+
:fetch-user-method="fetchUserMethod"
|
|
180
|
+
@more-action-click="handleMoreActionClick"
|
|
181
|
+
>
|
|
182
|
+
<chat-control-channel-video
|
|
183
|
+
v-bind="configData"
|
|
184
|
+
:type="type"
|
|
185
|
+
:dir="dir"
|
|
186
|
+
:data="msgContent"
|
|
187
|
+
></chat-control-channel-video>
|
|
188
|
+
<template slot="append">
|
|
189
|
+
<slot name="chat-append" :data="data"></slot>
|
|
190
|
+
</template>
|
|
191
|
+
</chat-panel-chats-box>
|
|
192
|
+
</template>
|
|
193
|
+
<template v-else-if="MESSAGE_TYPE.VIDEO === data.msgType">
|
|
194
|
+
<chat-panel-chats-box
|
|
195
|
+
:type="type"
|
|
196
|
+
:data="data"
|
|
197
|
+
:fetch-user-method="fetchUserMethod"
|
|
198
|
+
@more-action-click="handleMoreActionClick"
|
|
199
|
+
>
|
|
200
|
+
<chat-control-video
|
|
201
|
+
v-bind="configData"
|
|
202
|
+
:type="type"
|
|
203
|
+
:dir="dir"
|
|
204
|
+
:data="msgContent"
|
|
205
|
+
:download-method="handleDownloadVideoMethod"
|
|
206
|
+
></chat-control-video>
|
|
207
|
+
<template slot="append">
|
|
208
|
+
<slot name="chat-append" :data="data"></slot>
|
|
209
|
+
</template>
|
|
210
|
+
</chat-panel-chats-box>
|
|
211
|
+
</template>
|
|
212
|
+
<template v-else-if="MESSAGE_TYPE.SHARE_CARD === data.msgType">
|
|
213
|
+
<chat-panel-chats-box
|
|
214
|
+
:type="type"
|
|
215
|
+
:data="data"
|
|
216
|
+
:fetch-user-method="fetchUserMethod"
|
|
217
|
+
@more-action-click="handleMoreActionClick"
|
|
218
|
+
>
|
|
219
|
+
<chat-control-share-card
|
|
220
|
+
v-bind="configData"
|
|
221
|
+
:type="type"
|
|
222
|
+
:dir="dir"
|
|
223
|
+
:data="msgContent"
|
|
224
|
+
></chat-control-share-card>
|
|
225
|
+
<template slot="append">
|
|
226
|
+
<slot name="chat-append" :data="data"></slot>
|
|
227
|
+
</template>
|
|
228
|
+
</chat-panel-chats-box>
|
|
229
|
+
</template>
|
|
230
|
+
<template v-else-if="MESSAGE_TYPE.COMPANY_CARD === data.msgType">
|
|
231
|
+
<chat-panel-chats-box
|
|
232
|
+
:type="type"
|
|
233
|
+
:data="data"
|
|
234
|
+
:fetch-user-method="fetchUserMethod"
|
|
235
|
+
@more-action-click="handleMoreActionClick"
|
|
236
|
+
>
|
|
237
|
+
<chat-control-company-card
|
|
238
|
+
v-bind="configData"
|
|
239
|
+
:type="type"
|
|
240
|
+
:dir="dir"
|
|
241
|
+
:data="msgContent"
|
|
242
|
+
></chat-control-company-card>
|
|
243
|
+
<template slot="append">
|
|
244
|
+
<slot name="chat-append" :data="data"></slot>
|
|
245
|
+
</template>
|
|
246
|
+
</chat-panel-chats-box>
|
|
247
|
+
</template>
|
|
248
|
+
<template v-else-if="MESSAGE_TYPE.LOCATION === data.msgType">
|
|
249
|
+
<chat-panel-chats-box
|
|
250
|
+
:type="type"
|
|
251
|
+
:data="data"
|
|
252
|
+
:fetch-user-method="fetchUserMethod"
|
|
253
|
+
@more-action-click="handleMoreActionClick"
|
|
254
|
+
>
|
|
255
|
+
<chat-control-location
|
|
256
|
+
v-bind="configData"
|
|
257
|
+
:type="type"
|
|
258
|
+
:dir="dir"
|
|
259
|
+
:data="msgContent"
|
|
260
|
+
></chat-control-location>
|
|
261
|
+
<template slot="append">
|
|
262
|
+
<slot name="chat-append" :data="data"></slot>
|
|
263
|
+
</template>
|
|
264
|
+
</chat-panel-chats-box>
|
|
265
|
+
</template>
|
|
266
|
+
<template v-else-if="MESSAGE_TYPE.CALLING === data.msgType">
|
|
267
|
+
<chat-panel-chats-box
|
|
268
|
+
:type="type"
|
|
269
|
+
:data="data"
|
|
270
|
+
:fetch-user-method="fetchUserMethod"
|
|
271
|
+
@more-action-click="handleMoreActionClick"
|
|
272
|
+
>
|
|
273
|
+
<chat-control-calling
|
|
274
|
+
v-bind="configData"
|
|
275
|
+
:type="type"
|
|
276
|
+
:dir="dir"
|
|
277
|
+
:data="msgContent"
|
|
278
|
+
></chat-control-calling>
|
|
279
|
+
<template slot="append">
|
|
280
|
+
<slot name="chat-append" :data="data"></slot>
|
|
281
|
+
</template>
|
|
282
|
+
</chat-panel-chats-box>
|
|
283
|
+
</template>
|
|
284
|
+
<template v-else-if="MESSAGE_TYPE.VOICE === data.msgType">
|
|
285
|
+
<chat-panel-chats-box
|
|
286
|
+
color="transparent"
|
|
287
|
+
:type="type"
|
|
288
|
+
:data="data"
|
|
289
|
+
:fetch-user-method="fetchUserMethod"
|
|
290
|
+
@more-action-click="handleMoreActionClick"
|
|
291
|
+
>
|
|
292
|
+
<chat-control-voice
|
|
293
|
+
v-bind="configData"
|
|
294
|
+
:type="type"
|
|
295
|
+
:dir="dir"
|
|
296
|
+
:data="msgContent"
|
|
297
|
+
:convert-status="convertStatus"
|
|
298
|
+
></chat-control-voice>
|
|
299
|
+
<template slot="append">
|
|
300
|
+
<slot name="chat-append" :data="data"></slot>
|
|
301
|
+
</template>
|
|
302
|
+
</chat-panel-chats-box>
|
|
303
|
+
</template>
|
|
304
|
+
<template v-else-if="MESSAGE_TYPE.REAL_TIME_POSITION === data.msgType">
|
|
305
|
+
<chat-panel-chats-box
|
|
306
|
+
:type="type"
|
|
307
|
+
:data="data"
|
|
308
|
+
:fetch-user-method="fetchUserMethod"
|
|
309
|
+
@more-action-click="handleMoreActionClick"
|
|
310
|
+
>
|
|
311
|
+
<chat-control-real-time-position
|
|
312
|
+
v-bind="configData"
|
|
313
|
+
:type="type"
|
|
314
|
+
:dir="dir"
|
|
315
|
+
:data="msgContent"
|
|
316
|
+
:convert-status="convertStatus"
|
|
317
|
+
></chat-control-real-time-position>
|
|
318
|
+
<template slot="append">
|
|
319
|
+
<slot name="chat-append" :data="data"></slot>
|
|
320
|
+
</template>
|
|
321
|
+
</chat-panel-chats-box>
|
|
322
|
+
</template>
|
|
323
|
+
<template v-else-if="MESSAGE_TYPE.TEXT_WITH_AT === data.msgType">
|
|
324
|
+
<chat-panel-chats-box
|
|
325
|
+
:type="type"
|
|
326
|
+
:data="data"
|
|
327
|
+
:fetch-user-method="fetchUserMethod"
|
|
328
|
+
@more-action-click="handleMoreActionClick"
|
|
329
|
+
>
|
|
330
|
+
<chat-control-text-with-at
|
|
331
|
+
v-bind="configData"
|
|
332
|
+
:type="type"
|
|
333
|
+
:dir="dir"
|
|
334
|
+
:data="msgContent"
|
|
335
|
+
></chat-control-text-with-at>
|
|
336
|
+
<template slot="append">
|
|
337
|
+
<slot name="chat-append" :data="data"></slot>
|
|
338
|
+
</template>
|
|
339
|
+
</chat-panel-chats-box>
|
|
340
|
+
</template>
|
|
341
|
+
<template v-else-if="MESSAGE_TYPE.QUOTE_MESSAGE === data.msgType">
|
|
342
|
+
<chat-panel-chats-box
|
|
343
|
+
color="transparent"
|
|
344
|
+
:type="type"
|
|
345
|
+
:data="data"
|
|
346
|
+
:fetch-user-method="fetchUserMethod"
|
|
347
|
+
:show-more-action="showMoreAction"
|
|
348
|
+
@more-action-click="handleMoreActionClick"
|
|
349
|
+
>
|
|
350
|
+
<chat-control-quote-message
|
|
351
|
+
v-bind="configData"
|
|
352
|
+
:type="type"
|
|
353
|
+
:dir="dir"
|
|
354
|
+
:data="msgContent"
|
|
355
|
+
:quotable="quotable"
|
|
356
|
+
:wechat-account-id="data.wechatAccountId"
|
|
357
|
+
:wechat-friend-id="data.wechatFriendId"
|
|
358
|
+
:wechat-chatroom-id="data.wechatChatroomId"
|
|
359
|
+
@load="handleQuoteMessageLoad"
|
|
360
|
+
>
|
|
361
|
+
<template slot="sub-message" slot-scope="{ data }">
|
|
362
|
+
<bi-chat-control :msg-type="data.msgType" :content="data.content" :quotable="false"></bi-chat-control>
|
|
363
|
+
</template>
|
|
364
|
+
</chat-control-quote-message>
|
|
365
|
+
<template slot="append">
|
|
366
|
+
<slot name="chat-append" :data="data"></slot>
|
|
367
|
+
</template>
|
|
368
|
+
</chat-panel-chats-box>
|
|
369
|
+
</template>
|
|
370
|
+
<template v-else-if="MESSAGE_TYPE.MEMBER_CHANGE === data.msgType">
|
|
371
|
+
<chat-control-member-change
|
|
372
|
+
v-bind="configData"
|
|
373
|
+
:dir="dir"
|
|
374
|
+
:data="msgContent"
|
|
375
|
+
></chat-control-member-change>
|
|
376
|
+
</template>
|
|
377
|
+
<template v-else-if="MESSAGE_TYPE.SYSTEM === data.msgType">
|
|
378
|
+
<chat-control-system
|
|
379
|
+
v-bind="configData"
|
|
380
|
+
:dir="dir"
|
|
381
|
+
:data="msgContent"
|
|
382
|
+
></chat-control-system>
|
|
383
|
+
</template>
|
|
384
|
+
<template v-else-if="MESSAGE_TYPE.SYSTEM_BATCH_MESSAGE === data.msgType">
|
|
385
|
+
<chat-control-system-batch-message
|
|
386
|
+
v-bind="configData"
|
|
387
|
+
:dir="dir"
|
|
388
|
+
:data="msgContent"
|
|
389
|
+
></chat-control-system-batch-message>
|
|
390
|
+
</template>
|
|
391
|
+
<template v-else-if="MESSAGE_TYPE.JX_SYS_TEXT === data.msgType">
|
|
392
|
+
<chat-control-system-text
|
|
393
|
+
v-bind="configData"
|
|
394
|
+
:dir="dir"
|
|
395
|
+
:data="msgContent"
|
|
396
|
+
></chat-control-system-text>
|
|
397
|
+
</template>
|
|
398
|
+
<template v-else>
|
|
399
|
+
<chat-panel-chats-box
|
|
400
|
+
:data="data"
|
|
401
|
+
:fetch-user-method="fetchUserMethod"
|
|
402
|
+
@more-action-click="handleMoreActionClick"
|
|
403
|
+
>
|
|
404
|
+
<chat-control-unkonw
|
|
405
|
+
:data="msgContent"
|
|
406
|
+
:type="data.msgType"
|
|
407
|
+
></chat-control-unkonw>
|
|
408
|
+
</chat-panel-chats-box>
|
|
409
|
+
</template>
|
|
410
|
+
</view>
|
|
411
|
+
</template>
|
|
412
|
+
</chat-control-config-msg>
|
|
413
|
+
</template>
|
|
414
|
+
|
|
415
|
+
<script>
|
|
416
|
+
import {
|
|
417
|
+
MESSAGE_TYPE
|
|
418
|
+
} from '../chat-control/index.js'
|
|
419
|
+
// #ifdef H5
|
|
420
|
+
import ChatControlConfigMsg from '../chat-control/chat-control-config-msg/chat-control-config-msg-h5.vue'
|
|
421
|
+
// #endif
|
|
422
|
+
// #ifdef APP
|
|
423
|
+
import ChatControlConfigMsg from '../chat-control/chat-control-config-msg/chat-control-config-msg-app.vue'
|
|
424
|
+
// #endif
|
|
425
|
+
import ChatControlText from '../chat-control/text/text.vue'
|
|
426
|
+
import ChatControlSystemText from '../chat-control/system-text/system-text.vue'
|
|
427
|
+
import ChatControlSystemBatchMessage from '../chat-control/system-batch-message/system-batch-message.vue'
|
|
428
|
+
import ChatControlUnkonw from '../chat-control/unkonw/unkonw.vue'
|
|
429
|
+
import ChatControlImage from '../chat-control/image/image.vue'
|
|
430
|
+
import ChatControlUrlNew from '../chat-control/url-new/url-new.vue'
|
|
431
|
+
import ChatControlRedpacket from '../chat-control/redpacket/redpacket.vue'
|
|
432
|
+
import ChatControlTransfer from '../chat-control/transfer/transfer.vue'
|
|
433
|
+
import ChatControlUrl from '../chat-control/url/url.vue'
|
|
434
|
+
import ChatControlExpression from '../chat-control/expression/expression.vue'
|
|
435
|
+
import ChatControlMemberChange from '../chat-control/member-change/member-change.vue'
|
|
436
|
+
import ChatControlVideo from '../chat-control/video/video.vue'
|
|
437
|
+
import ChatControlChannelVideoLive from '../chat-control/channel-video-live/channel-video-live.vue'
|
|
438
|
+
import ChatControlChannelVideoCard from '../chat-control/channel-video-card/channel-video-card.vue'
|
|
439
|
+
import ChatControlChannelVideo from '../chat-control/channel-video/channel-video.vue'
|
|
440
|
+
import ChatControlShareCard from '../chat-control/share-card/share-card.vue'
|
|
441
|
+
import ChatControlSystem from '../chat-control/system/system.vue'
|
|
442
|
+
import ChatControlCompanyCard from '../chat-control/company-card/company-card.vue'
|
|
443
|
+
import ChatControlLocation from '../chat-control/location/location.vue'
|
|
444
|
+
import ChatControlCalling from '../chat-control/calling/calling.vue'
|
|
445
|
+
import ChatControlVoice from '../chat-control/voice/voice.vue'
|
|
446
|
+
import ChatControlRealTimePosition from '../chat-control/real-time-position/real-time-position.vue'
|
|
447
|
+
import ChatControlTextWithAt from '../chat-control/text-with-at/text-with-at.vue'
|
|
448
|
+
import ChatControlQuoteMessage from '../chat-control/quote-message/quote-message.vue'
|
|
449
|
+
import ChatPanelChatsBox from './chat-panel-chats-box.vue'
|
|
450
|
+
import BiChatControl from '../chat-control/chat-control.vue'
|
|
451
|
+
|
|
452
|
+
export default {
|
|
453
|
+
name: 'BiChatPanelChatsItem',
|
|
454
|
+
components: {
|
|
455
|
+
BiChatControl,
|
|
456
|
+
ChatControlConfigMsg,
|
|
457
|
+
ChatPanelChatsBox,
|
|
458
|
+
ChatControlSystemText,
|
|
459
|
+
ChatControlUnkonw,
|
|
460
|
+
ChatControlText,
|
|
461
|
+
ChatControlImage,
|
|
462
|
+
ChatControlUrl,
|
|
463
|
+
ChatControlUrlNew,
|
|
464
|
+
ChatControlRedpacket,
|
|
465
|
+
ChatControlTransfer,
|
|
466
|
+
ChatControlExpression,
|
|
467
|
+
ChatControlMemberChange,
|
|
468
|
+
ChatControlVideo,
|
|
469
|
+
ChatControlChannelVideo,
|
|
470
|
+
ChatControlChannelVideoLive,
|
|
471
|
+
ChatControlChannelVideoCard,
|
|
472
|
+
ChatControlShareCard,
|
|
473
|
+
ChatControlSystem,
|
|
474
|
+
ChatControlSystemBatchMessage,
|
|
475
|
+
ChatControlLocation,
|
|
476
|
+
ChatControlCalling,
|
|
477
|
+
ChatControlVoice,
|
|
478
|
+
ChatControlTextWithAt,
|
|
479
|
+
ChatControlCompanyCard,
|
|
480
|
+
ChatControlRealTimePosition,
|
|
481
|
+
ChatControlQuoteMessage
|
|
482
|
+
},
|
|
483
|
+
props: {
|
|
484
|
+
type: {
|
|
485
|
+
type: String,
|
|
486
|
+
default: 'default',
|
|
487
|
+
validator (value) {
|
|
488
|
+
return ['default', 'simple'].includes(value)
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
quotable: {
|
|
492
|
+
type: Boolean,
|
|
493
|
+
default: false
|
|
494
|
+
},
|
|
495
|
+
data: {
|
|
496
|
+
type: Object,
|
|
497
|
+
required: true
|
|
498
|
+
},
|
|
499
|
+
/**
|
|
500
|
+
* {
|
|
501
|
+
* avatar: null,
|
|
502
|
+
* name: null
|
|
503
|
+
* }
|
|
504
|
+
*/
|
|
505
|
+
fetchUserMethod: {
|
|
506
|
+
type: Function,
|
|
507
|
+
required: true
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
data () {
|
|
511
|
+
return {
|
|
512
|
+
MESSAGE_TYPE,
|
|
513
|
+
showMoreAction: !this.quotable, // 引用消息里面的消息要先不展示更多操作按钮
|
|
514
|
+
userData: null
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
computed: {
|
|
518
|
+
dir () {
|
|
519
|
+
return this.data.isSend ? 'right' : 'left'
|
|
520
|
+
},
|
|
521
|
+
msgContent () {
|
|
522
|
+
return this.data.content
|
|
523
|
+
},
|
|
524
|
+
convertStatus () {
|
|
525
|
+
const ConvertStatusEnum = {
|
|
526
|
+
NORMAL: -1, // 没有转换
|
|
527
|
+
ERROR: 2, // 转换失败
|
|
528
|
+
CONVERTING: 1, // 转换中
|
|
529
|
+
COMPLETE: 0 // 转换成功
|
|
530
|
+
}
|
|
531
|
+
if (!this.data.asrResult) {
|
|
532
|
+
return ConvertStatusEnum.NORMAL
|
|
533
|
+
}
|
|
534
|
+
if (this.data.asrResult.status === 0) {
|
|
535
|
+
return ConvertStatusEnum.NORMAL
|
|
536
|
+
}
|
|
537
|
+
if (this.data.asrResult.status === 1) {
|
|
538
|
+
return ConvertStatusEnum.CONVERTING
|
|
539
|
+
}
|
|
540
|
+
if (this.data.asrResult.status === 2) {
|
|
541
|
+
return ConvertStatusEnum.COMPLETE
|
|
542
|
+
}
|
|
543
|
+
if (this.data.asrResult.status === 3) {
|
|
544
|
+
return ConvertStatusEnum.ERROR
|
|
545
|
+
}
|
|
546
|
+
return ConvertStatusEnum.NORMAL
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
methods: {
|
|
550
|
+
handleQuoteMessageLoad () {
|
|
551
|
+
this.showMoreAction = true
|
|
552
|
+
},
|
|
553
|
+
handleDownloadVideoMethod ({ data }) {
|
|
554
|
+
return this.$clientChat.socket.sendDownloadVideo({
|
|
555
|
+
wechatAccountId: this.data.wechatAccountId,
|
|
556
|
+
friendMessageId: this.data.wechatFriendId ? this.data.id : null,
|
|
557
|
+
chatroomMessageId: !this.data.wechatFriendId ? this.data.id : null,
|
|
558
|
+
tencentUrl: data.tencentUrl,
|
|
559
|
+
wechatTime: this.data.wechatTime
|
|
560
|
+
})
|
|
561
|
+
},
|
|
562
|
+
handleMoreActionClick () {
|
|
563
|
+
this.$emit('more-action-click', {
|
|
564
|
+
data: this.data
|
|
565
|
+
})
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
</script>
|
|
570
|
+
|
|
571
|
+
<style lang="less">
|
|
572
|
+
.bi-chat-panel-chats-item__empty{
|
|
573
|
+
font-size: 12px;
|
|
574
|
+
color: #999;
|
|
575
|
+
text-align: center;
|
|
576
|
+
padding: 6px;
|
|
577
|
+
}
|
|
578
|
+
</style>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="sdk-wechat-panel-chats-status" v-if="[1, 2, 3].includes(data.sendStatus) || data.recalled">
|
|
3
|
+
<!-- sendStatus:0成功,1发送中,2失败,3超时 -->
|
|
4
|
+
<template v-if="data.sendStatus === 1">
|
|
5
|
+
<ui-loading size="mini"></ui-loading>
|
|
6
|
+
</template>
|
|
7
|
+
<template v-else-if="data.sendStatus === 2">
|
|
8
|
+
<view class="sdk-wechat-panel-chats-status__error" @click="handleSendErrorClick">
|
|
9
|
+
<ui-icon name="close-circle-fill"></ui-icon>
|
|
10
|
+
</view>
|
|
11
|
+
</template>
|
|
12
|
+
<template v-else-if="data.sendStatus === 3">
|
|
13
|
+
<view class="sdk-wechat-panel-chats-status__error" @click="handleSendTimeoutClick">
|
|
14
|
+
<ui-icon name="time-fill"></ui-icon>
|
|
15
|
+
</view>
|
|
16
|
+
</template>
|
|
17
|
+
<template v-if="data.recalled">
|
|
18
|
+
<view class="sdk-wechat-panel-chats-status__error" style="opacity: .6;" @click="handleSendRecalledClick">
|
|
19
|
+
<ui-icon name="reply-fill1"></ui-icon>
|
|
20
|
+
</view>
|
|
21
|
+
</template>
|
|
22
|
+
</view>
|
|
23
|
+
</template>
|
|
24
|
+
<script>
|
|
25
|
+
import UiIcon from '@aochuang/common/uni-components/icon/icon.vue'
|
|
26
|
+
import UiLoading from '@aochuang/common/uni-components/loading/loading.vue'
|
|
27
|
+
import { warning, error } from '@aochuang/common/uni-components/message/message.js'
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
name: 'SdkChatPanelChatsStatus',
|
|
31
|
+
components: {
|
|
32
|
+
UiIcon,
|
|
33
|
+
UiLoading
|
|
34
|
+
},
|
|
35
|
+
props: {
|
|
36
|
+
data: {
|
|
37
|
+
type: Object,
|
|
38
|
+
required: true
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
methods: {
|
|
42
|
+
handleSendErrorClick () {
|
|
43
|
+
error(this.data.resultMsg || '发送失败')
|
|
44
|
+
},
|
|
45
|
+
handleSendTimeoutClick () {
|
|
46
|
+
error(this.data.resultMsg || '发送超时')
|
|
47
|
+
},
|
|
48
|
+
handleSendRecalledClick () {
|
|
49
|
+
warning('消息已撤回')
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
</script>
|
|
54
|
+
<style lang="less">
|
|
55
|
+
.sdk-wechat-panel-chats-status__error{
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: row;
|
|
58
|
+
align-items: center;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
color: #c00;
|
|
61
|
+
width: 16px;
|
|
62
|
+
height: 16px;
|
|
63
|
+
svg {
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
.sdk-wechat-panel-chats-status{
|
|
69
|
+
margin: 0 6px;
|
|
70
|
+
}
|
|
71
|
+
</style>
|