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
415fa600
Commit
415fa600
authored
Dec 04, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
1bc9df77
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
67 additions
and
14 deletions
+67
-14
YHAIRobotChatViewController.swift
.../AI/AI-Dialogue(AI对话)/C/YHAIRobotChatViewController.swift
+4
-2
YHAIChatBannerCollectionCell.swift
...AI/AI-Dialogue(AI对话)/V/YHAIChatBannerCollectionCell.swift
+15
-4
YHAIChatBannerView.swift
...s/Modules/AI/AI-Dialogue(AI对话)/V/YHAIChatBannerView.swift
+24
-6
YHHomeBannerIndicatorView.swift
...lasses/Modules/Home(首页)/V/YHHomeBannerIndicatorView.swift
+2
-2
Contents.json
...AI-Chat/ai_chat_heaer_banner_arrow.imageset/Contents.json
+22
-0
Vector 6602@2x.png
...at/ai_chat_heaer_banner_arrow.imageset/Vector 6602@2x.png
+0
-0
Vector 6602@3x.png
...at/ai_chat_heaer_banner_arrow.imageset/Vector 6602@3x.png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/C/YHAIRobotChatViewController.swift
View file @
415fa600
...
...
@@ -225,14 +225,16 @@ class YHAIRobotChatViewController: YHBaseViewController {
func
getFlowMessages
()
->
[
String
]
{
return
[
"大学升学"
,
"银河教育服务"
,
"DES分数和Alevel的换算关系"
,
"银河教育插班成功率如何?"
]
if
myTitle
==
"房产"
{
return
[
"大学升学"
,
"银河教育服务"
,
"DES分数和Alevel的换算关系"
,
"银河教育插班成功率如何?"
]
}
else
if
myTitle
==
"教育"
{
return
[
]
return
[
"大学升学"
,
"银河教育服务"
,
"DES分数和Alevel的换算关系"
,
"银河教育插班成功率如何?"
]
}
else
if
myTitle
==
"销售"
{
return
[
]
return
[
"大学升学"
,
"银河教育服务"
,
"DES分数和Alevel的换算关系"
,
"银河教育插班成功率如何?"
]
}
return
[]
}
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHAIChatBannerCollectionCell.swift
View file @
415fa600
...
...
@@ -12,6 +12,15 @@ class YHAIChatBannerCollectionCell: UICollectionViewCell {
static
let
cellReuseIdentifier
=
"YHAIChatBannerCollectionCell"
lazy
var
bgView
:
UIView
=
{
let
v
=
UIView
()
v
.
backgroundColor
=
.
white
v
.
backgroundColor
=
.
white
v
.
layer
.
cornerRadius
=
6.0
v
.
clipsToBounds
=
true
return
v
}()
lazy
var
titleLabel
:
UILabel
=
{
var
label
=
UILabel
()
label
.
font
=
.
PFSC_R
(
ofSize
:
12
)
...
...
@@ -36,11 +45,13 @@ class YHAIChatBannerCollectionCell: UICollectionViewCell {
private
func
setupUI
()
{
contentView
.
backgroundColor
=
.
white
contentView
.
layer
.
cornerRadius
=
6.0
contentView
.
addSubview
(
shadowView
)
contentView
.
addSubview
(
titleLabel
)
contentView
.
addSubview
(
bgView
)
bgView
.
addSubview
(
titleLabel
)
bgView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
shadowView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHAIChatBannerView.swift
View file @
415fa600
...
...
@@ -23,7 +23,6 @@ class YHAIChatBannerItem {
class
YHAIChatBannerView
:
UIView
{
static
let
viewHeight
=
242.0
static
let
bannersHeight
=
95.0
let
cellHeight
:
CGFloat
=
33.0
// 单元格的固定高度
var
selectFlowMsgBlock
:((
String
)
->
())?
...
...
@@ -52,6 +51,14 @@ class YHAIChatBannerView: UIView {
return
imagV
}()
lazy
var
arrowImgV
:
UIImageView
=
{
let
imagV
:
UIImageView
=
UIImageView
()
imagV
.
contentMode
=
.
scaleAspectFill
imagV
.
clipsToBounds
=
true
imagV
.
image
=
UIImage
(
named
:
"ai_chat_heaer_banner_arrow"
)
return
imagV
}()
var
dataArr
:
[
YHAIChatBannerItem
]
=
[]
{
didSet
{
// 设置为0是先停掉自动滑动定时器
...
...
@@ -78,11 +85,15 @@ class YHAIChatBannerView: UIView {
view
.
automaticSlidingInterval
=
bannerSildingInterval
view
.
register
(
YHAIChatBannerItemCell
.
self
,
forCellWithReuseIdentifier
:
YHAIChatBannerItemCell
.
cellReuseIdentifier
)
view
.
itemSize
=
CGSizeMake
(
KScreenWidth
-
40.0
,
YHAIChatBannerView
.
bannersHeight
)
//FSPagerView.automaticSize
view
.
layer
.
cornerRadius
=
4.0
view
.
clipsToBounds
=
true
return
view
}()
lazy
var
indicatorView
:
YHHomeBannerIndicatorView
=
{
let
view
=
YHHomeBannerIndicatorView
()
view
.
normalColor
=
.
init
(
hex
:
0x6D788A
)
view
.
selectedColor
=
.
brandMainColor
return
view
}()
...
...
@@ -116,17 +127,17 @@ class YHAIChatBannerView: UIView {
func
createUI
()
{
self
.
backgroundColor
=
.
white
addSubview
(
bgImgV
)
addSubview
(
rolerImgV
)
addSubview
(
bannerView
)
bannerView
.
addSubview
(
indicatorView
)
bannerView
.
addSubview
(
arrowImgV
)
bgImgV
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
0
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
bottom
.
equalTo
(
0
)
make
.
height
.
equalTo
(
242
)
}
rolerImgV
.
snp
.
makeConstraints
{
make
in
...
...
@@ -137,9 +148,9 @@ class YHAIChatBannerView: UIView {
}
bannerView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
10
)
make
.
left
.
equalTo
(
2
0
)
make
.
right
.
equalTo
(
-
2
0
)
make
.
bottom
.
equalTo
(
bgImgV
)
make
.
left
.
equalTo
(
2
2
)
make
.
right
.
equalTo
(
-
2
2
)
make
.
height
.
equalTo
(
YHAIChatBannerView
.
bannersHeight
)
}
...
...
@@ -150,6 +161,13 @@ class YHAIChatBannerView: UIView {
}
bannerView
.
reloadData
()
arrowImgV
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
20
)
make
.
width
.
equalTo
(
12
)
make
.
height
.
equalTo
(
4
)
make
.
bottom
.
equalTo
(
-
40
)
}
addSubview
(
collectionView
)
collectionView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerIndicatorView.swift
View file @
415fa600
...
...
@@ -31,8 +31,8 @@ class YHHomeBannerIndicatorView: UIView {
}
private
var
arrViews
:
[
UIView
]
=
[]
private
var
normalColor
:
UIColor
=
UIColor
(
hex
:
0xffffff
,
alpha
:
0.3
)
private
var
selectedColor
:
UIColor
=
UIColor
(
hex
:
0xffffff
)
var
normalColor
:
UIColor
=
UIColor
(
hex
:
0xffffff
,
alpha
:
0.3
)
var
selectedColor
:
UIColor
=
UIColor
(
hex
:
0xffffff
)
lazy
var
subHoldView
:
UIView
=
{
let
view
=
UIView
()
...
...
galaxy/galaxy/Res/Assets.xcassets/AI-Chat/ai_chat_heaer_banner_arrow.imageset/Contents.json
0 → 100644
View file @
415fa600
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Vector 6602@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Vector 6602@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/AI-Chat/ai_chat_heaer_banner_arrow.imageset/Vector 6602@2x.png
0 → 100644
View file @
415fa600
344 Bytes
galaxy/galaxy/Res/Assets.xcassets/AI-Chat/ai_chat_heaer_banner_arrow.imageset/Vector 6602@3x.png
0 → 100644
View file @
415fa600
480 Bytes
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