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
66f4791b
Commit
66f4791b
authored
Jun 29, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
31
parent
25b9b284
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
3 deletions
+56
-3
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
...nessPlatform/ViewController/地址管理/DZGLViewController.swift
+54
-0
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.swift
...Platform/ViewController/客户管理/KeHuListViewController.swift
+0
-2
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.swift
...wController/客户管理/XinZengAndBianJiKeHuViewController.swift
+2
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
66f4791b
No preview for this file type
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
View file @
66f4791b
...
...
@@ -14,12 +14,16 @@ protocol DZGLViewControllerDelegate {
}
class
DZGLViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
SwipeTableViewCellDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
XinZengDiZhiViewControllerDelegate
,
GeliAlertViewDelegate
{
@IBOutlet
weak
var
holder_view
:
UIView
!
var
is_keHu_list
=
false
var
kehu_adrArr
:
Array
<
GetAddrsInfoDataModel
>
=
[]
func
XinZengDiZhiViewControllerFinishAction
(
name
:
String
,
phone
:
String
,
adr
:
String
,
data
:
AddAddressDataModel
?,
province_name
:
String
,
city_name
:
String
,
district_name
:
String
)
{
listView
.
mj_header
?
.
beginRefreshing
()
}
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
{
let
model
=
adrArrs
[
sender
.
tag
]
AddressDel
([
"user_token"
:
UserToken
as
Any
,
"address_id"
:
model
.
address_id
as
Any
],
success
:
{
(
data
)
in
self
.
listView
.
mj_header
?
.
beginRefreshing
()
...
...
@@ -220,6 +224,9 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
is_keHu_list
{
return
kehu_adrArr
.
count
}
if
isSelectlogAddress
{
if
adrInfo
!=
nil
{
return
(
adrInfo
?
.
data
!.
count
)
!
...
...
@@ -236,6 +243,17 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DiZhiGuanLiCell"
)
as!
DiZhiGuanLiCell
cell
.
delegate
=
self
if
is_keHu_list
{
let
model
=
kehu_adrArr
[
indexPath
.
row
]
cell
.
nameLbl
.
text
=
model
.
consignee
cell
.
phoneLbl
.
text
=
model
.
mobile
cell
.
adrLbl
.
text
=
model
.
addr_cn
cell
.
btnH
.
constant
=
0
cell
.
xValue
.
constant
=
0
cell
.
blueLbl
.
isHidden
=
true
cell
.
yellowLbl
.
isHidden
=
true
return
cell
}
if
isSelectlogAddress
{
let
model
=
adrInfo
?
.
data
!
[
indexPath
.
row
]
cell
.
nameLbl
.
text
=
model
?
.
consignee
...
...
@@ -307,6 +325,42 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
print
(
indexPath
.
row
)
if
is_keHu_list
{
if
kehu_adrArr
.
count
>
0
{
let
model
=
kehu_adrArr
[
indexPath
.
row
]
let
vc
=
XinZengDiZhiViewController
()
vc
.
delegate
=
self
vc
.
navTitle
=
"编辑地址"
vc
.
provinceIndex
=
model
.
province
!
vc
.
cityIndex
=
model
.
city
!
vc
.
areaIndex
=
model
.
district
!
// vc.address_id = model.address_id!
vc
.
adrStr
=
model
.
address
!
vc
.
nameStr
=
model
.
consignee
!
vc
.
phone
=
model
.
mobile
!
// vc.tel = model.tel!
// vc.zip = model.zipcode!
vc
.
is_send_default
=
false
// vc.pcdStr = model.province_cn!
// if model.city_cn != nil {
// vc.pcdStr = model.province_cn! + "-" + model.city_cn!
// if model.district_cn != nil {
// vc.pcdStr = model.province_cn! + "-" + model.city_cn! + "-" + model.district_cn!
// }
// }
// if model.is_send_default == 1 {
// vc.is_send_default = true
// }
vc
.
is_default
=
false
if
model
.
is_default
==
1
{
vc
.
is_default
=
true
}
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
return
}
if
isSelectMotion
==
false
{
if
adrArrs
.
count
>
0
{
let
model
=
adrArrs
[
indexPath
.
row
]
...
...
GeliBusinessPlatform/ViewController/客户管理/KeHuListViewController.swift
View file @
66f4791b
...
...
@@ -35,8 +35,6 @@ class KeHuListViewController: BaseViewController,UITableViewDelegate,UITableView
selectListRecord
.
append
(
0
)
selectListRecord
.
append
(
0
)
navbar
.
title
=
"客户管理"
self
.
view
.
addSubview
(
navbar
)
...
...
GeliBusinessPlatform/ViewController/客户管理/XinZengAndBianJiKeHuViewController.swift
View file @
66f4791b
...
...
@@ -186,8 +186,9 @@ class XinZengAndBianJiKeHuViewController: BaseViewController,UITableViewDataSour
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
indexPath
.
row
==
6
{
print
(
"abc == "
)
let
vc
=
DZGLViewController
()
vc
.
is_keHu_list
=
true
vc
.
kehu_adrArr
=
adrArr
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
if
indexPath
.
row
==
3
{
...
...
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