@aochuang/client-sdk 1.0.344 → 1.0.346
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/components/index.js +1 -6
- package/components/session-select/session-select-item.vue +9 -8
- package/components/wechat-chat-control/calling/calling.vue +3 -0
- package/components/wechat-chat-control/voice/voice.vue +4 -0
- package/components/wework-chat-control/company-card/company-card.vue +1 -1
- package/components/wework-chat-control/file-url/file-url.vue +5 -2
- package/components/wework-chat-control/image/image.vue +2 -137
- package/components/wework-chat-control/index.js +6 -6
- package/components/wework-chat-control/text/text.vue +3 -22
- package/components/wework-chat-control/util.js +6 -12
- package/components/wework-chat-control/video/video.vue +2 -10
- package/components/wework-chat-control/voice/voice.vue +1 -1
- 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 +35 -12
- package/components/wework-chat-panel/chat-panel.vue +12 -95
- package/package.json +3 -10
- package/services/client-chat/client-chat-wechat/client-chat-session.js +19 -6
- package/services/client-chat/client-chat-wechat/client-chat.js +87 -25
- package/services/client-chat/client-chat-wework/client-chat-concats.js +17 -81
- package/services/client-chat/client-chat-wework/client-chat-message.js +5 -5
- package/services/client-chat/client-chat-wework/client-chat-session.js +2 -50
- package/services/client-chat/client-chat-wework/client-chat-socket.js +1 -9
- package/services/client-chat/client-chat-wework/client-chat.js +11 -278
- package/services/client-chat/client-chat-wework/utils.js +5 -5
- 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/{components/wework-chat-control/wework-chat-control-config.vue → uni-components/chat-control/chat-control-config.vue} +13 -16
- 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/components/wework-chat-control/wework-chat-control-config-item.vue +0 -24
- package/components/wework-chat-control/wework-chat-control-config-msg.vue +0 -25
- package/components/wework-chat-panel/chat-panel-chat-status/chat-panel-chat-status.vue +0 -73
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="bi-contacts-group-select-panel">
|
|
3
|
+
<view class="bi-contacts-group-select-panel__head">
|
|
4
|
+
<view class="bi-contacts-group-select-panel__head-left">
|
|
5
|
+
<uv-button size="small" @click="handleCancelClick">取消</uv-button>
|
|
6
|
+
</view>
|
|
7
|
+
<view class="bi-contacts-group-select-panel__head-center"></view>
|
|
8
|
+
<view class="bi-contacts-group-select-panel__head-right">
|
|
9
|
+
<uv-button size="small" type="primary" @click="handleConfirmClick">确定</uv-button>
|
|
10
|
+
</view>
|
|
11
|
+
</view>
|
|
12
|
+
<view class="bi-contacts-group-select-panel__body">
|
|
13
|
+
<view class="bi-contacts-group-select-panel__group" v-if="friendGroupData && friendGroupData.length">
|
|
14
|
+
<view class="bi-contacts-group-select-panel__group-head">
|
|
15
|
+
<view class="bi-contacts-group-select-panel__group-title">好友分组</view>
|
|
16
|
+
</view>
|
|
17
|
+
<view class="bi-contacts-group-select-panel__group-body">
|
|
18
|
+
<contacts-group-select-item
|
|
19
|
+
class="bi-contacts-group-select-panel__group-item"
|
|
20
|
+
@click="handleFriendGroupClick(group)"
|
|
21
|
+
v-for="group in friendGroupData"
|
|
22
|
+
type="friend"
|
|
23
|
+
:key="group.id"
|
|
24
|
+
:data="group"
|
|
25
|
+
:selected="group.id === inputValue"
|
|
26
|
+
>
|
|
27
|
+
</contacts-group-select-item>
|
|
28
|
+
</view>
|
|
29
|
+
</view>
|
|
30
|
+
<view class="bi-contacts-group-select-panel__group" v-if="roomGroupData && roomGroupData.length">
|
|
31
|
+
<view class="bi-contacts-group-select-panel__group-head">
|
|
32
|
+
<view class="bi-contacts-group-select-panel__group-title">群聊分组</view>
|
|
33
|
+
</view>
|
|
34
|
+
<view class="bi-contacts-group-select-panel__group-body">
|
|
35
|
+
<contacts-group-select-item
|
|
36
|
+
class="bi-contacts-group-select-panel__group-item"
|
|
37
|
+
@click="handleRoomGroupClick(group)"
|
|
38
|
+
v-for="group in roomGroupData"
|
|
39
|
+
type="room"
|
|
40
|
+
:key="group.id"
|
|
41
|
+
:data="group"
|
|
42
|
+
:selected="group.id === inputValue"
|
|
43
|
+
>
|
|
44
|
+
</contacts-group-select-item>
|
|
45
|
+
</view>
|
|
46
|
+
</view>
|
|
47
|
+
<view class="bi-contacts-group-select-panel__safe"></view>
|
|
48
|
+
</view>
|
|
49
|
+
</view>
|
|
50
|
+
</template>
|
|
51
|
+
|
|
52
|
+
<script>
|
|
53
|
+
import ContactsGroupSelectItem from './contacts-group-select-item.vue'
|
|
54
|
+
|
|
55
|
+
export default {
|
|
56
|
+
name: 'BiContactsGroupSelectPanel',
|
|
57
|
+
components: {
|
|
58
|
+
ContactsGroupSelectItem
|
|
59
|
+
},
|
|
60
|
+
props: {
|
|
61
|
+
value: {
|
|
62
|
+
type: String
|
|
63
|
+
},
|
|
64
|
+
friendGroupData: {
|
|
65
|
+
type: Array
|
|
66
|
+
},
|
|
67
|
+
roomGroupData: {
|
|
68
|
+
type: Array
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
data () {
|
|
72
|
+
return {
|
|
73
|
+
inputValue: this.value
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
methods: {
|
|
77
|
+
handleCancelClick () {
|
|
78
|
+
this.$emit('cancel')
|
|
79
|
+
},
|
|
80
|
+
handleConfirmClick () {
|
|
81
|
+
this.$emit('confirm', this.inputValue)
|
|
82
|
+
},
|
|
83
|
+
handleFriendGroupClick (item) {
|
|
84
|
+
this.inputValue = item.id
|
|
85
|
+
},
|
|
86
|
+
handleRoomGroupClick (item) {
|
|
87
|
+
this.inputValue = item.id
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<style lang="less">
|
|
94
|
+
.bi-contacts-group-select-panel__head{
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: row;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: space-between;
|
|
99
|
+
padding: 8px 12px;
|
|
100
|
+
border-bottom: 1px solid #eee;
|
|
101
|
+
}
|
|
102
|
+
.bi-contacts-group-select-panel__body{
|
|
103
|
+
max-height: 70vh;
|
|
104
|
+
overflow: auto;
|
|
105
|
+
padding: 6px 0;
|
|
106
|
+
}
|
|
107
|
+
.bi-contacts-group-select-panel__group-head {
|
|
108
|
+
height: 32px;
|
|
109
|
+
line-height: 32px;
|
|
110
|
+
padding: 0 12px;
|
|
111
|
+
}
|
|
112
|
+
.bi-contacts-group-select-panel__group-title {
|
|
113
|
+
color: #999;
|
|
114
|
+
}
|
|
115
|
+
.bi-contacts-group-select-panel__safe{
|
|
116
|
+
padding-bottom: calc(constant(safe-area-inset-bottom)); /* window-bottom + 适配 iPhoneX */
|
|
117
|
+
padding-bottom: calc(env(safe-area-inset-bottom));
|
|
118
|
+
}
|
|
119
|
+
</style>
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="bi-account-select">
|
|
3
|
+
<view class="bi-account-select__handle" @click="handleHandleClick">
|
|
4
|
+
<template v-if="loading">
|
|
5
|
+
<uv-loading-icon class="bi-account-select__loading" size="18" text="数据加载中..."></uv-loading-icon>
|
|
6
|
+
</template>
|
|
7
|
+
<template v-else>
|
|
8
|
+
<template v-if="value">
|
|
9
|
+
<view class="bi-account-select__value">
|
|
10
|
+
{{ currentGroup ? currentGroup.groupName : value }}
|
|
11
|
+
</view>
|
|
12
|
+
</template>
|
|
13
|
+
<template v-else>
|
|
14
|
+
<view class="bi-account-select__placeholder">
|
|
15
|
+
请选择分组
|
|
16
|
+
</view>
|
|
17
|
+
</template>
|
|
18
|
+
</template>
|
|
19
|
+
</view>
|
|
20
|
+
<uv-popup
|
|
21
|
+
ref="popup"
|
|
22
|
+
mode="bottom"
|
|
23
|
+
@change="handlePopupChange"
|
|
24
|
+
>
|
|
25
|
+
<contacts-group-select-panel
|
|
26
|
+
:value="value"
|
|
27
|
+
:friend-group-data="friendGroupData"
|
|
28
|
+
:room-group-data="roomGroupData"
|
|
29
|
+
@cancel="handleCancelClick"
|
|
30
|
+
@confirm="handleConfirmClick"
|
|
31
|
+
></contacts-group-select-panel>
|
|
32
|
+
</uv-popup>
|
|
33
|
+
</view>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<script>
|
|
37
|
+
import ContactsGroupSelectPanel from './contacts-group-select-panel.vue'
|
|
38
|
+
|
|
39
|
+
export default {
|
|
40
|
+
name: 'BiContactsGroupSelect',
|
|
41
|
+
components: {
|
|
42
|
+
ContactsGroupSelectPanel
|
|
43
|
+
},
|
|
44
|
+
props: {
|
|
45
|
+
value: {
|
|
46
|
+
type: String
|
|
47
|
+
},
|
|
48
|
+
type: {
|
|
49
|
+
type: String,
|
|
50
|
+
validator (value) {
|
|
51
|
+
return ['room', 'friend'].includes(value)
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
data () {
|
|
56
|
+
return {
|
|
57
|
+
loading: false,
|
|
58
|
+
friendGroupData: [],
|
|
59
|
+
roomGroupData: []
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
computed: {
|
|
63
|
+
currentGroup () {
|
|
64
|
+
if (!this.value) {
|
|
65
|
+
return
|
|
66
|
+
}
|
|
67
|
+
let group = this.friendGroupData.find(v => v.id === this.value)
|
|
68
|
+
if (!group) {
|
|
69
|
+
group = this.roomGroupData.find(v => v.id === this.value)
|
|
70
|
+
}
|
|
71
|
+
return group
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
created () {
|
|
75
|
+
this.loadData()
|
|
76
|
+
},
|
|
77
|
+
methods: {
|
|
78
|
+
loadData () {
|
|
79
|
+
this.loading = true
|
|
80
|
+
if (this.type === 'friend') {
|
|
81
|
+
return Promise.all([
|
|
82
|
+
this.$clientChat.contacts.loadFriendGroupData()
|
|
83
|
+
]).then(rs => {
|
|
84
|
+
this.friendGroupData = rs[0].data
|
|
85
|
+
}).finally(() => {
|
|
86
|
+
this.loading = false
|
|
87
|
+
})
|
|
88
|
+
} else if (this.type === 'room') {
|
|
89
|
+
return Promise.all([
|
|
90
|
+
this.$clientChat.contacts.loadRoomGroupData()
|
|
91
|
+
]).then(rs => {
|
|
92
|
+
this.roomGroupData = rs[0].data
|
|
93
|
+
}).finally(() => {
|
|
94
|
+
this.loading = false
|
|
95
|
+
})
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
handleCancelClick () {
|
|
99
|
+
this.$refs.popup.close()
|
|
100
|
+
},
|
|
101
|
+
handleConfirmClick (value) {
|
|
102
|
+
this.$emit('input', value)
|
|
103
|
+
this.$refs.popup.close()
|
|
104
|
+
},
|
|
105
|
+
handlePopupChange ({ show }) {
|
|
106
|
+
this.showPopup = show
|
|
107
|
+
if (show) {
|
|
108
|
+
uni.hideTabBar()
|
|
109
|
+
} else {
|
|
110
|
+
uni.showTabBar()
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
handleHandleClick () {
|
|
114
|
+
this.$refs.popup.open()
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
</script>
|
|
119
|
+
|
|
120
|
+
<style lang="less">
|
|
121
|
+
.bi-account-select__handle {
|
|
122
|
+
position: relative;
|
|
123
|
+
padding-right: 18px;
|
|
124
|
+
padding-top: 1px;
|
|
125
|
+
padding-bottom: 1px;
|
|
126
|
+
height: 32px;
|
|
127
|
+
line-height: 32px;
|
|
128
|
+
display: inline-block;
|
|
129
|
+
&:after {
|
|
130
|
+
content: '';
|
|
131
|
+
width: 6px;
|
|
132
|
+
height: 6px;
|
|
133
|
+
border: 1px solid #ccc;
|
|
134
|
+
border-left: 0;
|
|
135
|
+
border-top: 0;
|
|
136
|
+
transform: rotate(45deg) translateY(-50%);
|
|
137
|
+
position: absolute;
|
|
138
|
+
right: 6px;
|
|
139
|
+
top: 50%;
|
|
140
|
+
margin-top: -3px;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
.bi-account-select__loading{
|
|
144
|
+
vertical-align: top;
|
|
145
|
+
margin-top: 7px;
|
|
146
|
+
}
|
|
147
|
+
.bi-account-select__placeholder{
|
|
148
|
+
color: #999;
|
|
149
|
+
}
|
|
150
|
+
</style>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
name: 'SdkWeworkChatControlConfigItem',
|
|
4
|
-
functional: true,
|
|
5
|
-
inject: {
|
|
6
|
-
SdkWeworkChatControlConfig: {
|
|
7
|
-
default: null
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
props: {
|
|
11
|
-
/**
|
|
12
|
-
* 消息类型
|
|
13
|
-
*/
|
|
14
|
-
msgType: {
|
|
15
|
-
type: [Number, String]
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
render (h, c) {
|
|
19
|
-
return c.scopedSlots.default({
|
|
20
|
-
configData: c.injections.SdkWeworkChatControlConfig ? c.injections.SdkWeworkChatControlConfig.getControlConfig(c.props.msgType) : null
|
|
21
|
-
})
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
</script>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
name: 'SdkWeworkChatControlConfigMsg',
|
|
4
|
-
functional: true,
|
|
5
|
-
inject: {
|
|
6
|
-
SdkWeworkChatControlConfig: {
|
|
7
|
-
default: null
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
props: {
|
|
11
|
-
/**
|
|
12
|
-
* 标准的企微客户端消息数据
|
|
13
|
-
*/
|
|
14
|
-
msgData: {
|
|
15
|
-
type: Object,
|
|
16
|
-
required: true
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
render (h, c) {
|
|
20
|
-
return c.scopedSlots.default({
|
|
21
|
-
configData: c.injections.SdkWeworkChatControlConfig ? c.injections.SdkWeworkChatControlConfig.getMessageConfig(c.props.msgData) : null
|
|
22
|
-
})
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
</script>
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="sdk-wework-panel-chat-status">
|
|
3
|
-
<!-- status: 0 success, 1 sending, 2 failed, 3 timeout -->
|
|
4
|
-
<template v-if="data.status === 1">
|
|
5
|
-
<ui-loading size="mini"></ui-loading>
|
|
6
|
-
</template>
|
|
7
|
-
<template v-else-if="data.status === 2">
|
|
8
|
-
<bi-tooltip :text="data.resultMsg || '发送失败'">
|
|
9
|
-
<span class="sdk-wework-panel-chat-status__error">
|
|
10
|
-
<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M512 938.666667C276.352 938.666667 85.333333 747.648 85.333333 512S276.352 85.333333 512 85.333333s426.666667 191.018667 426.666667 426.666667-191.018667 426.666667-426.666667 426.666667z m0-486.997334L391.338667 330.965333 330.965333 391.338667 451.669333 512l-120.704 120.661333 60.373334 60.373334L512 572.330667l120.661333 120.704 60.373334-60.373334L572.330667 512l120.704-120.661333-60.373334-60.373334L512 451.669333z" fill="currentColor"></path></svg>
|
|
11
|
-
</span>
|
|
12
|
-
</bi-tooltip>
|
|
13
|
-
</template>
|
|
14
|
-
<template v-else-if="data.status === 3">
|
|
15
|
-
<bi-tooltip :text="data.resultMsg || '发送超时'">
|
|
16
|
-
<span class="sdk-wework-panel-chat-status__error">
|
|
17
|
-
<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M512 938.666667C276.352 938.666667 85.333333 747.648 85.333333 512S276.352 85.333333 512 85.333333s426.666667 191.018667 426.666667 426.666667-191.018667 426.666667-426.666667 426.666667z m42.666667-426.666667V298.666667h-85.333334v298.666666h256v-85.333333h-170.666666z" fill="currentColor"></path></svg>
|
|
18
|
-
</span>
|
|
19
|
-
</bi-tooltip>
|
|
20
|
-
</template>
|
|
21
|
-
<template v-if="data.recalled">
|
|
22
|
-
<bi-tooltip text="消息已撤回">
|
|
23
|
-
<span class="sdk-wework-panel-chat-status__error sdk-wework-panel-chat-status__recalled">
|
|
24
|
-
<svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M512 0c282.752 0 512 229.248 512 512s-229.248 512-512 512S0 794.752 0 512 229.248 0 512 0z m-50.261333 255.317333c-7.765333-39.338667-39.893333-15.36-39.893334-15.36l-213.76 192c-47.616 34.944-2.730667 60.458667-2.730666 60.458667l211.541333 190.933333c42.410667 33.066667 45.866667-17.749333 45.866667-17.749333v-86.442667c215.125333-70.144 303.36 208.341333 303.36 208.341334 7.936 15.957333 13.824 0 13.824 0C862.933333 368.682667 461.952 348.586667 461.952 348.586667z" fill="currentColor"></path></svg>
|
|
25
|
-
</span>
|
|
26
|
-
</bi-tooltip>
|
|
27
|
-
</template>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
|
|
31
|
-
<script>
|
|
32
|
-
import { Tooltip as BiTooltip } from '@aochuang/common/common'
|
|
33
|
-
import { Loading as UiLoading } from '@aochuang/common/components'
|
|
34
|
-
|
|
35
|
-
export default {
|
|
36
|
-
name: 'SdkWeworkPanelChatStatus',
|
|
37
|
-
components: {
|
|
38
|
-
BiTooltip,
|
|
39
|
-
UiLoading
|
|
40
|
-
},
|
|
41
|
-
props: {
|
|
42
|
-
data: {
|
|
43
|
-
type: Object,
|
|
44
|
-
required: true
|
|
45
|
-
},
|
|
46
|
-
updateChatBoxProp: {
|
|
47
|
-
type: Function
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
</script>
|
|
52
|
-
|
|
53
|
-
<style lang="less">
|
|
54
|
-
.sdk-wework-panel-chat-status__error {
|
|
55
|
-
display: flex;
|
|
56
|
-
flex-direction: row;
|
|
57
|
-
align-items: center;
|
|
58
|
-
font-size: 12px;
|
|
59
|
-
color: #c00;
|
|
60
|
-
width: 16px;
|
|
61
|
-
height: 16px;
|
|
62
|
-
svg {
|
|
63
|
-
width: 100%;
|
|
64
|
-
height: 100%;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
.sdk-wework-panel-chat-status__recalled {
|
|
68
|
-
opacity: .6;
|
|
69
|
-
}
|
|
70
|
-
.sdk-wework-panel-chat-status {
|
|
71
|
-
margin: 0 6px;
|
|
72
|
-
}
|
|
73
|
-
</style>
|