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
b16a4e84
Commit
b16a4e84
authored
Apr 19, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修改 版本号
2、处理webView的 title 3、
parent
e924933b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+3
-3
YHHomeWebViewController.swift
.../Classes/Modules/Home(首页)/C/YHHomeWebViewController.swift
+11
-2
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+3
-2
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
b16a4e84
...
...
@@ -2976,7 +2976,7 @@
CODE_SIGN_IDENTITY
=
"Apple Development"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
0
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
""
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
...
...
@@ -3177,7 +3177,7 @@
CODE_SIGN_IDENTITY
=
"Apple Development"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
0
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
""
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
...
...
@@ -3219,7 +3219,7 @@
CODE_SIGN_IDENTITY
=
"Apple Development"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
CURRENT_PROJECT_VERSION
=
0
;
CURRENT_PROJECT_VERSION
=
1
;
DEVELOPMENT_TEAM
=
""
;
"DEVELOPMENT_TEAM[sdk=iphoneos*]"
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeWebViewController.swift
View file @
b16a4e84
...
...
@@ -23,9 +23,15 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
var
bottomView
:
YHHomeWebBottomView
!
var
url
=
""
var
id
:
Int
=
0
var
vcTitle
:
String
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
gk_navBarAlpha
=
1.0
gk_navLineHidden
=
false
gk_navTitle
=
vcTitle
view
.
backgroundColor
=
.
white
viewModel
=
YHHomeWebViewModel
()
//获取导航栏高度
...
...
@@ -139,7 +145,6 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
bottomView
.
isHidden
=
true
webview
.
frame
=
CGRect
(
x
:
0
,
y
:
statusHeight
+
navHeight
!
,
width
:
self
.
view
.
frame
.
width
,
height
:
self
.
view
.
frame
.
height
-
statusHeight
-
navHeight
!
)
}
getData
()
}
...
...
@@ -166,7 +171,11 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
// MARK: - WKNavigationDelegate
func
webView
(
_
webView
:
WKWebView
,
didFinish
navigation
:
WKNavigation
!
)
{
self
.
navigationItem
.
title
=
webview
.
title
if
vcTitle
==
nil
{
gk_navTitle
=
webview
.
title
}
}
// MARK: - WKUIDelegate
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
b16a4e84
...
...
@@ -270,20 +270,21 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
printLog
(
url
)
let
vc
=
YHHomeWebViewController
()
vc
.
vcTitle
=
"积分中心"
vc
.
url
=
url
self
.
navigationController
?
.
pushViewController
(
vc
)
}
case
.
myTestCode
:
//我的测评码
printLog
(
"我的测评码"
)
let
vc
=
YHHomeWebViewController
()
vc
.
vcTitle
=
"我的测评码"
vc
.
url
=
"https://test-cdn-pub.galaxy-immi.com/5000000/2377716732943678766120240418180233.png"
self
.
navigationController
?
.
pushViewController
(
vc
)
case
.
appointGalaxyBay
:
//预约银河湾
printLog
(
"预约银河湾"
)
let
vc
=
YHHomeWebViewController
()
vc
.
vcTitle
=
"预约银河湾"
vc
.
url
=
"https://upload.cdn.galaxy-immi.com/sell/product/images/page-1686138671996.png"
self
.
navigationController
?
.
pushViewController
(
vc
)
default
:
...
...
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