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

// AI

parent 05eda689
......@@ -138,6 +138,7 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
}
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
if 0 <= indexPath.item && indexPath.item < serviceArr.count {
let model = serviceArr[indexPath.item]
......@@ -145,38 +146,26 @@ extension YHAIServiceListViewController: UICollectionViewDelegate, UICollectionV
if !model.redirectPath.isEmpty {
let vc = YHH5WebViewVC()
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 {
// customerVoice -> APP客户心声 productList -> APP-首页银河甄选
if path == YHAIJumpPageType.customerHeart.rawValue {
if model.redirectPath == YHAIJumpPageType.customerHeart.rawValue {
//客户心声
let vc = YHOtherServiceViewController()
vc.classID = 5
UIViewController.current?.navigationController?.pushViewController(vc)
} else if path == YHAIJumpPageType.galaxySelect.rawValue {
} else if model.redirectPath == YHAIJumpPageType.galaxySelect.rawValue {
// 银河甄选
let vc = YHSelectViewController()
vc.hideFlag = false
UIViewController.current?.navigationController?.pushViewController(vc, animated: true)
}
} else if mode == 3 { // agent
} else if model.redirectMode == 3 { // agent
self.manager.getSubRobotChatConversationId(robotId: model.botId) {
sesseionId in
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