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
783d8f19
Commit
783d8f19
authored
Aug 13, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LalamoveBillTableViewCell修改完成
parent
e91a4282
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
114 additions
and
37 deletions
+114
-37
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/LalamoveBillTableViewCell.swift
...usinessPlatform/View/Cell/LalamoveBillTableViewCell.swift
+69
-6
GeliBusinessPlatform/View/Cell/LalamoveBillTableViewCell.xib
GeliBusinessPlatform/View/Cell/LalamoveBillTableViewCell.xib
+43
-30
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+1
-0
GeliBusinessPlatform/ViewController/货拉拉/费用明细/LogisticsCostDetailViewController.swift
...ntroller/货拉拉/费用明细/LogisticsCostDetailViewController.swift
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
783d8f19
No preview for this file type
GeliBusinessPlatform/View/Cell/LalamoveBillTableViewCell.swift
View file @
783d8f19
...
@@ -7,20 +7,83 @@
...
@@ -7,20 +7,83 @@
//
//
import
UIKit
import
UIKit
protocol
LalamoveBillTableViewCellDelegate
{
func
LalamoveBillTableViewCellBtnClick
(
sender
:
Int
)
}
class
LalamoveBillTableViewCell
:
UITableViewCell
{
class
LalamoveBillTableViewCell
:
UITableViewCell
{
@IBOutlet
weak
var
coverLbl
:
UILabel
!
@IBOutlet
weak
var
imgV2
:
UIImageView
!
var
delegate
:
LalamoveBillTableViewCellDelegate
?
@IBOutlet
weak
var
imgV1
:
UIImageView
!
@objc
func
imgBtnClick
(
sender
:
UITapGestureRecognizer
)
{
delegate
?
.
LalamoveBillTableViewCellBtnClick
(
sender
:
sender
.
view
!.
tag
)
}
var
datasArr
:
Array
<
String
>
?
@IBOutlet
weak
var
rightBtn
:
UIImageView
!
@IBOutlet
weak
var
middleBtn
:
UIImageView
!
@IBOutlet
weak
var
leftBtn
:
UIImageView
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
override
func
awakeFromNib
()
{
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
self
.
selectionStyle
=
.
none
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
imgBtnClick(sender:)
)
)
leftBtn
.
addGestureRecognizer
(
tap
)
let
tap1
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
imgBtnClick(sender:)
)
)
middleBtn
.
addGestureRecognizer
(
tap1
)
let
tap2
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
imgBtnClick(sender:)
)
)
rightBtn
.
addGestureRecognizer
(
tap2
)
let
tap3
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
imgBtnClick(sender:)
)
)
coverLbl
.
addGestureRecognizer
(
tap3
)
}
}
override
func
layoutSubviews
()
{
super
.
layoutSubviews
()
if
datasArr
==
nil
{
return
}
coverLbl
.
isHidden
=
true
switch
datasArr
?
.
count
{
case
1
:
//SERVERCE_ImageHost +
leftBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
0
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
middleBtn
.
isHidden
=
true
rightBtn
.
isHidden
=
true
break
case
2
:
leftBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
0
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
middleBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
1
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
rightBtn
.
isHidden
=
true
break
case
3
:
for
i
in
0
..<
datasArr
!.
count
{
switch
i
{
case
0
:
leftBtn
.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
i
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
break
case
1
:
middleBtn
.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
i
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
break
default
:
rightBtn
.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
i
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
break
}
}
break
default
:
leftBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
0
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
middleBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
1
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
rightBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
2
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
coverLbl
.
isHidden
=
false
coverLbl
.
text
=
"+
\(
datasArr
!.
count
)
"
break
}
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
// Configure the view for the selected state
}
}
...
...
GeliBusinessPlatform/View/Cell/LalamoveBillTableViewCell.xib
View file @
783d8f19
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097
.2
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
...
@@ -24,57 +24,70 @@
...
@@ -24,57 +24,70 @@
<color
key=
"textColor"
name=
"标题字颜色"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7RH-D6-2bx"
>
<imageView
clipsSubviews=
"YES"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"GU8-JG-hpZ"
>
<rect
key=
"frame"
x=
"15"
y=
"33.5"
width=
"117"
height=
"75"
/>
<rect
key=
"frame"
x=
"15"
y=
"38.5"
width=
"95"
height=
"60"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"117"
id=
"ZJG-4R-D6X"
/>
<constraint
firstAttribute=
"height"
constant=
"60"
id=
"hlO-Am-gEr"
/>
<constraint
firstAttribute=
"height"
constant=
"75"
id=
"pap-qw-4iT"
/>
</constraints>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"3"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
</imageView>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Peb-o2-hIW"
>
<imageView
clipsSubviews=
"YES"
tag=
"1"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"IsA-CO-3WT"
>
<rect
key=
"frame"
x=
"142"
y=
"33.5"
width=
"117"
height=
"75"
/>
<rect
key=
"frame"
x=
"125"
y=
"38.5"
width=
"95"
height=
"60"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"117"
id=
"AuI-9f-C9C"
/>
<constraint
firstAttribute=
"height"
constant=
"60"
id=
"3YD-aA-8xg"
/>
<constraint
firstAttribute=
"height"
constant=
"75"
id=
"lJ7-KJ-xxS"
/>
</constraints>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"3"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
</imageView>
<imageView
clipsSubviews=
"YES"
tag=
"2"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"IA7-sC-hMt"
>
<rect
key=
"frame"
x=
"235"
y=
"38.5"
width=
"95"
height=
"60"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"60"
id=
"DXH-7e-Z6v"
/>
</constraints>
</imageView>
<label
hidden=
"YES"
opaque=
"NO"
tag=
"2"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XGm-vy-hy5"
>
<rect
key=
"frame"
x=
"235"
y=
"38.5"
width=
"95"
height=
"60"
/>
<color
key=
"backgroundColor"
name=
"提示视图背景色"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"17"
/>
<color
key=
"textColor"
name=
"白色背景色"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
</subviews>
<constraints>
<constraints>
<constraint
firstItem=
"7RH-D6-2bx"
firstAttribute=
"top"
secondItem=
"sR8-2p-s0j"
secondAttribute=
"bottom"
constant=
"10"
id=
"4RI-AH-9DT"
/>
<constraint
firstItem=
"IA7-sC-hMt"
firstAttribute=
"top"
secondItem=
"sR8-2p-s0j"
secondAttribute=
"bottom"
constant=
"15"
id=
"1ni-ks-meI"
/>
<constraint
firstItem=
"IA7-sC-hMt"
firstAttribute=
"width"
secondItem=
"GU8-JG-hpZ"
secondAttribute=
"width"
id=
"2td-Dy-wKn"
/>
<constraint
firstItem=
"IsA-CO-3WT"
firstAttribute=
"width"
secondItem=
"GU8-JG-hpZ"
secondAttribute=
"width"
id=
"6AG-8s-SFF"
/>
<constraint
firstItem=
"XGm-vy-hy5"
firstAttribute=
"centerY"
secondItem=
"IA7-sC-hMt"
secondAttribute=
"centerY"
id=
"6uE-Gc-Kv5"
/>
<constraint
firstItem=
"XGm-vy-hy5"
firstAttribute=
"centerX"
secondItem=
"IA7-sC-hMt"
secondAttribute=
"centerX"
id=
"D5E-Lk-Ckg"
/>
<constraint
firstItem=
"sR8-2p-s0j"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"GuK-M7-Zhv"
/>
<constraint
firstItem=
"sR8-2p-s0j"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"GuK-M7-Zhv"
/>
<constraint
firstItem=
"Peb-o2-hIW"
firstAttribute=
"centerY"
secondItem=
"7RH-D6-2bx"
secondAttribute=
"centerY"
id=
"RDe-Xm-sLP"
/>
<constraint
firstItem=
"GU8-JG-hpZ"
firstAttribute=
"top"
secondItem=
"sR8-2p-s0j"
secondAttribute=
"bottom"
constant=
"15"
id=
"KdK-79-Vpg"
/>
<constraint
firstItem=
"7RH-D6-2bx"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"XOw-ad-VYm"
/>
<constraint
firstItem=
"GU8-JG-hpZ"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"MdZ-SJ-WZ5"
/>
<constraint
firstItem=
"Peb-o2-hIW"
firstAttribute=
"leading"
secondItem=
"7RH-D6-2bx"
secondAttribute=
"trailing"
constant=
"10"
id=
"f6M-Wd-Sy1"
/>
<constraint
firstItem=
"IsA-CO-3WT"
firstAttribute=
"leading"
secondItem=
"GU8-JG-hpZ"
secondAttribute=
"trailing"
constant=
"15"
id=
"VHv-kM-f4T"
/>
<constraint
firstItem=
"XGm-vy-hy5"
firstAttribute=
"width"
secondItem=
"IA7-sC-hMt"
secondAttribute=
"width"
id=
"aYz-5L-N24"
/>
<constraint
firstItem=
"IA7-sC-hMt"
firstAttribute=
"leading"
secondItem=
"IsA-CO-3WT"
secondAttribute=
"trailing"
constant=
"15"
id=
"cFA-U6-CiS"
/>
<constraint
firstItem=
"IsA-CO-3WT"
firstAttribute=
"top"
secondItem=
"sR8-2p-s0j"
secondAttribute=
"bottom"
constant=
"15"
id=
"eVn-yF-1yX"
/>
<constraint
firstItem=
"sR8-2p-s0j"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"5"
id=
"iGe-VU-VAf"
/>
<constraint
firstItem=
"sR8-2p-s0j"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"5"
id=
"iGe-VU-VAf"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"IA7-sC-hMt"
secondAttribute=
"trailing"
constant=
"15"
id=
"ycD-5s-Dwg"
/>
<constraint
firstItem=
"XGm-vy-hy5"
firstAttribute=
"height"
secondItem=
"IA7-sC-hMt"
secondAttribute=
"height"
id=
"zVn-TE-MFp"
/>
</constraints>
</constraints>
</tableViewCellContentView>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<connections>
<outlet
property=
"imgV1"
destination=
"7RH-D6-2bx"
id=
"lW6-jw-lJ9"
/>
<outlet
property=
"coverLbl"
destination=
"XGm-vy-hy5"
id=
"hha-EM-Dco"
/>
<outlet
property=
"imgV2"
destination=
"Peb-o2-hIW"
id=
"lxb-dX-YXO"
/>
<outlet
property=
"leftBtn"
destination=
"GU8-JG-hpZ"
id=
"PWv-gZ-hUh"
/>
<outlet
property=
"middleBtn"
destination=
"IsA-CO-3WT"
id=
"26C-76-nHY"
/>
<outlet
property=
"nameLbl"
destination=
"sR8-2p-s0j"
id=
"kCf-rk-OCp"
/>
<outlet
property=
"nameLbl"
destination=
"sR8-2p-s0j"
id=
"kCf-rk-OCp"
/>
<outlet
property=
"rightBtn"
destination=
"IA7-sC-hMt"
id=
"jsi-ZZ-XA2"
/>
</connections>
</connections>
<point
key=
"canvasLocation"
x=
"257.24637681159425"
y=
"1
40.2901785714285
6"
/>
<point
key=
"canvasLocation"
x=
"257.24637681159425"
y=
"1
38.9508928571428
6"
/>
</tableViewCell>
</tableViewCell>
</objects>
</objects>
<resources>
<resources>
<namedColor
name=
"
app底
色"
>
<namedColor
name=
"
提示视图背景
色"
>
<color
red=
"0.
94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1
"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.
1803921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451"
alpha=
"0.5
"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</resources>
</document>
</document>
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
783d8f19
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
783d8f19
...
@@ -538,6 +538,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
...
@@ -538,6 +538,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
// HUD.flash(.label("敬请期待"),delay: 1.2)
// HUD.flash(.label("敬请期待"),delay: 1.2)
let
vc
=
XiaYunDanViewController
()
let
vc
=
XiaYunDanViewController
()
// let vc = WaybillDetailViewController()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
return
case
92
:
//采购订单管理
case
92
:
//采购订单管理
...
...
GeliBusinessPlatform/ViewController/货拉拉/费用明细/LogisticsCostDetailViewController.swift
View file @
783d8f19
...
@@ -24,7 +24,7 @@ class LogisticsCostDetailViewController: BaseViewController {
...
@@ -24,7 +24,7 @@ class LogisticsCostDetailViewController: BaseViewController {
navbar
.
title
=
"费用明细"
navbar
.
title
=
"费用明细"
self
.
view
.
addSubview
(
navbar
)
self
.
view
.
addSubview
(
navbar
)
priceLbl
.
text
=
"
\(
model
!.
data
!.
total_price_fen
!/
100
)
"
priceLbl
.
text
=
"
\(
model
!.
data
!.
total_price_fen
!/
100
.0
)
"
roadKM
.
text
=
"(总里程
\(
Double
(
model
!.
data
!.
distance_total
!
)
/
1000.0
)
公里)"
roadKM
.
text
=
"(总里程
\(
Double
(
model
!.
data
!.
distance_total
!
)
/
1000.0
)
公里)"
SetTopFrameView
(
view
:
contentV
,
btmView
:
self
.
view
)
SetTopFrameView
(
view
:
contentV
,
btmView
:
self
.
view
)
...
...
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