@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 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1752134896820" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3164" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M721.75097682 628.5429685L675.14697266 581.87304662l46.60400416-46.6040034a164.79492162 164.79492162 0 1 0-233.05297852-233.05297851L442.09399414 348.85302734 395.4570315 302.24902318 442.12695338 255.64501978a230.71289088 230.71289088 0 0 1 326.29394531 326.29394532l-46.6369634 46.6040034z m-93.20800832 93.20800832l-46.63696264 46.6040034a230.71289088 230.71289088 0 0 1-326.29394531-326.29394532l46.63696263-46.6040034L348.85302734 442.12695338l-46.60400416 46.6040034a164.79492162 164.79492162 0 1 0 233.05297852 233.05297851l46.60400416-46.6040034 46.63696264 46.6040034z m-23.33496094-349.59594778l46.6369634 46.6369634-233.05297852 233.02001928-46.6369634-46.60400416 233.05297852-233.02001928z" fill="#999" p-id="3165"></path></svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg t="1731930511288" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1740" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
4
|
+
<path d="M0 0h1024v1024H0z" fill="#3664f8" p-id="1741"></path>
|
|
5
|
+
<path d="M363.05881933 813.70136597c-38.19004631 0-76.38009265-15.27601854-106.93212971-45.82805559-61.10407412-61.10407412-61.10407412-156.57918994-1e-8-217.68326407l80.1990973-80.19909727 53.46606485 53.46606485-80.19909728 80.19909729c-30.55203706 30.55203706-30.55203706 76.38009265 0 106.93212972 30.55203706 30.55203706 76.38009265 30.55203706 106.9321297 0l106.93212971-106.93212972c15.27601854-15.27601854 22.9140278-34.3710417 22.91402781-53.46606487S538.73303243 512 527.27601854 496.72398146L485.26696757 458.53393514l53.46606486-53.46606484 42.00905096 42.00905095C607.47511582 473.80995369 622.75113434 512 622.75113434 554.00905096c0 42.00905096-15.27601854 80.19909727-45.82805558 106.93212971l-106.93212972 106.93212972C443.25791661 798.42534744 401.24886566 813.70136597 363.05881933 813.70136597z" fill="#ffffff" p-id="9488"></path><path d="M485.26696757 618.93212971L443.25791661 580.74208339c-61.10407412-61.10407412-61.10407412-156.57918994 0-217.68326406l106.9321297-106.93212971c61.10407412-61.10407412 156.57918994-61.10407412 217.68326407 0 61.10407412 61.10407412 61.10407412 156.57918994 1e-8 217.68326406l-80.1990973 80.19909728-53.46606485-53.46606485 80.19909728-80.19909729c30.55203706-30.55203706 30.55203706-76.38009265 0-106.93212972-30.55203706-30.55203706-80.19909727-30.55203706-106.9321297 0L496.72398146 416.52488418c-30.55203706 30.55203706-30.55203706 76.38009265 1e-8 106.93212971l42.00905096 42.00905097L485.26696757 618.93212971z" fill="#ffffff" p-id="9489"></path>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1602418855817" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6268" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M712.388923 10.24A268.918154 268.918154 0 0 0 442.683077 279.788308v408.49723c0 74.830769-61.44 136.270769-136.192 136.27077-74.830769 0-138.870154-61.44-138.870154-138.948923 0-77.430154 61.44-136.113231 136.270769-136.113231a66.166154 66.166154 0 0 0 66.717539-66.796308 66.166154 66.166154 0 0 0-66.796308-66.717538A268.366769 268.366769 0 0 0 44.898462 675.052308C39.384615 824.556308 154.308923 949.956923 303.812923 955.470769a268.918154 268.918154 0 0 0 269.705846-269.784615V277.267692c0-74.830769 61.44-136.192 136.192-136.192 74.752 0 136.113231 61.44 136.113231 136.192 0 74.830769-61.44 136.192-133.435077 136.192H709.710769a66.166154 66.166154 0 0 0-66.796307 66.717539 66.166154 66.166154 0 0 0 66.796307 66.796307 268.918154 268.918154 0 0 0 269.627077-269.705846 264.428308 264.428308 0 0 0-267.027692-267.027692z" p-id="6269" fill="#999"></path></svg>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import fileUrl from '../file-url/file-url.vue'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: 'SdkChatPanelControlsUrlFile',
|
|
6
|
+
functional: true,
|
|
7
|
+
props: {
|
|
8
|
+
id: {
|
|
9
|
+
type: String
|
|
10
|
+
},
|
|
11
|
+
content: {
|
|
12
|
+
type: [Object, String]
|
|
13
|
+
},
|
|
14
|
+
type: {
|
|
15
|
+
type: String
|
|
16
|
+
},
|
|
17
|
+
updateChatBoxProp: {
|
|
18
|
+
type: Function
|
|
19
|
+
},
|
|
20
|
+
allowDownload: {
|
|
21
|
+
type: [Boolean, Function],
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
24
|
+
downloadMethod: {
|
|
25
|
+
type: Function
|
|
26
|
+
},
|
|
27
|
+
cancelDownloadMethod: {
|
|
28
|
+
type: Function
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
render (h, c) {
|
|
32
|
+
return h(fileUrl, {
|
|
33
|
+
props: c.props
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sdk-wechat-control-url-link" :class="['sdk-wechat-control-url-link--' + type, {'is-border': border}]">
|
|
3
|
+
<template v-if="type === 'default' || type === 'thumb'">
|
|
4
|
+
<div class="sdk-wechat-control-url-link__inner">
|
|
5
|
+
<div class="sdk-wechat-control-url-link__main">
|
|
6
|
+
<div class="sdk-wechat-control-url-link__info">
|
|
7
|
+
<strong class="sdk-wechat-control-url-link__title">{{title}}</strong>
|
|
8
|
+
<div class="sdk-wechat-control-url-link__description">{{description || url}}</div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="sdk-wechat-control-url-link__cover" v-if="cover" :style="{'background-image': `url(${cover})`}"></div>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="sdk-wechat-control-url-link__foot">
|
|
13
|
+
超链接
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
<template v-else-if="type === 'quote'">
|
|
18
|
+
<span class="sdk-wechat-control-url-link__title">{{title}}</span>
|
|
19
|
+
<div class="sdk-wechat-control-url-link__cover" v-if="cover" :style="{'background-image': `url(${cover})`}"></div>
|
|
20
|
+
</template>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
<script>
|
|
24
|
+
import { parse } from '../../../utils/json'
|
|
25
|
+
import { formatOssPath } from '@aochuang/common/utils/oss'
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
name: 'SdkWecahtControlUrlLink',
|
|
29
|
+
props: {
|
|
30
|
+
id: {
|
|
31
|
+
type: String
|
|
32
|
+
},
|
|
33
|
+
type: {
|
|
34
|
+
type: String
|
|
35
|
+
},
|
|
36
|
+
content: {
|
|
37
|
+
type: [String, Object]
|
|
38
|
+
},
|
|
39
|
+
updateChatBoxProp: {
|
|
40
|
+
type: Function
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
inject: {
|
|
44
|
+
SdkChatPanelBox: {
|
|
45
|
+
default: null
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
computed: {
|
|
49
|
+
nextContent () {
|
|
50
|
+
return parse(this.content)
|
|
51
|
+
},
|
|
52
|
+
title () {
|
|
53
|
+
return this.nextContent.title
|
|
54
|
+
},
|
|
55
|
+
description () {
|
|
56
|
+
return this.nextContent.desc
|
|
57
|
+
},
|
|
58
|
+
cover () {
|
|
59
|
+
return formatOssPath(this.nextContent.thumbPath) || require('./icons/link.svg')
|
|
60
|
+
},
|
|
61
|
+
url () {
|
|
62
|
+
return this.nextContent.url
|
|
63
|
+
},
|
|
64
|
+
border () {
|
|
65
|
+
if (this.type === 'quote') {
|
|
66
|
+
return false
|
|
67
|
+
}
|
|
68
|
+
return !this.SdkChatPanelBox
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
created () {
|
|
72
|
+
if (this.url && this.updateChatBoxProp) {
|
|
73
|
+
this.updateChatBoxProp('href', this.url)
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
</script>
|
|
78
|
+
<style lang="less">
|
|
79
|
+
.sdk-wechat-control-url-link{
|
|
80
|
+
display: inline-block;
|
|
81
|
+
max-width: 100%;
|
|
82
|
+
&.is-border {
|
|
83
|
+
border: 1px solid #eee;
|
|
84
|
+
border-radius: 4px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.sdk-wechat-control-url-link--default,
|
|
88
|
+
.sdk-wechat-control-url-link--thumb{
|
|
89
|
+
word-break: break-all;
|
|
90
|
+
line-height: 1.5em;
|
|
91
|
+
border-radius: 4px;
|
|
92
|
+
.sdk-wechat-control-url-link__inner{
|
|
93
|
+
max-width: 100%;
|
|
94
|
+
width: 248px;
|
|
95
|
+
color: #484848;
|
|
96
|
+
}
|
|
97
|
+
.sdk-wechat-control-url-link__main{
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: row;
|
|
100
|
+
padding-top: 3px;
|
|
101
|
+
padding: 6px 12px;
|
|
102
|
+
line-height: 1.5em;
|
|
103
|
+
}
|
|
104
|
+
.sdk-wechat-control-url-link__description{
|
|
105
|
+
color: #999;
|
|
106
|
+
word-break: break-all;
|
|
107
|
+
display: -webkit-box;
|
|
108
|
+
-webkit-box-orient: vertical;
|
|
109
|
+
-webkit-line-clamp: 3;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
}
|
|
112
|
+
.sdk-wechat-control-url-link__info{
|
|
113
|
+
flex: 1;
|
|
114
|
+
min-width: 0;
|
|
115
|
+
}
|
|
116
|
+
.sdk-wechat-control-url-link__title{
|
|
117
|
+
display: block;
|
|
118
|
+
margin-bottom: 4px;
|
|
119
|
+
display: -webkit-box;
|
|
120
|
+
-webkit-box-orient: vertical;
|
|
121
|
+
-webkit-line-clamp: 1; /* 限制显示3行 */
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
}
|
|
124
|
+
.sdk-wechat-control-url-link__cover{
|
|
125
|
+
display: inline-block;
|
|
126
|
+
width: 48px;
|
|
127
|
+
height: 48px;
|
|
128
|
+
background-position: 50% 50%;
|
|
129
|
+
background-repeat: no-repeat;
|
|
130
|
+
background-size: cover;
|
|
131
|
+
margin-left: 12px;
|
|
132
|
+
margin-top: 12px;
|
|
133
|
+
background-color: rgba(0,0,0,.1);
|
|
134
|
+
}
|
|
135
|
+
.sdk-wechat-control-url-link__foot{
|
|
136
|
+
padding: 0 12px;
|
|
137
|
+
border-top: 1px solid #eee;
|
|
138
|
+
color: #999;
|
|
139
|
+
font-size: 12px;
|
|
140
|
+
height: 24px;
|
|
141
|
+
line-height: 24px;
|
|
142
|
+
box-sizing: content-box;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.sdk-wechat-control-url-link--thumb{
|
|
146
|
+
background-color: #fff;
|
|
147
|
+
.sdk-wechat-control-url-link__description{
|
|
148
|
+
-webkit-line-clamp: 2;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
.sdk-wechat-control-url-link--quote {
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: row;
|
|
154
|
+
max-width: 320px;
|
|
155
|
+
.sdk-wechat-control-url-link__cover {
|
|
156
|
+
width: 52px;
|
|
157
|
+
height: 52px;
|
|
158
|
+
min-width: 52px;
|
|
159
|
+
background-position: 50% 50%;
|
|
160
|
+
background-repeat: no-repeat;
|
|
161
|
+
background-size: cover;
|
|
162
|
+
background-color: rgba(0,0,0,.1);
|
|
163
|
+
}
|
|
164
|
+
.sdk-wechat-control-url-link__title{
|
|
165
|
+
margin-right: 6px;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
</style>
|
|
169
|
+
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="wechat-record-panel-chat-link-merged" :class="['wechat-record-panel-chat-link-merged--' + type]">
|
|
3
|
+
<template v-if="type === 'default' || type === 'thumb'">
|
|
4
|
+
<div class="wechat-record-panel-chat-link-merged__main" :class="{'is-loading': mergeding}" @click="handleLoadMergedMsg">
|
|
5
|
+
<span class="wechat-record-panel-chat-link-merged__trigger" v-if="!mergedData">
|
|
6
|
+
<ui-icon :name="mergeding ? 'loading' : 'arrow-down-circle-line'" :size="18"></ui-icon> 查看合并转发消息
|
|
7
|
+
</span>
|
|
8
|
+
<div class="wechat-record-panel-chat-link-merged__msgs" v-else-if="mergedData && mergedData.length">
|
|
9
|
+
<div
|
|
10
|
+
class="wechat-record-panel-chat-link-merged__msgs-item"
|
|
11
|
+
v-for="(item, index) in mergedData"
|
|
12
|
+
:key="index"
|
|
13
|
+
>
|
|
14
|
+
<div class="wechat-record-panel-chat-link-merged__msgs-item-head">
|
|
15
|
+
<span class="wechat-record-panel-chat-link-merged__msgs-item-user">{{ item.sourcename }}</span>
|
|
16
|
+
<span class="wechat-record-panel-chat-link-merged__msgs-item-date">{{ handleFormatSourceTime(item.sourcetime) }}</span>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="wechat-record-panel-chat-link-merged__msgs-item-body">
|
|
19
|
+
<template v-if="item.datatype == '2'">
|
|
20
|
+
【图片】
|
|
21
|
+
</template>
|
|
22
|
+
<template v-else>
|
|
23
|
+
<div class="wechat-record-panel-chat-link-merged__msgs-item-text" v-html="handleFormatMergedDesc(item.datadesc)"></div>
|
|
24
|
+
</template>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div v-else>暂无消息数据</div>
|
|
29
|
+
<div class="wechat-record-panel-chat-link-merged__msgs-foot">聊天记录</div>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
<template v-else-if="type === 'quote'">
|
|
33
|
+
[聊天记录]合并的聊天记录
|
|
34
|
+
</template>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
<script>
|
|
38
|
+
import axios from 'axios'
|
|
39
|
+
import { unUnicode, html2Escape } from '../../../utils/string'
|
|
40
|
+
import { parseXml } from '../../../utils/json'
|
|
41
|
+
import { formatOssPath } from '@aochuang/common/utils/oss'
|
|
42
|
+
|
|
43
|
+
export default {
|
|
44
|
+
name: 'AcWechatChatPanelControlUrlMerge',
|
|
45
|
+
props: {
|
|
46
|
+
id: {
|
|
47
|
+
type: String
|
|
48
|
+
},
|
|
49
|
+
type: {
|
|
50
|
+
type: String
|
|
51
|
+
},
|
|
52
|
+
content: {
|
|
53
|
+
type: String
|
|
54
|
+
},
|
|
55
|
+
beforeLoad: {
|
|
56
|
+
type: Function
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
data () {
|
|
60
|
+
return {
|
|
61
|
+
mergeding: false,
|
|
62
|
+
mergedData: null
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
methods: {
|
|
66
|
+
handleFormatMergedDesc (desc) {
|
|
67
|
+
return html2Escape(unUnicode(desc))
|
|
68
|
+
},
|
|
69
|
+
handleFormatSourceTime (date) {
|
|
70
|
+
if (!date) {
|
|
71
|
+
return date
|
|
72
|
+
}
|
|
73
|
+
return date.replace(' ', ' ')
|
|
74
|
+
},
|
|
75
|
+
handleLoadMergedMsg () {
|
|
76
|
+
if (!this.content) {
|
|
77
|
+
return
|
|
78
|
+
}
|
|
79
|
+
if (this.mergeding) {
|
|
80
|
+
return
|
|
81
|
+
}
|
|
82
|
+
let ps = Promise.resolve()
|
|
83
|
+
if (this.beforeLoad) {
|
|
84
|
+
const rs = this.beforeLoad()
|
|
85
|
+
if (rs && rs.then) {
|
|
86
|
+
ps = rs
|
|
87
|
+
} else if (rs === false) {
|
|
88
|
+
return
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
ps.then(() => {
|
|
92
|
+
this.mergeding = true
|
|
93
|
+
axios.get(formatOssPath(this.content)).then(({ data }) => {
|
|
94
|
+
if (typeof data === 'string') {
|
|
95
|
+
const xmlData = parseXml(data)
|
|
96
|
+
if (xmlData && xmlData.recorditem && xmlData.recorditem.recordinfo && xmlData.recorditem.recordinfo.datalist) {
|
|
97
|
+
data = xmlData.recorditem.recordinfo.datalist.dataitem
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
this.mergeding = false
|
|
101
|
+
this.mergedData = (data || []).filter(v => {
|
|
102
|
+
return v.datadesc || v.sourcename || v.sourcetime
|
|
103
|
+
})
|
|
104
|
+
}, () => {
|
|
105
|
+
this.mergeding = false
|
|
106
|
+
})
|
|
107
|
+
})
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
</script>
|
|
112
|
+
<style lang="less">
|
|
113
|
+
.wechat-record-panel-chat-link-merged__main{
|
|
114
|
+
width: 340px;
|
|
115
|
+
&.is-loading{
|
|
116
|
+
cursor: not-allowed;
|
|
117
|
+
.wechat-record-panel-chat-link-merged__trigger {
|
|
118
|
+
color: #888;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
.wechat-record-panel-chat-link-merged__trigger{
|
|
123
|
+
padding: 12px;
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-direction: row;
|
|
126
|
+
align-items: center;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
.ui-icon{
|
|
129
|
+
vertical-align: top;
|
|
130
|
+
display: inline-block;
|
|
131
|
+
margin-right: 4px;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.wechat-record-panel-chat-link-merged__msgs{
|
|
135
|
+
padding: 6px 12px;
|
|
136
|
+
}
|
|
137
|
+
.wechat-record-panel-chat-link-merged__msgs-item{
|
|
138
|
+
padding: 6px 0;
|
|
139
|
+
border-bottom: 1px solid #eee;
|
|
140
|
+
&:last-child{
|
|
141
|
+
border-bottom: 0;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
.wechat-record-panel-chat-link-merged__msgs-item-head{
|
|
145
|
+
margin-bottom: 4px;
|
|
146
|
+
display: flex;
|
|
147
|
+
justify-content: space-between;
|
|
148
|
+
color: #888;
|
|
149
|
+
}
|
|
150
|
+
.wechat-record-panel-chat-link-merged__msgs-foot{
|
|
151
|
+
padding: 0 12px;
|
|
152
|
+
border-top: 1px solid rgba(0,0,0,.1);
|
|
153
|
+
background-size: 12px;
|
|
154
|
+
font-size: 12px;
|
|
155
|
+
height: 24px;
|
|
156
|
+
line-height: 24px;
|
|
157
|
+
color: #888;
|
|
158
|
+
}
|
|
159
|
+
.wechat-record-panel-chat-link-merged--thumb {
|
|
160
|
+
border: 1px solid #eee;
|
|
161
|
+
border-radius: 3px;
|
|
162
|
+
display: inline-block;
|
|
163
|
+
}
|
|
164
|
+
</style>
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram" :class="['sdk-chat-wework-panel-control-url-miniprogram--' + type, {'is-border': border}]">
|
|
3
|
+
<template v-if="type === 'default'">
|
|
4
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__main">
|
|
5
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__head" v-if="icon">
|
|
6
|
+
<img class="sdk-chat-wework-panel-control-url-miniprogram__icon" width="22px" height="22px;" v-if="icon" :src="icon" />
|
|
7
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__desc" v-if="desc">
|
|
8
|
+
{{desc}}
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__body">
|
|
12
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__title" v-if="title">
|
|
13
|
+
{{title}}
|
|
14
|
+
</div>
|
|
15
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__content">
|
|
16
|
+
<div v-if="cover" :style="{width: '100%', height: '100%', background: 'url('+ cover +')', 'background-size': 'cover'}"></div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__foot">小程序</div>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
<template v-else-if="type === 'thumb'">
|
|
23
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__main">
|
|
24
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__head" v-if="icon">
|
|
25
|
+
<img class="sdk-chat-wework-panel-control-url-miniprogram__icon" width="22px" height="22px;" v-if="icon" :src="icon" />
|
|
26
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__desc" v-if="desc">
|
|
27
|
+
{{desc}}
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__body">
|
|
31
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__title" v-if="title">
|
|
32
|
+
{{title}}
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__bgimage">
|
|
36
|
+
<div v-if="cover" :style="{width: '100%', height: '100%', background: 'url('+ cover +')', 'background-size': 'cover'}"></div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__foot">小程序</div>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
|
41
|
+
<template v-else-if="type === 'quote'">
|
|
42
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__icon"></div>
|
|
43
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__title" v-if="title">
|
|
44
|
+
{{title}}
|
|
45
|
+
</div>
|
|
46
|
+
<div class="sdk-chat-wework-panel-control-url-miniprogram__content">
|
|
47
|
+
<div v-if="cover" :style="{width: '100%', height: '100%', background: 'url('+ cover +')', 'background-size': 'cover'}"></div>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
<script>
|
|
53
|
+
import { parse, parseXml } from '../../../utils/json'
|
|
54
|
+
import { formatOssPath } from '@aochuang/common/utils/oss'
|
|
55
|
+
|
|
56
|
+
export default {
|
|
57
|
+
name: 'SdkChatPanelControlUrlMiniprogram',
|
|
58
|
+
props: {
|
|
59
|
+
id: {
|
|
60
|
+
type: String
|
|
61
|
+
},
|
|
62
|
+
type: {
|
|
63
|
+
type: String
|
|
64
|
+
},
|
|
65
|
+
content: {
|
|
66
|
+
type: [Object, String]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
inject: {
|
|
70
|
+
SdkChatPanelBox: {
|
|
71
|
+
default: null
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
computed: {
|
|
75
|
+
nextContent () {
|
|
76
|
+
return parse(this.content)
|
|
77
|
+
},
|
|
78
|
+
miniprogramData () {
|
|
79
|
+
let data = null
|
|
80
|
+
if (!this.nextContent) {
|
|
81
|
+
return data
|
|
82
|
+
}
|
|
83
|
+
return this.nextContent
|
|
84
|
+
},
|
|
85
|
+
icon () {
|
|
86
|
+
return this.miniprogramData.weappIconUrl
|
|
87
|
+
},
|
|
88
|
+
title () {
|
|
89
|
+
return this.miniprogramData.title
|
|
90
|
+
},
|
|
91
|
+
url () {
|
|
92
|
+
return this.miniprogramData.msg && this.miniprogramData.msg.appmsg ? this.miniprogramData.msg.appmsg.url : ''
|
|
93
|
+
},
|
|
94
|
+
desc () {
|
|
95
|
+
return this.miniprogramData.appName
|
|
96
|
+
},
|
|
97
|
+
cover () {
|
|
98
|
+
return this.miniprogramData.thumbOssUrl
|
|
99
|
+
},
|
|
100
|
+
border () {
|
|
101
|
+
return !this.SdkChatPanelBox
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
</script>
|
|
106
|
+
<style lang="less">
|
|
107
|
+
.sdk-chat-wework-panel-control-url-miniprogram {
|
|
108
|
+
max-width: 280px;
|
|
109
|
+
&.is-border {
|
|
110
|
+
border-radius: 4px;
|
|
111
|
+
border: 1px solid #eee;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
.sdk-chat-wework-panel-control-url-miniprogram--default{
|
|
115
|
+
.sdk-chat-wework-panel-control-url-miniprogram__main{
|
|
116
|
+
width: 280px;
|
|
117
|
+
color: #404040;
|
|
118
|
+
&:hover{
|
|
119
|
+
color: #404040;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
.sdk-chat-wework-panel-control-url-miniprogram__head{
|
|
123
|
+
padding: 6px 12px 0;
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-direction: row;
|
|
126
|
+
align-items: center;
|
|
127
|
+
img {
|
|
128
|
+
margin-right: 6px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.sdk-chat-wework-panel-control-url-miniprogram__body{
|
|
132
|
+
padding: 6px 12px 12px;
|
|
133
|
+
}
|
|
134
|
+
.sdk-chat-wework-panel-control-url-miniprogram__title{
|
|
135
|
+
margin-bottom: 12px;
|
|
136
|
+
font-size: 16px;
|
|
137
|
+
}
|
|
138
|
+
.sdk-chat-wework-panel-control-url-miniprogram__content{
|
|
139
|
+
height: 150px;
|
|
140
|
+
background-color: #f1f0f5;
|
|
141
|
+
}
|
|
142
|
+
.sdk-chat-wework-panel-control-url-miniprogram__desc{
|
|
143
|
+
color: #888;
|
|
144
|
+
}
|
|
145
|
+
.sdk-chat-wework-panel-control-url-miniprogram__foot{
|
|
146
|
+
padding: 3px 12px 3px 26px;
|
|
147
|
+
border-top: 1px solid rgba(0,0,0,.1);
|
|
148
|
+
background: url('./miniprogram.svg') no-repeat 12px 50%;
|
|
149
|
+
background-size: 12px;
|
|
150
|
+
font-size: 12px;
|
|
151
|
+
color: #888;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
.sdk-chat-wework-panel-control-url-miniprogram--thumb{
|
|
155
|
+
background-color: #fff;
|
|
156
|
+
position: relative;
|
|
157
|
+
.sdk-chat-wework-panel-control-url-miniprogram__main{
|
|
158
|
+
width: auto;
|
|
159
|
+
color: #404040;
|
|
160
|
+
&:hover{
|
|
161
|
+
color: #404040;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
.sdk-chat-wework-panel-control-url-miniprogram__head{
|
|
165
|
+
padding: 6px 12px 0;
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: row;
|
|
168
|
+
align-items: center;
|
|
169
|
+
position: relative;
|
|
170
|
+
z-index: 5;
|
|
171
|
+
img {
|
|
172
|
+
margin-right: 6px;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
.sdk-chat-wework-panel-control-url-miniprogram__body{
|
|
176
|
+
padding: 6px 12px 12px;
|
|
177
|
+
position: relative;
|
|
178
|
+
z-index: 5;
|
|
179
|
+
}
|
|
180
|
+
.sdk-chat-wework-panel-control-url-miniprogram__title{
|
|
181
|
+
font-size: 16px;
|
|
182
|
+
display: -webkit-box;
|
|
183
|
+
-webkit-box-orient: vertical;
|
|
184
|
+
-webkit-line-clamp: 2; /* 限制显示3行 */
|
|
185
|
+
overflow: hidden;
|
|
186
|
+
}
|
|
187
|
+
.sdk-chat-wework-panel-control-url-miniprogram__desc{
|
|
188
|
+
color: #888;
|
|
189
|
+
}
|
|
190
|
+
.sdk-chat-wework-panel-control-url-miniprogram__foot{
|
|
191
|
+
padding: 3px 12px 3px 26px;
|
|
192
|
+
border-top: 1px solid rgba(0,0,0,.1);
|
|
193
|
+
background: url('./miniprogram.svg') no-repeat 12px 50%;
|
|
194
|
+
background-size: 12px;
|
|
195
|
+
font-size: 12px;
|
|
196
|
+
color: #888;
|
|
197
|
+
position: relative;
|
|
198
|
+
z-index: 5;
|
|
199
|
+
background-color: #fff;
|
|
200
|
+
}
|
|
201
|
+
.sdk-chat-wework-panel-control-url-miniprogram__bgimage{
|
|
202
|
+
position: absolute;
|
|
203
|
+
left: 0;
|
|
204
|
+
right: 0;
|
|
205
|
+
top: 0;
|
|
206
|
+
bottom: 0;
|
|
207
|
+
&:before {
|
|
208
|
+
content: '';
|
|
209
|
+
position: absolute;
|
|
210
|
+
left: 0;
|
|
211
|
+
top: 0;
|
|
212
|
+
right: 0;
|
|
213
|
+
bottom: 0;
|
|
214
|
+
z-index: 3;
|
|
215
|
+
background: linear-gradient(180deg,#fff 0,hsla(0,0%,100%,.8) 48%,hsla(0,0%,100%,.4) 79%,hsla(0,0%,100%,0));
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
.sdk-chat-wework-panel-control-url-miniprogram--quote {
|
|
220
|
+
display: flex;
|
|
221
|
+
flex-direction: row;
|
|
222
|
+
max-width: 320px;
|
|
223
|
+
.sdk-chat-wework-panel-control-url-miniprogram__icon {
|
|
224
|
+
display: inline-block;
|
|
225
|
+
width: 14px;
|
|
226
|
+
height: 14px;
|
|
227
|
+
margin-right: 4px;
|
|
228
|
+
min-width: 14px;
|
|
229
|
+
vertical-align: top;
|
|
230
|
+
margin-top: 4px;
|
|
231
|
+
color: #999;
|
|
232
|
+
background: url('./miniprogram.svg') no-repeat 50% 50%;
|
|
233
|
+
background-size: cover;
|
|
234
|
+
}
|
|
235
|
+
.sdk-chat-wework-panel-control-url-miniprogram__content {
|
|
236
|
+
width: 52px;
|
|
237
|
+
height: 52px;
|
|
238
|
+
min-width: 52px;
|
|
239
|
+
background-position: 50% 50%;
|
|
240
|
+
background-repeat: no-repeat;
|
|
241
|
+
background-size: cover;
|
|
242
|
+
background-color: rgba(0,0,0,.1);
|
|
243
|
+
}
|
|
244
|
+
.sdk-chat-wework-panel-control-url-miniprogram__title{
|
|
245
|
+
margin-right: 6px;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
</style>
|