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
36603c67
Commit
36603c67
authored
Apr 15, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资讯详情页
parent
4875f48c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+1
-1
YHSearchInfomationVC.swift
...axy/Classes/Modules/Home(首页)/C/YHSearchInfomationVC.swift
+1
-1
YHServiceTableFootView.swift
...s/IntelligentService(服务中心)/V/YHServiceTableFootView.swift
+1
-1
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+5
-2
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
36603c67
...
@@ -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
{
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHSearchInfomationVC.swift
View file @
36603c67
...
@@ -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
)
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHServiceTableFootView.swift
View file @
36603c67
...
@@ -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
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
36603c67
...
@@ -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
)
...
...
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