Commit bdb966fe authored by Steven杜宇's avatar Steven杜宇

// AI

parent a0e747da
......@@ -180,7 +180,9 @@ class YHAIMainChatViewController: YHBaseViewController {
let previewUrl = "https://prod-cdn-pub.galaxy-immi.com/5000000/chats/mask_group.png"
let msg = self.chatConfig.createRobotResponseLocalPictureMessage("ai_auto_chat_img", previewUrl:previewUrl)
messages.append(msg)
self.tableView.reloadData()
self.tableView.reloadData {
self.scrollToBottom()
}
}
}
......@@ -284,7 +286,9 @@ extension YHAIMainChatViewController: UITableViewDelegate, UITableViewDataSource
if arr.count > 0 {
messages.append(contentsOf: arr)
tableView.reloadData()
self.tableView.reloadData {
self.scrollToBottom()
}
}
}
......
......@@ -186,7 +186,9 @@ class YHAIRobotChatViewController: YHBaseViewController {
return !uuids.contains($0.messageId)
}
messages.insert(contentsOf: results, at: 0)
self.tableView.reloadData()
self.tableView.reloadData {
self.scrollToBottom()
}
autoResponseLocalTextMessage()
}
......@@ -198,7 +200,9 @@ class YHAIRobotChatViewController: YHBaseViewController {
let text = "银河集团能够为您提供全方位、一站式的香港身份规划及本地生活服务。\n在身份规划方面,我们专注于香港优才、专才、留学等身份产品服务,根据您的个人情况和需求,量身定制最合适的身份规划方案,助您轻松获取香港身份,享受香港的各项福利和优势。\n同时,我们还提供丰富的香港本地生活服务,包括教育咨询、商务支持、个人账户开设、港宝(即香港宝宝)相关服务、保险规划以及房产购置等。我们的专业团队对香港市场有着深入的了解,能够为您提供精准、高效的服务,让您在香港的生活更加便捷、舒适。\n银河集团凭借多年的行业经验和丰富的成功案例,以及专业、敬业的团队,致力于为客户提供最优质、最贴心的服务。选择银河集团,您将享受到专业、高效、便捷的服务体验,让我们携手共创美好未来。"
let msg = self.chatConfig.createRobotResponseTextMessage(text)
messages.append(msg)
self.tableView.reloadData()
self.tableView.reloadData {
self.scrollToBottom()
}
}
}
}
......@@ -338,7 +342,9 @@ extension YHAIRobotChatViewController: UITableViewDelegate, UITableViewDataSourc
if arr.count > 0 {
messages.append(contentsOf: arr)
tableView.reloadData()
self.tableView.reloadData {
self.scrollToBottom()
}
}
}
......
......@@ -88,6 +88,12 @@ class YHAITabViewController: YHBaseViewController {
@objc func didBackBtnClicked() {
if segmentedView.selectedIndex == 1 { // AI 对话
// tab切换到港小宝
self.segmentedView.selectItemAt(index: 0)
return
}
self.navigationController?.popViewController(animated: true)
}
......
......@@ -110,6 +110,9 @@ class YHAITextMessageCell: UITableViewCell {
v.clipsToBounds = true
let tap = UITapGestureRecognizer(target: self, action: #selector(didMessageClicked))
v.addGestureRecognizer(tap)
let longPress = UILongPressGestureRecognizer(target: self, action: #selector(didCopyTextButtonClicked))
v.addGestureRecognizer(longPress)
return v
}()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment