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
17b05726
Commit
17b05726
authored
Nov 12, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成分销订单详情
parent
531412ff
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
312 additions
and
14 deletions
+312
-14
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+8
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.swift
...wController/分销订单管理/RetailManageDetailViewController.swift
+223
-0
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.xib
...iewController/分销订单管理/RetailManageDetailViewController.xib
+52
-0
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageViewController.swift
...rm/ViewController/分销订单管理/RetailManageViewController.swift
+6
-0
GeliBusinessPlatform/ViewController/订单详情/GLKHCell.swift
GeliBusinessPlatform/ViewController/订单详情/GLKHCell.swift
+3
-1
GeliBusinessPlatform/ViewController/订单详情/GLKHCell.xib
GeliBusinessPlatform/ViewController/订单详情/GLKHCell.xib
+6
-4
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.xib
...nessPlatform/ViewController/订单详情/OrderDViewController.xib
+9
-5
GeliBusinessPlatform/ViewController/订单详情/OrderDViewSumFooter.xib
...inessPlatform/ViewController/订单详情/OrderDViewSumFooter.xib
+5
-4
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
17b05726
...
...
@@ -634,6 +634,8 @@
F9DDBE922457BFEC00A32CB2
/* HUDEXT.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9DDBE912457BFEC00A32CB2
/* HUDEXT.swift */
;
};
F9DDBE962457D3EC00A32CB2
/* WebViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9DDBE942457D3EC00A32CB2
/* WebViewController.swift */
;
};
F9DDBE972457D3EC00A32CB2
/* WebViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9DDBE952457D3EC00A32CB2
/* WebViewController.xib */
;
};
F9ECC928255CD7FD00990B61
/* RetailManageDetailViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9ECC926255CD7FD00990B61
/* RetailManageDetailViewController.swift */
;
};
F9ECC929255CD7FD00990B61
/* RetailManageDetailViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9ECC927255CD7FD00990B61
/* RetailManageDetailViewController.xib */
;
};
F9F2866724CA95FD00959142
/* TitleTimeHeaderFooterView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9F2866624CA95FD00959142
/* TitleTimeHeaderFooterView.swift */
;
};
F9FA9C4D255B8033004034B3
/* RetailManageHeaderView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9FA9C4C255B8033004034B3
/* RetailManageHeaderView.swift */
;
};
F9FA9C55255B858C004034B3
/* RetailManageFooterView.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9FA9C54255B858C004034B3
/* RetailManageFooterView.xib */
;
};
...
...
@@ -1354,6 +1356,8 @@
F9DDBE912457BFEC00A32CB2
/* HUDEXT.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
HUDEXT.swift
;
sourceTree
=
"<group>"
;
};
F9DDBE942457D3EC00A32CB2
/* WebViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
WebViewController.swift
;
sourceTree
=
"<group>"
;
};
F9DDBE952457D3EC00A32CB2
/* WebViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
WebViewController.xib
;
sourceTree
=
"<group>"
;
};
F9ECC926255CD7FD00990B61
/* RetailManageDetailViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
RetailManageDetailViewController.swift
;
sourceTree
=
"<group>"
;
};
F9ECC927255CD7FD00990B61
/* RetailManageDetailViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
RetailManageDetailViewController.xib
;
sourceTree
=
"<group>"
;
};
F9F2866624CA95FD00959142
/* TitleTimeHeaderFooterView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TitleTimeHeaderFooterView.swift
;
sourceTree
=
"<group>"
;
};
F9FA9C4C255B8033004034B3
/* RetailManageHeaderView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
RetailManageHeaderView.swift
;
sourceTree
=
"<group>"
;
};
F9FA9C54255B858C004034B3
/* RetailManageFooterView.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
RetailManageFooterView.xib
;
sourceTree
=
"<group>"
;
};
...
...
@@ -3111,6 +3115,8 @@
F9A1D4A9255B7AC50018DA8A
/* View */
,
F970B3652550F5AA0026F9D5
/* RetailManageViewController.swift */
,
F970B3662550F5AA0026F9D5
/* RetailManageViewController.xib */
,
F9ECC926255CD7FD00990B61
/* RetailManageDetailViewController.swift */
,
F9ECC927255CD7FD00990B61
/* RetailManageDetailViewController.xib */
,
);
path
=
"分销订单管理"
;
sourceTree
=
"<group>"
;
...
...
@@ -3561,6 +3567,7 @@
E0C4F4A8244EC82A00CC7E2F
/* TitleAndBtnCell.xib in Resources */
,
F97E73322552A22000A11F98
/* DistributorSettingAlertView.xib in Resources */
,
E02FD9F72455790800E10E27
/* DiZhiGuanLiCell.xib in Resources */
,
F9ECC929255CD7FD00990B61
/* RetailManageDetailViewController.xib in Resources */
,
F9C2F6F9254FE14900516E00
/* DistributorSettingViewController.xib in Resources */
,
E0BE8AA5245AA31400E80134
/* YingFuZhangKuanXQViewController.xib in Resources */
,
E0F97B1B2451951D001BD600
/* ShangPinGguiGeCell.xib in Resources */
,
...
...
@@ -3679,6 +3686,7 @@
F956D5B2246A2D9C003FF510
/* LMNDraft.m in Sources */
,
E09B03B62445B85A00211A51
/* LoginViewController.swift in Sources */
,
E02FD9FA24557E8600E10E27
/* XinZengDiZhiViewController.swift in Sources */
,
F9ECC928255CD7FD00990B61
/* RetailManageDetailViewController.swift in Sources */
,
E020632B246CDD36007A40C4
/* OrderDViewFooterView.swift in Sources */
,
F950FDDE24518B9500C40530
/* FSCalendarWeekdayView.m in Sources */
,
F9A4AB6E24C927E900094BD1
/* LogisticsCostDetailViewController.swift in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
17b05726
No preview for this file type
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.swift
0 → 100644
View file @
17b05726
//
// RetailManageDetailViewController.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/11/12.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
RetailManageDetailViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
let
goodsTitleArr
=
[
"商品合计"
]
let
fenxiaoTitleArr
=
[
"分销角色"
,
"结算方式"
,
"佣金方式"
,
"佣金结算时间"
,
"佣金分销结算"
]
let
orderTitleArr
=
[
"订单编号"
,
"下单时间"
,
"订单来源"
,
"支付方式"
,
"支付状态"
,
"买家留言"
,
"订单备注"
]
@IBOutlet
weak
var
listView
:
UITableView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"分销订单详情"
self
.
view
.
addSubview
(
navbar
)
SetTopFrameView
(
view
:
listView
,
btmView
:
self
.
view
)
listView
.
separatorStyle
=
.
none
listView
.
register
(
UINib
(
nibName
:
"GLKHCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"GLKHCell"
)
listView
.
register
(
UINib
(
nibName
:
"XuanZeShangPinCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"XuanZeShangPinCell"
)
listView
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTFCell"
)
loadData
()
}
//MARK:--加载数据
var
orderId
:
Int
?
//订单编号
var
dataMdoel
:
OrderDetailDataModel
?
=
nil
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
func
loadData
()
{
HUD
.
flash
(
.
progress
)
orderDetail
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderId
as
Any
],
success
:
{
[
self
]
(
data
)
in
HUD
.
hide
(
animated
:
true
)
let
dataM
=
data
as!
OrderDetailModel
self
.
dataMdoel
=
dataM
.
data
self
.
listView
.
reloadData
()
})
{
(
error
)
in
self
.
listView
.
isHidden
=
true
}
}
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
if
self
.
dataMdoel
==
nil
{
return
0
}
return
5
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
switch
section
{
case
0
:
return
1
case
1
:
return
(
self
.
dataMdoel
?
.
order_goods
!.
count
)
!
//商品
case
2
:
return
goodsTitleArr
.
count
case
3
:
return
fenxiaoTitleArr
.
count
case
4
:
return
orderTitleArr
.
count
default
:
return
0
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
cell
.
textTF
.
isUserInteractionEnabled
=
false
switch
indexPath
.
section
{
case
0
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"GLKHCell"
)
as!
GLKHCell
cell
.
nameLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
user_name
cell
.
contentLbl
.
text
=
""
cell
.
gotoImgV
.
isHidden
=
true
return
cell
case
1
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
cell
.
priceLbl
.
isHidden
=
false
cell
.
selectBtn
.
isHidden
=
true
let
rowModel
=
self
.
dataMdoel
?
.
order_goods
!
[
indexPath
.
row
]
cell
.
nameLbl
.
text
=
rowModel
?
.
goods_name
cell
.
iconImg
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
rowModel
?
.
goods_thumb
)
!
))
if
rowModel
?
.
goods_attr
!=
nil
{
cell
.
detailLbl
.
text
=
(
rowModel
?
.
goods_attr
)
!
}
else
{
cell
.
detailLbl
.
text
=
"-"
}
cell
.
detailLbl2
.
text
=
"x"
+
StringByInt
(
number
:
(
rowModel
?
.
cart_number
!
)
!
)
cell
.
priceLbl
.
text
=
"¥"
+
(
rowModel
?
.
goods_price
)
!
+
" "
+
"佣金"
+
(
rowModel
?
.
commission_val
)
!
+
"元"
return
cell
case
2
:
cell
.
nameLbl
.
text
=
goodsTitleArr
[
indexPath
.
row
]
cell
.
textTF
.
text
=
"¥"
+
(
self
.
dataMdoel
?
.
order_res
!.
goods_amount
)
!
case
3
:
cell
.
nameLbl
.
text
=
fenxiaoTitleArr
[
indexPath
.
row
]
switch
indexPath
.
row
{
case
0
:
if
self
.
dataMdoel
?
.
order_res
?
.
dbt_target
==
1
{
cell
.
textTF
.
text
=
"供应商"
+
"("
+
(
self
.
dataMdoel
?
.
order_res
?
.
target_name
)
!
+
")"
}
else
if
self
.
dataMdoel
?
.
order_res
?
.
dbt_target
==
2
{
cell
.
textTF
.
text
=
"分销商"
+
"("
+
(
self
.
dataMdoel
?
.
order_res
?
.
target_name
)
!
+
")"
}
else
if
self
.
dataMdoel
?
.
order_res
?
.
dbt_target
==
3
{
cell
.
textTF
.
text
=
"分销员"
+
"("
+
(
self
.
dataMdoel
?
.
order_res
?
.
target_name
)
!
+
")"
}
else
{
cell
.
textTF
.
text
=
"-"
}
case
1
:
cell
.
textTF
.
text
=
"结算方式"
case
2
:
cell
.
textTF
.
text
=
"佣金方式"
case
3
:
cell
.
textTF
.
text
=
"佣金结算时间"
case
4
:
cell
.
textTF
.
text
=
"佣金分销结算"
default
:
cell
.
textTF
.
text
=
""
break
}
case
4
:
cell
.
nameLbl
.
text
=
orderTitleArr
[
indexPath
.
row
]
switch
indexPath
.
row
{
case
0
:
cell
.
textTF
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
order_sn
case
1
:
cell
.
textTF
.
text
=
TimeByDouble
(
sender
:
(
self
.
dataMdoel
?
.
order_res
?
.
add_time
!
)
!
)
case
2
:
cell
.
textTF
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
from_cn
case
3
:
cell
.
textTF
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
pay_type_cn
case
4
:
cell
.
textTF
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
pay_status_cn
case
5
:
cell
.
textTF
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
postscript
if
self
.
dataMdoel
?
.
order_res
?
.
postscript
?
.
count
==
0
{
cell
.
textTF
.
text
=
"-"
}
case
6
:
cell
.
textTF
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
order_postscript
if
self
.
dataMdoel
?
.
order_res
?
.
order_postscript
?
.
count
==
0
{
cell
.
textTF
.
text
=
"-"
}
default
:
cell
.
textTF
.
text
=
""
break
}
default
:
break
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
==
1
{
return
120
}
return
49
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
if
section
==
3
||
section
==
4
{
return
39
}
return
0.5
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
()
view
.
subviews
.
forEach
{
(
subV
)
in
subV
.
removeFromSuperview
()
}
switch
section
{
case
3
:
let
view1
=
HeaderOnlyTitleView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
39
))
view1
.
nameLbl
.
text
=
"分销信息"
view
.
addSubview
(
view1
)
return
view
case
4
:
let
view1
=
HeaderOnlyTitleView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
39
))
view1
.
nameLbl
.
text
=
"订单信息"
view
.
addSubview
(
view1
)
return
view
default
:
break
}
return
view
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
()
view
.
subviews
.
forEach
{
(
subV
)
in
subV
.
removeFromSuperview
()
}
if
section
==
2
{
let
view
=
OrderDViewSumFooter
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
59
))
view
.
priceLbl
.
text
=
"¥"
+
(
self
.
dataMdoel
?
.
order_res
!.
sum_amount
)
!
+
"(总佣金"
+
(
self
.
dataMdoel
?
.
order_res
!.
sum_commission_val
)
!
+
"元)"
return
view
}
return
view
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
if
section
==
2
{
return
59
}
if
section
==
3
{
return
10
}
return
0.5
}
}
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.xib
0 → 100644
View file @
17b05726
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17156"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17126"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"RetailManageDetailViewController"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"listView"
destination=
"tYc-sK-fji"
id=
"eiV-LO-a0h"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
clearsContextBeforeDrawing=
"NO"
contentMode=
"scaleToFill"
id=
"i5M-Pr-FkT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"18"
sectionFooterHeight=
"18"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tYc-sK-fji"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"818"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"Dsh-hL-pEX"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"hqL-ek-47R"
/>
</connections>
</tableView>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"tYc-sK-fji"
secondAttribute=
"bottom"
id=
"Vgw-Vv-CZV"
/>
<constraint
firstItem=
"tYc-sK-fji"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"X0H-Pm-zR2"
/>
<constraint
firstItem=
"tYc-sK-fji"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"bO3-PG-SRW"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"tYc-sK-fji"
secondAttribute=
"trailing"
id=
"tby-ZM-jOk"
/>
</constraints>
<point
key=
"canvasLocation"
x=
"58"
y=
"110"
/>
</view>
</objects>
<resources>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageViewController.swift
View file @
17b05726
...
...
@@ -309,6 +309,12 @@ class RetailManageViewController: BaseViewController,UISearchBarDelegate,SearchB
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
vc
=
RetailManageDetailViewController
()
let
goodArrModel
=
self
.
dataArr
[
indexPath
.
section
]
vc
.
orderId
=
goodArrModel
.
order_id
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
...
...
GeliBusinessPlatform/ViewController/订单详情/GLKHCell.swift
View file @
17b05726
...
...
@@ -9,7 +9,9 @@
import
UIKit
class
GLKHCell
:
UITableViewCell
{
@IBOutlet
weak
var
gotoImgV
:
UIImageView
!
@IBOutlet
weak
var
titleIconImgV
:
UIImageView
!
@IBOutlet
weak
var
contentLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
override
func
awakeFromNib
()
{
...
...
GeliBusinessPlatform/ViewController/订单详情/GLKHCell.xib
View file @
17b05726
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097.2
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
7156
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
7126
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
...
@@ -55,16 +55,18 @@
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"contentLbl"
destination=
"Kh6-Hv-73X"
id=
"QlA-TV-Gyo"
/>
<outlet
property=
"gotoImgV"
destination=
"mzP-Q2-sl2"
id=
"aJ4-Pq-Cpm"
/>
<outlet
property=
"nameLbl"
destination=
"xEs-UK-3s6"
id=
"li2-bd-2cg"
/>
<outlet
property=
"titleIconImgV"
destination=
"fBF-NP-iMf"
id=
"S9A-BB-mKF"
/>
</connections>
<point
key=
"canvasLocation"
x=
"
132"
y=
"102
"
/>
<point
key=
"canvasLocation"
x=
"
-139"
y=
"100
"
/>
</tableViewCell>
</objects>
<resources>
<image
name=
"jinru"
width=
"13"
height=
"23"
/>
<image
name=
"kehu"
width=
"17"
height=
"18.5"
/>
<namedColor
name=
"多选按钮字体颜色"
>
<color
red=
"0.41
200000047683716"
green=
"0.41200000047683716"
blue=
"0.41200000047683716
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.41
176470588235292"
green=
"0.41176470588235292"
blue=
"0.41176470588235292
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.xib
View file @
17b05726
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
7156
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
7126
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
...
...
@@ -25,11 +26,11 @@
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"n9R-tn-hVY"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uzE-Ha-UZM"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"Scu-he-Peb"
/>
</constraints>
...
...
@@ -43,6 +44,7 @@
</connections>
</tableView>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"uzE-Ha-UZM"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"LYs-Mt-nSg"
/>
...
...
@@ -57,7 +59,6 @@
<constraint
firstItem=
"Ynh-hV-MLH"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"sSR-ql-biJ"
/>
<constraint
firstItem=
"Ynh-hV-MLH"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"sgr-ja-cQ2"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"138.61607142857142"
/>
</view>
</objects>
...
...
@@ -65,5 +66,8 @@
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/订单详情/OrderDViewSumFooter.xib
View file @
17b05726
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
5702
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
7156
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17126"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"OrderDViewSumFooter"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"OrderDViewSumFooter"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"priceLbl"
destination=
"wyj-le-YWl"
id=
"O2i-PV-aIt"
/>
</connections>
...
...
@@ -31,7 +32,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"h2l-7X-TcJ"
>
<rect
key=
"frame"
x=
"26
3"
y=
"1"
width=
"66
"
height=
"48"
/>
<rect
key=
"frame"
x=
"26
4"
y=
"1"
width=
"65
"
height=
"48"
/>
<attributedString
key=
"attributedText"
>
<fragment
content=
"订单合计:"
>
<attributes>
...
...
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