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
2ed63472
Commit
2ed63472
authored
May 14, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充注释
parent
b8531ea7
Changes
36
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
738 additions
and
150 deletions
+738
-150
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+40
-8
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/AppDelegate.swift
GeliBusinessPlatform/AppDelegate.swift
+7
-1
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
+9
-5
GeliBusinessPlatform/View/Cell/AdressSelectCell.xib
GeliBusinessPlatform/View/Cell/AdressSelectCell.xib
+1
-1
GeliBusinessPlatform/View/Cell/CommendCell.swift
GeliBusinessPlatform/View/Cell/CommendCell.swift
+7
-7
GeliBusinessPlatform/View/Cell/CommendCell.xib
GeliBusinessPlatform/View/Cell/CommendCell.xib
+21
-20
GeliBusinessPlatform/View/Cell/DaiQueRenCell.xib
GeliBusinessPlatform/View/Cell/DaiQueRenCell.xib
+2
-2
GeliBusinessPlatform/View/Cell/GuanLianKeHuCell.swift
GeliBusinessPlatform/View/Cell/GuanLianKeHuCell.swift
+2
-2
GeliBusinessPlatform/View/Cell/KuWeiCell.xib
GeliBusinessPlatform/View/Cell/KuWeiCell.xib
+1
-1
GeliBusinessPlatform/View/Cell/MsgCenterCell.xib
GeliBusinessPlatform/View/Cell/MsgCenterCell.xib
+1
-1
GeliBusinessPlatform/View/Cell/OnlyLabelCell.xib
GeliBusinessPlatform/View/Cell/OnlyLabelCell.xib
+1
-1
GeliBusinessPlatform/View/Cell/WenDuCell.xib
GeliBusinessPlatform/View/Cell/WenDuCell.xib
+1
-1
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
+4
-0
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
+29
-0
GeliBusinessPlatform/View/HeaderSelectView/HeaderSelectView.xib
...sinessPlatform/View/HeaderSelectView/HeaderSelectView.xib
+3
-3
GeliBusinessPlatform/View/HeaderSelectView/SelectContentView.xib
...inessPlatform/View/HeaderSelectView/SelectContentView.xib
+2
-2
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/JiTuoWuXinXiView.swift
...atform/ViewController/代客下单(货运)/下运单/JiTuoWuXinXiView.swift
+17
-1
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/JiTuoWuXinXiView.xib
...Platform/ViewController/代客下单(货运)/下运单/JiTuoWuXinXiView.xib
+22
-12
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+1
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+30
-34
GeliBusinessPlatform/ViewController/新增、编辑品牌/PinPaiListViewController.swift
...orm/ViewController/新增、编辑品牌/PinPaiListViewController.swift
+26
-5
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.xib
...tform/ViewController/新增规格/CreatNewSpecsViewController.xib
+0
-0
GeliBusinessPlatform/ViewController/订单管理/关联客户/GuanLianKehuVC.swift
...essPlatform/ViewController/订单管理/关联客户/GuanLianKehuVC.swift
+31
-4
GeliBusinessPlatform/ViewController/订单管理/关联客户/GuanLianKehuVC.xib
...inessPlatform/ViewController/订单管理/关联客户/GuanLianKehuVC.xib
+5
-2
GeliBusinessPlatform/ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
.../ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
+40
-37
GeliBusinessPlatform/ViewController/订单详情/HeaderOnlyTitleView.swift
...essPlatform/ViewController/订单详情/HeaderOnlyTitleView.swift
+41
-0
GeliBusinessPlatform/ViewController/订单详情/HeaderOnlyTitleView.xib
...inessPlatform/ViewController/订单详情/HeaderOnlyTitleView.xib
+46
-0
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.xib
...nessPlatform/ViewController/订单详情/OrderDViewController.xib
+0
-0
GeliBusinessPlatform/ViewController/订单详情/OrderDViewFooterView.swift
...ssPlatform/ViewController/订单详情/OrderDViewFooterView.swift
+49
-0
GeliBusinessPlatform/ViewController/订单详情/OrderDViewFooterView.xib
...nessPlatform/ViewController/订单详情/OrderDViewFooterView.xib
+52
-0
GeliBusinessPlatform/ViewController/订单详情/OrderDViewSumFooter.swift
...essPlatform/ViewController/订单详情/OrderDViewSumFooter.swift
+41
-0
GeliBusinessPlatform/ViewController/订单详情/OrderDViewSumFooter.xib
...inessPlatform/ViewController/订单详情/OrderDViewSumFooter.xib
+86
-0
GeliBusinessPlatform/ViewController/订单详情/TitleAndLblView.swift
...usinessPlatform/ViewController/订单详情/TitleAndLblView.swift
+50
-0
GeliBusinessPlatform/ViewController/订单详情/TitleAndLblView.xib
GeliBusinessPlatform/ViewController/订单详情/TitleAndLblView.xib
+70
-0
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
2ed63472
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
2ed63472
No preview for this file type
GeliBusinessPlatform/AppDelegate.swift
View file @
2ed63472
...
@@ -5,7 +5,13 @@
...
@@ -5,7 +5,13 @@
// Created by junye lu on 2020/4/14.
// Created by junye lu on 2020/4/14.
// Copyright © 2020 junye lu. All rights reserved.
// Copyright © 2020 junye lu. All rights reserved.
//
//
//融云账号&融云密码
//18924107259
//81338860geLI
//
//苹果账号&密码
//notice@gelifood.com
//81338860^geLi
import
UIKit
import
UIKit
import
RongIMKit
import
RongIMKit
...
...
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
View file @
2ed63472
...
@@ -10,13 +10,17 @@ import UIKit
...
@@ -10,13 +10,17 @@ import UIKit
import
IQKeyboardManagerSwift
import
IQKeyboardManagerSwift
@objc
protocol
GLAlertSelectViewDelegate
{
@objc
protocol
GLAlertSelectViewDelegate
{
@objc
optional
func
GLAlertSelectViewClick
(
selectNum
:
NSString
,
view
:
GLAlertSelectView
)
//普通状态(单多选)
@objc
optional
func
GLAlertMoreSelectViewClick
(
sender
:
NSArray
,
view
:
UIView
)
@objc
optional
func
GLAlertSelectViewClick
(
selectNum
:
NSString
,
view
:
GLAlertSelectView
)
//单选
@objc
optional
func
GLAlertSelectViewClose
(
sender
:
UIButton
)
@objc
optional
func
GLAlertMoreSelectViewClick
(
sender
:
NSArray
,
view
:
UIView
)
//多选
//通用
@objc
optional
func
GLAlertSelectViewClose
(
sender
:
UIButton
)
//关闭
//库位专用
//删除
@objc
optional
func
GLAlertSelectDelAction
(
sender
:
Array
<
Any
>
)
@objc
optional
func
GLAlertSelectDelAction
(
sender
:
Array
<
Any
>
)
//编辑
@objc
optional
func
GLAlertSelectEditAction
(
sender
:
Int
)
@objc
optional
func
GLAlertSelectEditAction
(
sender
:
Int
)
//库位专用
@objc
optional
func
KuWeiDataArr
(
sender
:
Array
<
Any
>
)
@objc
optional
func
KuWeiDataArr
(
sender
:
Array
<
Any
>
)
}
}
class
GLAlertSelectView
:
UIView
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndSelectCellDelegate
,
KuWeiCellCellDelegate
{
class
GLAlertSelectView
:
UIView
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndSelectCellDelegate
,
KuWeiCellCellDelegate
{
...
...
GeliBusinessPlatform/View/Cell/AdressSelectCell.xib
View file @
2ed63472
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"白色背景色"
>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
GeliBusinessPlatform/View/Cell/CommendCell.swift
View file @
2ed63472
...
@@ -8,11 +8,12 @@
...
@@ -8,11 +8,12 @@
import
UIKit
import
UIKit
@objc
protocol
CommendCellDelegate
{
@objc
protocol
CommendCellDelegate
{
@objc
optional
func
CommendCellSendStr
(
content
:
String
)
@objc
optional
func
CommendCellSendStr
(
content
:
String
,
cell
:
CommendCell
)
@objc
optional
func
CommendCellSendH
(
height
:
CGFloat
)
@objc
optional
func
CommendCellSendH
(
height
:
CGFloat
,
cell
:
CommendCell
)
}
}
class
CommendCell
:
UITableViewCell
,
AutoTextFieldDelegate
{
class
CommendCell
:
UITableViewCell
,
AutoTextFieldDelegate
{
var
delegate
:
CommendCellDelegate
?
var
delegate
:
CommendCellDelegate
?
@IBOutlet
weak
var
editImg
:
UIImageView
!
@IBOutlet
weak
var
line
:
UIView
!
@IBOutlet
weak
var
line
:
UIView
!
@IBOutlet
weak
var
placeLbl
:
UILabel
!
@IBOutlet
weak
var
placeLbl
:
UILabel
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
...
@@ -28,7 +29,7 @@ class CommendCell: UITableViewCell,AutoTextFieldDelegate{
...
@@ -28,7 +29,7 @@ class CommendCell: UITableViewCell,AutoTextFieldDelegate{
@objc
func
tapAction
(){
@objc
func
tapAction
(){
if
autoTf
==
nil
{
if
autoTf
==
nil
{
let
textV
=
AutoTextField
(
frame
:
CGRect
(
x
:
titleLbl
.
frame
.
maxX
+
15
,
y
:
13
,
width
:
fullScreenWidth
-
30
-
titleLbl
.
frame
.
maxX
,
height
:
18.5
),
placeholder
:
""
)
let
textV
=
AutoTextField
(
frame
:
CGRect
(
x
:
titleLbl
.
frame
.
maxX
+
15
,
y
:
13
,
width
:
fullScreenWidth
-
titleLbl
.
frame
.
maxX
-
editImg
.
bounds
.
size
.
width
-
38
,
height
:
18.5
),
placeholder
:
""
)
textV
.
backgroundColor
=
UIColor
.
clear
textV
.
backgroundColor
=
UIColor
.
clear
textV
.
tfDelegate
=
self
textV
.
tfDelegate
=
self
textV
.
textColor
=
UIColor
.
black
textV
.
textColor
=
UIColor
.
black
...
@@ -43,18 +44,17 @@ class CommendCell: UITableViewCell,AutoTextFieldDelegate{
...
@@ -43,18 +44,17 @@ class CommendCell: UITableViewCell,AutoTextFieldDelegate{
}
else
{
}
else
{
placeLbl
.
isHidden
=
false
placeLbl
.
isHidden
=
false
}
}
delegate
?
.
CommendCellSendStr
?(
content
:
str
)
delegate
?
.
CommendCellSendStr
?(
content
:
str
,
cell
:
self
)
}
}
func
sendHeight
(
height
:
CGFloat
)
{
func
sendHeight
(
height
:
CGFloat
)
{
autoTf
?
.
frame
=
CGRect
(
x
:
titleLbl
.
frame
.
maxX
+
15
,
y
:
13
,
width
:
fullScreenWidth
-
30
-
titleLbl
.
frame
.
maxX
,
height
:
height
)
autoTf
?
.
frame
=
CGRect
(
x
:
titleLbl
.
frame
.
maxX
+
15
,
y
:
13
,
width
:
fullScreenWidth
-
titleLbl
.
frame
.
maxX
-
editImg
.
bounds
.
size
.
width
-
38
,
height
:
height
)
titleLbl
.
snp
.
updateConstraints
{
(
make
)
in
titleLbl
.
snp
.
updateConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
autoTf
!.
snp_top
)
make
.
top
.
equalTo
(
autoTf
!.
snp_top
)
make
.
left
.
equalTo
(
15
)
make
.
left
.
equalTo
(
15
)
make
.
right
.
equalTo
(
autoTf
!.
snp_left
)
.
offset
(
-
15
)
make
.
right
.
equalTo
(
autoTf
!.
snp_left
)
.
offset
(
-
15
)
make
.
height
.
equalTo
(
18.5
)
make
.
height
.
equalTo
(
18.5
)
}
}
delegate
?
.
CommendCellSendH
?(
height
:
height
,
cell
:
self
)
delegate
?
.
CommendCellSendH
?(
height
:
height
)
}
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
super
.
setSelected
(
selected
,
animated
:
animated
)
...
...
GeliBusinessPlatform/View/Cell/CommendCell.xib
View file @
2ed63472
...
@@ -18,20 +18,13 @@
...
@@ -18,20 +18,13 @@
<autoresizingMask
key=
"autoresizingMask"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"商品文案"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Mid-SG-EgI"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"商品文案"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Mid-SG-EgI"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"54"
height=
"16"
/>
<rect
key=
"frame"
x=
"15"
y=
"15.5"
width=
"54"
height=
"16"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"16"
id=
"Iy4-9W-r0M"
/>
<constraint
firstAttribute=
"width"
constant=
"54"
id=
"L3p-RO-k6S"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"请输入商品文案"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"S58-2t-uxP"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
verticalHuggingPriority=
"251"
text=
"请输入商品文案"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"S58-2t-uxP"
>
<rect
key=
"frame"
x=
"84"
y=
"15"
width=
"299"
height=
"18.5"
/>
<rect
key=
"frame"
x=
"79"
y=
"15.5"
width=
"260"
height=
"16"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"a6L-cc-t4K"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -40,23 +33,30 @@
...
@@ -40,23 +33,30 @@
<rect
key=
"frame"
x=
"15"
y=
"46"
width=
"383"
height=
"1"
/>
<rect
key=
"frame"
x=
"15"
y=
"46"
width=
"383"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"
NOp-ze-TNS
"
/>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"
s86-6l-Uie
"
/>
</constraints>
</constraints>
</view>
</view>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"bianji"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"6Ne-nS-Lsd"
>
<rect
key=
"frame"
x=
"349"
y=
"7"
width=
"34"
height=
"33"
/>
</imageView>
</subviews>
</subviews>
<constraints>
<constraints>
<constraint
firstItem=
"S58-2t-uxP"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"8IR-MS-yh2"
/>
<constraint
firstItem=
"W34-St-iXm"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"EOY-Cn-ImR"
/>
<constraint
firstItem=
"Mid-SG-EgI"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"Dpk-qZ-nAj"
/>
<constraint
firstItem=
"S58-2t-uxP"
firstAttribute=
"leading"
secondItem=
"Mid-SG-EgI"
secondAttribute=
"trailing"
constant=
"10"
id=
"IOa-81-GCI"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"W34-St-iXm"
secondAttribute=
"trailing"
id=
"G7X-xt-Dt3"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"W34-St-iXm"
secondAttribute=
"trailing"
id=
"PHg-Eb-qsM"
/>
<constraint
firstItem=
"S58-2t-uxP"
firstAttribute=
"leading"
secondItem=
"Mid-SG-EgI"
secondAttribute=
"trailing"
constant=
"15"
id=
"S9y-Hy-358"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"6Ne-nS-Lsd"
secondAttribute=
"trailing"
constant=
"15"
id=
"etZ-PX-yiw"
/>
<constraint
firstItem=
"W34-St-iXm"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"ZsV-6P-jss"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"W34-St-iXm"
secondAttribute=
"bottom"
id=
"fim-KV-uL8"
/>
<constraint
firstItem=
"Mid-SG-EgI"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"jKX-cQ-WnO"
/>
<constraint
firstItem=
"Mid-SG-EgI"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"hWR-BK-AJf"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"W34-St-iXm"
secondAttribute=
"bottom"
id=
"lvw-eS-fBm"
/>
<constraint
firstItem=
"Mid-SG-EgI"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"p0n-C2-Ksj"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"S58-2t-uxP"
secondAttribute=
"trailing"
constant=
"15"
id=
"pJe-Zt-UoR"
/>
<constraint
firstItem=
"6Ne-nS-Lsd"
firstAttribute=
"centerY"
secondItem=
"Mid-SG-EgI"
secondAttribute=
"centerY"
id=
"rwM-od-ety"
/>
<constraint
firstItem=
"6Ne-nS-Lsd"
firstAttribute=
"leading"
secondItem=
"S58-2t-uxP"
secondAttribute=
"trailing"
constant=
"10"
id=
"taD-Aa-9Fs"
/>
<constraint
firstItem=
"S58-2t-uxP"
firstAttribute=
"centerY"
secondItem=
"Mid-SG-EgI"
secondAttribute=
"centerY"
id=
"vNo-bd-uqa"
/>
</constraints>
</constraints>
</tableViewCellContentView>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<connections>
<outlet
property=
"editImg"
destination=
"6Ne-nS-Lsd"
id=
"iqr-X8-YLO"
/>
<outlet
property=
"line"
destination=
"W34-St-iXm"
id=
"g7P-SI-NBa"
/>
<outlet
property=
"placeLbl"
destination=
"S58-2t-uxP"
id=
"vAI-GJ-LWk"
/>
<outlet
property=
"placeLbl"
destination=
"S58-2t-uxP"
id=
"vAI-GJ-LWk"
/>
<outlet
property=
"titleLbl"
destination=
"Mid-SG-EgI"
id=
"fkz-F3-jJH"
/>
<outlet
property=
"titleLbl"
destination=
"Mid-SG-EgI"
id=
"fkz-F3-jJH"
/>
</connections>
</connections>
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
</tableViewCell>
</tableViewCell>
</objects>
</objects>
<resources>
<resources>
<image
name=
"bianji"
width=
"17"
height=
"16.5"
/>
<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>
...
@@ -71,7 +72,7 @@
...
@@ -71,7 +72,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
</resources>
</resources>
</document>
</document>
GeliBusinessPlatform/View/Cell/DaiQueRenCell.xib
View file @
2ed63472
<?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=
"1
6096
"
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
5702
"
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>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6086
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
5704
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
...
GeliBusinessPlatform/View/Cell/GuanLianKeHuCell.swift
View file @
2ed63472
...
@@ -8,12 +8,12 @@
...
@@ -8,12 +8,12 @@
import
UIKit
import
UIKit
@objc
protocol
GuanLianKeHuCellDelegate
{
@objc
protocol
GuanLianKeHuCellDelegate
{
@objc
optional
func
btnSelect
(
sender
:
UIButton
)
@objc
optional
func
btnSelect
(
sender
:
UIButton
,
cell
:
GuanLianKeHuCell
)
}
}
class
GuanLianKeHuCell
:
UITableViewCell
{
class
GuanLianKeHuCell
:
UITableViewCell
{
@IBAction
func
btnClick
(
_
sender
:
UIButton
)
{
@IBAction
func
btnClick
(
_
sender
:
UIButton
)
{
delegate
?
.
btnSelect
?(
sender
:
sender
)
delegate
?
.
btnSelect
?(
sender
:
sender
,
cell
:
self
)
}
}
@IBOutlet
weak
var
imgBtn
:
UIButton
!
@IBOutlet
weak
var
imgBtn
:
UIButton
!
var
delegate
:
GuanLianKeHuCellDelegate
?
var
delegate
:
GuanLianKeHuCellDelegate
?
...
...
GeliBusinessPlatform/View/Cell/KuWeiCell.xib
View file @
2ed63472
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
</objects>
</objects>
<resources>
<resources>
<image
name=
"bianji"
width=
"17"
height=
"16.5"
/>
<image
name=
"bianji"
width=
"17"
height=
"16.5"
/>
<image
name=
"shanchu"
width=
"1
5"
height=
"1
5"
/>
<image
name=
"shanchu"
width=
"1
7"
height=
"17.
5"
/>
<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>
...
...
GeliBusinessPlatform/View/Cell/MsgCenterCell.xib
View file @
2ed63472
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
<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=
"标题字颜色"
>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.180
3921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.180
00000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
GeliBusinessPlatform/View/Cell/OnlyLabelCell.xib
View file @
2ed63472
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</objects>
</objects>
<resources>
<resources>
<namedColor
name=
"灰色字体颜色"
>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
</resources>
</resources>
</document>
</document>
GeliBusinessPlatform/View/Cell/WenDuCell.xib
View file @
2ed63472
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
<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=
"灰色字体颜色"
>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"白色背景色"
>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
View file @
2ed63472
...
@@ -12,8 +12,12 @@ import UIKit
...
@@ -12,8 +12,12 @@ import UIKit
@objc
optional
func
XuanZeShangPinCellBtnADClick
(
sender
:
UIButton
)
@objc
optional
func
XuanZeShangPinCellBtnADClick
(
sender
:
UIButton
)
}
}
class
XuanZeShangPinCell
:
UITableViewCell
{
class
XuanZeShangPinCell
:
UITableViewCell
{
@IBOutlet
weak
var
iconImg
:
UIImageView
!
@IBOutlet
weak
var
priceLbl
:
UILabel
!
@IBOutlet
weak
var
yuShouImg
:
UIImageView
!
var
delegate
:
XuanZeShangPinCellDelegate
?
var
delegate
:
XuanZeShangPinCellDelegate
?
var
idx
:
IndexPath
?
var
idx
:
IndexPath
?
@IBOutlet
weak
var
lineView
:
UIView
!
@IBAction
func
btnClickAction
(
_
sender
:
Any
)
{
@IBAction
func
btnClickAction
(
_
sender
:
Any
)
{
delegate
?
.
XuanZeShangPinCellBtnClick
!
(
index
:
idx
!
)
delegate
?
.
XuanZeShangPinCellBtnClick
!
(
index
:
idx
!
)
}
}
...
...
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.xib
View file @
2ed63472
...
@@ -166,6 +166,17 @@
...
@@ -166,6 +166,17 @@
<constraint
firstAttribute=
"height"
constant=
"90"
id=
"22L-sd-gRb"
/>
<constraint
firstAttribute=
"height"
constant=
"90"
id=
"22L-sd-gRb"
/>
<constraint
firstAttribute=
"width"
constant=
"90"
id=
"ba6-wR-eLi"
/>
<constraint
firstAttribute=
"width"
constant=
"90"
id=
"ba6-wR-eLi"
/>
</constraints>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"borderColor"
>
<color
key=
"value"
name=
"灰色分界线"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"borderWidth"
>
<real
key=
"value"
value=
"0.5"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"3"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"六和川香鸡柳2.5kg/六和川香鸡"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vZs-Q1-4ZI"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"六和川香鸡柳2.5kg/六和川香鸡"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vZs-Q1-4ZI"
>
<rect
key=
"frame"
x=
"115"
y=
"15"
width=
"245"
height=
"18.5"
/>
<rect
key=
"frame"
x=
"115"
y=
"15"
width=
"245"
height=
"18.5"
/>
...
@@ -213,10 +224,21 @@
...
@@ -213,10 +224,21 @@
<action
selector=
"btnClickAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"lAu-Sj-JCd"
/>
<action
selector=
"btnClickAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"lAu-Sj-JCd"
/>
</connections>
</connections>
</button>
</button>
<label
hidden=
"YES"
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"123"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"trg-dk-v2W"
>
<rect
key=
"frame"
x=
"338"
y=
"89"
width=
"22"
height=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
hidden=
"YES"
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"yushou"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Rub-Pk-cR7"
>
<rect
key=
"frame"
x=
"37"
y=
"15"
width=
"68"
height=
"36"
/>
</imageView>
</subviews>
</subviews>
<constraints>
<constraints>
<constraint
firstItem=
"uIB-c2-bcI"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"18B-pa-PXz"
/>
<constraint
firstItem=
"uIB-c2-bcI"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"18B-pa-PXz"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"1LA-II-o8c"
secondAttribute=
"trailing"
id=
"1dT-ZY-G0F"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"1LA-II-o8c"
secondAttribute=
"trailing"
id=
"1dT-ZY-G0F"
/>
<constraint
firstItem=
"Rub-Pk-cR7"
firstAttribute=
"trailing"
secondItem=
"uIB-c2-bcI"
secondAttribute=
"trailing"
id=
"2dy-Kp-3vK"
/>
<constraint
firstItem=
"Rub-Pk-cR7"
firstAttribute=
"top"
secondItem=
"uIB-c2-bcI"
secondAttribute=
"top"
id=
"59H-NV-clE"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"1LA-II-o8c"
secondAttribute=
"bottom"
id=
"7N0-sD-4CL"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"1LA-II-o8c"
secondAttribute=
"bottom"
id=
"7N0-sD-4CL"
/>
<constraint
firstItem=
"Mdz-mb-FFq"
firstAttribute=
"centerY"
secondItem=
"uIB-c2-bcI"
secondAttribute=
"centerY"
id=
"Afo-fi-cGL"
/>
<constraint
firstItem=
"Mdz-mb-FFq"
firstAttribute=
"centerY"
secondItem=
"uIB-c2-bcI"
secondAttribute=
"centerY"
id=
"Afo-fi-cGL"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Mdz-mb-FFq"
secondAttribute=
"trailing"
constant=
"15"
id=
"Ari-tm-ZOo"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Mdz-mb-FFq"
secondAttribute=
"trailing"
constant=
"15"
id=
"Ari-tm-ZOo"
/>
...
@@ -227,6 +249,8 @@
...
@@ -227,6 +249,8 @@
<constraint
firstItem=
"7TH-eJ-iAq"
firstAttribute=
"centerY"
secondItem=
"Mdz-mb-FFq"
secondAttribute=
"centerY"
id=
"Skp-qw-W7b"
/>
<constraint
firstItem=
"7TH-eJ-iAq"
firstAttribute=
"centerY"
secondItem=
"Mdz-mb-FFq"
secondAttribute=
"centerY"
id=
"Skp-qw-W7b"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"vZs-Q1-4ZI"
secondAttribute=
"trailing"
constant=
"15"
id=
"T3U-k6-rEI"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"vZs-Q1-4ZI"
secondAttribute=
"trailing"
constant=
"15"
id=
"T3U-k6-rEI"
/>
<constraint
firstItem=
"vZs-Q1-4ZI"
firstAttribute=
"top"
secondItem=
"uIB-c2-bcI"
secondAttribute=
"top"
id=
"Z14-9s-Tq3"
/>
<constraint
firstItem=
"vZs-Q1-4ZI"
firstAttribute=
"top"
secondItem=
"uIB-c2-bcI"
secondAttribute=
"top"
id=
"Z14-9s-Tq3"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"trg-dk-v2W"
secondAttribute=
"trailing"
constant=
"15"
id=
"dRw-MS-1XT"
/>
<constraint
firstItem=
"trg-dk-v2W"
firstAttribute=
"bottom"
secondItem=
"uIB-c2-bcI"
secondAttribute=
"bottom"
id=
"dcr-SD-H3x"
/>
<constraint
firstItem=
"7gF-DF-0eb"
firstAttribute=
"leading"
secondItem=
"vZs-Q1-4ZI"
secondAttribute=
"leading"
id=
"g05-l1-Cbi"
/>
<constraint
firstItem=
"7gF-DF-0eb"
firstAttribute=
"leading"
secondItem=
"vZs-Q1-4ZI"
secondAttribute=
"leading"
id=
"g05-l1-Cbi"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"uL5-74-gFt"
secondAttribute=
"trailing"
id=
"g7E-sv-cbD"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"uL5-74-gFt"
secondAttribute=
"trailing"
id=
"g7E-sv-cbD"
/>
<constraint
firstItem=
"1LA-II-o8c"
firstAttribute=
"top"
secondItem=
"uL5-74-gFt"
secondAttribute=
"bottom"
id=
"gUA-b6-Fpt"
/>
<constraint
firstItem=
"1LA-II-o8c"
firstAttribute=
"top"
secondItem=
"uL5-74-gFt"
secondAttribute=
"bottom"
id=
"gUA-b6-Fpt"
/>
...
@@ -245,9 +269,13 @@
...
@@ -245,9 +269,13 @@
<outlet
property=
"countTF"
destination=
"Xzz-Ce-cFH"
id=
"dkA-pf-Zyn"
/>
<outlet
property=
"countTF"
destination=
"Xzz-Ce-cFH"
id=
"dkA-pf-Zyn"
/>
<outlet
property=
"detailLbl"
destination=
"7gF-DF-0eb"
id=
"IbC-uE-ohj"
/>
<outlet
property=
"detailLbl"
destination=
"7gF-DF-0eb"
id=
"IbC-uE-ohj"
/>
<outlet
property=
"detailLbl2"
destination=
"WSO-2J-XFP"
id=
"2Xr-Bm-Kqz"
/>
<outlet
property=
"detailLbl2"
destination=
"WSO-2J-XFP"
id=
"2Xr-Bm-Kqz"
/>
<outlet
property=
"iconImg"
destination=
"uIB-c2-bcI"
id=
"lq9-eJ-YGi"
/>
<outlet
property=
"lineView"
destination=
"1LA-II-o8c"
id=
"aK0-Cb-PdY"
/>
<outlet
property=
"nameLbl"
destination=
"vZs-Q1-4ZI"
id=
"X7U-kU-VSh"
/>
<outlet
property=
"nameLbl"
destination=
"vZs-Q1-4ZI"
id=
"X7U-kU-VSh"
/>
<outlet
property=
"priceLbl"
destination=
"trg-dk-v2W"
id=
"kzY-o0-2WS"
/>
<outlet
property=
"priceTF"
destination=
"jP7-f2-sjI"
id=
"x6R-5h-cov"
/>
<outlet
property=
"priceTF"
destination=
"jP7-f2-sjI"
id=
"x6R-5h-cov"
/>
<outlet
property=
"selectBtn"
destination=
"Mdz-mb-FFq"
id=
"wm1-L1-fpE"
/>
<outlet
property=
"selectBtn"
destination=
"Mdz-mb-FFq"
id=
"wm1-L1-fpE"
/>
<outlet
property=
"yuShouImg"
destination=
"Rub-Pk-cR7"
id=
"8XF-VZ-5rv"
/>
</connections>
</connections>
<point
key=
"canvasLocation"
x=
"131.15942028985509"
y=
"121.875"
/>
<point
key=
"canvasLocation"
x=
"131.15942028985509"
y=
"121.875"
/>
</tableViewCell>
</tableViewCell>
...
@@ -256,6 +284,7 @@
...
@@ -256,6 +284,7 @@
<image
name=
"daixuan"
width=
"19"
height=
"19"
/>
<image
name=
"daixuan"
width=
"19"
height=
"19"
/>
<image
name=
"jiahaoXG"
width=
"12.5"
height=
"12.5"
/>
<image
name=
"jiahaoXG"
width=
"12.5"
height=
"12.5"
/>
<image
name=
"jianhaoXG"
width=
"12.5"
height=
"1.5"
/>
<image
name=
"jianhaoXG"
width=
"12.5"
height=
"1.5"
/>
<image
name=
"yushou"
width=
"34"
height=
"18"
/>
<image
name=
"yuxuan"
width=
"19"
height=
"19"
/>
<image
name=
"yuxuan"
width=
"19"
height=
"19"
/>
<namedColor
name=
"#999999"
>
<namedColor
name=
"#999999"
>
<color
red=
"0.60000002384185791"
green=
"0.60000002384185791"
blue=
"0.60000002384185791"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.60000002384185791"
green=
"0.60000002384185791"
blue=
"0.60000002384185791"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
GeliBusinessPlatform/View/HeaderSelectView/HeaderSelectView.xib
View file @
2ed63472
<?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=
"1
6096
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
5702
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina4_7"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina4_7"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6086
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
5704
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<resources>
<resources>
<image
name=
"xiala"
width=
"9"
height=
"4.5"
/>
<image
name=
"xiala"
width=
"9"
height=
"4.5"
/>
<namedColor
name=
"标题字颜色"
>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.180
3921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.180
00000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
</resources>
</resources>
</document>
</document>
GeliBusinessPlatform/View/HeaderSelectView/SelectContentView.xib
View file @
2ed63472
<?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=
"1
6096
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
5702
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina4_7"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina4_7"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6086
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
5704
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
...
...
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/JiTuoWuXinXiView.swift
View file @
2ed63472
...
@@ -7,12 +7,28 @@
...
@@ -7,12 +7,28 @@
//
//
import
UIKit
import
UIKit
@objc
protocol
JiTuoWuXinXiViewDelegate
{
}
class
JiTuoWuXinXiView
:
UIView
{
class
JiTuoWuXinXiView
:
UIView
{
var
contentView
:
UIView
!
var
contentView
:
UIView
!
var
delegate
:
JiTuoWuXinXiViewDelegate
?
@IBOutlet
weak
var
infoSw
:
UISwitch
!
@IBOutlet
weak
var
infoSw
:
UISwitch
!
@IBOutlet
weak
var
bottomView
:
UIView
!
@IBOutlet
weak
var
bottomView
:
UIView
!
@IBOutlet
weak
var
countTf
:
UITextField
!
@IBOutlet
weak
var
weightTf
:
UITextField
!
@IBOutlet
weak
var
gaoTf
:
UITextField
!
@IBOutlet
weak
var
kuanTf
:
UITextField
!
@IBOutlet
weak
var
changTf
:
UITextField
!
@IBAction
func
jiaJianMethod
(
_
sender
:
UIButton
)
{
}
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
}
@IBOutlet
weak
var
tiJiTF
:
UITextField
!
@IBOutlet
weak
var
itemNameTF
:
UITextField
!
func
setUI
(){
func
setUI
(){
infoSw
.
transform
=
CGAffineTransform
(
scaleX
:
0.8
,
y
:
0.8
)
infoSw
.
transform
=
CGAffineTransform
(
scaleX
:
0.8
,
y
:
0.8
)
let
maskPath
=
UIBezierPath
(
roundedRect
:
bottomView
.
bounds
,
let
maskPath
=
UIBezierPath
(
roundedRect
:
bottomView
.
bounds
,
...
...
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/JiTuoWuXinXiView.xib
View file @
2ed63472
...
@@ -11,7 +11,14 @@
...
@@ -11,7 +11,14 @@
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"JiTuoWuXinXiView"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"JiTuoWuXinXiView"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<connections>
<outlet
property=
"bottomView"
destination=
"rW2-Ka-gAx"
id=
"QZC-w2-eDD"
/>
<outlet
property=
"bottomView"
destination=
"rW2-Ka-gAx"
id=
"QZC-w2-eDD"
/>
<outlet
property=
"changTf"
destination=
"5E2-xz-YWP"
id=
"PZv-hI-SaR"
/>
<outlet
property=
"countTf"
destination=
"xT3-6M-vtU"
id=
"3Qs-lY-VyP"
/>
<outlet
property=
"gaoTf"
destination=
"Ccw-5O-TIs"
id=
"4vD-69-zxj"
/>
<outlet
property=
"infoSw"
destination=
"n6W-Cn-03r"
id=
"7Cp-xO-kfJ"
/>
<outlet
property=
"infoSw"
destination=
"n6W-Cn-03r"
id=
"7Cp-xO-kfJ"
/>
<outlet
property=
"itemNameTF"
destination=
"jQJ-ZH-wxQ"
id=
"sy3-Jc-pvu"
/>
<outlet
property=
"kuanTf"
destination=
"VMY-3D-Df9"
id=
"ycj-dg-1bV"
/>
<outlet
property=
"tiJiTF"
destination=
"oYB-7R-ZKc"
id=
"cwv-iS-Kfl"
/>
<outlet
property=
"weightTf"
destination=
"dXi-t1-G5Y"
id=
"ILG-HQ-Gme"
/>
</connections>
</connections>
</placeholder>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
...
@@ -66,6 +73,9 @@
...
@@ -66,6 +73,9 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"string"
keyPath=
"titleFontName"
value=
"PingFangSC"
/>
<userDefinedRuntimeAttribute
type=
"string"
keyPath=
"titleFontName"
value=
"PingFangSC"
/>
</userDefinedRuntimeAttributes>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"submitAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"TdR-2t-Ltl"
/>
</connections>
</view>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ufe-WI-qAR"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ufe-WI-qAR"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"51"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"51"
/>
...
@@ -263,19 +273,25 @@
...
@@ -263,19 +273,25 @@
</textField>
</textField>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bie-z4-ar6"
>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bie-z4-ar6"
>
<rect
key=
"frame"
x=
"366.5"
y=
"7.5"
width=
"45"
height=
"45"
/>
<rect
key=
"frame"
x=
"366.5"
y=
"7.5"
width=
"45"
height=
"45"
/>
<color
key=
"backgroundColor"
red=
"0.0"
green=
"0.20784313730000001"
blue=
"0.63137254899999995"
alpha=
"1"
colorSpace=
"calibratedRGB
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace
"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"45"
id=
"J9A-AQ-UDh"
/>
<constraint
firstAttribute=
"height"
constant=
"45"
id=
"J9A-AQ-UDh"
/>
<constraint
firstAttribute=
"width"
constant=
"45"
id=
"ani-NH-uQy"
/>
<constraint
firstAttribute=
"width"
constant=
"45"
id=
"ani-NH-uQy"
/>
</constraints>
</constraints>
<connections>
<action
selector=
"jiaJianMethod:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"TAA-Mr-5ig"
/>
</connections>
</button>
</button>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"O28-9q-hfK"
>
<button
opaque=
"NO"
alpha=
"0.5"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"O28-9q-hfK"
>
<rect
key=
"frame"
x=
"236.5"
y=
"7.5"
width=
"45"
height=
"45"
/>
<rect
key=
"frame"
x=
"236.5"
y=
"7.5"
width=
"45"
height=
"45"
/>
<color
key=
"backgroundColor"
name=
"#F57575
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace
"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"45"
id=
"05i-u6-nCU"
/>
<constraint
firstAttribute=
"height"
constant=
"45"
id=
"05i-u6-nCU"
/>
<constraint
firstAttribute=
"width"
constant=
"45"
id=
"CzH-cm-uM9"
/>
<constraint
firstAttribute=
"width"
constant=
"45"
id=
"CzH-cm-uM9"
/>
</constraints>
</constraints>
<connections>
<action
selector=
"jiaJianMethod:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"4Xu-NC-Rf7"
/>
</connections>
</button>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"体积:(m³)"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"6FH-ec-Y1m"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"体积:(m³)"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"6FH-ec-Y1m"
>
<rect
key=
"frame"
x=
"15"
y=
"21"
width=
"234"
height=
"18.5"
/>
<rect
key=
"frame"
x=
"15"
y=
"21"
width=
"234"
height=
"18.5"
/>
...
@@ -401,7 +417,7 @@
...
@@ -401,7 +417,7 @@
</label>
</label>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"OY2-Kj-DtJ"
>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"OY2-Kj-DtJ"
>
<rect
key=
"frame"
x=
"374"
y=
"15"
width=
"30"
height=
"30"
/>
<rect
key=
"frame"
x=
"374"
y=
"15"
width=
"30"
height=
"30"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.68026518489999999"
blue=
"0.40248129399999999"
alpha=
"1"
colorSpace=
"calibratedRGB
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace
"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"30"
id=
"6qt-S2-Th8"
/>
<constraint
firstAttribute=
"width"
constant=
"30"
id=
"6qt-S2-Th8"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"lGM-HW-82S"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"lGM-HW-82S"
/>
...
@@ -409,7 +425,7 @@
...
@@ -409,7 +425,7 @@
</button>
</button>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"3OQ-Ur-PSr"
>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"3OQ-Ur-PSr"
>
<rect
key=
"frame"
x=
"244"
y=
"15"
width=
"30"
height=
"30"
/>
<rect
key=
"frame"
x=
"244"
y=
"15"
width=
"30"
height=
"30"
/>
<color
key=
"backgroundColor"
name=
"密码错误字体颜色
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace
"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"30"
id=
"eI4-bS-mqu"
/>
<constraint
firstAttribute=
"width"
constant=
"30"
id=
"eI4-bS-mqu"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"sqJ-Ed-vN2"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"sqJ-Ed-vN2"
/>
...
@@ -519,15 +535,9 @@
...
@@ -519,15 +535,9 @@
<resources>
<resources>
<image
name=
"jia "
width=
"20"
height=
"20"
/>
<image
name=
"jia "
width=
"20"
height=
"20"
/>
<image
name=
"jian"
width=
"20"
height=
"20"
/>
<image
name=
"jian"
width=
"20"
height=
"20"
/>
<namedColor
name=
"#F57575"
>
<color
red=
"0.96100002527236938"
green=
"0.45899999141693115"
blue=
"0.45899999141693115"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"app底色"
>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"密码错误字体颜色"
>
<color
red=
"0.88999998569488525"
green=
"0.27799999713897705"
blue=
"0.27799999713897705"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色上"
>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
...
@@ -544,7 +554,7 @@
...
@@ -544,7 +554,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.40000000
596046448"
green=
"0.40000000596046448"
blue=
"0.40000000596046448
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.40000000
000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"白色背景色"
>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
2ed63472
...
@@ -127,6 +127,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -127,6 +127,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
case
0
:
case
0
:
if
jtwxxView
==
nil
{
if
jtwxxView
==
nil
{
let
view
=
JiTuoWuXinXiView
(
frame
:
self
.
view
.
bounds
)
let
view
=
JiTuoWuXinXiView
(
frame
:
self
.
view
.
bounds
)
self
.
view
.
addSubview
(
view
)
self
.
view
.
addSubview
(
view
)
jtwxxView
=
view
jtwxxView
=
view
}
}
...
...
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
2ed63472
...
@@ -12,28 +12,28 @@ import Photos
...
@@ -12,28 +12,28 @@ import Photos
class
ProductDetailViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
CommendCellDelegate
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
GoodsClassViewControllerDelegate
,
PinPaiListViewControllerDelegate
,
AddImgCellDelegate
,
AddGuiGeCellDelegate
,
CreatNewSpecsViewControllerDelegate
,
ShangPinGguiGeCellDelegate
,
UICollectionViewDelegate
,
UICollectionViewDataSource
,
UICollectionViewDelegateFlowLayout
,
TitleAndSwitchCellDelegate
{
class
ProductDetailViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
CommendCellDelegate
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
GoodsClassViewControllerDelegate
,
PinPaiListViewControllerDelegate
,
AddImgCellDelegate
,
AddGuiGeCellDelegate
,
CreatNewSpecsViewControllerDelegate
,
ShangPinGguiGeCellDelegate
,
UICollectionViewDelegate
,
UICollectionViewDataSource
,
UICollectionViewDelegateFlowLayout
,
TitleAndSwitchCellDelegate
{
var
selectIdx
:
IndexPath
?
var
layout
=
UICollectionViewFlowLayout
()
var
glSelectView
:
GLAlertSelectView
?
let
titleArr
=
[
"商品信息"
,
"商品图片"
,
"商品规格"
,
"预售设置"
,
"其它信息"
,
"商品详情"
]
let
titleArr
=
[
"商品信息"
,
"商品图片"
,
"商品规格"
,
"预售设置"
,
"其它信息"
,
"商品详情"
]
let
spxxArr
=
[
"商品名称"
,
"商品类型"
,
"商品分类"
,
"品牌"
,
"起卖数量"
,
"是否清真"
,
"是否询价"
]
let
spxxArr
=
[
"商品名称"
,
"商品类型"
,
"商品分类"
,
"品牌"
,
"起卖数量"
,
"是否清真"
,
"是否询价"
]
let
tishixxArr
:
NSMutableArray
=
[
"请输入商品名称"
,
"请选择商品类型"
,
"请选择商品分类"
,
"请选择品牌"
,
"请输入起卖数量"
]
let
tishixxArr
:
NSMutableArray
=
[
"请输入商品名称"
,
"请选择商品类型"
,
"请选择商品分类"
,
"请选择品牌"
,
"请输入起卖数量"
]
let
tishixxArr1
:
NSMutableArray
=
[
"请输入关键字"
,
"请输入物流费用"
,
"请选择国家"
,
"请选择商品状态"
,
"请选择运输方式"
]
let
tishixxArr1
:
NSMutableArray
=
[
"请输入关键字"
,
"请输入物流费用"
,
"请选择国家"
,
"请选择商品状态"
,
"请选择运输方式"
]
let
sptpArr
=
[
"商品封面图(限一张)"
,
"商品主图(限五张)"
]
let
sptpArr
=
[
"商品封面图(限一张)"
,
"商品主图(限五张)"
]
let
qtxxArr
=
[
"关键字"
,
"物流费用"
,
"国家"
,
"商品状态"
,
"运输方式"
]
let
qtxxArr
=
[
"关键字"
,
"物流费用"
,
"国家"
,
"商品状态"
,
"运输方式"
]
let
ysszArr
=
[
"用户付款是否需要审核"
,
"预设预付定金时间段"
,
"预设预付尾款时间段"
,
"预设预付尾款发货时间"
]
let
ysszArr
=
[
"用户付款是否需要审核"
,
"预设预付定金时间段"
,
"预设预付尾款时间段"
,
"预设预付尾款发货时间"
]
let
ysszHolder
=
[
"0"
,
"请选择时段"
,
"请选择时段"
,
"0"
]
let
ysszHolder
=
[
"0"
,
"请选择时段"
,
"请选择时段"
,
"0"
]
var
itemTypeArr
=
NSMutableArray
()
var
shangPinStatus
=
"99"
var
shangPinStatusArr
=
[
"热销"
,
"爆款"
,
"新品"
,
"促销"
,
"外采"
,
"团购"
]
var
shangPinStatusArr
=
[
"热销"
,
"爆款"
,
"新品"
,
"促销"
,
"外采"
,
"团购"
]
var
yunShuType
=
"99"
var
yunShuTypeArr
=
[
"冷链"
,
"常温"
,
"热链"
]
var
yunShuTypeArr
=
[
"冷链"
,
"常温"
,
"热链"
]
var
layout
=
UICollectionViewFlowLayout
()
var
glSelectView
:
GLAlertSelectView
?
var
selectIdx
:
IndexPath
?
var
itemTypeArr
=
NSMutableArray
()
//多选
var
isYuShou
:
Bool
=
false
//是否预售
var
shangPinStatus
=
"99"
//商品状态
var
yunShuType
=
"99"
//运输类型
var
maxFiveImgsArr
=
NSMutableArray
()
//多图
var
singleImgArr
=
NSMutableArray
()
//单张图
//MARK:--保存按钮
//MARK:--保存按钮
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
print
(
"保存按钮submitAction"
)
print
(
"保存按钮submitAction"
)
...
@@ -42,13 +42,12 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -42,13 +42,12 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
@IBOutlet
weak
var
listTbv
:
UITableView
!
@IBOutlet
weak
var
listTbv
:
UITableView
!
var
cellHeight
=
18.5
var
cellHeight
=
18.5
var
contentStr
:
String
=
""
var
contentStr
:
String
=
""
var
guiGeArr
:
NSMutableArray
=
[]
//根据规格资料数量控制右上角新增按钮是否显示
var
guiGeArr
:
NSMutableArray
=
[]
//根据规格资料数量控制右上角新增按钮是否显示
//
@IBOutlet
weak
var
lgBtnLbl
:
UILabel
!
@IBOutlet
weak
var
lgBtnLbl
:
UILabel
!
var
isYuShouShangPin
:
Bool
?
var
isYuShouShangPin
:
Bool
?
//是否为预售商品
var
generalInfoModel
:
GeneralInfoModel
?
=
nil
var
generalInfoModel
:
GeneralInfoModel
?
=
nil
...
@@ -64,7 +63,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -64,7 +63,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
})
{
(
error
)
in
})
{
(
error
)
in
}
}
isYuShouShangPin
=
true
//是否为预售商品
isYuShouShangPin
=
false
navbar
.
title
=
"商品详情"
navbar
.
title
=
"商品详情"
self
.
view
.
addSubview
(
navbar
)
self
.
view
.
addSubview
(
navbar
)
...
@@ -148,13 +148,13 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -148,13 +148,13 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}
else
{
}
else
{
dict
=
guiGeArr
.
firstObject
as!
NSDictionary
dict
=
guiGeArr
.
firstObject
as!
NSDictionary
}
}
print
(
selectIdx
?
.
item
)
cell
.
tempLbl
.
text
=
"冷藏:
\(
String
(
describing
:
dict
[
"wenDu"
]
!
)
)
℃"
cell
.
tempLbl
.
text
=
"冷藏:
\(
String
(
describing
:
dict
[
"wenDu"
]
!
)
)
℃"
cell
.
weightLbl
.
text
=
"重量(kg):
\(
String
(
describing
:
dict
[
"weight"
]
!
)
)
kg"
cell
.
weightLbl
.
text
=
"重量(kg):
\(
String
(
describing
:
dict
[
"weight"
]
!
)
)
kg"
cell
.
guiGeLbl
.
text
=
"规格:
\(
String
(
describing
:
dict
[
"guiGe"
]
!
)
)
kg/件"
cell
.
guiGeLbl
.
text
=
"规格:
\(
String
(
describing
:
dict
[
"guiGe"
]
!
)
)
kg/件"
cell
.
danWeiLbl
.
text
=
"单位:
\(
String
(
describing
:
dict
[
"danWei"
]
!
)
)
"
cell
.
danWeiLbl
.
text
=
"单位:
\(
String
(
describing
:
dict
[
"danWei"
]
!
)
)
"
cell
.
sellPriceLbl
.
text
=
"售价:¥
\(
dict
[
"price"
]
!
)
"
cell
.
sellPriceLbl
.
text
=
"售价:¥
\(
dict
[
"price"
]
!
)
"
// cell.itemIdx = dict["itemIdx"] as! Int
return
cell
return
cell
}
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"AddGuiGe"
)
as!
AddGuiGeCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"AddGuiGe"
)
as!
AddGuiGeCell
...
@@ -240,7 +240,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -240,7 +240,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
}
}
}
}
//header
//
MARK: - tableview
header
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
if
section
==
3
{
if
section
==
3
{
if
isYuShouShangPin
==
false
{
if
isYuShouShangPin
==
false
{
...
@@ -309,7 +309,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -309,7 +309,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
return
39
return
39
}
}
//footer
//
MARK: - tableview
footer
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
10
))
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
10
))
view
.
backgroundColor
=
UIColor
(
named
:
"app底色"
)
view
.
backgroundColor
=
UIColor
(
named
:
"app底色"
)
...
@@ -335,10 +335,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -335,10 +335,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
override
func
backAction
()
{
override
func
backAction
()
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
//MARK: -- 选择填或跳转
//MARK: -- 点击按钮事件,跳转或者展示选择界面
func
btnClick
(
content
:
String
,
cell
:
TitleAndBtnCell
)
{
func
btnClick
(
content
:
String
,
cell
:
TitleAndBtnCell
)
{
if
cell
.
nameLbl
.
text
==
"商品类型"
{
if
cell
.
nameLbl
.
text
==
"商品类型"
{
if
glSelectView
==
nil
{
if
glSelectView
==
nil
{
...
@@ -400,7 +397,6 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -400,7 +397,6 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
if
cell
.
nameLbl
.
text
==
"预设预付尾款时间段"
{
if
cell
.
nameLbl
.
text
==
"预设预付尾款时间段"
{
}
}
print
(
cell
.
nameLbl
.
text
)
}
}
//MARK:---选择商品分类返回数据
//MARK:---选择商品分类返回数据
func
blackGoodsClass
(
sender
:
GoodsClassModel
)
{
func
blackGoodsClass
(
sender
:
GoodsClassModel
)
{
...
@@ -411,9 +407,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -411,9 +407,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
print
(
"选择品牌返回的数据=
\(
sender
)
"
)
print
(
"选择品牌返回的数据=
\(
sender
)
"
)
}
}
//MARK: - GLAlertView(单选)下的页面
func
GLAlertSelectViewClick
(
selectNum
:
NSString
,
view
:
GLAlertSelectView
)
{
func
GLAlertSelectViewClick
(
selectNum
:
NSString
,
view
:
GLAlertSelectView
)
{
print
(
"单选"
,
selectNum
)
print
(
view
.
titleLbl
.
text
)
print
(
view
.
titleLbl
.
text
)
switch
view
.
titleLbl
.
text
{
switch
view
.
titleLbl
.
text
{
case
"请选择商品类型"
:
case
"请选择商品类型"
:
...
@@ -431,10 +426,9 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -431,10 +426,9 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
glSelectView
=
nil
glSelectView
=
nil
listTbv
.
reloadData
()
listTbv
.
reloadData
()
}
}
var
isYuShou
:
Bool
=
false
//MARK: - GLAlertView(多选)下的页面
func
GLAlertMoreSelectViewClick
(
sender
:
NSArray
,
view
:
UIView
)
{
func
GLAlertMoreSelectViewClick
(
sender
:
NSArray
,
view
:
UIView
)
{
print
(
"多选"
,
sender
)
itemTypeArr
=
sender
as!
NSMutableArray
itemTypeArr
=
sender
as!
NSMutableArray
let
str
=
"
\(
sender
.
firstObject
!
)
"
as!
NSString
let
str
=
"
\(
sender
.
firstObject
!
)
"
as!
NSString
if
str
!=
"99"
{
if
str
!=
"99"
{
...
@@ -461,12 +455,13 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -461,12 +455,13 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
glSelectView
=
nil
glSelectView
=
nil
listTbv
.
reloadData
()
listTbv
.
reloadData
()
}
}
//关闭alertview
func
GLAlertSelectViewClose
(
sender
:
UIButton
)
{
func
GLAlertSelectViewClose
(
sender
:
UIButton
)
{
glSelectView
?
.
removeFromSuperview
()
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
glSelectView
=
nil
}
}
var
maxFiveImgsArr
=
NSMutableArray
()
var
singleImgArr
=
NSMutableArray
()
//MARK: - 图片处理
func
DelImgCellBtnClick
(
sender
:
UIButton
,
cell
:
AddImgCell
)
{
func
DelImgCellBtnClick
(
sender
:
UIButton
,
cell
:
AddImgCell
)
{
if
cell
.
isSingle
==
true
{
if
cell
.
isSingle
==
true
{
singleImgArr
.
removeObject
(
at
:
sender
.
tag
)
singleImgArr
.
removeObject
(
at
:
sender
.
tag
)
...
@@ -510,6 +505,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -510,6 +505,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
}
}
}
}
//MARK: - 编辑规格
func
ShangPinGguiGeCellEditAction
(
cell
:
ShangPinGguiGeCell
)
{
func
ShangPinGguiGeCellEditAction
(
cell
:
ShangPinGguiGeCell
)
{
let
vc
=
CreatNewSpecsViewController
()
let
vc
=
CreatNewSpecsViewController
()
vc
.
barTitle
=
"编辑规格"
vc
.
barTitle
=
"编辑规格"
...
@@ -542,7 +538,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -542,7 +538,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
vc
.
delegate
=
self
vc
.
delegate
=
self
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
//MARK: - 删除规格
func
CreatNewSpecsViewControllerDeleteAction
()
{
func
CreatNewSpecsViewControllerDeleteAction
()
{
print
(
"删除数据"
)
print
(
"删除数据"
)
}
}
...
@@ -550,12 +546,12 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -550,12 +546,12 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
//
//
print
(
"商品详情添加图片"
)
print
(
"商品详情添加图片"
)
}
}
//MARK: - 新增规格
@objc
func
addGuiGe
(){
@objc
func
addGuiGe
(){
print
(
"新增规格"
)
print
(
"新增规格"
)
let
vc
=
CreatNewSpecsViewController
()
let
vc
=
CreatNewSpecsViewController
()
vc
.
barTitle
=
"新增规格"
vc
.
barTitle
=
"新增规格"
vc
.
delegate
=
self
vc
.
delegate
=
self
print
(
"abc == "
,
isYuShou
)
vc
.
isYuShouSetting
=
isYuShou
vc
.
isYuShouSetting
=
isYuShou
vc
.
isNonYuShou
=
isYuShou
vc
.
isNonYuShou
=
isYuShou
vc
.
datasArr
=
guiGeArr
vc
.
datasArr
=
guiGeArr
...
...
GeliBusinessPlatform/ViewController/新增、编辑品牌/PinPaiListViewController.swift
View file @
2ed63472
...
@@ -10,11 +10,11 @@ import UIKit
...
@@ -10,11 +10,11 @@ import UIKit
protocol
PinPaiListViewControllerDelegate
{
protocol
PinPaiListViewControllerDelegate
{
func
blackSelectPinPaiData
(
sender
:
GeneralInfoBrandModel
)
func
blackSelectPinPaiData
(
sender
:
GeneralInfoBrandModel
)
}
}
class
PinPaiListViewController
:
BaseViewController
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
{
class
PinPaiListViewController
:
BaseViewController
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndSelectCellDelegate
{
var
dataModelArray
:
Array
<
GeneralInfoBrandModel
>
?
=
[]
var
dataModelArray
:
Array
<
GeneralInfoBrandModel
>
?
=
[]
var
isSelectData
:
Bool
=
false
var
isSelectData
:
Bool
=
false
var
delegate
:
PinPaiListViewControllerDelegate
?
var
delegate
:
PinPaiListViewControllerDelegate
?
var
selectIdx
:
Int
?
@IBOutlet
weak
var
sureTop
:
NSLayoutConstraint
!
@IBOutlet
weak
var
sureTop
:
NSLayoutConstraint
!
@IBOutlet
weak
var
tableBottom
:
NSLayoutConstraint
!
@IBOutlet
weak
var
tableBottom
:
NSLayoutConstraint
!
@IBOutlet
weak
var
sureLbl
:
UILabel
!
@IBOutlet
weak
var
sureLbl
:
UILabel
!
...
@@ -52,7 +52,7 @@ class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBar
...
@@ -52,7 +52,7 @@ class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBar
searchBr
.
delegate
=
self
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
delegateL
=
self
listView
.
register
(
UINib
(
nibName
:
"TitleAnd
BtnCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndBtn
Cell"
)
listView
.
register
(
UINib
(
nibName
:
"TitleAnd
SelectCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndSelect
Cell"
)
// Do any additional setup after loading the view.
// Do any additional setup after loading the view.
}
}
func
rightBtnClick
()
{
func
rightBtnClick
()
{
...
@@ -75,8 +75,13 @@ class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBar
...
@@ -75,8 +75,13 @@ class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBar
return
12
return
12
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtnCell"
)
as!
TitleAndBtnCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndSelectCell"
)
as!
TitleAndSelectCell
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
if
selectIdx
==
indexPath
.
row
{
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
.
selectBtn
.
isSelected
=
true
}
// let rowModel = dataModelArray![indexPath.row] as! GeneralInfoBrandModel
// let rowModel = dataModelArray![indexPath.row] as! GeneralInfoBrandModel
// cell.nameLbl.text = rowModel.brand_name
// cell.nameLbl.text = rowModel.brand_name
// cell.contentLbl.text = ""
// cell.contentLbl.text = ""
...
@@ -112,5 +117,21 @@ class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBar
...
@@ -112,5 +117,21 @@ class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBar
}
}
}
}
//MARK:--自定义celldelegate
func
TitleAndSelectCellClick
(
content
:
UIButton
,
cell
:
TitleAndSelectCell
)
{
print
(
cell
.
tag
)
selectIdx
=
cell
.
tag
let
cells
=
listView
.
visibleCells
as!
Array
<
TitleAndSelectCell
>
for
item
in
cells
{
item
.
titleLbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
item
.
selectBtn
.
isSelected
=
false
if
item
==
cell
{
item
.
titleLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
item
.
selectBtn
.
isSelected
=
true
}
}
}
}
}
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.xib
View file @
2ed63472
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/订单管理/关联客户/GuanLianKehuVC.swift
View file @
2ed63472
...
@@ -8,9 +8,23 @@
...
@@ -8,9 +8,23 @@
import
UIKit
import
UIKit
import
ViewAnimator
import
ViewAnimator
@objc
protocol
GuanLianKehuVCDelegate
{
class
GuanLianKehuVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
@objc
optional
func
btnSelect
(
keHuData
:
Any
)
}
class
GuanLianKehuVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
GuanLianKeHuCellDelegate
{
var
delegate
:
GuanLianKehuVCDelegate
?
var
selectIdx
:
Int
?
//暂代关联客户数据
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
print
(
"确定"
)
if
selectIdx
!=
nil
{
delegate
?
.
btnSelect
?(
keHuData
:
selectIdx
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
else
{
HUD
.
flash
(
.
label
(
"请选择关联客户"
),
delay
:
1.2
)
}
}
@IBOutlet
weak
var
contentView
:
UIView
!
@IBOutlet
weak
var
contentView
:
UIView
!
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
...
@@ -19,7 +33,7 @@ class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataS
...
@@ -19,7 +33,7 @@ class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataS
setTabv
()
setTabv
()
}
}
var
tableV
:
UITableView
!
var
tableV
:
UITableView
!
private
let
animations
=
[
AnimationType
.
from
(
direction
:
.
bottom
,
offset
:
150*
glscale
)]
private
let
animations
=
[
AnimationType
.
from
(
direction
:
.
bottom
,
offset
:
150*
glscale
)]
func
setTabv
()
{
func
setTabv
()
{
tableV
=
UITableView
()
tableV
=
UITableView
()
...
@@ -47,7 +61,8 @@ class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataS
...
@@ -47,7 +61,8 @@ class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataS
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"GuanLianKeHuCell"
)
as!
GuanLianKeHuCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"GuanLianKeHuCell"
)
as!
GuanLianKeHuCell
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
return
cell
return
cell
}
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
...
@@ -58,4 +73,16 @@ class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataS
...
@@ -58,4 +73,16 @@ class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataS
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
100*
glscale
return
100*
glscale
}
}
//MARK: - GuanLianKeHuCell delegate
func
btnSelect
(
sender
:
UIButton
,
cell
:
GuanLianKeHuCell
)
{
let
cells
=
tableV
.
visibleCells
for
cel
in
cells
{
let
c
=
cel
as!
GuanLianKeHuCell
c
.
imgBtn
.
isSelected
=
false
if
c
==
cell
{
c
.
imgBtn
.
isSelected
=
true
selectIdx
=
c
.
tag
}
}
}
}
}
GeliBusinessPlatform/ViewController/订单管理/关联客户/GuanLianKehuVC.xib
View file @
2ed63472
<?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=
"1
6096
"
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
5702
"
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>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6086
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
5704
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
@@ -38,6 +38,9 @@
...
@@ -38,6 +38,9 @@
<color
key=
"value"
name=
"按钮渐变色下,字体颜色"
/>
<color
key=
"value"
name=
"按钮渐变色下,字体颜色"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"submitAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"i1h-Ro-dcZ"
/>
</connections>
</view>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"fUh-0E-kXZ"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"fUh-0E-kXZ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"862"
width=
"414"
height=
"50"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"862"
width=
"414"
height=
"50"
/>
...
...
GeliBusinessPlatform/ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
View file @
2ed63472
...
@@ -10,51 +10,54 @@ import UIKit
...
@@ -10,51 +10,54 @@ import UIKit
import
ViewAnimator
import
ViewAnimator
class
ShowAlGoodsViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
class
ShowAlGoodsViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
navbar
.
title
=
"查看全部商品"
navbar
.
title
=
"查看全部商品"
self
.
view
.
addSubview
(
navbar
)
self
.
view
.
addSubview
(
navbar
)
setTabv
()
setTabv
()
}
}
var
tableV
:
UITableView
!
var
tableV
:
UITableView
!
private
let
animations
=
[
AnimationType
.
from
(
direction
:
.
bottom
,
offset
:
150*
glscale
)]
private
let
animations
=
[
AnimationType
.
from
(
direction
:
.
bottom
,
offset
:
150*
glscale
)]
func
setTabv
()
{
func
setTabv
()
{
tableV
=
UITableView
()
tableV
=
UITableView
()
view
.
addSubview
(
tableV
);
view
.
addSubview
(
tableV
);
tableV
.
snp
.
makeConstraints
{
(
make
)
in
tableV
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
navbar
.
snp_bottom
)
make
.
top
.
equalTo
(
navbar
.
snp_bottom
)
}
}
tableV
.
backgroundColor
=
UIColor
.
init
(
named
:
"白色背景色"
)
tableV
.
backgroundColor
=
UIColor
.
init
(
named
:
"白色背景色"
)
tableV
.
delegate
=
self
tableV
.
delegate
=
self
tableV
.
dataSource
=
self
tableV
.
dataSource
=
self
tableV
.
separatorStyle
=
.
none
tableV
.
separatorStyle
=
.
none
//不是这个cell-是跟订单详情里面的商品 一样
//不是这个cell-是跟订单详情里面的商品 一样
tableV
?
.
register
(
UINib
(
nibName
:
"ChangePriceNormalCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"ChangePriceNormalCell"
)
// tableV?.register(UINib(nibName: "ChangePriceNormalCell", bundle: nil), forCellReuseIdentifier: "ChangePriceNormalCell")
tableV
?
.
register
(
UINib
(
nibName
:
"XuanZeShangPinCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"XuanZeShangPinCell"
)
}
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
3
return
3
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"ChangePriceNormalCell"
)
as!
ChangePriceNormalCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
cell
.
selectBtn
.
isHidden
=
true
return
cell
cell
.
detailLbl2
.
isHidden
=
true
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
return
cell
print
(
indexPath
)
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
}
print
(
indexPath
)
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
}
return
120*
glscale
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
120*
glscale
}
}
}
GeliBusinessPlatform/ViewController/订单详情/HeaderOnlyTitleView.swift
0 → 100644
View file @
2ed63472
//
// HeaderOnlyTitleView.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/14.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
HeaderOnlyTitleView
:
UIView
{
var
contentView
:
UIView
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
// /初始化时将xib中的view添加进来
required
init
?(
coder
aDecoder
:
NSCoder
)
{
super
.
init
(
coder
:
aDecoder
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
//加载xib
func
loadViewFromNib
()
->
UIView
{
let
className
=
type
(
of
:
self
)
let
bundle
=
Bundle
(
for
:
className
)
let
name
=
NSStringFromClass
(
className
)
.
components
(
separatedBy
:
"."
)
.
last
let
nib
=
UINib
(
nibName
:
name
!
,
bundle
:
bundle
)
let
view
=
nib
.
instantiate
(
withOwner
:
self
,
options
:
nil
)
.
first
as!
UIView
return
view
}
}
GeliBusinessPlatform/ViewController/订单详情/HeaderOnlyTitleView.xib
0 → 100644
View file @
2ed63472
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"15702"
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"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"HeaderOnlyTitleView"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"nameLbl"
destination=
"cTI-ht-UY7"
id=
"lzl-GW-IYx"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
contentMode=
"scaleToFill"
id=
"iN0-l3-epB"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"39"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"cTI-ht-UY7"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"30"
height=
"21"
/>
<attributedString
key=
"attributedText"
>
<fragment
content=
"标题"
>
<attributes>
<color
key=
"NSColor"
name=
"标题字颜色"
/>
<font
key=
"NSFont"
size=
"15"
name=
"PingFangSC-Medium"
/>
</attributes>
</fragment>
</attributedString>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"cTI-ht-UY7"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
constant=
"15"
id=
"ZKc-V3-Cyi"
/>
<constraint
firstItem=
"cTI-ht-UY7"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
constant=
"15"
id=
"ooK-B0-hxK"
/>
</constraints>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
<point
key=
"canvasLocation"
x=
"133"
y=
"138"
/>
</view>
</objects>
<resources>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
2ed63472
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.xib
View file @
2ed63472
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/订单详情/OrderDViewFooterView.swift
0 → 100644
View file @
2ed63472
//
// OrderDViewFooterView.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/14.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
@objc
protocol
OrderDViewFooterViewDelegate
{
@objc
optional
func
OrderDViewFooterViewBtnClick
()
}
class
OrderDViewFooterView
:
UIView
{
var
contentView
:
UIView
!
var
delegate
:
OrderDViewFooterViewDelegate
?
@IBOutlet
weak
var
nameLbl
:
UILabel
!
//初始化时将xib中的view添加进来
@IBAction
func
pushAction
(
_
sender
:
Any
)
{
delegate
?
.
OrderDViewFooterViewBtnClick
?()
}
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
// /初始化时将xib中的view添加进来
required
init
?(
coder
aDecoder
:
NSCoder
)
{
super
.
init
(
coder
:
aDecoder
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
//加载xib
func
loadViewFromNib
()
->
UIView
{
let
className
=
type
(
of
:
self
)
let
bundle
=
Bundle
(
for
:
className
)
let
name
=
NSStringFromClass
(
className
)
.
components
(
separatedBy
:
"."
)
.
last
let
nib
=
UINib
(
nibName
:
name
!
,
bundle
:
bundle
)
let
view
=
nib
.
instantiate
(
withOwner
:
self
,
options
:
nil
)
.
first
as!
UIView
return
view
}
}
GeliBusinessPlatform/ViewController/订单详情/OrderDViewFooterView.xib
0 → 100644
View file @
2ed63472
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"15702"
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"
/>
<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=
"OrderDViewFooterView"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"nameLbl"
destination=
"rj1-Gd-MWT"
id=
"KSu-0f-TCJ"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
contentMode=
"scaleToFill"
id=
"iN0-l3-epB"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"34"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"查看全部(共20个商品)"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"rj1-Gd-MWT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"蓝色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Y9f-zb-HLE"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"34"
/>
<connections>
<action
selector=
"pushAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"CgM-7b-gUF"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"Y9f-zb-HLE"
secondAttribute=
"trailing"
id=
"8xs-gb-RG2"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Y9f-zb-HLE"
secondAttribute=
"bottom"
id=
"WaI-Zw-HGe"
/>
<constraint
firstItem=
"Y9f-zb-HLE"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"YUZ-JY-agY"
/>
<constraint
firstItem=
"Y9f-zb-HLE"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
id=
"l9s-Wb-cxT"
/>
<constraint
firstItem=
"rj1-Gd-MWT"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"lgW-4x-UBl"
/>
<constraint
firstItem=
"rj1-Gd-MWT"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
id=
"oyd-48-QGP"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"rj1-Gd-MWT"
secondAttribute=
"trailing"
id=
"yIC-RO-Ugz"
/>
</constraints>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
<point
key=
"canvasLocation"
x=
"133"
y=
"138"
/>
</view>
</objects>
<resources>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27799999713897705"
green=
"0.56099998950958252"
blue=
"0.88999998569488525"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/订单详情/OrderDViewSumFooter.swift
0 → 100644
View file @
2ed63472
//
// OrderDViewSumFooter.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/14.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
OrderDViewSumFooter
:
UIView
{
var
contentView
:
UIView
!
@IBOutlet
weak
var
priceLbl
:
UILabel
!
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
// /初始化时将xib中的view添加进来
required
init
?(
coder
aDecoder
:
NSCoder
)
{
super
.
init
(
coder
:
aDecoder
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
//加载xib
func
loadViewFromNib
()
->
UIView
{
let
className
=
type
(
of
:
self
)
let
bundle
=
Bundle
(
for
:
className
)
let
name
=
NSStringFromClass
(
className
)
.
components
(
separatedBy
:
"."
)
.
last
let
nib
=
UINib
(
nibName
:
name
!
,
bundle
:
bundle
)
let
view
=
nib
.
instantiate
(
withOwner
:
self
,
options
:
nil
)
.
first
as!
UIView
return
view
}
}
GeliBusinessPlatform/ViewController/订单详情/OrderDViewSumFooter.xib
0 → 100644
View file @
2ed63472
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"15702"
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"
/>
<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"
>
<connections>
<outlet
property=
"priceLbl"
destination=
"wyj-le-YWl"
id=
"O2i-PV-aIt"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
contentMode=
"scaleToFill"
id=
"iN0-l3-epB"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"59"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"dlu-Zi-usx"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"4Wi-K2-KGT"
/>
</constraints>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"price"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wyj-le-YWl"
>
<rect
key=
"frame"
x=
"329"
y=
"1"
width=
"31"
height=
"48"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"#F57575"
/>
<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=
"263"
y=
"1"
width=
"66"
height=
"48"
/>
<attributedString
key=
"attributedText"
>
<fragment
content=
"订单合计:"
>
<attributes>
<color
key=
"NSColor"
name=
"标题字颜色"
/>
<font
key=
"NSFont"
size=
"13"
name=
"PingFangSC-Medium"
/>
</attributes>
</fragment>
</attributedString>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"eXI-ce-2Rw"
>
<rect
key=
"frame"
x=
"0.0"
y=
"49"
width=
"375"
height=
"10"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"10"
id=
"gao-Fe-NMg"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"eXI-ce-2Rw"
secondAttribute=
"bottom"
id=
"1dD-aL-SFn"
/>
<constraint
firstItem=
"wyj-le-YWl"
firstAttribute=
"top"
secondItem=
"dlu-Zi-usx"
secondAttribute=
"bottom"
id=
"5iz-K6-D3i"
/>
<constraint
firstItem=
"dlu-Zi-usx"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
id=
"BT5-O0-2Cd"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"wyj-le-YWl"
secondAttribute=
"trailing"
constant=
"15"
id=
"Bv8-LM-xNP"
/>
<constraint
firstItem=
"eXI-ce-2Rw"
firstAttribute=
"top"
secondItem=
"h2l-7X-TcJ"
secondAttribute=
"bottom"
id=
"EtD-jS-3PS"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"eXI-ce-2Rw"
secondAttribute=
"trailing"
id=
"Ik9-M3-NdD"
/>
<constraint
firstItem=
"h2l-7X-TcJ"
firstAttribute=
"top"
secondItem=
"dlu-Zi-usx"
secondAttribute=
"bottom"
id=
"Kxp-nu-1S8"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"dlu-Zi-usx"
secondAttribute=
"trailing"
id=
"cjA-Z8-YVQ"
/>
<constraint
firstItem=
"eXI-ce-2Rw"
firstAttribute=
"top"
secondItem=
"wyj-le-YWl"
secondAttribute=
"bottom"
id=
"e01-qO-3Xy"
/>
<constraint
firstItem=
"dlu-Zi-usx"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"euK-Xb-DlQ"
/>
<constraint
firstItem=
"eXI-ce-2Rw"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"i1w-Y8-K2E"
/>
<constraint
firstItem=
"wyj-le-YWl"
firstAttribute=
"leading"
secondItem=
"h2l-7X-TcJ"
secondAttribute=
"trailing"
id=
"kqT-My-q0S"
/>
</constraints>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
<point
key=
"canvasLocation"
x=
"-344.20289855072468"
y=
"142.96875"
/>
</view>
</objects>
<resources>
<namedColor
name=
"#F57575"
>
<color
red=
"0.96100002527236938"
green=
"0.45899999141693115"
blue=
"0.45899999141693115"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
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"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/订单详情/TitleAndLblView.swift
0 → 100644
View file @
2ed63472
//
// TitleAndLblView.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/14.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
TitleAndLblView
:
UIView
{
var
contentView
:
UIView
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
@IBOutlet
weak
var
contentLbl
:
UILabel
!
//初始化时将xib中的view添加进来
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
// /初始化时将xib中的view添加进来
required
init
?(
coder
aDecoder
:
NSCoder
)
{
super
.
init
(
coder
:
aDecoder
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
//加载xib
func
loadViewFromNib
()
->
UIView
{
let
className
=
type
(
of
:
self
)
let
bundle
=
Bundle
(
for
:
className
)
let
name
=
NSStringFromClass
(
className
)
.
components
(
separatedBy
:
"."
)
.
last
let
nib
=
UINib
(
nibName
:
name
!
,
bundle
:
bundle
)
let
view
=
nib
.
instantiate
(
withOwner
:
self
,
options
:
nil
)
.
first
as!
UIView
return
view
}
}
GeliBusinessPlatform/ViewController/订单详情/TitleAndLblView.xib
0 → 100644
View file @
2ed63472
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"15702"
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"
/>
<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=
"TitleAndLblView"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"contentLbl"
destination=
"3w0-Kw-4SZ"
id=
"By3-e9-dBy"
/>
<outlet
property=
"nameLbl"
destination=
"1sO-Ny-zDO"
id=
"yti-qp-uz3"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
contentMode=
"scaleToFill"
id=
"iN0-l3-epB"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"49"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XAn-8Y-AsL"
>
<rect
key=
"frame"
x=
"0.0"
y=
"48"
width=
"375"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"3io-lf-h7U"
/>
</constraints>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"标题"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"1sO-Ny-zDO"
>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"360"
height=
"48"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"内容"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"3w0-Kw-4SZ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"360"
height=
"48"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"蓝色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"1sO-Ny-zDO"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
id=
"48M-fn-xFy"
/>
<constraint
firstItem=
"1sO-Ny-zDO"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
constant=
"15"
id=
"4eJ-2Y-0YX"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"XAn-8Y-AsL"
secondAttribute=
"bottom"
id=
"9OK-M1-Vvv"
/>
<constraint
firstItem=
"XAn-8Y-AsL"
firstAttribute=
"top"
secondItem=
"1sO-Ny-zDO"
secondAttribute=
"bottom"
id=
"L8N-iU-GOX"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"1sO-Ny-zDO"
secondAttribute=
"trailing"
id=
"VkG-yB-ZRY"
/>
<constraint
firstItem=
"3w0-Kw-4SZ"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"Wr2-Lq-vJM"
/>
<constraint
firstItem=
"XAn-8Y-AsL"
firstAttribute=
"top"
secondItem=
"3w0-Kw-4SZ"
secondAttribute=
"bottom"
id=
"fxZ-fs-1wG"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"3w0-Kw-4SZ"
secondAttribute=
"trailing"
constant=
"15"
id=
"gW0-8L-BOg"
/>
<constraint
firstItem=
"3w0-Kw-4SZ"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
id=
"pOV-sh-scy"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"XAn-8Y-AsL"
secondAttribute=
"trailing"
id=
"xRP-WF-Yzx"
/>
<constraint
firstItem=
"XAn-8Y-AsL"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"zbX-pS-ahp"
/>
</constraints>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
<point
key=
"canvasLocation"
x=
"133"
y=
"138"
/>
</view>
</objects>
<resources>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27799999713897705"
green=
"0.56099998950958252"
blue=
"0.88999998569488525"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
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