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
9d72dc4a
Commit
9d72dc4a
authored
Dec 05, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// AI
parent
05eda689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
18 deletions
+7
-18
YHAIServiceListViewController.swift
...I/AI-Dialogue(AI对话)/C/YHAIServiceListViewController.swift
+7
-18
No files found.
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/C/YHAIServiceListViewController.swift
View file @
9d72dc4a
...
@@ -138,6 +138,7 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
...
@@ -138,6 +138,7 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
}
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
item
&&
indexPath
.
item
<
serviceArr
.
count
{
if
0
<=
indexPath
.
item
&&
indexPath
.
item
<
serviceArr
.
count
{
let
model
=
serviceArr
[
indexPath
.
item
]
let
model
=
serviceArr
[
indexPath
.
item
]
...
@@ -145,38 +146,26 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
...
@@ -145,38 +146,26 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
if
!
model
.
redirectPath
.
isEmpty
{
if
!
model
.
redirectPath
.
isEmpty
{
let
vc
=
YHH5WebViewVC
()
let
vc
=
YHH5WebViewVC
()
vc
.
url
=
model
.
redirectPath
vc
.
url
=
model
.
redirectPath
let
isEvaluation
=
true
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
if
isEvaluation
{
vc
.
isPushed
=
false
vc
.
isFullScreenFlag
=
true
vc
.
isHideNavigationBar
=
true
vc
.
evaluationResultCallback
=
{
dict
in
block
?(
dict
)
}
UIViewController
.
current
?
.
present
(
vc
,
animated
:
true
)
}
else
{
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
}
}
else
if
model
.
redirectMode
==
2
{
}
else
if
model
.
redirectMode
==
2
{
// customerVoice -> APP客户心声 productList -> APP-首页银河甄选
// customerVoice -> APP客户心声 productList -> APP-首页银河甄选
if
p
ath
==
YHAIJumpPageType
.
customerHeart
.
rawValue
{
if
model
.
redirectP
ath
==
YHAIJumpPageType
.
customerHeart
.
rawValue
{
//客户心声
//客户心声
let
vc
=
YHOtherServiceViewController
()
let
vc
=
YHOtherServiceViewController
()
vc
.
classID
=
5
vc
.
classID
=
5
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
else
if
p
ath
==
YHAIJumpPageType
.
galaxySelect
.
rawValue
{
}
else
if
model
.
redirectP
ath
==
YHAIJumpPageType
.
galaxySelect
.
rawValue
{
// 银河甄选
// 银河甄选
let
vc
=
YHSelectViewController
()
let
vc
=
YHSelectViewController
()
vc
.
hideFlag
=
false
vc
.
hideFlag
=
false
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
}
else
if
mode
==
3
{
// agent
}
else
if
model
.
redirectMode
==
3
{
// agent
self
.
manager
.
getSubRobotChatConversationId
(
robotId
:
model
.
botId
)
{
self
.
manager
.
getSubRobotChatConversationId
(
robotId
:
model
.
botId
)
{
sesseionId
in
sesseionId
in
let
vc
=
YHAIRobotChatViewController
()
let
vc
=
YHAIRobotChatViewController
()
...
...
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