Commit 38c48762 authored by David黄金龙's avatar David黄金龙

首页 50

parent 1bf5bdfc
......@@ -17,7 +17,7 @@ class YHHomePageViewModel : YHBaseViewModel {
var hkList: [YHHKEventModel]?
//首页相关参数
private var curPageIndex : Int = 1
private var page_Size : Int = 20
private var page_Size : Int = 50
var totalCount : Int = 0
var hasMoreForHomeNews : Bool = true
// 搜索
......@@ -59,7 +59,7 @@ extension YHHomePageViewModel {
params = ["page": curPageIndex + 1,
"page_size": page_Size]
}
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Common.consult
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Common.consultApi
let _ = YHNetRequest.getRequest(url: strUrl,params: params) { [weak self] json, code in
guard let self = self else { return }
//1. json字符串 转 对象
......
......@@ -13,7 +13,7 @@ class YHAllApiName {
//首页配置接口
static let homeConfigApi = "super-app/config/app"
//获取首页展示的资讯
static let consult = "infoflow/home/consult"
static let consultApi = "infoflow/home/consult"
//获取首页展示的banner
static let banner = "infoflow/banner/list"
//获取栏目
......
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