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
2d647ca1
Commit
2d647ca1
authored
Jul 29, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正收支统计bug
parent
344cc73f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
175 additions
and
90 deletions
+175
-90
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+167
-84
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.xib
...m/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.xib
+1
-1
GeliBusinessPlatform/ViewController/收支统计/ShouZhiTongJiViewController.swift
...orm/ViewController/收支统计/ShouZhiTongJiViewController.swift
+2
-2
GeliBusinessPlatform/ViewController/货拉拉/运单详情/cell/HLLTopCell.swift
...essPlatform/ViewController/货拉拉/运单详情/cell/HLLTopCell.swift
+5
-3
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
2d647ca1
No preview for this file type
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
2d647ca1
...
@@ -29,7 +29,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -29,7 +29,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
var
s_city
:
Int
?
var
s_city
:
Int
?
var
s_province
:
Int
?
var
s_province
:
Int
?
var
s_district
:
Int
?
var
s_district
:
Int
?
var
receiver
:
String
?
var
receiver
:
String
?
var
receivePhone
:
String
?
var
receivePhone
:
String
?
var
receiveAdr
:
String
?
var
receiveAdr
:
String
?
...
@@ -42,7 +42,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -42,7 +42,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
var
r_city
:
Int
?
var
r_city
:
Int
?
var
r_province
:
Int
?
var
r_province
:
Int
?
var
r_district
:
Int
?
var
r_district
:
Int
?
func
XinZengDiZhiViewControllerFinishAction
(
name
:
String
,
phone
:
String
,
adr
:
String
,
data
:
AddAddressDataModel
?,
province_name
:
String
,
city_name
:
String
,
district_name
:
String
)
{
func
XinZengDiZhiViewControllerFinishAction
(
name
:
String
,
phone
:
String
,
adr
:
String
,
data
:
AddAddressDataModel
?,
province_name
:
String
,
city_name
:
String
,
district_name
:
String
)
{
...
@@ -158,7 +158,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -158,7 +158,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
var
send
=
0
var
send
=
0
var
receive
=
0
var
receive
=
0
//MARK:--寄派方式信息
//MARK:--寄派方式信息
func
JiPaiFangShiViewControllerDelegateFinish
(
send
:
Int
,
receive
:
Int
,
pickup_time
:
String
,
day
:
Int
)
{
func
JiPaiFangShiViewControllerDelegateFinish
(
send
:
Int
,
receive
:
Int
,
pickup_time
:
String
,
day
:
Int
)
{
self
.
send
=
send
self
.
send
=
send
self
.
receive
=
receive
self
.
receive
=
receive
...
@@ -190,7 +190,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -190,7 +190,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
guanlianPingStr
=
contentStr
guanlianPingStr
=
contentStr
}
}
}
}
func
JiTuoWuXinXiViewClose
()
{
func
JiTuoWuXinXiViewClose
()
{
jtwxxView
?
.
removeFromSuperview
()
jtwxxView
?
.
removeFromSuperview
()
jtwxxView
=
nil
jtwxxView
=
nil
...
@@ -215,15 +215,15 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -215,15 +215,15 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
else
{
}
else
{
HUD
.
flash
(
.
label
(
"未同意快件服务协议无法下单"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"未同意快件服务协议无法下单"
),
delay
:
1.2
)
}
}
}
}
var
lc_id
:
Int
?
var
lc_id
:
Int
?
func
LogisticalSelectViewSure
(
index
:
Int
)
{
func
LogisticalSelectViewSure
(
index
:
Int
)
{
lc_id
=
index
lc_id
=
index
//MARK:--提交运单
//MARK:--提交运单
addLogisticsOrderUpdata
()
addLogisticsOrderUpdata
()
}
}
@IBOutlet
weak
var
topBtnView
:
UIView
!
@IBOutlet
weak
var
topBtnView
:
UIView
!
@IBOutlet
weak
var
bottomView
:
UIView
!
@IBOutlet
weak
var
bottomView
:
UIView
!
...
@@ -796,6 +796,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -796,6 +796,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
let
button
=
UIButton
(
frame
:
CGRect
(
x
:
fullScreenWidth
-
44
,
y
:
0
,
width
:
44
,
height
:
44
))
let
button
=
UIButton
(
frame
:
CGRect
(
x
:
fullScreenWidth
-
44
,
y
:
0
,
width
:
44
,
height
:
44
))
// button.setImage(UIImage(named: ""), for: .normal)
// button.setImage(UIImage(named: ""), for: .normal)
view
.
addSubview
(
button
)
view
.
addSubview
(
button
)
button
.
addTarget
(
self
,
action
:
#selector(
selectAllCars
)
,
for
:
.
touchUpInside
)
let
line
=
UIView
()
let
line
=
UIView
()
line
.
backgroundColor
=
UIColor
(
named
:
"灰色分界线"
)
line
.
backgroundColor
=
UIColor
(
named
:
"灰色分界线"
)
view
.
addSubview
(
line
)
view
.
addSubview
(
line
)
...
@@ -837,8 +838,90 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -837,8 +838,90 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
topBtnLine
.
layer
.
masksToBounds
=
true
topBtnLine
.
layer
.
masksToBounds
=
true
view
.
addSubview
(
topBtnLine
)
view
.
addSubview
(
topBtnLine
)
}
}
var
carTypesArr
:
Array
<
String
>
=
[
"小面包车"
,
"中面包车"
,
"小货车"
,
"中货车"
,
"5米2"
,
"ababa"
]
//MARK: - 选择所有车型
var
carTypesArr
:
Array
<
String
>
=
[
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
]
var
carListView
:
UIView
?
var
cBtn
:
UIButton
?
@objc
func
closeCarList
(){
carListView
?
.
isHidden
=
true
cBtn
?
.
isHidden
=
true
}
@objc
func
selectAllCars
(){
cBtn
?
.
isHidden
=
false
carListView
?
.
isHidden
=
false
let
w
=
fullScreenWidth
/
3
var
a
=
0
if
carTypesArr
.
count
%
3
!=
0
{
a
=
1
}
let
h
=
w
*
CGFloat
(
a
+
carTypesArr
.
count
/
3
)
if
carListView
==
nil
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
topBtnView
.
frame
.
maxY
,
width
:
fullScreenWidth
,
height
:
h
+
44
))
view
.
backgroundColor
=
UIColor
.
white
self
.
view
.
addSubview
(
view
)
carListView
=
view
let
lbl
=
UILabel
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
44
))
lbl
.
text
=
"所有车型"
lbl
.
textAlignment
=
.
center
lbl
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
lbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
carListView
!.
addSubview
(
lbl
)
let
closeBtn
=
UIButton
(
frame
:
CGRect
(
x
:
fullScreenWidth
-
44
,
y
:
0
,
width
:
44
,
height
:
44
))
closeBtn
.
backgroundColor
=
UIColor
.
red
closeBtn
.
addTarget
(
self
,
action
:
#selector(
closeCarList
)
,
for
:
.
touchUpInside
)
carListView
!.
addSubview
(
closeBtn
)
let
line
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
43.5
,
width
:
fullScreenWidth
,
height
:
0.5
))
line
.
backgroundColor
=
UIColor
(
named
:
"灰色分界线"
)
carListView
!.
addSubview
(
line
)
for
i
in
0
..<
carTypesArr
.
count
{
setCarListUI
(
index
:
i
,
bg
:
carListView
!
)
}
}
let
width
=
CGFloat
(
3
-
carTypesArr
.
count
%
3
)
*
w
let
yValue
=
(
CGFloat
(
carTypesArr
.
count
/
3
)
*
w
)
+
44
let
lineV
=
UIView
(
frame
:
CGRect
(
x
:
fullScreenWidth
-
width
,
y
:
yValue
,
width
:
width
,
height
:
w
))
lineV
.
layer
.
borderColor
=
UIColor
(
named
:
"灰色分界线"
)?
.
cgColor
lineV
.
layer
.
borderWidth
=
0.5
carListView
!.
addSubview
(
lineV
)
if
cBtn
==
nil
{
cBtn
=
UIButton
()
cBtn
!.
backgroundColor
=
UIColor
(
named
:
"标题字颜色"
)
cBtn
!.
alpha
=
0.4
cBtn
?
.
addTarget
(
self
,
action
:
#selector(
closeCarList
)
,
for
:
.
touchUpInside
)
self
.
view
.
addSubview
(
cBtn
!
)
cBtn
?
.
snp_makeConstraints
({
(
make
)
in
make
.
top
.
equalTo
(
carListView
!.
snp_bottom
)
.
offset
(
0
)
make
.
left
.
right
.
bottom
.
equalToSuperview
()
})
}
}
func
setCarListUI
(
index
:
Int
,
bg
:
UIView
){
let
w
=
fullScreenWidth
/
3
let
cols
=
3
let
col
=
index
%
cols
let
row
=
index
/
cols
let
shopX
=
CGFloat
(
col
)
*
w
let
shopY
=
CGFloat
(
row
)
*
w
let
btn
=
UIButton
(
frame
:
CGRect
(
x
:
shopX
,
y
:
shopY
+
44
,
width
:
w
,
height
:
w
))
btn
.
layer
.
borderColor
=
UIColor
(
named
:
"灰色分界线"
)?
.
cgColor
btn
.
layer
.
borderWidth
=
0.5
btn
.
setTitle
(
"
\(
index
)
"
,
for
:
.
normal
)
btn
.
setTitleColor
(
UIColor
.
black
,
for
:
.
normal
)
bg
.
addSubview
(
btn
)
}
//MARK:---预估费用操作
//MARK:---预估费用操作
var
logPayPriceModel
:
registerDataModel
?
var
logPayPriceModel
:
registerDataModel
?
func
getLogPayPrice
()
{
func
getLogPayPrice
()
{
...
@@ -857,7 +940,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -857,7 +940,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
}
}
}
func
addLogisticsOrderUpdata
()
{
func
addLogisticsOrderUpdata
()
{
var
home_delivery_on
=
0
var
home_delivery_on
=
0
if
send
==
0
{
if
send
==
0
{
...
@@ -869,84 +952,84 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -869,84 +952,84 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
else
{
}
else
{
site_delivery
=
0
site_delivery
=
0
}
}
// var infoArr:Array<Any> = []
// var infoArr:Array<Any> = []
// infoArr.append(["order_sn":guanlianDingStr as Any])
// infoArr.append(["order_sn":guanlianDingStr as Any])
// infoArr.append(["sale_plat":guanlianPingStr as Any])
// infoArr.append(["sale_plat":guanlianPingStr as Any])
// infoArr.append(["express_item_name":itemName as Any])
// infoArr.append(["express_item_name":itemName as Any])
// infoArr.append(["weight":weight as Any])
// infoArr.append(["weight":weight as Any])
// infoArr.append(["volume":tiJi as Any])
// infoArr.append(["volume":tiJi as Any])
// infoArr.append(["express_item_qty":count as Any])
// infoArr.append(["express_item_qty":count as Any])
// infoArr.append(["tempture_num":wenduIndex as Any])
// infoArr.append(["tempture_num":wenduIndex as Any])
// infoArr.append(["home_delivery_on":home_delivery_on as Any])
// infoArr.append(["home_delivery_on":home_delivery_on as Any])
// infoArr.append(["site_delivery":site_delivery as Any])
// infoArr.append(["site_delivery":site_delivery as Any])
// infoArr.append(["remark":commend as Any])
// infoArr.append(["remark":commend as Any])
// infoArr.append(["guarantee_value":price as Any])
// infoArr.append(["guarantee_value":price as Any])
// infoArr.append(["fc_flag":0 as Any])
// infoArr.append(["fc_flag":0 as Any])
// infoArr.append(["pickup_time":pickup_time as Any])
// infoArr.append(["pickup_time":pickup_time as Any])
// infoArr.append(["day":day as Any])
// infoArr.append(["day":day as Any])
// infoArr.append(["lc_id":lc_id as Any])
// infoArr.append(["lc_id":lc_id as Any])
let
infodic
=
[
"order_sn"
:
guanlianDingStr
as
Any
,
let
infodic
=
[
"order_sn"
:
guanlianDingStr
as
Any
,
"sale_plat"
:
guanlianPingStr
as
Any
,
"sale_plat"
:
guanlianPingStr
as
Any
,
"express_item_name"
:
itemName
as
Any
,
"express_item_name"
:
itemName
as
Any
,
"weight"
:
weight
as
Any
,
"weight"
:
weight
as
Any
,
"volume"
:
tiJi
as
Any
,
"volume"
:
tiJi
as
Any
,
"express_item_qty"
:
count
as
Any
,
"express_item_qty"
:
count
as
Any
,
"tempture_num"
:
wenduIndex
as
Any
,
"tempture_num"
:
wenduIndex
as
Any
,
"home_delivery_on"
:
home_delivery_on
as
Any
,
"home_delivery_on"
:
home_delivery_on
as
Any
,
"site_delivery"
:
site_delivery
as
Any
,
"site_delivery"
:
site_delivery
as
Any
,
"remark"
:
commend
as
Any
,
"remark"
:
commend
as
Any
,
"guarantee_value"
:
price
as
Any
,
"guarantee_value"
:
price
as
Any
,
"fc_flag"
:
0
as
Any
,
"fc_flag"
:
0
as
Any
,
"pickup_time"
:
pickup_time
as
Any
,
"pickup_time"
:
pickup_time
as
Any
,
"day"
:
day
as
Any
,
"day"
:
day
as
Any
,
"lc_id"
:
lc_id
as
Any
]
"lc_id"
:
lc_id
as
Any
]
// var addrArr:Array<Any> = []
// var addrArr:Array<Any> = []
//
//
// addrArr.append(["r_consignee":sender as Any])
// addrArr.append(["r_consignee":sender as Any])
// addrArr.append(["r_country":1 as Any])
// addrArr.append(["r_country":1 as Any])
// addrArr.append(["r_province":s_province as Any])
// addrArr.append(["r_province":s_province as Any])
// addrArr.append(["r_city":s_city as Any])
// addrArr.append(["r_city":s_city as Any])
// addrArr.append(["r_district":s_district as Any])
// addrArr.append(["r_district":s_district as Any])
// addrArr.append(["r_province_name":s_province_name as Any])
// addrArr.append(["r_province_name":s_province_name as Any])
// addrArr.append(["r_city_name":s_city_name as Any])
// addrArr.append(["r_city_name":s_city_name as Any])
// addrArr.append(["r_district_name":s_district_name as Any])
// addrArr.append(["r_district_name":s_district_name as Any])
// addrArr.append(["r_address":sendAdr as Any])
// addrArr.append(["r_address":sendAdr as Any])
// addrArr.append(["r_mobile":sendPhone as Any])
// addrArr.append(["r_mobile":sendPhone as Any])
// addrArr.append(["s_consignee":receiver as Any])
// addrArr.append(["s_consignee":receiver as Any])
// addrArr.append(["s_country":1 as Any])
// addrArr.append(["s_country":1 as Any])
// addrArr.append(["s_province":r_province as Any])
// addrArr.append(["s_province":r_province as Any])
// addrArr.append(["s_city":r_city as Any])
// addrArr.append(["s_city":r_city as Any])
// addrArr.append(["s_district":r_district as Any])
// addrArr.append(["s_district":r_district as Any])
// addrArr.append(["s_province_name":r_province_name as Any])
// addrArr.append(["s_province_name":r_province_name as Any])
// addrArr.append(["s_city_name":r_city_name as Any])
// addrArr.append(["s_city_name":r_city_name as Any])
// addrArr.append(["s_district_name":r_district_name as Any])
// addrArr.append(["s_district_name":r_district_name as Any])
// addrArr.append(["s_address":receiveAdr as Any])
// addrArr.append(["s_address":receiveAdr as Any])
// addrArr.append(["s_mobile":receivePhone as Any])
// addrArr.append(["s_mobile":receivePhone as Any])
let
addrdic
=
[
"r_consignee"
:
sender
as
Any
,
let
addrdic
=
[
"r_consignee"
:
sender
as
Any
,
"r_country"
:
1
as
Any
,
"r_country"
:
1
as
Any
,
"r_province"
:
s_province
as
Any
,
"r_province"
:
s_province
as
Any
,
"r_city"
:
s_city
as
Any
,
"r_city"
:
s_city
as
Any
,
"r_district"
:
s_district
as
Any
,
"r_district"
:
s_district
as
Any
,
"r_province_name"
:
s_province_name
as
Any
,
"r_province_name"
:
s_province_name
as
Any
,
"r_city_name"
:
s_city_name
as
Any
,
"r_city_name"
:
s_city_name
as
Any
,
"r_district_name"
:
s_district_name
as
Any
,
"r_district_name"
:
s_district_name
as
Any
,
"r_address"
:
sendAdr
as
Any
,
"r_address"
:
sendAdr
as
Any
,
"r_mobile"
:
sendPhone
as
Any
,
"r_mobile"
:
sendPhone
as
Any
,
"s_consignee"
:
receiver
as
Any
,
"s_consignee"
:
receiver
as
Any
,
"s_country"
:
1
as
Any
,
"s_country"
:
1
as
Any
,
"s_province"
:
r_province
as
Any
,
"s_province"
:
r_province
as
Any
,
"s_city"
:
r_city
as
Any
,
"s_city"
:
r_city
as
Any
,
"s_district"
:
r_district
as
Any
,
"s_district"
:
r_district
as
Any
,
"s_province_name"
:
r_province_name
as
Any
,
"s_province_name"
:
r_province_name
as
Any
,
"s_city_name"
:
r_city_name
as
Any
,
"s_city_name"
:
r_city_name
as
Any
,
"s_district_name"
:
r_district_name
as
Any
,
"s_district_name"
:
r_district_name
as
Any
,
"s_address"
:
receiveAdr
as
Any
,
"s_address"
:
receiveAdr
as
Any
,
"s_mobile"
:
receivePhone
as
Any
]
"s_mobile"
:
receivePhone
as
Any
]
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
dic
=
[
"info"
:
infodic
as
Any
,
"addr"
:
addrdic
as
Any
,
"user_token"
:
UserToken
as
Any
]
let
dic
=
[
"info"
:
infodic
as
Any
,
"addr"
:
addrdic
as
Any
,
"user_token"
:
UserToken
as
Any
]
addLogisticsOrder
(
dic
,
success
:
{
(
data
)
in
addLogisticsOrder
(
dic
,
success
:
{
(
data
)
in
...
@@ -958,6 +1041,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -958,6 +1041,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
})
{
(
error
)
in
})
{
(
error
)
in
}
}
}
}
}
}
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.xib
View file @
2d647ca1
<?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_5"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina6_5"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
...
...
GeliBusinessPlatform/ViewController/收支统计/ShouZhiTongJiViewController.swift
View file @
2d647ca1
...
@@ -72,8 +72,8 @@ class ShouZhiTongJiViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -72,8 +72,8 @@ class ShouZhiTongJiViewController: BaseViewController,UITableViewDelegate,UITabl
self
.
bottomHolder
.
remove
(
at
:
1
)
self
.
bottomHolder
.
remove
(
at
:
1
)
}
}
if
model
.
data
?
.
expend
?
.
temp_purchase
!=
nil
{
if
model
.
data
?
.
expend
?
.
temp_purchase
!=
nil
{
self
.
bottom
Ar
r
.
insert
(
"
\(
model
.
data
!.
expend
!.
temp_purchase
!
)
"
,
at
:
1
)
self
.
bottom
Holde
r
.
insert
(
"
\(
model
.
data
!.
expend
!.
temp_purchase
!
)
"
,
at
:
1
)
self
.
bottom
Ar
r
.
remove
(
at
:
2
)
self
.
bottom
Holde
r
.
remove
(
at
:
2
)
}
}
if
model
.
data
?
.
expend
?
.
salary
!=
nil
{
if
model
.
data
?
.
expend
?
.
salary
!=
nil
{
self
.
bottomHolder
.
insert
(
"
\(
model
.
data
!.
expend
!.
salary
!
)
"
,
at
:
2
)
self
.
bottomHolder
.
insert
(
"
\(
model
.
data
!.
expend
!.
salary
!
)
"
,
at
:
2
)
...
...
GeliBusinessPlatform/ViewController/货拉拉/运单详情/cell/HLLTopCell.swift
View file @
2d647ca1
...
@@ -68,14 +68,16 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
...
@@ -68,14 +68,16 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
self
.
selectionStyle
=
.
none
self
.
selectionStyle
=
.
none
}
override
func
layoutIfNeeded
()
{
super
.
layoutIfNeeded
()
scrollView
=
UIScrollView
(
frame
:
scViewBg
.
bounds
)
scrollView
=
UIScrollView
(
frame
:
scViewBg
.
bounds
)
scViewBg
.
addSubview
(
scrollView
!
)
scViewBg
.
addSubview
(
scrollView
!
)
scrollView
?
.
isPagingEnabled
=
true
scrollView
?
.
isPagingEnabled
=
true
scrollView
?
.
showsHorizontalScrollIndicator
=
false
scrollView
?
.
showsHorizontalScrollIndicator
=
false
scrollView
?
.
delegate
=
self
scrollView
?
.
delegate
=
self
}
override
func
layoutIfNeeded
()
{
super
.
layoutIfNeeded
()
var
num
=
datas
.
count
-
1
var
num
=
datas
.
count
-
1
if
num
>
5
{
if
num
>
5
{
num
=
5
num
=
5
...
...
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