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

// AI

parent 3c4b160d
......@@ -374,7 +374,7 @@ extension YHAIMainChatViewController: UITableViewDelegate, UITableViewDataSource
if msgType == .productList {
var height = 16+70.0
if let listModel = message.body.cardsInfo {
height += height + (120.0 * Double(listModel.list.count)) + 40.0
height += (120.0 * Double(listModel.list.count) + 40.0)
}
return height
}
......
......@@ -505,7 +505,7 @@ extension YHAIRobotChatViewController: UITableViewDelegate, UITableViewDataSourc
if msgType == .productList {
var height = 16+70.0
if let listModel = message.body.cardsInfo {
height += height + (120.0 * Double(listModel.list.count)) + 40.0
height += (120.0 * Double(listModel.list.count) + 40.0)
}
return height
}
......
......@@ -45,7 +45,7 @@ class YHAIGreetCollectionReusableView: UICollectionReusableView {
let paragraphStyle = NSMutableParagraphStyle()
paragraphStyle.lineSpacing = 4.0
let attributedText = NSAttributedString(
string: "港小宝来啦!超懂香港身份规划,畅聊香港生活,快来和我一起欢乐探索香港!",
string: "首个聚焦香港的AI智能体,\"港小宝\" 来啦~深度解析身份规划,解锁香港生活未来密码!共赴新港生活奇妙之旅吧!",
attributes: [NSAttributedString.Key.paragraphStyle: paragraphStyle,
NSAttributedString.Key.foregroundColor: UIColor.mainTextColor(alpha: 0.6),
NSAttributedString.Key.font: UIFont.PFSC_R(ofSize:14)]
......
......@@ -63,7 +63,6 @@ class YHProductItemView: UIView {
lable.textColor = UIColor.mainTextColor
lable.textAlignment = .left
lable.font = UIFont.PFSC_R(ofSize:14)
lable.text = "高才A香港企明星(7)"
return lable
}()
......
......@@ -23,8 +23,9 @@ class YHProductListMessageCell: UITableViewCell {
let productView = YHProductItemView()
productView.productModel = item
listView.addSubview(productView)
productView.snp.remakeConstraints { make in
productView.snp.makeConstraints { make in
make.left.right.equalToSuperview()
make.height.equalTo(120)
if let lastItemView = lastItemView {
make.top.equalTo(lastItemView.snp.bottom)
......
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