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
61e75c1d
Commit
61e75c1d
authored
Jul 27, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切换货拉拉
parent
5f286e48
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
134 additions
and
64 deletions
+134
-64
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Assets.xcassets/字体色/#E37847.colorset/Contents.json
...atform/Assets.xcassets/字体色/#E37847.colorset/Contents.json
+20
-0
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+105
-62
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.xib
...m/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.xib
+0
-0
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+8
-1
GeliBusinessPlatform/ViewController/登录/LoginViewController.swift
...inessPlatform/ViewController/登录/LoginViewController.swift
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
61e75c1d
No preview for this file type
GeliBusinessPlatform/Assets.xcassets/字体色/#E37847.colorset/Contents.json
0 → 100644
View file @
61e75c1d
{
"colors"
:
[
{
"color"
:
{
"color-space"
:
"srgb"
,
"components"
:
{
"alpha"
:
"1.000"
,
"blue"
:
"0.278"
,
"green"
:
"0.471"
,
"red"
:
"0.890"
}
},
"idiom"
:
"universal"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
61e75c1d
...
@@ -108,17 +108,58 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -108,17 +108,58 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
let
vc
=
XiaDanChengGongViewController
()
let
vc
=
XiaDanChengGongViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
@IBOutlet
weak
var
topBtnView
:
UIView
!
@IBOutlet
weak
var
bottomView
:
UIView
!
@IBOutlet
weak
var
bottomView
:
UIView
!
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
listView
:
UITableView
!
var
locBtn
=
UIButton
()
@IBOutlet
weak
var
hListView
:
UITableView
!
@IBAction
func
selectAction
(
_
sender
:
UIButton
)
{
if
rightBtn
==
sender
{
rightBtn
.
isSelected
=
true
leftBtn
.
isSelected
=
false
lineV
.
frame
.
origin
.
x
=
fullScreenWidth
*
0.5
hllView
.
isHidden
=
false
if
fullScreenHeight
>
736
{
hBtnViewH
.
constant
=
83
}
else
{
hBtnViewH
.
constant
=
49
}
}
else
{
rightBtn
.
isSelected
=
false
leftBtn
.
isSelected
=
true
lineV
.
frame
.
origin
.
x
=
0
hllView
.
isHidden
=
true
}
}
@IBOutlet
weak
var
lineV
:
UIView
!
@IBOutlet
weak
var
leftBtn
:
UIButton
!
@IBOutlet
weak
var
hBtnViewH
:
NSLayoutConstraint
!
@IBOutlet
weak
var
hllView
:
UIView
!
@IBOutlet
weak
var
rightBtn
:
UIButton
!
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
navbar
.
title
=
"运单列表"
navbar
.
title
=
"运单列表"
self
.
view
.
addSubview
(
navbar
)
self
.
view
.
addSubview
(
navbar
)
listView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
NavCGRect
.
height
)
locBtn
.
backgroundColor
=
UIColor
.
red
make
.
left
.
right
.
equalTo
(
0
)
self
.
view
.
addSubview
(
locBtn
)
make
.
bottom
.
equalTo
(
bottomView
.
snp_top
)
locBtn
.
snp_makeConstraints
({
(
make
)
in
}
make
.
right
.
equalTo
(
-
15
)
make
.
centerY
.
equalTo
(
navbar
.
snp_centerY
)
.
offset
(
10
)
make
.
height
.
equalTo
(
30
)
make
.
width
.
equalTo
(
100
)
})
SetTopFrame
(
view
:
topBtnView
,
height
:
44
)
listView
.
separatorStyle
=
.
none
listView
.
separatorStyle
=
.
none
listView
.
register
(
UINib
(
nibName
:
"AdressSelectCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"AdressSelect"
)
listView
.
register
(
UINib
(
nibName
:
"AdressSelectCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"AdressSelect"
)
listView
.
register
(
UINib
(
nibName
:
"PersonCenterCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"PersonCenter"
)
listView
.
register
(
UINib
(
nibName
:
"PersonCenterCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"PersonCenter"
)
...
@@ -127,7 +168,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -127,7 +168,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
// Do any additional setup after loading the view.
// Do any additional setup after loading the view.
}
}
@objc
func
selectBtnClick
(
sender
:
UIButton
){
@objc
func
selectBtnClick
(
sender
:
UIButton
){
if
sender
.
tag
==
99
{
if
sender
.
tag
==
99
{
//跳转查看合同页面
//跳转查看合同页面
...
@@ -267,48 +308,49 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -267,48 +308,49 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
return
49
return
49
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
switch
indexPath
.
section
{
// if tableView == listView {
case
0
:
switch
indexPath
.
section
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"AdressSelect"
)
as!
AdressSelectCell
case
0
:
cell
.
titleLbl
.
text
=
"寄"
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"AdressSelect"
)
as!
AdressSelectCell
cell
.
titleLbl
.
text
=
"寄"
cell
.
tag
=
indexPath
.
row
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
cell
.
contentLbl
.
isHidden
=
false
cell
.
delegate
=
self
cell
.
contentV
.
isHidden
=
true
cell
.
contentLbl
.
isHidden
=
false
if
indexPath
.
row
==
0
{
cell
.
contentV
.
isHidden
=
true
if
sender
!=
nil
{
if
indexPath
.
row
==
0
{
cell
.
contentLbl
.
isHidden
=
true
if
sender
!=
nil
{
cell
.
contentV
.
isHidden
=
false
cell
.
contentLbl
.
isHidden
=
true
cell
.
nameLbl
.
text
=
sender
!
cell
.
contentV
.
isHidden
=
false
cell
.
phoneLbl
.
text
=
sendPhone
!
cell
.
nameLbl
.
text
=
sender
!
cell
.
adrLbl
.
text
=
sendAdr
!
cell
.
phoneLbl
.
text
=
sendPhone
!
cell
.
adrLbl
.
text
=
sendAdr
!
}
}
}
}
if
indexPath
.
row
==
1
{
if
indexPath
.
row
==
1
{
cell
.
titleLbl
.
backgroundColor
=
UIColor
(
named
:
"企业、预售字体"
)
cell
.
titleLbl
.
backgroundColor
=
UIColor
(
named
:
"企业、预售字体"
)
cell
.
titleLbl
.
text
=
"收"
cell
.
titleLbl
.
text
=
"收"
if
receiver
!=
nil
{
if
receiver
!=
nil
{
cell
.
contentLbl
.
isHidden
=
true
cell
.
contentLbl
.
isHidden
=
tru
e
cell
.
contentV
.
isHidden
=
fals
e
cell
.
contentV
.
isHidden
=
false
cell
.
nameLbl
.
text
=
receiver
!
cell
.
nameLbl
.
text
=
receiver
!
cell
.
phoneLbl
.
text
=
receivePhone
!
cell
.
phoneLbl
.
text
=
receivePhone
!
cell
.
adrLbl
.
text
=
receiveAdr
!
cell
.
adrLbl
.
text
=
receiveAdr
!
}
}
}
}
return
cell
return
cell
case
1
:
case
1
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"PersonCenter"
)
as!
PersonCenterCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"PersonCenter"
)
as!
PersonCenterCell
cell
.
titleLbl
.
text
=
titleArr
[
indexPath
.
row
]
cell
.
titleLbl
.
text
=
titleArr
[
indexPath
.
row
]
if
indexPath
.
row
==
0
{
if
indexPath
.
row
==
0
{
cell
.
introLbl
.
text
=
"(必填)"
cell
.
introLbl
.
text
=
"(必填)"
cell
.
introLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
.
introLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
.
introLbl
.
isHidden
=
false
cell
.
introLbl
.
isHidden
=
false
if
isCheck
!=
nil
{
if
isCheck
!=
nil
{
cell
.
contentStr
=
itemName
+
";
\(
count
!
)
箱;
\(
weight
!
)
kg"
cell
.
contentStr
=
itemName
+
";
\(
count
!
)
箱;
\(
weight
!
)
kg"
}
}
}
}
if
indexPath
.
row
==
1
{
if
indexPath
.
row
==
1
{
var
sendStr
=
"上门提货"
var
sendStr
=
"上门提货"
if
send
!=
0
{
if
send
!=
0
{
sendStr
=
"自送到库"
sendStr
=
"自送到库"
...
@@ -318,26 +360,27 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -318,26 +360,27 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
receiveStr
=
"到库自取"
receiveStr
=
"到库自取"
}
}
cell
.
contentStr
=
sendStr
+
"; "
+
receiveStr
cell
.
contentStr
=
sendStr
+
"; "
+
receiveStr
}
if
indexPath
.
row
==
2
{
cell
.
introLbl
.
isHidden
=
false
if
price
!=
nil
{
cell
.
contentStr
=
"报价金额:
\(
price
!
)
"
}
}
}
if
indexPath
.
row
==
2
{
if
indexPath
.
row
==
3
{
cell
.
introLbl
.
isHidden
=
false
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"WenDu"
)
as!
WenDuCell
if
price
!=
nil
{
cell
.
titleLbl
.
text
=
titleArr
[
indexPath
.
row
]
cell
.
contentStr
=
"报价金额:
\(
price
!
)
"
}
}
if
indexPath
.
row
==
3
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"WenDu"
)
as!
WenDuCell
cell
.
titleLbl
.
text
=
titleArr
[
indexPath
.
row
]
return
cell
}
return
cell
default
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFBtnCell"
)
as!
TitleAndTFBtnCell
cell
.
nameLbl
.
text
=
title2Arr
[
indexPath
.
row
]
return
cell
return
cell
}
}
// }
return
cell
default
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFBtnCell"
)
as!
TitleAndTFBtnCell
cell
.
nameLbl
.
text
=
title2Arr
[
indexPath
.
row
]
return
cell
}
}
}
}
}
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.xib
View file @
61e75c1d
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
61e75c1d
...
@@ -37,6 +37,11 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
...
@@ -37,6 +37,11 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
setTabv
()
setTabv
()
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
jpushServiceNotification(notion:)
)
,
name
:
NSNotification
.
Name
(
rawValue
:
"jpushServiceNotification2"
),
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
jpushServiceNotification(notion:)
)
,
name
:
NSNotification
.
Name
(
rawValue
:
"jpushServiceNotification2"
),
object
:
nil
)
...
@@ -482,7 +487,9 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
...
@@ -482,7 +487,9 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
case
75
:
//收支统计
case
75
:
//收支统计
// HUD.flash(.label("敬请期待"),delay: 1.2)
// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// return
let
vc
=
ShouZhiTongJiViewController
()
let
vc
=
XiaYunDanViewController
()
// let vc = ShouZhiTongJiViewController()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
return
case
76
:
//收支详情
case
76
:
//收支详情
...
...
GeliBusinessPlatform/ViewController/登录/LoginViewController.swift
View file @
61e75c1d
...
@@ -47,7 +47,7 @@ class LoginViewController: BaseViewController, CodeViewDelegate,GeliAlertViewDel
...
@@ -47,7 +47,7 @@ class LoginViewController: BaseViewController, CodeViewDelegate,GeliAlertViewDel
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
super
.
viewWillAppear
(
animated
)
self
.
view
.
backgroundColor
=
UIColor
(
named
:
"白色背景色"
)
self
.
view
.
backgroundColor
=
UIColor
(
named
:
"白色背景色"
)
print
(
"f = "
,
fullScreenHeight
)
}
}
@IBAction
func
selectLoginAction
(
_
sender
:
UIButton
)
{
@IBAction
func
selectLoginAction
(
_
sender
:
UIButton
)
{
...
...
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