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
13c12ba2
Commit
13c12ba2
authored
Nov 28, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
de7305cd
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
117 additions
and
20 deletions
+117
-20
YHAIServiceListViewController.swift
...I/AI-Dialogue(AI对话)/C/YHAIServiceListViewController.swift
+56
-3
YHAIGreetCollectionReusableView.swift
...AI-Dialogue(AI对话)/V/YHAIGreetCollectionReusableView.swift
+17
-17
Contents.json
...xcassets/AI-Chat/ai_chat_send_gray.imageset/Contents.json
+22
-0
Frame-1.png
...s.xcassets/AI-Chat/ai_chat_send_gray.imageset/Frame-1.png
+0
-0
Frame.png
...ets.xcassets/AI-Chat/ai_chat_send_gray.imageset/Frame.png
+0
-0
Contents.json
...assets/AI-Chat/ai_gangXiaoBao_logo.imageset/Contents.json
+22
-0
港小宝IP(4).png
...cassets/AI-Chat/ai_gangXiaoBao_logo.imageset/港小宝IP(4).png
+0
-0
港小宝IP(5).png
...cassets/AI-Chat/ai_gangXiaoBao_logo.imageset/港小宝IP(5).png
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/C/YHAIServiceListViewController.swift
View file @
13c12ba2
...
...
@@ -31,6 +31,49 @@ class YHAIServiceListViewController: YHBaseViewController {
collectView
.
contentInset
=
.
zero
return
collectView
}()
lazy
var
bottomInputView
:
UIView
=
{
let
v
=
UIView
()
let
whiteView
=
UIView
()
whiteView
.
backgroundColor
=
.
white
whiteView
.
layer
.
cornerRadius
=
12.0
v
.
addSubview
(
whiteView
)
let
label
=
UILabel
()
label
.
font
=
.
PFSC_R
(
ofSize
:
14
)
label
.
text
=
"有什么问题尽管问我"
label
.
textColor
=
.
init
(
hex
:
0xB3C8E9
)
whiteView
.
addSubview
(
label
)
let
sendImgV
=
UIImageView
(
image
:
UIImage
(
named
:
"ai_chat_send_gray"
))
whiteView
.
addSubview
(
sendImgV
)
let
btn
=
UIButton
()
btn
.
addTarget
(
self
,
action
:
#selector(
didInputButtonClicked
)
,
for
:
.
touchUpInside
)
whiteView
.
addSubview
(
btn
)
whiteView
.
snp
.
makeConstraints
{
make
in
make
.
edges
.
equalToSuperview
()
}
label
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
height
.
equalTo
(
20
)
make
.
centerY
.
equalToSuperview
()
}
sendImgV
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
16
)
make
.
width
.
height
.
equalTo
(
24
)
make
.
centerY
.
equalToSuperview
()
}
return
v
}()
@objc
func
didInputButtonClicked
()
{
}
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -38,10 +81,20 @@ class YHAIServiceListViewController: YHBaseViewController {
gk_navigationBar
.
isHidden
=
true
view
.
backgroundColor
=
.
clear
view
.
addSubview
(
collectionView
)
view
.
addSubview
(
bottomInputView
)
collectionView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
bottom
.
equalToSuperview
()
make
.
top
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
bottomInputView
.
snp
.
top
)
.
offset
(
-
8
)
}
bottomInputView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
height
.
equalTo
(
46
)
make
.
bottom
.
equalTo
(
-
10
-
k_Height_safeAreaInsetsBottom
())
}
requestList
()
}
...
...
@@ -69,7 +122,7 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
func
collectionView
(
_
collectionView
:
UICollectionView
,
layout
collectionViewLayout
:
UICollectionViewLayout
,
sizeForItemAt
indexPath
:
IndexPath
)
->
CGSize
{
let
width
=
floor
((
KScreenWidth
-
16.0
*
2.0
-
10.0
)
/
2.0
)
let
height
=
width
*
(
194.0
/
157
.0
)
let
height
=
width
*
(
200.0
/
166
.0
)
return
CGSize
(
width
:
width
,
height
:
height
)
}
...
...
@@ -103,7 +156,7 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
func
collectionView
(
_
collectionView
:
UICollectionView
,
layout
collectionViewLayout
:
UICollectionViewLayout
,
referenceSizeForHeaderInSection
:
Int
)
->
CGSize
{
return
CGSize
(
width
:
KScreenWidth
,
height
:
250
)
return
CGSize
(
width
:
KScreenWidth
,
height
:
177
)
}
}
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/V/YHAIGreetCollectionReusableView.swift
View file @
13c12ba2
...
...
@@ -12,18 +12,19 @@ class YHAIGreetCollectionReusableView: UICollectionReusableView {
static
let
reuseIdentifier
:
String
=
"YHAIGreetCollectionReusableView"
let
horizonalGap
=
16.0
lazy
var
iconImgView
:
UIImageView
=
{
let
v
=
UIImageView
(
image
:
UIImage
(
named
:
""
))
v
.
backgroundColor
=
.
red
let
v
=
UIImageView
(
image
:
UIImage
(
named
:
"ai_gangXiaoBao_logo"
))
return
v
}()
lazy
var
titleLabel
:
UILabel
=
{
let
lable
=
UILabel
()
lable
.
textColor
=
UIColor
.
brandMain
Color
lable
.
textColor
=
UIColor
.
mainText
Color
lable
.
textAlignment
=
.
left
lable
.
font
=
UIFont
.
PFSC_B
(
ofSize
:
23
)
lable
.
text
=
"
早上好,我是港小宝
"
lable
.
font
=
UIFont
(
name
:
"AlimamaShuHeiTi-Bold"
,
size
:
30
)
lable
.
text
=
"
Hi, 早上好!
"
return
lable
}()
...
...
@@ -33,7 +34,7 @@ class YHAIGreetCollectionReusableView: UICollectionReusableView {
lable
.
textAlignment
=
.
left
lable
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
14
)
lable
.
numberOfLines
=
0
lable
.
text
=
"
可以为您提供申请进度查询和赴港攻略,有什么问题尽管问我~您可以试试了解以下内容~
"
lable
.
text
=
"
我是银河AI助手港小宝,可以为您提供申请进度查询和赴港攻略,有什么问题尽管问我哟~
"
return
lable
}()
...
...
@@ -52,23 +53,22 @@ class YHAIGreetCollectionReusableView: UICollectionReusableView {
self
.
addSubview
(
subtitleLabel
)
iconImgView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
29
)
make
.
top
.
equalTo
(
16
)
make
.
width
.
height
.
equalTo
(
50
)
make
.
right
.
equalTo
(
-
20
+
horizonalGap
)
make
.
top
.
equalTo
(
4
)
make
.
width
.
equalTo
(
120
)
make
.
height
.
equalTo
(
94
)
}
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
24
)
make
.
right
.
equalTo
(
-
24
)
make
.
top
.
equalTo
(
iconImgView
.
snp
.
bottom
)
.
offset
(
16
)
make
.
height
.
equalTo
(
32
)
make
.
left
.
equalTo
(
24
-
horizonalGap
)
make
.
bottom
.
equalTo
(
iconImgView
.
snp
.
bottom
)
.
offset
(
-
15
)
make
.
height
.
equalTo
(
42
)
}
subtitleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
24
)
make
.
right
.
equalTo
(
-
24
)
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
16
)
make
.
bottom
.
equalTo
(
-
30
)
make
.
left
.
equalTo
(
24
-
horizonalGap
)
make
.
right
.
equalTo
(
-
24
+
horizonalGap
)
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
8
)
}
}
...
...
galaxy/galaxy/Res/Assets.xcassets/AI-Chat/ai_chat_send_gray.imageset/Contents.json
0 → 100644
View file @
13c12ba2
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"Frame.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"Frame-1.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/AI-Chat/ai_chat_send_gray.imageset/Frame-1.png
0 → 100644
View file @
13c12ba2
1.52 KB
galaxy/galaxy/Res/Assets.xcassets/AI-Chat/ai_chat_send_gray.imageset/Frame.png
0 → 100644
View file @
13c12ba2
1.17 KB
galaxy/galaxy/Res/Assets.xcassets/AI-Chat/ai_gangXiaoBao_logo.imageset/Contents.json
0 → 100644
View file @
13c12ba2
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"港小宝IP(5).png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"港小宝IP(4).png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/AI-Chat/ai_gangXiaoBao_logo.imageset/港小宝IP(4).png
0 → 100644
View file @
13c12ba2
77.8 KB
galaxy/galaxy/Res/Assets.xcassets/AI-Chat/ai_gangXiaoBao_logo.imageset/港小宝IP(5).png
0 → 100644
View file @
13c12ba2
39.2 KB
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