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
5a4ffdcc
Commit
5a4ffdcc
authored
Apr 11, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、配置
2、首页跳转资讯详情
parent
57c77d97
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
YHConfigManager.swift
...y/galaxy/Classes/Modules/Home(首页)/C/YHConfigManager.swift
+1
-3
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+4
-3
YHConfigModel.swift
galaxy/galaxy/Classes/Modules/Home(首页)/M/YHConfigModel.swift
+3
-2
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHConfigManager.swift
View file @
5a4ffdcc
...
@@ -20,13 +20,11 @@ class YHConfigManager: NSObject {
...
@@ -20,13 +20,11 @@ class YHConfigManager: NSObject {
private
override
init
()
{
private
override
init
()
{
super
.
init
()
super
.
init
()
// loadConfigData()
}
}
var
h5Url
:
String
{
var
h5Url
:
String
{
return
reqVM
.
configModel
?
.
h5_url
??
""
return
reqVM
.
configModel
?
.
article_
h5_url
??
""
}
}
}
}
extension
YHConfigManager
{
extension
YHConfigManager
{
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
5a4ffdcc
...
@@ -119,10 +119,11 @@ extension YHHomePageViewController: UICollectionViewDelegate, UICollectionViewDa
...
@@ -119,10 +119,11 @@ extension YHHomePageViewController: UICollectionViewDelegate, UICollectionViewDa
}
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
let
model
=
self
.
viewModel
.
arrHomeNewsData
[
indexPath
.
row
]
guard
let
model
=
self
.
viewModel
.
arrHomeNewsData
[
indexPath
.
row
]
else
{
return
}
let
vc
=
YHHomeWebViewController
()
let
vc
=
YHHomeWebViewController
()
vc
.
url
=
"https://test-hkdiy-h5.galaxy-immi.com/articleDetail.html?id=
\(
model
?
.
id
??
0
)
"
vc
.
url
=
YHConfigManager
.
shared
.
h5Url
+
"?id=
\(
model
.
id
)
"
vc
.
id
=
model
?
.
id
??
0
vc
.
id
=
model
.
id
self
.
navigationController
?
.
pushViewController
(
vc
)
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/M/YHConfigModel.swift
View file @
5a4ffdcc
...
@@ -10,10 +10,11 @@ import UIKit
...
@@ -10,10 +10,11 @@ import UIKit
import
SmartCodable
import
SmartCodable
class
YHConfigModel
:
SmartCodable
{
class
YHConfigModel
:
SmartCodable
{
var
oss_server
:
String
=
""
var
start_up_url
:
String
=
""
var
article_h5_url
:
String
=
""
var
min_version_num
:
Int
=
0
var
min_version_num
:
Int
=
0
var
oss_server
:
Int
=
0
var
countdown
:
Int
=
0
var
countdown
:
Int
=
0
var
h5_url
:
String
=
""
required
init
()
{
required
init
()
{
}
}
...
...
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