Commit 9d72dc4a authored by Steven杜宇's avatar Steven杜宇

// AI

parent 05eda689
...@@ -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
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) 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 path == YHAIJumpPageType.customerHeart.rawValue { if model.redirectPath == 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 path == YHAIJumpPageType.galaxySelect.rawValue { } else if model.redirectPath == 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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment