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
eae5f8f2
Commit
eae5f8f2
authored
Nov 03, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分销商品管理界面
parent
b4cfb21c
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
662 additions
and
13 deletions
+662
-13
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+32
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Assets.xcassets/分销商管理/down_black.imageset/Contents.json
...m/Assets.xcassets/分销商管理/down_black.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/分销商管理/down_black.imageset/down_black.png
.../Assets.xcassets/分销商管理/down_black.imageset/down_black.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/分销商管理/down_black.imageset/down_black@2x.png
...sets.xcassets/分销商管理/down_black.imageset/down_black@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/分销商管理/down_black.imageset/down_black@3x.png
...sets.xcassets/分销商管理/down_black.imageset/down_black@3x.png
+0
-0
GeliBusinessPlatform/View/Cell/GYS_FX_ProductCellTableViewCell.swift
...sPlatform/View/Cell/GYS_FX_ProductCellTableViewCell.swift
+15
-2
GeliBusinessPlatform/View/Cell/GYS_FX_ProductCellTableViewCell.xib
...essPlatform/View/Cell/GYS_FX_ProductCellTableViewCell.xib
+23
-1
GeliBusinessPlatform/View/Cell/GYS_GuanLi_Cell.swift
GeliBusinessPlatform/View/Cell/GYS_GuanLi_Cell.swift
+6
-8
GeliBusinessPlatform/View/Cell/GYS_GuanLi_Cell.xib
GeliBusinessPlatform/View/Cell/GYS_GuanLi_Cell.xib
+5
-2
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_SearchViewController.swift
...iewController/供应商分销商品管理/GYS_FX_SearchViewController.swift
+1
-0
GeliBusinessPlatform/ViewController/供应商合作管理/GYS_HZ_Vc.swift
GeliBusinessPlatform/ViewController/供应商合作管理/GYS_HZ_Vc.swift
+95
-0
GeliBusinessPlatform/ViewController/供应商合作管理/GYS_HZ_Vc.xib
GeliBusinessPlatform/ViewController/供应商合作管理/GYS_HZ_Vc.xib
+59
-0
GeliBusinessPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.swift
...sPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.swift
+158
-0
GeliBusinessPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.xib
...essPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.xib
+245
-0
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
eae5f8f2
...
@@ -186,6 +186,10 @@
...
@@ -186,6 +186,10 @@
E0707DD624624B5200E039A8
/* AMap.bundle in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0707DD524624B5200E039A8
/* AMap.bundle */
;
};
E0707DD624624B5200E039A8
/* AMap.bundle in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0707DD524624B5200E039A8
/* AMap.bundle */
;
};
E074B69C24DD305600777003
/* TitleHeaderCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E074B69A24DD305500777003
/* TitleHeaderCell.swift */
;
};
E074B69C24DD305600777003
/* TitleHeaderCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E074B69A24DD305500777003
/* TitleHeaderCell.swift */
;
};
E074B69D24DD305600777003
/* TitleHeaderCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E074B69B24DD305500777003
/* TitleHeaderCell.xib */
;
};
E074B69D24DD305600777003
/* TitleHeaderCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E074B69B24DD305500777003
/* TitleHeaderCell.xib */
;
};
E077DC5F255124B8000B0DA5
/* GYS_HZ_Vc.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E077DC5D255124B8000B0DA5
/* GYS_HZ_Vc.swift */
;
};
E077DC60255124B8000B0DA5
/* GYS_HZ_Vc.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E077DC5E255124B8000B0DA5
/* GYS_HZ_Vc.xib */
;
};
E077DC6A25512E94000B0DA5
/* FX_Product_GuanLiVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E077DC6825512E94000B0DA5
/* FX_Product_GuanLiVC.swift */
;
};
E077DC6B25512E94000B0DA5
/* FX_Product_GuanLiVC.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E077DC6925512E94000B0DA5
/* FX_Product_GuanLiVC.xib */
;
};
E07B1E5E24591AA50055BA3C
/* KeHuXQViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E07B1E5C24591AA50055BA3C
/* KeHuXQViewController.swift */
;
};
E07B1E5E24591AA50055BA3C
/* KeHuXQViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E07B1E5C24591AA50055BA3C
/* KeHuXQViewController.swift */
;
};
E07B1E5F24591AA50055BA3C
/* KeHuXQViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E07B1E5D24591AA50055BA3C
/* KeHuXQViewController.xib */
;
};
E07B1E5F24591AA50055BA3C
/* KeHuXQViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E07B1E5D24591AA50055BA3C
/* KeHuXQViewController.xib */
;
};
E07B1E62245921A60055BA3C
/* KeHuXQCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E07B1E60245921A60055BA3C
/* KeHuXQCell.swift */
;
};
E07B1E62245921A60055BA3C
/* KeHuXQCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E07B1E60245921A60055BA3C
/* KeHuXQCell.swift */
;
};
...
@@ -826,6 +830,10 @@
...
@@ -826,6 +830,10 @@
E0707DD524624B5200E039A8
/* AMap.bundle */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"wrapper.plug-in"
;
name
=
AMap.bundle
;
path
=
MAMapKit.framework/AMap.bundle
;
sourceTree
=
"<group>"
;
};
E0707DD524624B5200E039A8
/* AMap.bundle */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
"wrapper.plug-in"
;
name
=
AMap.bundle
;
path
=
MAMapKit.framework/AMap.bundle
;
sourceTree
=
"<group>"
;
};
E074B69A24DD305500777003
/* TitleHeaderCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TitleHeaderCell.swift
;
sourceTree
=
"<group>"
;
};
E074B69A24DD305500777003
/* TitleHeaderCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TitleHeaderCell.swift
;
sourceTree
=
"<group>"
;
};
E074B69B24DD305500777003
/* TitleHeaderCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
TitleHeaderCell.xib
;
sourceTree
=
"<group>"
;
};
E074B69B24DD305500777003
/* TitleHeaderCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
TitleHeaderCell.xib
;
sourceTree
=
"<group>"
;
};
E077DC5D255124B8000B0DA5
/* GYS_HZ_Vc.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GYS_HZ_Vc.swift
;
sourceTree
=
"<group>"
;
};
E077DC5E255124B8000B0DA5
/* GYS_HZ_Vc.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
GYS_HZ_Vc.xib
;
sourceTree
=
"<group>"
;
};
E077DC6825512E94000B0DA5
/* FX_Product_GuanLiVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
FX_Product_GuanLiVC.swift
;
sourceTree
=
"<group>"
;
};
E077DC6925512E94000B0DA5
/* FX_Product_GuanLiVC.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
FX_Product_GuanLiVC.xib
;
sourceTree
=
"<group>"
;
};
E07B1E5C24591AA50055BA3C
/* KeHuXQViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
KeHuXQViewController.swift
;
sourceTree
=
"<group>"
;
};
E07B1E5C24591AA50055BA3C
/* KeHuXQViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
KeHuXQViewController.swift
;
sourceTree
=
"<group>"
;
};
E07B1E5D24591AA50055BA3C
/* KeHuXQViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
KeHuXQViewController.xib
;
sourceTree
=
"<group>"
;
};
E07B1E5D24591AA50055BA3C
/* KeHuXQViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
KeHuXQViewController.xib
;
sourceTree
=
"<group>"
;
};
E07B1E60245921A60055BA3C
/* KeHuXQCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
KeHuXQCell.swift
;
sourceTree
=
"<group>"
;
};
E07B1E60245921A60055BA3C
/* KeHuXQCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
KeHuXQCell.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -1818,6 +1826,24 @@
...
@@ -1818,6 +1826,24 @@
path
=
"地图"
;
path
=
"地图"
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
};
};
E077DC5C25512489000B0DA5
/* 供应商合作管理 */
=
{
isa
=
PBXGroup
;
children
=
(
E077DC5D255124B8000B0DA5
/* GYS_HZ_Vc.swift */
,
E077DC5E255124B8000B0DA5
/* GYS_HZ_Vc.xib */
,
);
path
=
"供应商合作管理"
;
sourceTree
=
"<group>"
;
};
E077DC6725512E73000B0DA5
/* 分销商品管理 */
=
{
isa
=
PBXGroup
;
children
=
(
E077DC6825512E94000B0DA5
/* FX_Product_GuanLiVC.swift */
,
E077DC6925512E94000B0DA5
/* FX_Product_GuanLiVC.xib */
,
);
path
=
"分销商品管理"
;
sourceTree
=
"<group>"
;
};
E07B1E64245925F30055BA3C
/* 供应商管理 */
=
{
E07B1E64245925F30055BA3C
/* 供应商管理 */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
...
@@ -1973,6 +1999,8 @@
...
@@ -1973,6 +1999,8 @@
E09B03AD2445B0BA00211A51
/* ViewController */
=
{
E09B03AD2445B0BA00211A51
/* ViewController */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
E077DC6725512E73000B0DA5
/* 分销商品管理 */
,
E077DC5C25512489000B0DA5
/* 供应商合作管理 */
,
E0AD92E62550E4DD00D82C17
/* 供应商分销商品管理 */
,
E0AD92E62550E4DD00D82C17
/* 供应商分销商品管理 */
,
F9C2F6EF254FDEAC00516E00
/* 分销商分账设置 */
,
F9C2F6EF254FDEAC00516E00
/* 分销商分账设置 */
,
F9A4AB6A24C9220C00094BD1
/* 货拉拉 */
,
F9A4AB6A24C9220C00094BD1
/* 货拉拉 */
,
...
@@ -3268,6 +3296,7 @@
...
@@ -3268,6 +3296,7 @@
F9023F63244999F500DD5A63
/* WarehoseMangementCell.xib in Resources */
,
F9023F63244999F500DD5A63
/* WarehoseMangementCell.xib in Resources */
,
E051EBD824A1F0ED00892DA9
/* CGDCell.xib in Resources */
,
E051EBD824A1F0ED00892DA9
/* CGDCell.xib in Resources */
,
E01E5485254FD34C00A2620C
/* GYS_GuanLi_Cell.xib in Resources */
,
E01E5485254FD34C00A2620C
/* GYS_GuanLi_Cell.xib in Resources */
,
E077DC6B25512E94000B0DA5
/* FX_Product_GuanLiVC.xib in Resources */
,
F96E48A024CA7930000AB8D4
/* WaybillDetailViewController.xib in Resources */
,
F96E48A024CA7930000AB8D4
/* WaybillDetailViewController.xib in Resources */
,
E0BE8A84245A76AF00E80134
/* XiaDanCGDiZhiCell.xib in Resources */
,
E0BE8A84245A76AF00E80134
/* XiaDanCGDiZhiCell.xib in Resources */
,
E0516F832448086700E373CE
/* MsgCenterCell.xib in Resources */
,
E0516F832448086700E373CE
/* MsgCenterCell.xib in Resources */
,
...
@@ -3428,6 +3457,7 @@
...
@@ -3428,6 +3457,7 @@
F9D44E8424CBC50700FBD8DB
/* WayBillAddressCanDelItemCell.xib in Resources */
,
F9D44E8424CBC50700FBD8DB
/* WayBillAddressCanDelItemCell.xib in Resources */
,
E007B1D9248F7276004D14CC
/* CGDCell1.xib in Resources */
,
E007B1D9248F7276004D14CC
/* CGDCell1.xib in Resources */
,
E0DDCB1E244AE81800DF54C7
/* GuanLianKeHuCell.xib in Resources */
,
E0DDCB1E244AE81800DF54C7
/* GuanLianKeHuCell.xib in Resources */
,
E077DC60255124B8000B0DA5
/* GYS_HZ_Vc.xib in Resources */
,
E0DDCB14244ADF2C00DF54C7
/* ChangePriceNormalCell.xib in Resources */
,
E0DDCB14244ADF2C00DF54C7
/* ChangePriceNormalCell.xib in Resources */
,
E01EA1A5245A60E000F019D5
/* XiaDanChengGongViewController.xib in Resources */
,
E01EA1A5245A60E000F019D5
/* XiaDanChengGongViewController.xib in Resources */
,
E042F74124528CD500CDFA12
/* TitleAndOnlyBtnCell.xib in Resources */
,
E042F74124528CD500CDFA12
/* TitleAndOnlyBtnCell.xib in Resources */
,
...
@@ -3706,6 +3736,7 @@
...
@@ -3706,6 +3736,7 @@
F96E48A324CA79D4000AB8D4
/* WayBillAddressItemCell.swift in Sources */
,
F96E48A324CA79D4000AB8D4
/* WayBillAddressItemCell.swift in Sources */
,
E0273DDD24551D4500B3FCAE
/* OnlyLabelCell.swift in Sources */
,
E0273DDD24551D4500B3FCAE
/* OnlyLabelCell.swift in Sources */
,
F950FDD724518B9500C40530
/* FSCalendarCollectionView.m in Sources */
,
F950FDD724518B9500C40530
/* FSCalendarCollectionView.m in Sources */
,
E077DC5F255124B8000B0DA5
/* GYS_HZ_Vc.swift in Sources */
,
E02C88262456B24F00925766
/* WuLiuGenZongViewController.swift in Sources */
,
E02C88262456B24F00925766
/* WuLiuGenZongViewController.swift in Sources */
,
E09B03C62445BF6700211A51
/* NavBarView.swift in Sources */
,
E09B03C62445BF6700211A51
/* NavBarView.swift in Sources */
,
E07C2FFA24ECCD4D0043649B
/* GLMessageAlertView.swift in Sources */
,
E07C2FFA24ECCD4D0043649B
/* GLMessageAlertView.swift in Sources */
,
...
@@ -3804,6 +3835,7 @@
...
@@ -3804,6 +3835,7 @@
F9531F3A2465108800724BEE
/* JXPhotoBrowserNoneAnimator.swift in Sources */
,
F9531F3A2465108800724BEE
/* JXPhotoBrowserNoneAnimator.swift in Sources */
,
E07B1E62245921A60055BA3C
/* KeHuXQCell.swift in Sources */
,
E07B1E62245921A60055BA3C
/* KeHuXQCell.swift in Sources */
,
E0CC847C24823087009B1FE9
/* GetGoodBatchModel.swift in Sources */
,
E0CC847C24823087009B1FE9
/* GetGoodBatchModel.swift in Sources */
,
E077DC6A25512E94000B0DA5
/* FX_Product_GuanLiVC.swift in Sources */
,
E0AA3A89248F3E1400CBFC27
/* StatisticsInterface.swift in Sources */
,
E0AA3A89248F3E1400CBFC27
/* StatisticsInterface.swift in Sources */
,
E0F8E91F248747D200817A08
/* NewCKVc.swift in Sources */
,
E0F8E91F248747D200817A08
/* NewCKVc.swift in Sources */
,
E0239202249069FD00C4C632
/* CGDXQVc.swift in Sources */
,
E0239202249069FD00C4C632
/* CGDXQVc.swift in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
eae5f8f2
No preview for this file type
GeliBusinessPlatform/Assets.xcassets/分销商管理/down_black.imageset/Contents.json
0 → 100644
View file @
eae5f8f2
{
"images"
:
[
{
"filename"
:
"down_black.png"
,
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"down_black@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"down_black@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
GeliBusinessPlatform/Assets.xcassets/分销商管理/down_black.imageset/down_black.png
0 → 100644
View file @
eae5f8f2
248 Bytes
GeliBusinessPlatform/Assets.xcassets/分销商管理/down_black.imageset/down_black@2x.png
0 → 100644
View file @
eae5f8f2
491 Bytes
GeliBusinessPlatform/Assets.xcassets/分销商管理/down_black.imageset/down_black@3x.png
0 → 100644
View file @
eae5f8f2
923 Bytes
GeliBusinessPlatform/View/Cell/GYS_FX_ProductCellTableViewCell.swift
View file @
eae5f8f2
...
@@ -7,9 +7,22 @@
...
@@ -7,9 +7,22 @@
//
//
import
UIKit
import
UIKit
protocol
GYS_FX_ProductCellDelegate
{
func
GYS_FX_ProductCellTableViewCellSelect
(
idx
:
Int
)
}
class
GYS_FX_ProductCellTableViewCell
:
UITableViewCell
{
class
GYS_FX_ProductCellTableViewCell
:
UITableViewCell
{
var
delegate
:
GYS_FX_ProductCellDelegate
?
@IBAction
func
selectProductAction
(
_
sender
:
UIButton
)
{
// left_btn.isSelected = !left_btn.isSelected
// select_Img.image = UIImage(named: "daixuan")
// if left_btn.isSelected {
// select_Img.image = UIImage(named: "yuxuan")
// }
delegate
?
.
GYS_FX_ProductCellTableViewCellSelect
(
idx
:
self
.
tag
)
}
@IBOutlet
weak
var
left_btn
:
UIButton
!
@IBOutlet
weak
var
select_Img
:
UIImageView
!
@IBOutlet
weak
var
old_price_Lbl
:
UILabel
!//
原价
@IBOutlet
weak
var
old_price_Lbl
:
UILabel
!//
原价
@IBOutlet
weak
var
new_price_Lbl
:
UILabel
!//
分销价
@IBOutlet
weak
var
new_price_Lbl
:
UILabel
!//
分销价
...
...
GeliBusinessPlatform/View/Cell/GYS_FX_ProductCellTableViewCell.xib
View file @
eae5f8f2
...
@@ -157,12 +157,31 @@
...
@@ -157,12 +157,31 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</userDefinedRuntimeAttributes>
</view>
</view>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"daixuan"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ewJ-WY-yIu"
>
<rect
key=
"frame"
x=
"15"
y=
"55"
width=
"20"
height=
"20"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"20"
id=
"6Qe-hc-uBa"
/>
<constraint
firstAttribute=
"width"
constant=
"20"
id=
"ka8-3G-rLG"
/>
</constraints>
</imageView>
<button
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"qor-h2-doo"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"0.0"
height=
"125"
/>
<connections>
<action
selector=
"selectProductAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"NOo-Tc-hel"
/>
</connections>
</button>
</subviews>
</subviews>
<constraints>
<constraints>
<constraint
firstItem=
"qor-h2-doo"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"1Rc-t8-dYc"
/>
<constraint
firstItem=
"z5k-CZ-aID"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"5"
id=
"93A-sx-62m"
/>
<constraint
firstItem=
"z5k-CZ-aID"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"5"
id=
"93A-sx-62m"
/>
<constraint
firstItem=
"z5k-CZ-aID"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
id=
"Hm5-HY-mc7"
/>
<constraint
firstItem=
"z5k-CZ-aID"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
id=
"Hm5-HY-mc7"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"z5k-CZ-aID"
secondAttribute=
"trailing"
id=
"QlL-HX-GPj"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"z5k-CZ-aID"
secondAttribute=
"trailing"
id=
"QlL-HX-GPj"
/>
<constraint
firstItem=
"z5k-CZ-aID"
firstAttribute=
"leading"
secondItem=
"qor-h2-doo"
secondAttribute=
"trailing"
id=
"R8V-tN-40j"
/>
<constraint
firstItem=
"ewJ-WY-yIu"
firstAttribute=
"centerY"
secondItem=
"z5k-CZ-aID"
secondAttribute=
"centerY"
id=
"WQE-1A-Y6f"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"qor-h2-doo"
secondAttribute=
"bottom"
id=
"XAt-ib-eqo"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"z5k-CZ-aID"
secondAttribute=
"bottom"
id=
"XjJ-nm-8dX"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"z5k-CZ-aID"
secondAttribute=
"bottom"
id=
"XjJ-nm-8dX"
/>
<constraint
firstItem=
"ewJ-WY-yIu"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"dgr-9M-YjQ"
/>
<constraint
firstItem=
"qor-h2-doo"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
id=
"f9o-ck-MzT"
/>
</constraints>
</constraints>
</tableViewCellContentView>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
...
@@ -171,18 +190,21 @@
...
@@ -171,18 +190,21 @@
<outlet
property=
"FX_Percent_Lbl"
destination=
"rhK-mv-sfb"
id=
"2jQ-Xp-BSC"
/>
<outlet
property=
"FX_Percent_Lbl"
destination=
"rhK-mv-sfb"
id=
"2jQ-Xp-BSC"
/>
<outlet
property=
"item_Icon_Img"
destination=
"WYJ-BO-wv9"
id=
"vgb-ui-8ct"
/>
<outlet
property=
"item_Icon_Img"
destination=
"WYJ-BO-wv9"
id=
"vgb-ui-8ct"
/>
<outlet
property=
"leftValue"
destination=
"Hm5-HY-mc7"
id=
"USY-ug-Pjx"
/>
<outlet
property=
"leftValue"
destination=
"Hm5-HY-mc7"
id=
"USY-ug-Pjx"
/>
<outlet
property=
"left_btn"
destination=
"qor-h2-doo"
id=
"D95-B4-Mtj"
/>
<outlet
property=
"new_price_Lbl"
destination=
"N0T-3l-rU8"
id=
"Phq-aR-dw2"
/>
<outlet
property=
"new_price_Lbl"
destination=
"N0T-3l-rU8"
id=
"Phq-aR-dw2"
/>
<outlet
property=
"old_price_Lbl"
destination=
"Bjz-wA-QCI"
id=
"QpF-xT-Cmt"
/>
<outlet
property=
"old_price_Lbl"
destination=
"Bjz-wA-QCI"
id=
"QpF-xT-Cmt"
/>
<outlet
property=
"select_Img"
destination=
"ewJ-WY-yIu"
id=
"VXJ-6q-8Lj"
/>
<outlet
property=
"sell_total_Lbl"
destination=
"kGs-Qz-GbO"
id=
"aV5-7D-azv"
/>
<outlet
property=
"sell_total_Lbl"
destination=
"kGs-Qz-GbO"
id=
"aV5-7D-azv"
/>
<outlet
property=
"store_lbl"
destination=
"k6M-ar-xGi"
id=
"t58-eL-8IV"
/>
<outlet
property=
"store_lbl"
destination=
"k6M-ar-xGi"
id=
"t58-eL-8IV"
/>
<outlet
property=
"submitBtn"
destination=
"Cae-xu-msI"
id=
"2xy-ux-krI"
/>
<outlet
property=
"submitBtn"
destination=
"Cae-xu-msI"
id=
"2xy-ux-krI"
/>
<outlet
property=
"submit_Btn_W"
destination=
"TbZ-Ta-i8s"
id=
"FMB-6V-kPg"
/>
<outlet
property=
"submit_Btn_W"
destination=
"TbZ-Ta-i8s"
id=
"FMB-6V-kPg"
/>
<outlet
property=
"title_Lbl"
destination=
"io4-Mx-VZ7"
id=
"Usl-Mp-pm1"
/>
<outlet
property=
"title_Lbl"
destination=
"io4-Mx-VZ7"
id=
"Usl-Mp-pm1"
/>
</connections>
</connections>
<point
key=
"canvasLocation"
x=
"2
60.14492753623188
"
y=
"119.53125"
/>
<point
key=
"canvasLocation"
x=
"2
58.69565217391306
"
y=
"119.53125"
/>
</tableViewCell>
</tableViewCell>
</objects>
</objects>
<resources>
<resources>
<image
name=
"daixuan"
width=
"19"
height=
"19"
/>
<namedColor
name=
"#E37847"
>
<namedColor
name=
"#E37847"
>
<color
red=
"0.88999998569488525"
green=
"0.47099998593330383"
blue=
"0.27799999713897705"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.88999998569488525"
green=
"0.47099998593330383"
blue=
"0.27799999713897705"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
...
...
GeliBusinessPlatform/View/Cell/GYS_GuanLi_Cell.swift
View file @
eae5f8f2
...
@@ -7,21 +7,19 @@
...
@@ -7,21 +7,19 @@
//
//
import
UIKit
import
UIKit
protocol
GYS_GuanLi_CellDelegate
{
func
GYS_GuanLi_CellStopAction
(
idx
:
Int
)
}
class
GYS_GuanLi_Cell
:
UITableViewCell
{
class
GYS_GuanLi_Cell
:
UITableViewCell
{
var
isFenXiaoShang
:
Bool
=
false
//分销商管理 == true,改变合作按钮颜色。
var
isFenXiaoShang
:
Bool
=
false
//分销商管理 == true,改变合作按钮颜色。
var
delegate
:
GYS_GuanLi_CellDelegate
?
@IBOutlet
weak
var
icon_Img
:
UIImageView
!//
公司LOGO
@IBOutlet
weak
var
icon_Img
:
UIImageView
!//
公司LOGO
@IBOutlet
weak
var
status_Lbl
:
UILabel
!//
状态
@IBOutlet
weak
var
status_Lbl
:
UILabel
!//
状态
@IBOutlet
weak
var
time_Lbl
:
UILabel
!//
时间
@IBOutlet
weak
var
time_Lbl
:
UILabel
!//
时间
@IBOutlet
weak
var
adr_Lbl
:
UILabel
!//
地址
@IBOutlet
weak
var
adr_Lbl
:
UILabel
!//
地址
@IBOutlet
weak
var
title_Lbl
:
UILabel
!//
公司名
@IBOutlet
weak
var
title_Lbl
:
UILabel
!//
公司名
@IBAction
func
stopAction
(
_
sender
:
UIButton
)
{
@IBAction
func
stopAction
(
_
sender
:
UIButton
)
{
if
isFenXiaoShang
{
delegate
?
.
GYS_GuanLi_CellStopAction
(
idx
:
self
.
tag
)
//分销商管理,删除功能。
return
}
print
(
"终止合作"
)
}
}
@IBOutlet
weak
var
submitBtn
:
UIButton
!//
终止按钮
-
默认隐藏
@IBOutlet
weak
var
submitBtn
:
UIButton
!//
终止按钮
-
默认隐藏
override
func
awakeFromNib
()
{
override
func
awakeFromNib
()
{
...
@@ -38,7 +36,7 @@ class GYS_GuanLi_Cell: UITableViewCell {
...
@@ -38,7 +36,7 @@ class GYS_GuanLi_Cell: UITableViewCell {
submitBtn
.
layer
.
borderWidth
=
1
submitBtn
.
layer
.
borderWidth
=
1
submitBtn
.
layer
.
borderColor
=
UIColor
(
named
:
"按钮背景颜色"
)?
.
cgColor
submitBtn
.
layer
.
borderColor
=
UIColor
(
named
:
"按钮背景颜色"
)?
.
cgColor
submitBtn
.
setTitle
(
"删除"
,
for
:
.
normal
)
submitBtn
.
setTitle
(
"删除"
,
for
:
.
normal
)
submitBtn
.
titleLabel
?
.
textColor
=
UIColor
(
named
:
"按钮背景颜色"
)
submitBtn
.
setTitleColor
(
UIColor
(
named
:
"按钮背景颜色"
),
for
:
.
normal
)
}
}
}
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
...
...
GeliBusinessPlatform/View/Cell/GYS_GuanLi_Cell.xib
View file @
eae5f8f2
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<subviews>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"cfa-aa-rbj"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"cfa-aa-rbj"
>
<rect
key=
"frame"
x=
"15"
y=
"146"
width=
"360"
height=
"2"
/>
<rect
key=
"frame"
x=
"15"
y=
"146"
width=
"360"
height=
"2"
/>
<color
key=
"backgroundColor"
name=
"
提示语字体颜色
"
/>
<color
key=
"backgroundColor"
name=
"
灰色分界线
"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"2"
id=
"QNY-k4-3Ls"
/>
<constraint
firstAttribute=
"height"
constant=
"2"
id=
"QNY-k4-3Ls"
/>
</constraints>
</constraints>
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
<color
key=
"textColor"
name=
"9A9A9A"
/>
<color
key=
"textColor"
name=
"9A9A9A"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<button
hidden=
"YES"
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"upr-nd-ZPR"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"upr-nd-ZPR"
>
<rect
key=
"frame"
x=
"280"
y=
"101"
width=
"80"
height=
"30"
/>
<rect
key=
"frame"
x=
"280"
y=
"101"
width=
"80"
height=
"30"
/>
<color
key=
"backgroundColor"
name=
"#F57575"
/>
<color
key=
"backgroundColor"
name=
"#F57575"
/>
<constraints>
<constraints>
...
@@ -177,5 +177,8 @@
...
@@ -177,5 +177,8 @@
<namedColor
name=
"标题字颜色"
>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</resources>
</document>
</document>
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_SearchViewController.swift
View file @
eae5f8f2
...
@@ -51,6 +51,7 @@ class GYS_FX_SearchViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -51,6 +51,7 @@ class GYS_FX_SearchViewController: BaseViewController,UITableViewDelegate,UITabl
searchV
?
.
changecornerRadius
(
cornerRadius
:
35*0.5
)
searchV
?
.
changecornerRadius
(
cornerRadius
:
35*0.5
)
searchBr
.
delegate
=
self
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
delegateL
=
self
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
0
)
make
.
left
.
equalTo
(
0
)
make
.
right
.
equalTo
(
0
)
make
.
right
.
equalTo
(
0
)
...
...
GeliBusinessPlatform/ViewController/供应商合作管理/GYS_HZ_Vc.swift
0 → 100644
View file @
eae5f8f2
//
// GYS_HZ_Vc.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/11/3.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
GYS_HZ_Vc
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
GYS_GuanLi_CellDelegate
{
func
GYS_GuanLi_CellStopAction
(
idx
:
Int
)
{
print
(
"target = "
,
idx
)
}
var
keyword
=
""
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
searchBar
.
resignFirstResponder
()
keyword
=
searchBar
.
text
!
}
//MARK:--取消搜索代理
func
clearSearchAction
()
{
print
(
"取消搜索代理了--"
)
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
if
searchBar
.
text
?
.
count
==
0
&&
keyword
.
count
!=
0
{
keyword
=
searchBar
.
text
!
}
print
(
"key - "
,
searchBar
.
text
!
)
}
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
print
(
"调起搜索后添加个蒙版本"
)
return
true
}
var
title_str
=
""
weak
var
searchV
:
SearchBarView
?
=
nil
@IBOutlet
weak
var
search_view
:
UIView
!
@IBOutlet
weak
var
home_list_tbv
:
UITableView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
SetTopFrame
(
view
:
search_view
,
height
:
44
)
navbar
.
title
=
title_str
self
.
view
.
addSubview
(
navbar
)
let
searchBr
=
SearchBarView
.
init
()
searchV
=
searchBr
var
holder_str
=
"请输入供应商名称"
if
title_str
==
"分销商管理"
{
navbar
.
rightTitle
=
"新增店铺"
// holder_str = "请输入供应商名称"
}
searchBr
.
placeholderStr
=
holder_str
self
.
search_view
.
addSubview
(
searchBr
)
searchV
?
.
changecornerRadius
(
cornerRadius
:
35*0.5
)
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
0
)
make
.
right
.
equalTo
(
0
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
35
)
}
home_list_tbv
.
register
(
UINib
(
nibName
:
"GYS_GuanLi_Cell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"GYS_GuanLi_Cell"
)
home_list_tbv
.
separatorStyle
=
.
none
// Do any additional setup after loading the view.
}
//MARK: - tableview_delegate
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
3
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"GYS_GuanLi_Cell"
)
as!
GYS_GuanLi_Cell
cell
.
delegate
=
self
if
title_str
==
"分销商管理"
{
cell
.
isFenXiaoShang
=
true
}
cell
.
tag
=
indexPath
.
row
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
148
}
}
GeliBusinessPlatform/ViewController/供应商合作管理/GYS_HZ_Vc.xib
0 → 100644
View file @
eae5f8f2
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17156"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17125"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"GYS_HZ_Vc"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"home_list_tbv"
destination=
"f0E-BN-PPh"
id=
"Jpa-vj-qQx"
/>
<outlet
property=
"search_view"
destination=
"04E-ze-DHm"
id=
"H8v-jO-Odr"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
clearsContextBeforeDrawing=
"NO"
contentMode=
"scaleToFill"
id=
"i5M-Pr-FkT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"04E-ze-DHm"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"72B-mD-ZMY"
/>
</constraints>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"f0E-BN-PPh"
>
<rect
key=
"frame"
x=
"0.0"
y=
"88"
width=
"414"
height=
"808"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"8fU-JY-MXI"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"xPj-eI-OLC"
/>
</connections>
</tableView>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"f0E-BN-PPh"
firstAttribute=
"top"
secondItem=
"04E-ze-DHm"
secondAttribute=
"bottom"
id=
"8lh-kQ-UdH"
/>
<constraint
firstItem=
"f0E-BN-PPh"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"K9R-Lw-ZD6"
/>
<constraint
firstItem=
"04E-ze-DHm"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"RQR-zA-wUg"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"f0E-BN-PPh"
secondAttribute=
"bottom"
id=
"Wgp-tw-dtq"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"04E-ze-DHm"
secondAttribute=
"trailing"
id=
"ksR-2f-0rm"
/>
<constraint
firstItem=
"04E-ze-DHm"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"oxW-3i-dki"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"f0E-BN-PPh"
secondAttribute=
"trailing"
id=
"r6y-er-ecp"
/>
</constraints>
<point
key=
"canvasLocation"
x=
"142"
y=
"76"
/>
</view>
</objects>
<resources>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.swift
0 → 100644
View file @
eae5f8f2
//
// FX_Product_GuanLiVC.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/11/3.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
FX_Product_GuanLiVC
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
GYS_FX_ProductCellDelegate
{
var
keyword
=
""
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
searchBar
.
resignFirstResponder
()
keyword
=
searchBar
.
text
!
}
//MARK:--取消搜索代理
func
clearSearchAction
()
{
print
(
"取消搜索代理了--"
)
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
if
searchBar
.
text
?
.
count
==
0
&&
keyword
.
count
!=
0
{
keyword
=
searchBar
.
text
!
}
print
(
"key - "
,
searchBar
.
text
!
)
}
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
print
(
"调起搜索后添加个蒙版本"
)
return
true
}
@IBAction
func
allSelect
(
_
sender
:
UIButton
)
{
sender
.
isSelected
=
!
sender
.
isSelected
selectItem
.
removeAll
()
if
sender
.
isSelected
{
home_list_tbv
.
visibleCells
.
forEach
{
(
item
)
in
let
cell
=
item
as!
GYS_FX_ProductCellTableViewCell
selectItem
.
append
(
cell
.
tag
)
}
}
home_list_tbv
.
reloadData
()
}
var
is_Edit
=
false
func
rightBtnClick
()
{
is_Edit
=
!
is_Edit
navbar
.
rightTitle
=
"编辑商品"
edit_bottom_view_H
.
constant
=
0
if
is_Edit
{
navbar
.
rightTitle
=
"取消"
if
IS_IPHONE_X
{
edit_bottom_view_H
.
constant
=
83
}
else
{
edit_bottom_view_H
.
constant
=
49
}
}
home_list_tbv
.
reloadData
()
}
@IBOutlet
weak
var
home_list_tbv
:
UITableView
!
@IBOutlet
weak
var
right_title
:
UILabel
!
@IBOutlet
weak
var
left_title
:
UILabel
!
@IBOutlet
weak
var
right_arrow_img
:
UIButton
!
@IBOutlet
weak
var
left_arrow_img
:
UIImageView
!
@IBOutlet
weak
var
count_lbl
:
UILabel
!//
数量
@IBOutlet
weak
var
search_view
:
UIView
!
weak
var
searchV
:
SearchBarView
?
=
nil
@IBOutlet
weak
var
edit_bottom_view_H
:
NSLayoutConstraint
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
SetTopFrame
(
view
:
search_view
,
height
:
44
)
navbar
.
title
=
"分销商品管理"
self
.
view
.
addSubview
(
navbar
)
navbar
.
rightTitle
=
"编辑商品"
let
searchBr
=
SearchBarView
.
init
()
searchV
=
searchBr
searchBr
.
placeholderStr
=
"请输入分销商品名称"
self
.
search_view
.
addSubview
(
searchBr
)
searchV
?
.
changecornerRadius
(
cornerRadius
:
35*0.5
)
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
0
)
make
.
right
.
equalTo
(
0
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
35
)
}
home_list_tbv
.
register
(
UINib
(
nibName
:
"GYS_FX_ProductCellTableViewCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"GYS_FX_ProductCellTableViewCell"
)
home_list_tbv
.
separatorStyle
=
.
none
// Do any additional setup after loading the view.
}
//MARK: - tableview_delegate
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
30
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"GYS_FX_ProductCellTableViewCell"
)
as!
GYS_FX_ProductCellTableViewCell
cell
.
submitBtn
.
setTitle
(
"设置"
,
for
:
.
normal
)
cell
.
submitBtn
.
setTitleColor
(
UIColor
(
named
:
"按钮背景颜色"
),
for
:
.
normal
)
cell
.
tag
=
indexPath
.
row
cell
.
delegate
=
self
if
is_Edit
{
cell
.
leftValue
.
constant
=
45
cell
.
submit_Btn_W
.
constant
=
10
cell
.
submitBtn
.
isHidden
=
true
cell
.
left_btn
.
isUserInteractionEnabled
=
true
cell
.
select_Img
.
isHidden
=
false
cell
.
select_Img
.
image
=
UIImage
(
named
:
"daixuan"
)
selectItem
.
forEach
{
(
idx
)
in
if
idx
==
indexPath
.
row
{
cell
.
select_Img
.
image
=
UIImage
(
named
:
"yuxuan"
)
}
}
}
else
{
cell
.
leftValue
.
constant
=
0
cell
.
submit_Btn_W
.
constant
=
50
cell
.
submitBtn
.
isHidden
=
false
cell
.
left_btn
.
isUserInteractionEnabled
=
false
cell
.
select_Img
.
isHidden
=
true
}
return
cell
}
var
selectItem
:
Array
<
Int
>
=
[]
func
GYS_FX_ProductCellTableViewCellSelect
(
idx
:
Int
)
{
if
selectItem
.
contains
(
idx
){
let
index
=
selectItem
.
firstIndex
(
of
:
idx
)
selectItem
.
remove
(
at
:
index
!
)
}
else
{
selectItem
.
append
(
idx
)
}
home_list_tbv
.
reloadData
()
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
125
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
}
}
GeliBusinessPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.xib
0 → 100644
View file @
eae5f8f2
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17156"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17125"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"FX_Product_GuanLiVC"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"count_lbl"
destination=
"cql-r2-rMK"
id=
"22X-eW-4uK"
/>
<outlet
property=
"edit_bottom_view_H"
destination=
"ERg-pr-S8x"
id=
"2Qe-1Y-UGP"
/>
<outlet
property=
"home_list_tbv"
destination=
"bdM-Ne-23v"
id=
"IbX-V9-kxb"
/>
<outlet
property=
"left_arrow_img"
destination=
"vA6-ms-fq4"
id=
"Dcl-93-qeI"
/>
<outlet
property=
"left_title"
destination=
"fe9-i2-RKB"
id=
"Cwn-jR-S0v"
/>
<outlet
property=
"right_arrow_img"
destination=
"Z6Z-hX-dxA"
id=
"cxW-5C-f5A"
/>
<outlet
property=
"right_title"
destination=
"qvp-uj-CDO"
id=
"AWs-ge-IPf"
/>
<outlet
property=
"search_view"
destination=
"PRi-3L-xM8"
id=
"w4D-xa-5mf"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
clearsContextBeforeDrawing=
"NO"
contentMode=
"scaleToFill"
id=
"i5M-Pr-FkT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"PRi-3L-xM8"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"OaS-sS-lUs"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"oxr-Do-FWP"
>
<rect
key=
"frame"
x=
"0.0"
y=
"88"
width=
"414"
height=
"40"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"cEE-Ua-yiP"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"207"
height=
"40"
/>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Z6Z-hX-dxA"
>
<rect
key=
"frame"
x=
"207"
y=
"0.0"
width=
"207"
height=
"40"
/>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"全部商品"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"fe9-i2-RKB"
>
<rect
key=
"frame"
x=
"67"
y=
"13.5"
width=
"53.5"
height=
"13"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"13"
id=
"B1n-Uh-j9M"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"down_black"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vA6-ms-fq4"
>
<rect
key=
"frame"
x=
"125.5"
y=
"18"
width=
"9.5"
height=
"4"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"9.5"
id=
"8Hv-7Z-Jgw"
/>
<constraint
firstAttribute=
"height"
constant=
"4"
id=
"XAk-3r-Fte"
/>
</constraints>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"上架"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"qvp-uj-CDO"
>
<rect
key=
"frame"
x=
"287"
y=
"13.5"
width=
"27"
height=
"13"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"13"
id=
"ZvT-eU-qBj"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"down_black"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"lKN-gq-uKz"
>
<rect
key=
"frame"
x=
"319"
y=
"18"
width=
"9.5"
height=
"4"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"4"
id=
"HDk-Uf-VaE"
/>
<constraint
firstAttribute=
"width"
constant=
"9.5"
id=
"WVn-ZN-4L8"
/>
</constraints>
</imageView>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"Z6Z-hX-dxA"
secondAttribute=
"trailing"
id=
"0D4-24-krj"
/>
<constraint
firstItem=
"cEE-Ua-yiP"
firstAttribute=
"top"
secondItem=
"oxr-Do-FWP"
secondAttribute=
"top"
id=
"9Xz-3T-OMU"
/>
<constraint
firstItem=
"lKN-gq-uKz"
firstAttribute=
"centerY"
secondItem=
"qvp-uj-CDO"
secondAttribute=
"centerY"
id=
"ADA-wG-w1R"
/>
<constraint
firstAttribute=
"height"
constant=
"40"
id=
"GhU-Y4-sxb"
/>
<constraint
firstItem=
"Z6Z-hX-dxA"
firstAttribute=
"height"
secondItem=
"cEE-Ua-yiP"
secondAttribute=
"height"
id=
"UMk-SH-EDo"
/>
<constraint
firstItem=
"Z6Z-hX-dxA"
firstAttribute=
"width"
secondItem=
"cEE-Ua-yiP"
secondAttribute=
"width"
id=
"V1X-Ug-Cr7"
/>
<constraint
firstItem=
"cEE-Ua-yiP"
firstAttribute=
"leading"
secondItem=
"oxr-Do-FWP"
secondAttribute=
"leading"
id=
"aXr-6p-IbI"
/>
<constraint
firstItem=
"vA6-ms-fq4"
firstAttribute=
"leading"
secondItem=
"fe9-i2-RKB"
secondAttribute=
"trailing"
constant=
"5"
id=
"b0A-uu-oPW"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Z6Z-hX-dxA"
secondAttribute=
"bottom"
id=
"b2k-jJ-czY"
/>
<constraint
firstItem=
"fe9-i2-RKB"
firstAttribute=
"centerY"
secondItem=
"cEE-Ua-yiP"
secondAttribute=
"centerY"
id=
"bb5-mL-uQo"
/>
<constraint
firstItem=
"Z6Z-hX-dxA"
firstAttribute=
"leading"
secondItem=
"cEE-Ua-yiP"
secondAttribute=
"trailing"
id=
"bju-hZ-aBU"
/>
<constraint
firstItem=
"qvp-uj-CDO"
firstAttribute=
"centerY"
secondItem=
"Z6Z-hX-dxA"
secondAttribute=
"centerY"
id=
"deP-SV-Xas"
/>
<constraint
firstItem=
"Z6Z-hX-dxA"
firstAttribute=
"top"
secondItem=
"oxr-Do-FWP"
secondAttribute=
"top"
id=
"k1R-do-VlA"
/>
<constraint
firstItem=
"lKN-gq-uKz"
firstAttribute=
"leading"
secondItem=
"qvp-uj-CDO"
secondAttribute=
"trailing"
constant=
"5"
id=
"kDp-kY-pt2"
/>
<constraint
firstItem=
"vA6-ms-fq4"
firstAttribute=
"centerY"
secondItem=
"fe9-i2-RKB"
secondAttribute=
"centerY"
id=
"mKQ-bm-G2Z"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"cEE-Ua-yiP"
secondAttribute=
"bottom"
id=
"qFH-YN-XwK"
/>
<constraint
firstItem=
"fe9-i2-RKB"
firstAttribute=
"centerX"
secondItem=
"cEE-Ua-yiP"
secondAttribute=
"centerX"
constant=
"-10"
id=
"spy-7g-eOl"
/>
<constraint
firstItem=
"qvp-uj-CDO"
firstAttribute=
"centerX"
secondItem=
"Z6Z-hX-dxA"
secondAttribute=
"centerX"
constant=
"-10"
id=
"tdN-wN-8u6"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"1qO-Rq-Ngk"
>
<rect
key=
"frame"
x=
"0.0"
y=
"128"
width=
"414"
height=
"30"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"共"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uZg-nT-xsf"
>
<rect
key=
"frame"
x=
"15"
y=
"9.5"
width=
"11.5"
height=
"11"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"11"
id=
"WeI-qi-i6B"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"数量"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"cql-r2-rMK"
>
<rect
key=
"frame"
x=
"31.5"
y=
"9.5"
width=
"22.5"
height=
"11"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"11"
id=
"XIV-gv-rHH"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<color
key=
"textColor"
name=
"#F57575"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"件商品"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"4z8-dm-8VV"
>
<rect
key=
"frame"
x=
"59"
y=
"9.5"
width=
"34"
height=
"11"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"11"
id=
"1Ta-p5-MZ0"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"A8Z-4l-Iae"
/>
<constraint
firstItem=
"cql-r2-rMK"
firstAttribute=
"leading"
secondItem=
"uZg-nT-xsf"
secondAttribute=
"trailing"
constant=
"5"
id=
"Exe-pY-Joy"
/>
<constraint
firstItem=
"uZg-nT-xsf"
firstAttribute=
"centerY"
secondItem=
"1qO-Rq-Ngk"
secondAttribute=
"centerY"
id=
"LiF-wv-ta9"
/>
<constraint
firstItem=
"4z8-dm-8VV"
firstAttribute=
"centerY"
secondItem=
"cql-r2-rMK"
secondAttribute=
"centerY"
id=
"SNQ-3Y-Mh7"
/>
<constraint
firstItem=
"uZg-nT-xsf"
firstAttribute=
"leading"
secondItem=
"1qO-Rq-Ngk"
secondAttribute=
"leading"
constant=
"15"
id=
"kRF-Rp-uXx"
/>
<constraint
firstItem=
"cql-r2-rMK"
firstAttribute=
"centerY"
secondItem=
"uZg-nT-xsf"
secondAttribute=
"centerY"
id=
"o14-gd-oJY"
/>
<constraint
firstItem=
"4z8-dm-8VV"
firstAttribute=
"leading"
secondItem=
"cql-r2-rMK"
secondAttribute=
"trailing"
constant=
"5"
id=
"xpr-46-7Qm"
/>
</constraints>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bdM-Ne-23v"
>
<rect
key=
"frame"
x=
"0.0"
y=
"158"
width=
"414"
height=
"738"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<color
key=
"tintColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"ZA0-5S-u36"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"ToP-cz-wR0"
/>
</connections>
</tableView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ws6-F3-5v6"
>
<rect
key=
"frame"
x=
"0.0"
y=
"896"
width=
"414"
height=
"0.0"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"AiL-FT-8WO"
>
<rect
key=
"frame"
x=
"317"
y=
"9.5"
width=
"82"
height=
"30"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"IgH-Ga-eyd"
/>
<constraint
firstAttribute=
"width"
constant=
"82"
id=
"iQa-lt-8O0"
/>
</constraints>
<state
key=
"normal"
title=
"设置"
>
<color
key=
"titleColor"
name=
"按钮背景颜色"
/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"15"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"borderWidth"
>
<real
key=
"value"
value=
"1"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"borderColor"
>
<color
key=
"value"
name=
"按钮背景颜色"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"60k-Z3-oI0"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"56"
height=
"19"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<state
key=
"normal"
title=
" 全选"
image=
"daixuan"
>
<color
key=
"titleColor"
name=
"标题字颜色"
/>
</state>
<state
key=
"selected"
title=
" 全选"
image=
"yuxuan"
/>
<connections>
<action
selector=
"allSelect:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"BLC-X9-abb"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
id=
"ERg-pr-S8x"
/>
<constraint
firstItem=
"60k-Z3-oI0"
firstAttribute=
"leading"
secondItem=
"ws6-F3-5v6"
secondAttribute=
"leading"
constant=
"15"
id=
"Ins-Ft-FDH"
/>
<constraint
firstItem=
"AiL-FT-8WO"
firstAttribute=
"top"
secondItem=
"ws6-F3-5v6"
secondAttribute=
"top"
constant=
"9.5"
id=
"Qtt-WL-csR"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"AiL-FT-8WO"
secondAttribute=
"trailing"
constant=
"15"
id=
"UN3-us-w6D"
/>
<constraint
firstItem=
"60k-Z3-oI0"
firstAttribute=
"centerY"
secondItem=
"AiL-FT-8WO"
secondAttribute=
"centerY"
id=
"YdR-jq-5cH"
/>
</constraints>
</view>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"oxr-Do-FWP"
firstAttribute=
"top"
secondItem=
"PRi-3L-xM8"
secondAttribute=
"bottom"
id=
"4vS-ks-q4y"
/>
<constraint
firstItem=
"1qO-Rq-Ngk"
firstAttribute=
"top"
secondItem=
"oxr-Do-FWP"
secondAttribute=
"bottom"
id=
"5yL-nj-paa"
/>
<constraint
firstItem=
"bdM-Ne-23v"
firstAttribute=
"top"
secondItem=
"1qO-Rq-Ngk"
secondAttribute=
"bottom"
id=
"AB3-0s-BcX"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"1qO-Rq-Ngk"
secondAttribute=
"trailing"
id=
"CQr-cC-l1h"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"oxr-Do-FWP"
secondAttribute=
"trailing"
id=
"Hsq-Jp-YJA"
/>
<constraint
firstItem=
"ws6-F3-5v6"
firstAttribute=
"top"
secondItem=
"bdM-Ne-23v"
secondAttribute=
"bottom"
id=
"LUI-Bc-Z17"
/>
<constraint
firstItem=
"bdM-Ne-23v"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"MAl-6E-r7t"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"ws6-F3-5v6"
secondAttribute=
"bottom"
id=
"Puw-YF-dHX"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"PRi-3L-xM8"
secondAttribute=
"trailing"
id=
"QUK-jX-uQc"
/>
<constraint
firstItem=
"1qO-Rq-Ngk"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"RZB-pB-ZhC"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"ws6-F3-5v6"
secondAttribute=
"trailing"
id=
"SdI-1w-38g"
/>
<constraint
firstItem=
"oxr-Do-FWP"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"U5n-WH-3e4"
/>
<constraint
firstItem=
"bdM-Ne-23v"
firstAttribute=
"trailing"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"trailing"
id=
"gqv-0i-y0e"
/>
<constraint
firstItem=
"PRi-3L-xM8"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"iVv-hD-tM4"
/>
<constraint
firstItem=
"PRi-3L-xM8"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"w7Q-1Z-vJz"
/>
<constraint
firstItem=
"ws6-F3-5v6"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"wXU-WD-7a7"
/>
</constraints>
<point
key=
"canvasLocation"
x=
"140.57971014492756"
y=
"99.776785714285708"
/>
</view>
</objects>
<resources>
<image
name=
"daixuan"
width=
"19"
height=
"19"
/>
<image
name=
"down_black"
width=
"11.5"
height=
"6"
/>
<image
name=
"yuxuan"
width=
"19"
height=
"19"
/>
<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.2199999988079071"
green=
"0.45500001311302185"
blue=
"0.82700002193450928"
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.40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</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