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
38c48762
Commit
38c48762
authored
Jun 06, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页 50
parent
1bf5bdfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
YHHomePageViewModel.swift
...axy/Classes/Modules/Home(首页)/VM/YHHomePageViewModel.swift
+2
-2
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/VM/YHHomePageViewModel.swift
View file @
38c48762
...
@@ -17,7 +17,7 @@ class YHHomePageViewModel : YHBaseViewModel {
...
@@ -17,7 +17,7 @@ class YHHomePageViewModel : YHBaseViewModel {
var
hkList
:
[
YHHKEventModel
]?
var
hkList
:
[
YHHKEventModel
]?
//首页相关参数
//首页相关参数
private
var
curPageIndex
:
Int
=
1
private
var
curPageIndex
:
Int
=
1
private
var
page_Size
:
Int
=
2
0
private
var
page_Size
:
Int
=
5
0
var
totalCount
:
Int
=
0
var
totalCount
:
Int
=
0
var
hasMoreForHomeNews
:
Bool
=
true
var
hasMoreForHomeNews
:
Bool
=
true
// 搜索
// 搜索
...
@@ -59,7 +59,7 @@ extension YHHomePageViewModel {
...
@@ -59,7 +59,7 @@ extension YHHomePageViewModel {
params
=
[
"page"
:
curPageIndex
+
1
,
params
=
[
"page"
:
curPageIndex
+
1
,
"page_size"
:
page_Size
]
"page_size"
:
page_Size
]
}
}
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Common
.
consult
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Common
.
consult
Api
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
//1. json字符串 转 对象
//1. json字符串 转 对象
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
38c48762
...
@@ -13,7 +13,7 @@ class YHAllApiName {
...
@@ -13,7 +13,7 @@ class YHAllApiName {
//首页配置接口
//首页配置接口
static
let
homeConfigApi
=
"super-app/config/app"
static
let
homeConfigApi
=
"super-app/config/app"
//获取首页展示的资讯
//获取首页展示的资讯
static
let
consult
=
"infoflow/home/consult"
static
let
consult
Api
=
"infoflow/home/consult"
//获取首页展示的banner
//获取首页展示的banner
static
let
banner
=
"infoflow/banner/list"
static
let
banner
=
"infoflow/banner/list"
//获取栏目
//获取栏目
...
...
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