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
6fc03451
Commit
6fc03451
authored
Nov 30, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
98d61e7d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
0 deletions
+57
-0
YHAIThinkingMessageCell.swift
...ules/AI/AI-Dialogue(AI对话)/V/YHAIThinkingMessageCell.swift
+23
-0
YHCardMessageCell.swift
...es/Modules/AI/AI-Dialogue(AI对话)/V/YHCardMessageCell.swift
+12
-0
YHFixProductMessageCell.swift
...ules/AI/AI-Dialogue(AI对话)/V/YHFixProductMessageCell.swift
+11
-0
YHProductListMessageCell.swift
...les/AI/AI-Dialogue(AI对话)/V/YHProductListMessageCell.swift
+11
-0
No files found.
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHAIThinkingMessageCell.swift
View file @
6fc03451
...
@@ -38,6 +38,18 @@ class YHAIThinkingMessageCell: UITableViewCell {
...
@@ -38,6 +38,18 @@ class YHAIThinkingMessageCell: UITableViewCell {
return
lottieView
return
lottieView
}()
}()
lazy
var
shadowView
:
YHAIChatShadowView
=
{
let
v
=
YHAIChatShadowView
()
return
v
}()
var
rightAngleView
:
UIView
=
{
let
v
=
UIView
()
v
.
backgroundColor
=
.
white
return
v
}()
required
init
?(
coder
:
NSCoder
)
{
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
super
.
init
(
coder
:
coder
)
}
}
...
@@ -52,9 +64,20 @@ class YHAIThinkingMessageCell: UITableViewCell {
...
@@ -52,9 +64,20 @@ class YHAIThinkingMessageCell: UITableViewCell {
selectionStyle
=
.
none
selectionStyle
=
.
none
contentView
.
backgroundColor
=
.
clear
contentView
.
backgroundColor
=
.
clear
backgroundColor
=
.
clear
backgroundColor
=
.
clear
contentView
.
addSubview
(
shadowView
)
contentView
.
addSubview
(
rightAngleView
)
contentView
.
addSubview
(
whiteContentView
)
contentView
.
addSubview
(
whiteContentView
)
whiteContentView
.
addSubview
(
messageLabel
)
whiteContentView
.
addSubview
(
messageLabel
)
whiteContentView
.
addSubview
(
loadingImgView
)
whiteContentView
.
addSubview
(
loadingImgView
)
shadowView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalTo
(
whiteContentView
)
}
rightAngleView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
equalTo
(
whiteContentView
)
make
.
width
.
height
.
equalTo
(
15
)
}
whiteContentView
.
snp
.
makeConstraints
{
make
in
whiteContentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
left
.
equalTo
(
20
)
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHCardMessageCell.swift
View file @
6fc03451
...
@@ -85,6 +85,12 @@ class YHCardMessageCell: UITableViewCell {
...
@@ -85,6 +85,12 @@ class YHCardMessageCell: UITableViewCell {
return
btn
return
btn
}()
}()
lazy
var
shadowView
:
YHAIChatShadowView
=
{
let
v
=
YHAIChatShadowView
()
return
v
}()
@objc
func
didBottomButtonClicked
()
{
@objc
func
didBottomButtonClicked
()
{
}
}
...
@@ -103,6 +109,7 @@ class YHCardMessageCell: UITableViewCell {
...
@@ -103,6 +109,7 @@ class YHCardMessageCell: UITableViewCell {
selectionStyle
=
.
none
selectionStyle
=
.
none
contentView
.
backgroundColor
=
.
clear
contentView
.
backgroundColor
=
.
clear
backgroundColor
=
.
clear
backgroundColor
=
.
clear
contentView
.
addSubview
(
shadowView
)
contentView
.
addSubview
(
whiteContentView
)
contentView
.
addSubview
(
whiteContentView
)
whiteContentView
.
addSubview
(
iconImgView
)
whiteContentView
.
addSubview
(
iconImgView
)
whiteContentView
.
addSubview
(
titleLabel
)
whiteContentView
.
addSubview
(
titleLabel
)
...
@@ -112,6 +119,11 @@ class YHCardMessageCell: UITableViewCell {
...
@@ -112,6 +119,11 @@ class YHCardMessageCell: UITableViewCell {
whiteContentView
.
addSubview
(
cardTitleLabel
)
whiteContentView
.
addSubview
(
cardTitleLabel
)
whiteContentView
.
addSubview
(
describeLabel
)
whiteContentView
.
addSubview
(
describeLabel
)
whiteContentView
.
addSubview
(
bottomBtn
)
whiteContentView
.
addSubview
(
bottomBtn
)
shadowView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalTo
(
whiteContentView
)
}
whiteContentView
.
snp
.
makeConstraints
{
make
in
whiteContentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
left
.
equalTo
(
20
)
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHFixProductMessageCell.swift
View file @
6fc03451
...
@@ -102,6 +102,12 @@ class YHFixProductListMessageCell: UITableViewCell {
...
@@ -102,6 +102,12 @@ class YHFixProductListMessageCell: UITableViewCell {
return
btn
return
btn
}()
}()
lazy
var
shadowView
:
YHAIChatShadowView
=
{
let
v
=
YHAIChatShadowView
()
return
v
}()
@objc
func
didMoreButtonClicked
()
{
@objc
func
didMoreButtonClicked
()
{
if
!
listModel
.
redirect_path
.
isEmpty
{
if
!
listModel
.
redirect_path
.
isEmpty
{
...
@@ -126,6 +132,7 @@ class YHFixProductListMessageCell: UITableViewCell {
...
@@ -126,6 +132,7 @@ class YHFixProductListMessageCell: UITableViewCell {
selectionStyle
=
.
none
selectionStyle
=
.
none
contentView
.
backgroundColor
=
.
clear
contentView
.
backgroundColor
=
.
clear
backgroundColor
=
.
clear
backgroundColor
=
.
clear
contentView
.
addSubview
(
shadowView
)
contentView
.
addSubview
(
whiteContentView
)
contentView
.
addSubview
(
whiteContentView
)
whiteContentView
.
addSubview
(
iconImgView
)
whiteContentView
.
addSubview
(
iconImgView
)
whiteContentView
.
addSubview
(
titleLabel
)
whiteContentView
.
addSubview
(
titleLabel
)
...
@@ -133,6 +140,10 @@ class YHFixProductListMessageCell: UITableViewCell {
...
@@ -133,6 +140,10 @@ class YHFixProductListMessageCell: UITableViewCell {
whiteContentView
.
addSubview
(
lineView
)
whiteContentView
.
addSubview
(
lineView
)
whiteContentView
.
addSubview
(
listView
)
whiteContentView
.
addSubview
(
listView
)
shadowView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalTo
(
whiteContentView
)
}
whiteContentView
.
snp
.
makeConstraints
{
make
in
whiteContentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
right
.
equalTo
(
-
20
)
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHProductListMessageCell.swift
View file @
6fc03451
...
@@ -103,6 +103,12 @@ class YHProductListMessageCell: UITableViewCell {
...
@@ -103,6 +103,12 @@ class YHProductListMessageCell: UITableViewCell {
return
btn
return
btn
}()
}()
lazy
var
shadowView
:
YHAIChatShadowView
=
{
let
v
=
YHAIChatShadowView
()
return
v
}()
@objc
func
didMoreButtonClicked
()
{
@objc
func
didMoreButtonClicked
()
{
if
!
listModel
.
redirect_path
.
isEmpty
{
if
!
listModel
.
redirect_path
.
isEmpty
{
...
@@ -127,6 +133,7 @@ class YHProductListMessageCell: UITableViewCell {
...
@@ -127,6 +133,7 @@ class YHProductListMessageCell: UITableViewCell {
selectionStyle
=
.
none
selectionStyle
=
.
none
contentView
.
backgroundColor
=
.
clear
contentView
.
backgroundColor
=
.
clear
backgroundColor
=
.
clear
backgroundColor
=
.
clear
contentView
.
addSubview
(
shadowView
)
contentView
.
addSubview
(
whiteContentView
)
contentView
.
addSubview
(
whiteContentView
)
whiteContentView
.
addSubview
(
iconImgView
)
whiteContentView
.
addSubview
(
iconImgView
)
whiteContentView
.
addSubview
(
titleLabel
)
whiteContentView
.
addSubview
(
titleLabel
)
...
@@ -134,6 +141,10 @@ class YHProductListMessageCell: UITableViewCell {
...
@@ -134,6 +141,10 @@ class YHProductListMessageCell: UITableViewCell {
whiteContentView
.
addSubview
(
lineView
)
whiteContentView
.
addSubview
(
lineView
)
whiteContentView
.
addSubview
(
listView
)
whiteContentView
.
addSubview
(
listView
)
shadowView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalTo
(
whiteContentView
)
}
whiteContentView
.
snp
.
makeConstraints
{
make
in
whiteContentView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
right
.
equalTo
(
-
20
)
...
...
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