Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
ce8ff491
Commit
ce8ff491
authored
Dec 11, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
3c4b160d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
YHAIMainChatViewController.swift
...s/AI/AI-Dialogue(AI对话)/C/YHAIMainChatViewController.swift
+1
-1
YHAIRobotChatViewController.swift
.../AI/AI-Dialogue(AI对话)/C/YHAIRobotChatViewController.swift
+1
-1
YHAIGreetCollectionReusableView.swift
...AI-Dialogue(AI对话)/V/YHAIGreetCollectionReusableView.swift
+1
-1
YHProductItemView.swift
...es/Modules/AI/AI-Dialogue(AI对话)/V/YHProductItemView.swift
+0
-1
YHProductListMessageCell.swift
...les/AI/AI-Dialogue(AI对话)/V/YHProductListMessageCell.swift
+2
-1
No files found.
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/C/YHAIMainChatViewController.swift
View file @
ce8ff491
...
...
@@ -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
}
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/C/YHAIRobotChatViewController.swift
View file @
ce8ff491
...
...
@@ -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
}
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHAIGreetCollectionReusableView.swift
View file @
ce8ff491
...
...
@@ -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
)]
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHProductItemView.swift
View file @
ce8ff491
...
...
@@ -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
}()
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHProductListMessageCell.swift
View file @
ce8ff491
...
...
@@ -23,8 +23,9 @@ class YHProductListMessageCell: UITableViewCell {
let
productView
=
YHProductItemView
()
productView
.
productModel
=
item
listView
.
addSubview
(
productView
)
productView
.
snp
.
re
makeConstraints
{
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment