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
1f95bdc9
Commit
1f95bdc9
authored
May 08, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swipeCellKit
parent
60af6240
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
63 additions
and
129 deletions
+63
-129
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+17
-10
GeliBusinessPlatform.xcworkspace/xcshareddata/swiftpm/Package.resolved
...latform.xcworkspace/xcshareddata/swiftpm/Package.resolved
+9
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/地址管理/DZGLTableView.swift
GeliBusinessPlatform/ViewController/地址管理/DZGLTableView.swift
+0
-59
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
...nessPlatform/ViewController/地址管理/DZGLViewController.swift
+33
-24
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.xib
...sinessPlatform/ViewController/地址管理/DZGLViewController.xib
+1
-1
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.swift
...usinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.swift
+2
-1
GeliBusinessPlatform/ViewController/换绑支付账号(绑定,换绑)/BindViewController.xib
...tform/ViewController/换绑支付账号(绑定,换绑)/BindViewController.xib
+1
-34
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
1f95bdc9
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
/* Begin PBXBuildFile section */
/* Begin PBXBuildFile section */
9C3AD0BD567C3C122CCE3169
/* Pods_GeliBusinessPlatform.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
5DA2D518C6159EA47DCD8E0C
/* Pods_GeliBusinessPlatform.framework */
;
};
9C3AD0BD567C3C122CCE3169
/* Pods_GeliBusinessPlatform.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
5DA2D518C6159EA47DCD8E0C
/* Pods_GeliBusinessPlatform.framework */
;
};
E0040A912465569D00223900
/* SwipeCellKit in Frameworks */
=
{
isa
=
PBXBuildFile
;
productRef
=
E0040A902465569D00223900
/* SwipeCellKit */
;
};
E00B0B1B24629E99006DC846
/* SJMapCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00B0B1924629E99006DC846
/* SJMapCell.swift */
;
};
E00B0B1B24629E99006DC846
/* SJMapCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00B0B1924629E99006DC846
/* SJMapCell.swift */
;
};
E00B0B1C24629E99006DC846
/* SJMapCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00B0B1A24629E99006DC846
/* SJMapCell.xib */
;
};
E00B0B1C24629E99006DC846
/* SJMapCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00B0B1A24629E99006DC846
/* SJMapCell.xib */
;
};
E00D85DF244561FD00F5F816
/* AppDelegate.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00D85DE244561FD00F5F816
/* AppDelegate.swift */
;
};
E00D85DF244561FD00F5F816
/* AppDelegate.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E00D85DE244561FD00F5F816
/* AppDelegate.swift */
;
};
...
@@ -128,7 +129,6 @@
...
@@ -128,7 +129,6 @@
E08A7ADD246505F000F934F2
/* KeHuListViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08A7ADB246505F000F934F2
/* KeHuListViewController.xib */
;
};
E08A7ADD246505F000F934F2
/* KeHuListViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08A7ADB246505F000F934F2
/* KeHuListViewController.xib */
;
};
E08A7AE024652E2C00F934F2
/* BingDingKeHuViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08A7ADE24652E2C00F934F2
/* BingDingKeHuViewController.swift */
;
};
E08A7AE024652E2C00F934F2
/* BingDingKeHuViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08A7ADE24652E2C00F934F2
/* BingDingKeHuViewController.swift */
;
};
E08A7AE124652E2C00F934F2
/* BingDingKeHuViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08A7ADF24652E2C00F934F2
/* BingDingKeHuViewController.xib */
;
};
E08A7AE124652E2C00F934F2
/* BingDingKeHuViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08A7ADF24652E2C00F934F2
/* BingDingKeHuViewController.xib */
;
};
E08A7AE324653B1F00F934F2
/* DZGLTableView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08A7AE224653B1F00F934F2
/* DZGLTableView.swift */
;
};
E08B0674244A98B2001D2E01
/* WareHouseSpCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08B0672244A98B2001D2E01
/* WareHouseSpCell.swift */
;
};
E08B0674244A98B2001D2E01
/* WareHouseSpCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08B0672244A98B2001D2E01
/* WareHouseSpCell.swift */
;
};
E08B0675244A98B2001D2E01
/* WareHouseSpCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08B0673244A98B2001D2E01
/* WareHouseSpCell.xib */
;
};
E08B0675244A98B2001D2E01
/* WareHouseSpCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E08B0673244A98B2001D2E01
/* WareHouseSpCell.xib */
;
};
E09B03A12445AF7100211A51
/* Define.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E09B03A02445AF7100211A51
/* Define.swift */
;
};
E09B03A12445AF7100211A51
/* Define.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E09B03A02445AF7100211A51
/* Define.swift */
;
};
...
@@ -514,7 +514,6 @@
...
@@ -514,7 +514,6 @@
E08A7ADB246505F000F934F2
/* KeHuListViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
KeHuListViewController.xib
;
sourceTree
=
"<group>"
;
};
E08A7ADB246505F000F934F2
/* KeHuListViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
KeHuListViewController.xib
;
sourceTree
=
"<group>"
;
};
E08A7ADE24652E2C00F934F2
/* BingDingKeHuViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
BingDingKeHuViewController.swift
;
sourceTree
=
"<group>"
;
};
E08A7ADE24652E2C00F934F2
/* BingDingKeHuViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
BingDingKeHuViewController.swift
;
sourceTree
=
"<group>"
;
};
E08A7ADF24652E2C00F934F2
/* BingDingKeHuViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
BingDingKeHuViewController.xib
;
sourceTree
=
"<group>"
;
};
E08A7ADF24652E2C00F934F2
/* BingDingKeHuViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
BingDingKeHuViewController.xib
;
sourceTree
=
"<group>"
;
};
E08A7AE224653B1F00F934F2
/* DZGLTableView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DZGLTableView.swift
;
sourceTree
=
"<group>"
;
};
E08B0672244A98B2001D2E01
/* WareHouseSpCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
WareHouseSpCell.swift
;
sourceTree
=
"<group>"
;
};
E08B0672244A98B2001D2E01
/* WareHouseSpCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
WareHouseSpCell.swift
;
sourceTree
=
"<group>"
;
};
E08B0673244A98B2001D2E01
/* WareHouseSpCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
WareHouseSpCell.xib
;
sourceTree
=
"<group>"
;
};
E08B0673244A98B2001D2E01
/* WareHouseSpCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
WareHouseSpCell.xib
;
sourceTree
=
"<group>"
;
};
E09B03A02445AF7100211A51
/* Define.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
Define.swift
;
sourceTree
=
"<group>"
;
};
E09B03A02445AF7100211A51
/* Define.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
Define.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -795,6 +794,7 @@
...
@@ -795,6 +794,7 @@
E0707DB9246244EB00E039A8
/* AMapLocationKit.framework in Frameworks */
,
E0707DB9246244EB00E039A8
/* AMapLocationKit.framework in Frameworks */
,
E0707DB8246244EB00E039A8
/* AMapFoundationKit.framework in Frameworks */
,
E0707DB8246244EB00E039A8
/* AMapFoundationKit.framework in Frameworks */
,
E0707DD224624A3700E039A8
/* MAMapKit.framework in Frameworks */
,
E0707DD224624A3700E039A8
/* MAMapKit.framework in Frameworks */
,
E0040A912465569D00223900
/* SwipeCellKit in Frameworks */
,
F95A9ED224551D0400867849
/* Parchment in Frameworks */
,
F95A9ED224551D0400867849
/* Parchment in Frameworks */
,
);
);
runOnlyForDeploymentPostprocessing
=
0
;
runOnlyForDeploymentPostprocessing
=
0
;
...
@@ -994,7 +994,6 @@
...
@@ -994,7 +994,6 @@
E02FD9F924557E8600E10E27
/* XinZengDiZhiViewController.xib */
,
E02FD9F924557E8600E10E27
/* XinZengDiZhiViewController.xib */
,
E0A409D224640B8300CFF109
/* DZGLViewController.swift */
,
E0A409D224640B8300CFF109
/* DZGLViewController.swift */
,
E0A409D324640B8300CFF109
/* DZGLViewController.xib */
,
E0A409D324640B8300CFF109
/* DZGLViewController.xib */
,
E08A7AE224653B1F00F934F2
/* DZGLTableView.swift */
,
);
);
path
=
"地址管理"
;
path
=
"地址管理"
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -1897,6 +1896,7 @@
...
@@ -1897,6 +1896,7 @@
name
=
GeliBusinessPlatform
;
name
=
GeliBusinessPlatform
;
packageProductDependencies
=
(
packageProductDependencies
=
(
F95A9ED124551D0400867849
/* Parchment */
,
F95A9ED124551D0400867849
/* Parchment */
,
E0040A902465569D00223900
/* SwipeCellKit */
,
);
);
productName
=
GeliBusinessPlatform
;
productName
=
GeliBusinessPlatform
;
productReference
=
E00D85DB244561FD00F5F816
/* GeliBusinessPlatform.app */
;
productReference
=
E00D85DB244561FD00F5F816
/* GeliBusinessPlatform.app */
;
...
@@ -1973,6 +1973,7 @@
...
@@ -1973,6 +1973,7 @@
mainGroup
=
E00D85D2244561FD00F5F816
;
mainGroup
=
E00D85D2244561FD00F5F816
;
packageReferences
=
(
packageReferences
=
(
F95A9ED024551D0400867849
/* XCRemoteSwiftPackageReference "Parchment" */
,
F95A9ED024551D0400867849
/* XCRemoteSwiftPackageReference "Parchment" */
,
E0040A8F2465569D00223900
/* XCRemoteSwiftPackageReference "SwipeCellKit" */
,
);
);
productRefGroup
=
E00D85DC244561FD00F5F816
/* Products */
;
productRefGroup
=
E00D85DC244561FD00F5F816
/* Products */
;
projectDirPath
=
""
;
projectDirPath
=
""
;
...
@@ -2280,11 +2281,7 @@
...
@@ -2280,11 +2281,7 @@
E07B1E5E24591AA50055BA3C
/* KeHuXQViewController.swift in Sources */
,
E07B1E5E24591AA50055BA3C
/* KeHuXQViewController.swift in Sources */
,
F9DDBE962457D3EC00A32CB2
/* WebViewController.swift in Sources */
,
F9DDBE962457D3EC00A32CB2
/* WebViewController.swift in Sources */
,
E06524F924581A7900CA22E2
/* ChuKuCell.swift in Sources */
,
E06524F924581A7900CA22E2
/* ChuKuCell.swift in Sources */
,
F9956B2524640D34001A617D
/* GoodsClassModel.swift in Sources */
,
F9956B2524640D34001A617D
/* GoodsClassModel.swift in Sources */
,
E08A7AE324653B1F00F934F2
/* DZGLTableView.swift in Sources */
,
F961D26B24500FF6007FBE70
/* HeaderSelectView.swift in Sources */
,
F961D26B24500FF6007FBE70
/* HeaderSelectView.swift in Sources */
,
E09F4C9D2452BEBB00BE033D
/* JiPaiFangShiViewController.swift in Sources */
,
E09F4C9D2452BEBB00BE033D
/* JiPaiFangShiViewController.swift in Sources */
,
E0D4166424483058008DCAB4
/* ChangePassViewController.swift in Sources */
,
E0D4166424483058008DCAB4
/* ChangePassViewController.swift in Sources */
,
...
@@ -2325,11 +2322,8 @@
...
@@ -2325,11 +2322,8 @@
E042F74024528CD500CDFA12
/* TitleAndOnlyBtnCell.swift in Sources */
,
E042F74024528CD500CDFA12
/* TitleAndOnlyBtnCell.swift in Sources */
,
F969BF07244EC38000C79953
/* GoodsCollectionViewCell.swift in Sources */
,
F969BF07244EC38000C79953
/* GoodsCollectionViewCell.swift in Sources */
,
E02FD9F12455705F00E10E27
/* ChuRuKuJiLuCell.swift in Sources */
,
E02FD9F12455705F00E10E27
/* ChuRuKuJiLuCell.swift in Sources */
,
F9531F462465108800724BEE
/* JXPhotoBrowser.swift in Sources */
,
F9531F462465108800724BEE
/* JXPhotoBrowser.swift in Sources */
,
E08A7ADC246505F000F934F2
/* KeHuListViewController.swift in Sources */
,
E08A7ADC246505F000F934F2
/* KeHuListViewController.swift in Sources */
,
E0A2E82724555B4400D6DB34
/* KuCunShangPinCell.swift in Sources */
,
E0A2E82724555B4400D6DB34
/* KuCunShangPinCell.swift in Sources */
,
F950FDA72451494500C40530
/* GeliPayInfoModel.swift in Sources */
,
F950FDA72451494500C40530
/* GeliPayInfoModel.swift in Sources */
,
F9531F432465108800724BEE
/* JXPhotoBrowserImageCell.swift in Sources */
,
F9531F432465108800724BEE
/* JXPhotoBrowserImageCell.swift in Sources */
,
...
@@ -2744,6 +2738,14 @@
...
@@ -2744,6 +2738,14 @@
/* End XCConfigurationList section */
/* End XCConfigurationList section */
/* Begin XCRemoteSwiftPackageReference section */
/* Begin XCRemoteSwiftPackageReference section */
E0040A8F2465569D00223900
/* XCRemoteSwiftPackageReference "SwipeCellKit" */
=
{
isa
=
XCRemoteSwiftPackageReference
;
repositoryURL
=
"https://github.com/SwipeCellKit/SwipeCellKit"
;
requirement
=
{
kind
=
upToNextMajorVersion
;
minimumVersion
=
2.7.1
;
};
};
F95A9ED024551D0400867849
/* XCRemoteSwiftPackageReference "Parchment" */
=
{
F95A9ED024551D0400867849
/* XCRemoteSwiftPackageReference "Parchment" */
=
{
isa
=
XCRemoteSwiftPackageReference
;
isa
=
XCRemoteSwiftPackageReference
;
repositoryURL
=
"https://github.com/rechsteiner/Parchment"
;
repositoryURL
=
"https://github.com/rechsteiner/Parchment"
;
...
@@ -2755,6 +2757,11 @@
...
@@ -2755,6 +2757,11 @@
/* End XCRemoteSwiftPackageReference section */
/* End XCRemoteSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
/* Begin XCSwiftPackageProductDependency section */
E0040A902465569D00223900
/* SwipeCellKit */
=
{
isa
=
XCSwiftPackageProductDependency
;
package
=
E0040A8F2465569D00223900
/* XCRemoteSwiftPackageReference "SwipeCellKit" */
;
productName
=
SwipeCellKit
;
};
F95A9ED124551D0400867849
/* Parchment */
=
{
F95A9ED124551D0400867849
/* Parchment */
=
{
isa
=
XCSwiftPackageProductDependency
;
isa
=
XCSwiftPackageProductDependency
;
package
=
F95A9ED024551D0400867849
/* XCRemoteSwiftPackageReference "Parchment" */
;
package
=
F95A9ED024551D0400867849
/* XCRemoteSwiftPackageReference "Parchment" */
;
...
...
GeliBusinessPlatform.xcworkspace/xcshareddata/swiftpm/Package.resolved
View file @
1f95bdc9
...
@@ -9,6 +9,15 @@
...
@@ -9,6 +9,15 @@
"revision": "86146bd617ffd8f3dec04c4ee75631fd4f75ea3f",
"revision": "86146bd617ffd8f3dec04c4ee75631fd4f75ea3f",
"version": "2.3.0"
"version": "2.3.0"
}
}
},
{
"package": "SwipeCellKit",
"repositoryURL": "https://github.com/SwipeCellKit/SwipeCellKit",
"state": {
"branch": null,
"revision": "7219cad3098637176ace311510d11467dbfb9bb0",
"version": "2.7.1"
}
}
}
]
]
},
},
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
1f95bdc9
No preview for this file type
GeliBusinessPlatform/ViewController/地址管理/DZGLTableView.swift
deleted
100644 → 0
View file @
60af6240
//
// DZGLTableView.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/8.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
DZGLTableView
:
UITableView
{
private
var
unifiedColor
=
UIColor
.
red
private
lazy
var
deleteBtn
:
UIButton
=
{
let
deleteBtn
=
UIButton
(
type
:
.
custom
)
deleteBtn
.
backgroundColor
=
unifiedColor
deleteBtn
.
setTitle
(
"删除"
,
for
:
.
normal
)
deleteBtn
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
deleteBtn
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
15
)
deleteBtn
.
setImage
(
UIImage
(
named
:
"shanchuWhite"
),
for
:
.
normal
)
return
deleteBtn
}()
override
func
layoutSubviews
()
{
super
.
layoutSubviews
()
if
#available(iOS 11.0, *)
{
for
subview
in
self
.
subviews
{
if
subview
.
isKind
(
of
:
NSClassFromString
(
"UISwipeActionPullView"
)
!
)
{
subview
.
backgroundColor
=
unifiedColor
for
view
in
subview
.
subviews
{
if
view
.
isKind
(
of
:
NSClassFromString
(
"UISwipeActionStandardButton"
)
!
)
{
view
.
backgroundColor
=
unifiedColor
let
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
80
,
height
:
view
.
bounds
.
size
.
height
)
deleteBtn
.
frame
=
frame
view
.
addSubview
(
deleteBtn
)
view
.
bringSubviewToFront
(
deleteBtn
)
break
}
}
break
}
}
}
else
{
// IOS 10以及以下
for
subview
in
subviews
{
if
subview
.
isKind
(
of
:
NSClassFromString
(
"UITableViewCellDeleteConfirmationView"
)
!
)
{
subview
.
backgroundColor
=
unifiedColor
for
view
in
subview
.
subviews
{
if
view
.
isKind
(
of
:
UIButton
.
self
)
{
view
.
backgroundColor
=
unifiedColor
let
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
80
,
height
:
view
.
bounds
.
size
.
height
)
deleteBtn
.
frame
=
frame
view
.
addSubview
(
deleteBtn
)
view
.
bringSubviewToFront
(
deleteBtn
)
break
}
}
break
}
}
}
}
}
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
View file @
1f95bdc9
...
@@ -7,10 +7,11 @@
...
@@ -7,10 +7,11 @@
//
//
import
UIKit
import
UIKit
import
SwipeCellKit
class
DZGLViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
class
DZGLViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
SwipeTableViewCellDelegate
{
@IBOutlet
weak
var
listView
:
DZGL
TableView
!
@IBOutlet
weak
var
listView
:
UI
TableView
!
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
navbar
.
title
=
"地址管理"
navbar
.
title
=
"地址管理"
...
@@ -23,7 +24,7 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
...
@@ -23,7 +24,7 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
// Do any additional setup after loading the view.
// Do any additional setup after loading the view.
}
}
func
rightBtnClick
()
{
func
rightBtnClick
()
{
let
vc
=
XinZengDiZhiViewController
()
let
vc
=
XinZengDiZhiViewController
()
...
@@ -34,33 +35,41 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
...
@@ -34,33 +35,41 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
return
3
return
3
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
4
9
return
7
9
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DiZhiGuanLiCell"
)
as!
DiZhiGuanLiCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DiZhiGuanLiCell"
)
as!
DiZhiGuanLiCell
cell
.
delegate
=
self
return
cell
return
cell
}
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
print
(
indexPath
.
row
)
print
(
indexPath
.
row
)
let
vc
=
XinZengDiZhiViewController
()
let
vc
=
XinZengDiZhiViewController
()
vc
.
navTitle
=
"编辑地址"
vc
.
navTitle
=
"编辑地址"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
//MARK:- 左滑删除
func
tableView
(
_
tableView
:
UITableView
,
canEditRowAt
indexPath
:
IndexPath
)
->
Bool
{
return
true
}
}
func
tableView
(
_
tableView
:
UITableView
,
editingStyleForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
.
EditingStyle
{
return
.
delete
//MARK:- 左滑删除
func
tableView
(
_
tableView
:
UITableView
,
editActionsOptionsForRowAt
indexPath
:
IndexPath
,
for
orientation
:
SwipeActionsOrientation
)
->
SwipeTableOptions
{
var
options
=
SwipeTableOptions
()
options
.
transitionStyle
=
.
border
//变化样式(使用默认的不变)
options
.
expansionStyle
=
.
selection
//展开样式(默认为.none)
return
options
}
}
func
tableView
(
_
tableView
:
UITableView
,
editActionsForRowAt
indexPath
:
IndexPath
,
for
orientation
:
SwipeActionsOrientation
)
->
[
SwipeAction
]?
{
func
tableView
(
_
tableView
:
UITableView
,
commit
editingStyle
:
UITableViewCell
.
EditingStyle
,
forRowAt
indexPath
:
IndexPath
)
{
//创建“删除”事件按钮
let
cell
=
tableView
.
cellForRow
(
at
:
indexPath
)
as!
DiZhiGuanLiCell
let
deleteAction
=
SwipeAction
(
style
:
.
destructive
,
title
:
nil
)
{
print
(
cell
.
nameLbl
.
text
)
action
,
indexPath
in
//将对应条目的数据删除
tableView
.
reloadData
()
}
deleteAction
.
image
=
UIImage
(
named
:
"shanchuWhite"
)
deleteAction
.
backgroundColor
=
UIColor
(
named
:
"#F57575"
)
//返回右侧事件按钮
return
[
deleteAction
,]
}
}
}
}
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.xib
View file @
1f95bdc9
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<subviews>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"PT0-ms-ns9"
customClass=
"DZGLTableView"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"PT0-ms-ns9"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"818"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"818"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<connections>
...
...
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.swift
View file @
1f95bdc9
...
@@ -7,8 +7,9 @@
...
@@ -7,8 +7,9 @@
//
//
import
UIKit
import
UIKit
import
SwipeCellKit
class
DiZhiGuanLiCell
:
UI
TableViewCell
{
class
DiZhiGuanLiCell
:
Swipe
TableViewCell
{
@IBOutlet
weak
var
adrLbl
:
UILabel
!
@IBOutlet
weak
var
adrLbl
:
UILabel
!
@IBOutlet
weak
var
yellowLbl
:
UILabel
!
@IBOutlet
weak
var
yellowLbl
:
UILabel
!
...
...
GeliBusinessPlatform/ViewController/换绑支付账号(绑定,换绑)/BindViewController.xib
View file @
1f95bdc9
...
@@ -8,17 +8,7 @@
...
@@ -8,17 +8,7 @@
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"BindViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"BindViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
/>
<connections>
<outlet
property=
"accountTF"
destination=
"ffm-Wf-cTs"
id=
"cgF-DC-suj"
/>
<outlet
property=
"codeTF"
destination=
"3oP-hI-HAZ"
id=
"0CL-cl-EaA"
/>
<outlet
property=
"phoneTF"
destination=
"t65-xv-Q0b"
id=
"h0N-xy-zNV"
/>
<outlet
property=
"pinkView"
destination=
"prG-Tn-Xbh"
id=
"mtL-tA-EXt"
/>
<outlet
property=
"submitBtn"
destination=
"waH-iS-ZgL"
id=
"WLb-wd-aup"
/>
<outlet
property=
"topInputView"
destination=
"NLt-l1-671"
id=
"Zd3-9m-ZL4"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
clearsContextBeforeDrawing=
"NO"
contentMode=
"scaleToFill"
id=
"i5M-Pr-FkT"
>
<view
clearsContextBeforeDrawing=
"NO"
contentMode=
"scaleToFill"
id=
"i5M-Pr-FkT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
...
@@ -92,9 +82,6 @@
...
@@ -92,9 +82,6 @@
</imageView>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"E4H-3t-feW"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"E4H-3t-feW"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"22.5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"22.5"
/>
<connections>
<action
selector=
"registerPayAccountAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"NYx-SM-hsE"
/>
</connections>
</button>
</button>
</subviews>
</subviews>
<constraints>
<constraints>
...
@@ -181,9 +168,6 @@
...
@@ -181,9 +168,6 @@
<state
key=
"normal"
title=
"获取验证码"
>
<state
key=
"normal"
title=
"获取验证码"
>
<color
key=
"titleColor"
name=
"按钮渐变色下,字体颜色"
/>
<color
key=
"titleColor"
name=
"按钮渐变色下,字体颜色"
/>
</state>
</state>
<connections>
<action
selector=
"getCodeAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"nmY-n3-f3Q"
/>
</connections>
</button>
</button>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入验证码"
textAlignment=
"right"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"3oP-hI-HAZ"
>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入验证码"
textAlignment=
"right"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"3oP-hI-HAZ"
>
<rect
key=
"frame"
x=
"69"
y=
"8"
width=
"235"
height=
"34"
/>
<rect
key=
"frame"
x=
"69"
y=
"8"
width=
"235"
height=
"34"
/>
...
@@ -231,29 +215,13 @@
...
@@ -231,29 +215,13 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"gradientHorizontal"
value=
"YES"
/>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"gradientHorizontal"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"submitBindingAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"tJT-jq-0cb"
/>
</connections>
</view>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JJc-HS-SOo"
>
<rect
key=
"frame"
x=
"167.5"
y=
"368"
width=
"79"
height=
"26"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"26"
id=
"5wB-Bp-zPy"
/>
<constraint
firstAttribute=
"width"
constant=
"79"
id=
"W6O-hL-jZ9"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<state
key=
"normal"
title=
"忘记手机号码?"
/>
<connections>
<action
selector=
"forgetPhoneNumAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"qBB-qS-7OI"
/>
</connections>
</button>
</subviews>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraints>
<constraint
firstItem=
"NLt-l1-671"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"0Ku-L4-Tkc"
/>
<constraint
firstItem=
"NLt-l1-671"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"0Ku-L4-Tkc"
/>
<constraint
firstItem=
"prG-Tn-Xbh"
firstAttribute=
"trailing"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"trailing"
id=
"0ur-Ua-dv0"
/>
<constraint
firstItem=
"prG-Tn-Xbh"
firstAttribute=
"trailing"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"trailing"
id=
"0ur-Ua-dv0"
/>
<constraint
firstItem=
"NLt-l1-671"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"1OO-6W-Yef"
/>
<constraint
firstItem=
"NLt-l1-671"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"1OO-6W-Yef"
/>
<constraint
firstItem=
"JJc-HS-SOo"
firstAttribute=
"top"
secondItem=
"waH-iS-ZgL"
secondAttribute=
"bottom"
constant=
"20"
id=
"62I-VJ-dGY"
/>
<constraint
firstItem=
"KNo-tQ-dsg"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"DOi-22-uzY"
/>
<constraint
firstItem=
"KNo-tQ-dsg"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"DOi-22-uzY"
/>
<constraint
firstItem=
"waH-iS-ZgL"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
constant=
"37.5"
id=
"P4B-Jp-aPM"
/>
<constraint
firstItem=
"waH-iS-ZgL"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
constant=
"37.5"
id=
"P4B-Jp-aPM"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"bCp-kS-a0t"
secondAttribute=
"trailing"
id=
"UOk-Tx-QwB"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"bCp-kS-a0t"
secondAttribute=
"trailing"
id=
"UOk-Tx-QwB"
/>
...
@@ -261,7 +229,6 @@
...
@@ -261,7 +229,6 @@
<constraint
firstItem=
"bCp-kS-a0t"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"UvF-Pr-mil"
/>
<constraint
firstItem=
"bCp-kS-a0t"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"UvF-Pr-mil"
/>
<constraint
firstItem=
"KNo-tQ-dsg"
firstAttribute=
"top"
secondItem=
"NLt-l1-671"
secondAttribute=
"bottom"
constant=
"10"
id=
"W4q-P7-j7d"
/>
<constraint
firstItem=
"KNo-tQ-dsg"
firstAttribute=
"top"
secondItem=
"NLt-l1-671"
secondAttribute=
"bottom"
constant=
"10"
id=
"W4q-P7-j7d"
/>
<constraint
firstItem=
"prG-Tn-Xbh"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"WVR-Ex-lJM"
/>
<constraint
firstItem=
"prG-Tn-Xbh"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"WVR-Ex-lJM"
/>
<constraint
firstItem=
"JJc-HS-SOo"
firstAttribute=
"centerX"
secondItem=
"waH-iS-ZgL"
secondAttribute=
"centerX"
id=
"av7-O1-Iv8"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"KNo-tQ-dsg"
secondAttribute=
"trailing"
id=
"eXN-H3-sud"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"KNo-tQ-dsg"
secondAttribute=
"trailing"
id=
"eXN-H3-sud"
/>
<constraint
firstItem=
"prG-Tn-Xbh"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"hGA-Ts-Psy"
/>
<constraint
firstItem=
"prG-Tn-Xbh"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"hGA-Ts-Psy"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"NLt-l1-671"
secondAttribute=
"trailing"
id=
"hRL-kU-JtX"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"NLt-l1-671"
secondAttribute=
"trailing"
id=
"hRL-kU-JtX"
/>
...
...
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