实现发送消息到媒介

This commit is contained in:
刘祥超
2021-04-12 19:19:59 +08:00
parent 7ffff890a8
commit a637783249
18 changed files with 425 additions and 24 deletions

View File

@@ -0,0 +1,40 @@
Tea.context(function () {
this.selectedRecipient = null
this.selectedGroup = null
this.selectRecipient = function (recipient) {
this.selectedRecipient = recipient
this.selectedGroup = null
}
this.selectGroup = function (group) {
this.selectedRecipient = null
this.selectedGroup = group
}
this.confirm = function () {
if (this.selectedRecipient != null) {
NotifyPopup({
code: 200,
data: {
id: this.selectedRecipient.id,
name: this.selectedRecipient.name,
subName: this.selectedRecipient.instanceName,
type: "recipient"
}
})
} else if (this.selectedGroup != null) {
NotifyPopup({
code: 200,
data: {
id: this.selectedGroup.id,
name: this.selectedGroup.name,
type: "group"
}
})
} else {
teaweb.closePopup()
}
}
})