Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
49664707
Commit
49664707
authored
Apr 17, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
简化代码,navBar方法代理默认在baseVc 里面。可以重写
parent
b73ec6e0
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
37 deletions
+25
-37
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+8
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/BaseView/BaseViewController.swift
GeliBusinessPlatform/BaseView/BaseViewController.swift
+5
-2
GeliBusinessPlatform/ViewController/修改密码/ChangePassViewController.swift
...atform/ViewController/修改密码/ChangePassViewController.swift
+2
-5
GeliBusinessPlatform/ViewController/换绑支付账号(绑定,换绑)/BindViewController.swift
...orm/ViewController/换绑支付账号(绑定,换绑)/BindViewController.swift
+2
-5
GeliBusinessPlatform/ViewController/支付账号(设置,修改)/PayViewController.swift
...atform/ViewController/支付账号(设置,修改)/PayViewController.swift
+1
-5
GeliBusinessPlatform/ViewController/消息中心/MsgCenterViewController.swift
...latform/ViewController/消息中心/MsgCenterViewController.swift
+1
-10
GeliBusinessPlatform/ViewController/蓝牙连接/BluetoothConnectViewController.swift
.../ViewController/蓝牙连接/BluetoothConnectViewController.swift
+4
-5
GeliBusinessPlatform/ViewController/账号信息/AccountViewController.swift
...sPlatform/ViewController/账号信息/AccountViewController.swift
+2
-5
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
49664707
...
@@ -370,6 +370,7 @@
...
@@ -370,6 +370,7 @@
E09B03AD2445B0BA00211A51
/* ViewController */
=
{
E09B03AD2445B0BA00211A51
/* ViewController */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
F95D9CA124493AB90080D6E3
/* 商家信息 */
,
E0D197CC244855F5002B080C
/* 蓝牙连接 */
,
E0D197CC244855F5002B080C
/* 蓝牙连接 */
,
E0D197C3244845E3002B080C
/* 个人中心 */
,
E0D197C3244845E3002B080C
/* 个人中心 */
,
E0D4166124483045008DCAB4
/* 修改密码 */
,
E0D4166124483045008DCAB4
/* 修改密码 */
,
...
@@ -491,6 +492,13 @@
...
@@ -491,6 +492,13 @@
path
=
AlertView
;
path
=
AlertView
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
};
};
F95D9CA124493AB90080D6E3
/* 商家信息 */
=
{
isa
=
PBXGroup
;
children
=
(
);
path
=
"商家信息"
;
sourceTree
=
"<group>"
;
};
/* End PBXGroup section */
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
/* Begin PBXNativeTarget section */
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
49664707
No preview for this file type
GeliBusinessPlatform/BaseView/BaseViewController.swift
View file @
49664707
...
@@ -12,7 +12,7 @@ import ObjectMapper
...
@@ -12,7 +12,7 @@ import ObjectMapper
import
Alamofire
import
Alamofire
import
IQKeyboardManagerSwift
import
IQKeyboardManagerSwift
class
BaseViewController
:
UIViewController
{
class
BaseViewController
:
UIViewController
,
NavBarViewDelegate
{
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
self
.
navigationController
?
.
navigationBar
.
isHidden
=
true
self
.
navigationController
?
.
navigationBar
.
isHidden
=
true
...
@@ -36,5 +36,8 @@ class BaseViewController: UIViewController {
...
@@ -36,5 +36,8 @@ class BaseViewController: UIViewController {
// Dispose of any resources that can be recreated.
// Dispose of any resources that can be recreated.
}
}
//MARK: -默认的代理方法delegate方法
func
backAction
()
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
}
GeliBusinessPlatform/ViewController/修改密码/ChangePassViewController.swift
View file @
49664707
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
import
UIKit
import
UIKit
import
LGButton
import
LGButton
class
ChangePassViewController
:
BaseViewController
,
NavBarViewDelegate
{
class
ChangePassViewController
:
BaseViewController
{
@IBOutlet
weak
var
newPBtn
:
UIButton
!
@IBOutlet
weak
var
newPBtn
:
UIButton
!
@IBOutlet
weak
var
oldPBtn
:
UIButton
!
@IBOutlet
weak
var
oldPBtn
:
UIButton
!
...
@@ -59,10 +59,7 @@ class ChangePassViewController: BaseViewController,NavBarViewDelegate {
...
@@ -59,10 +59,7 @@ class ChangePassViewController: BaseViewController,NavBarViewDelegate {
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
}
}
//MARK: -delegate方法
func
backAction
()
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
}
GeliBusinessPlatform/ViewController/换绑支付账号(绑定,换绑)/BindViewController.swift
View file @
49664707
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
import
UIKit
import
UIKit
import
LGButton
import
LGButton
class
BindViewController
:
BaseViewController
,
NavBarViewDelegate
{
class
BindViewController
:
BaseViewController
{
@IBOutlet
weak
var
submitBtn
:
LGButton
!
@IBOutlet
weak
var
submitBtn
:
LGButton
!
@IBOutlet
weak
var
pinkView
:
UIView
!
@IBOutlet
weak
var
pinkView
:
UIView
!
...
@@ -64,9 +64,6 @@ class BindViewController: BaseViewController,NavBarViewDelegate {
...
@@ -64,9 +64,6 @@ class BindViewController: BaseViewController,NavBarViewDelegate {
@IBAction
func
submitBindingAction
(
_
sender
:
Any
)
{
@IBAction
func
submitBindingAction
(
_
sender
:
Any
)
{
print
(
"确认绑定账号"
)
print
(
"确认绑定账号"
)
}
}
//MARK: -delegate方法
func
backAction
()
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
}
GeliBusinessPlatform/ViewController/支付账号(设置,修改)/PayViewController.swift
View file @
49664707
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
import
UIKit
import
UIKit
class
PayViewController
:
BaseViewController
,
NavBarViewDelegate
{
class
PayViewController
:
BaseViewController
{
@IBOutlet
weak
var
pinkView
:
UIView
!
@IBOutlet
weak
var
pinkView
:
UIView
!
...
@@ -51,9 +51,5 @@ class PayViewController: BaseViewController,NavBarViewDelegate {
...
@@ -51,9 +51,5 @@ class PayViewController: BaseViewController,NavBarViewDelegate {
print
(
"进入格利支付"
)
print
(
"进入格利支付"
)
}
}
//MARK: -delegate方法
func
backAction
()
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
}
GeliBusinessPlatform/ViewController/消息中心/MsgCenterViewController.swift
View file @
49664707
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
import
UIKit
import
UIKit
import
ViewAnimator
import
ViewAnimator
class
MsgCenterViewController
:
BaseViewController
,
NavBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
{
class
MsgCenterViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
//MARK: -animateView
//MARK: -animateView
...
@@ -40,16 +40,7 @@ class MsgCenterViewController: BaseViewController,NavBarViewDelegate,UITableView
...
@@ -40,16 +40,7 @@ class MsgCenterViewController: BaseViewController,NavBarViewDelegate,UITableView
}
}
//MARK: -delegate方法
func
backAction
()
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
//tabelviewcell进场动画
// UIView.animate(views: msgTbv!.visibleCells, animations:[animations], reversed: false,
// initialAlpha: 0, finalAlpha: 1.0, completion: {
// self.msgTbv!.reloadData()
// })
}
//MARK: -Cell delegate方法
//MARK: -Cell delegate方法
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
120
return
120
...
...
GeliBusinessPlatform/ViewController/蓝牙连接/BluetoothConnectViewController.swift
View file @
49664707
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
import
UIKit
import
UIKit
class
BluetoothConnectViewController
:
BaseViewController
,
NavBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
{
class
BluetoothConnectViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
...
@@ -106,9 +106,8 @@ class BluetoothConnectViewController: BaseViewController,NavBarViewDelegate,UITa
...
@@ -106,9 +106,8 @@ class BluetoothConnectViewController: BaseViewController,NavBarViewDelegate,UITa
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
49
return
49
}
}
//MARK: -delegate方法
func
backAction
()
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
override
func
backAction
()
{
print
(
"重写back"
)
}
}
}
GeliBusinessPlatform/ViewController/账号信息/AccountViewController.swift
View file @
49664707
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
import
UIKit
import
UIKit
class
AccountViewController
:
BaseViewController
,
NavBarViewDelegate
{
class
AccountViewController
:
BaseViewController
{
@IBOutlet
weak
var
phoneLbl
:
UILabel
!
@IBOutlet
weak
var
phoneLbl
:
UILabel
!
@IBOutlet
weak
var
accountLbl
:
UILabel
!
@IBOutlet
weak
var
accountLbl
:
UILabel
!
...
@@ -44,9 +44,6 @@ class AccountViewController: BaseViewController,NavBarViewDelegate{
...
@@ -44,9 +44,6 @@ class AccountViewController: BaseViewController,NavBarViewDelegate{
print
(
"退出登录"
)
print
(
"退出登录"
)
}
}
//MARK: -delegate方法
func
backAction
()
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
}
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