Commit 1a093e55 authored by Steven杜宇's avatar Steven杜宇

// AI

parent e746e00c
......@@ -319,6 +319,7 @@ class YHAIRobotChatViewController: YHBaseViewController {
if robotType == YHAIRobotType.sale.rawValue {
config.title = "Hello,我是新港生活规划师"
config.bannerTitleColor = .brandMainColor
config.desc = "香港身份办理问题可以找我"
config.bgColor = .init(hex: 0xE6F4FF)
config.indicatorColor = .brandMainColor
......@@ -330,6 +331,7 @@ class YHAIRobotChatViewController: YHBaseViewController {
} else if robotType == YHAIRobotType.education.rawValue {
config.title = "Hello,我是香港教育宝"
config.bannerTitleColor = .init(hex: 0x00C77C)
config.desc = "有香港教育的问题尽管问我"
config.bgColor = .init(hex: 0xDAF6FC)
config.indicatorColor = .init(hex: 0x00C77C)
......
......@@ -26,6 +26,7 @@ class YHAIChatBannerItem {
class YHAIChatBannerViewConfig {
var bgColor: UIColor = .init(hex: 0xE6F4FF)
var bannerTitleColor: UIColor = .init(hex: 0x6D788A)
var bgImageName: String = ""
var title: String = ""
var desc: String = ""
......@@ -252,6 +253,7 @@ extension YHAIChatBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
if index < bannerArr.count {
let model = bannerArr[index]
cell.model = model
cell.titleLabel.textColor = self.config.bannerTitleColor
}
return cell
}
......
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