Commit 36603c67 authored by David黄金龙's avatar David黄金龙

资讯详情页

parent 4875f48c
...@@ -156,7 +156,7 @@ extension YHHomePageViewController: UICollectionViewDelegate, UICollectionViewDa ...@@ -156,7 +156,7 @@ extension YHHomePageViewController: UICollectionViewDelegate, UICollectionViewDa
guard let model = self.viewModel.arrHomeNewsData?[indexPath.row] else { return } guard let model = self.viewModel.arrHomeNewsData?[indexPath.row] else { return }
if model.type == 2 { if model.type == 2 {
let vc = YHHomeWebViewController() let vc = YHHomeWebViewController()
vc.url = YHConfigManager.shared.h5Url + "?id=\(model.id)" vc.url = YHConfigManager.shared.h5Url + "/articleDetail.html" + "?id=\(model.id)"
vc.id = model.id vc.id = model.id
vc.block = { item in vc.block = { item in
if let arr = self.viewModel.arrHomeNewsData { if let arr = self.viewModel.arrHomeNewsData {
......
...@@ -310,7 +310,7 @@ extension YHSearchInfomationVC: UITableViewDelegate, UITableViewDataSource { ...@@ -310,7 +310,7 @@ extension YHSearchInfomationVC: UITableViewDelegate, UITableViewDataSource {
if 0 <= indexPath.section && indexPath.section < items.count { if 0 <= indexPath.section && indexPath.section < items.count {
let model = items[indexPath.section] let model = items[indexPath.section]
let vc = YHHomeWebViewController() let vc = YHHomeWebViewController()
vc.url = YHConfigManager.shared.h5Url + "?id=\(model.id)" vc.url = YHConfigManager.shared.h5Url + "/articleDetail.html" + "?id=\(model.id)"
vc.id = model.id vc.id = model.id
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
} }
......
...@@ -82,7 +82,7 @@ extension YHServiceTableFootView: UICollectionViewDelegate, UICollectionViewData ...@@ -82,7 +82,7 @@ extension YHServiceTableFootView: UICollectionViewDelegate, UICollectionViewData
guard let model = items[indexPath.row] else { return } guard let model = items[indexPath.row] else { return }
if model.type == 2 { if model.type == 2 {
let vc = YHHomeWebViewController() let vc = YHHomeWebViewController()
vc.url = YHConfigManager.shared.h5Url + "?id=\(model.id)" vc.url = YHConfigManager.shared.h5Url + "/articleDetail.html" + "?id=\(model.id)"
vc.id = model.id vc.id = model.id
vc.block = {[weak self] model in vc.block = {[weak self] model in
guard let self = self else { return } guard let self = self else { return }
......
...@@ -226,11 +226,14 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource { ...@@ -226,11 +226,14 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
var addtionString = randomAlphanumericString(6)//随机6个字母或者数字 var addtionString = randomAlphanumericString(6)//随机6个字母或者数字
let indexToInsert = token.index(token.startIndex, offsetBy: 6) //插入位置,这里以第六个字符后面为例 let indexToInsert = token.index(token.startIndex, offsetBy: 6) //插入位置,这里以第六个字符后面为例
// token.insert(addtionString, at: indexToInsert) //for test hjl // token.insert(addtionString, at: indexToInsert) //for test hjl
// token.insert(randomAlphanumericString.c, at: <#T##String.Index#>)
// url = url + "?param=" + token
YHHUD.flash(message: "还需要H5同学给URL")
} }
case .myTestCode://我的测评码 case .myTestCode://我的测评码
printLog("我的测评码") printLog("我的测评码")
YHHUD.flash(message: "还需要产品给图片链接")
let vc = YHHomeWebViewController() let vc = YHHomeWebViewController()
vc.url = "https://upload.cdn.galaxy-immi.com/sell/product/images/page-1686138671996.png" vc.url = "https://upload.cdn.galaxy-immi.com/sell/product/images/page-1686138671996.png"
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
......
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