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
9d9d2a91
Commit
9d9d2a91
authored
Apr 23, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品详情
parent
a72e7a59
Changes
36
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
1749 additions
and
322 deletions
+1749
-322
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+77
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Assets.xcassets/仓库/shangchuantupian.imageset/Contents.json
...ssets.xcassets/仓库/shangchuantupian.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/仓库/shangchuantupian.imageset/shangchuantupian@2x.png
...sets/仓库/shangchuantupian.imageset/shangchuantupian@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/仓库/shangchuantupian.imageset/shangchuantupian@3x.png
...sets/仓库/shangchuantupian.imageset/shangchuantupian@3x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/仓库/xinzeng -1.imageset/Contents.json
...form/Assets.xcassets/仓库/xinzeng -1.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/仓库/xinzeng -1.imageset/xinzeng @2x.png
...rm/Assets.xcassets/仓库/xinzeng -1.imageset/xinzeng @2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/仓库/xinzeng -1.imageset/xinzeng @3x.png
...rm/Assets.xcassets/仓库/xinzeng -1.imageset/xinzeng @3x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/仓库/xinzeng .imageset/Contents.json
...atform/Assets.xcassets/仓库/xinzeng .imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/仓库/xinzeng .imageset/xinzeng @2x.png
...form/Assets.xcassets/仓库/xinzeng .imageset/xinzeng @2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/仓库/xinzeng .imageset/xinzeng @3x.png
...form/Assets.xcassets/仓库/xinzeng .imageset/xinzeng @3x.png
+0
-0
GeliBusinessPlatform/SceneDelegate.swift
GeliBusinessPlatform/SceneDelegate.swift
+1
-2
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
+284
-0
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.xib
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.xib
+161
-0
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
+1
-1
GeliBusinessPlatform/View/AutoTextField.swift
GeliBusinessPlatform/View/AutoTextField.swift
+129
-0
GeliBusinessPlatform/View/Cell/AddGuiGeCell.swift
GeliBusinessPlatform/View/Cell/AddGuiGeCell.swift
+26
-0
GeliBusinessPlatform/View/Cell/AddGuiGeCell.xib
GeliBusinessPlatform/View/Cell/AddGuiGeCell.xib
+40
-0
GeliBusinessPlatform/View/Cell/AddImgCell.swift
GeliBusinessPlatform/View/Cell/AddImgCell.swift
+29
-0
GeliBusinessPlatform/View/Cell/AddImgCell.xib
GeliBusinessPlatform/View/Cell/AddImgCell.xib
+116
-0
GeliBusinessPlatform/View/Cell/ChangePriceNormalCell.xib
GeliBusinessPlatform/View/Cell/ChangePriceNormalCell.xib
+1
-1
GeliBusinessPlatform/View/Cell/CommendCell.swift
GeliBusinessPlatform/View/Cell/CommendCell.swift
+65
-0
GeliBusinessPlatform/View/Cell/CommendCell.xib
GeliBusinessPlatform/View/Cell/CommendCell.xib
+77
-0
GeliBusinessPlatform/View/Cell/DaiQueRenCell.xib
GeliBusinessPlatform/View/Cell/DaiQueRenCell.xib
+36
-8
GeliBusinessPlatform/View/Cell/ShangPinGguiGeCell.swift
GeliBusinessPlatform/View/Cell/ShangPinGguiGeCell.swift
+26
-0
GeliBusinessPlatform/View/Cell/ShangPinGguiGeCell.xib
GeliBusinessPlatform/View/Cell/ShangPinGguiGeCell.xib
+132
-0
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.xib
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.xib
+1
-1
GeliBusinessPlatform/View/Cell/TitleAndSelectCell.swift
GeliBusinessPlatform/View/Cell/TitleAndSelectCell.swift
+33
-0
GeliBusinessPlatform/View/Cell/TitleAndSelectCell.xib
GeliBusinessPlatform/View/Cell/TitleAndSelectCell.xib
+71
-0
GeliBusinessPlatform/View/Cell/TitleContentCell.xib
GeliBusinessPlatform/View/Cell/TitleContentCell.xib
+2
-2
GeliBusinessPlatform/View/Cell/WareHouseSpCell.xib
GeliBusinessPlatform/View/Cell/WareHouseSpCell.xib
+3
-2
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.xib
...usinessPlatform/ViewController/商品管理/GoodsManageListVC.xib
+2
-2
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+176
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.xib
...tform/ViewController/商品详情/ProductDetailViewController.xib
+100
-0
GeliBusinessPlatform/ViewController/新增、编辑(查看)仓库/CheckWareHourseViewController.swift
...ontroller/新增、编辑(查看)仓库/CheckWareHourseViewController.swift
+43
-302
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
...orm/ViewController/新增规格/CreatNewSpecsViewController.swift
+48
-1
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
9d9d2a91
...
...
@@ -86,6 +86,8 @@
E0D4166024482AAF008DCAB4
/* AccountViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0D4165E24482AAF008DCAB4
/* AccountViewController.xib */
;
};
E0D4166424483058008DCAB4
/* ChangePassViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0D4166224483058008DCAB4
/* ChangePassViewController.swift */
;
};
E0D4166524483058008DCAB4
/* ChangePassViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0D4166324483058008DCAB4
/* ChangePassViewController.xib */
;
};
E0D46C5624503EC50087B564
/* TitleAndSelectCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0D46C5424503EC50087B564
/* TitleAndSelectCell.swift */
;
};
E0D46C5724503EC50087B564
/* TitleAndSelectCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0D46C5524503EC50087B564
/* TitleAndSelectCell.xib */
;
};
E0DDCB0F244AD8C500DF54C7
/* DaiQueRenCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DDCB0D244AD8C500DF54C7
/* DaiQueRenCell.swift */
;
};
E0DDCB10244AD8C500DF54C7
/* DaiQueRenCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DDCB0E244AD8C500DF54C7
/* DaiQueRenCell.xib */
;
};
E0DDCB13244ADF2C00DF54C7
/* ChangePriceNormalCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DDCB11244ADF2C00DF54C7
/* ChangePriceNormalCell.swift */
;
};
...
...
@@ -94,6 +96,19 @@
E0DDCB19244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DDCB17244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.xib */
;
};
E0DDCB1D244AE81800DF54C7
/* GuanLianKeHuCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DDCB1B244AE81800DF54C7
/* GuanLianKeHuCell.swift */
;
};
E0DDCB1E244AE81800DF54C7
/* GuanLianKeHuCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0DDCB1C244AE81800DF54C7
/* GuanLianKeHuCell.xib */
;
};
E0F97B022451228A001BD600
/* GLAlertSelectView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B012451228A001BD600
/* GLAlertSelectView.swift */
;
};
E0F97B0424512299001BD600
/* GLAlertSelectView.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B0324512299001BD600
/* GLAlertSelectView.xib */
;
};
E0F97B082451620B001BD600
/* ProductDetailViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B062451620B001BD600
/* ProductDetailViewController.swift */
;
};
E0F97B092451620B001BD600
/* ProductDetailViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B072451620B001BD600
/* ProductDetailViewController.xib */
;
};
E0F97B0C24516B1F001BD600
/* AddImgCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B0A24516B1F001BD600
/* AddImgCell.swift */
;
};
E0F97B0D24516B1F001BD600
/* AddImgCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B0B24516B1F001BD600
/* AddImgCell.xib */
;
};
E0F97B102451728D001BD600
/* AddGuiGeCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B0E2451728D001BD600
/* AddGuiGeCell.swift */
;
};
E0F97B112451728D001BD600
/* AddGuiGeCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B0F2451728D001BD600
/* AddGuiGeCell.xib */
;
};
E0F97B1424517A31001BD600
/* CommendCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B1224517A31001BD600
/* CommendCell.swift */
;
};
E0F97B1524517A31001BD600
/* CommendCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B1324517A31001BD600
/* CommendCell.xib */
;
};
E0F97B1724517C87001BD600
/* AutoTextField.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B1624517C87001BD600
/* AutoTextField.swift */
;
};
E0F97B1A2451951D001BD600
/* ShangPinGguiGeCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B182451951D001BD600
/* ShangPinGguiGeCell.swift */
;
};
E0F97B1B2451951D001BD600
/* ShangPinGguiGeCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0F97B192451951D001BD600
/* ShangPinGguiGeCell.xib */
;
};
F9023F62244999F500DD5A63
/* WarehoseMangementCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9023F60244999F500DD5A63
/* WarehoseMangementCell.swift */
;
};
F9023F63244999F500DD5A63
/* WarehoseMangementCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9023F61244999F500DD5A63
/* WarehoseMangementCell.xib */
;
};
F9023F692449A50900DD5A63
/* TitleContentCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F9023F672449A50900DD5A63
/* TitleContentCell.swift */
;
};
...
...
@@ -244,6 +259,8 @@
E0D4165E24482AAF008DCAB4
/* AccountViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
AccountViewController.xib
;
sourceTree
=
"<group>"
;
};
E0D4166224483058008DCAB4
/* ChangePassViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ChangePassViewController.swift
;
sourceTree
=
"<group>"
;
};
E0D4166324483058008DCAB4
/* ChangePassViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
ChangePassViewController.xib
;
sourceTree
=
"<group>"
;
};
E0D46C5424503EC50087B564
/* TitleAndSelectCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TitleAndSelectCell.swift
;
sourceTree
=
"<group>"
;
};
E0D46C5524503EC50087B564
/* TitleAndSelectCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
TitleAndSelectCell.xib
;
sourceTree
=
"<group>"
;
};
E0DDCB0D244AD8C500DF54C7
/* DaiQueRenCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DaiQueRenCell.swift
;
sourceTree
=
"<group>"
;
};
E0DDCB0E244AD8C500DF54C7
/* DaiQueRenCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
DaiQueRenCell.xib
;
sourceTree
=
"<group>"
;
};
E0DDCB11244ADF2C00DF54C7
/* ChangePriceNormalCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ChangePriceNormalCell.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -252,6 +269,19 @@
E0DDCB17244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
XiuGaiYuShouJiaViewController.xib
;
sourceTree
=
"<group>"
;
};
E0DDCB1B244AE81800DF54C7
/* GuanLianKeHuCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GuanLianKeHuCell.swift
;
sourceTree
=
"<group>"
;
};
E0DDCB1C244AE81800DF54C7
/* GuanLianKeHuCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
GuanLianKeHuCell.xib
;
sourceTree
=
"<group>"
;
};
E0F97B012451228A001BD600
/* GLAlertSelectView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GLAlertSelectView.swift
;
sourceTree
=
"<group>"
;
};
E0F97B0324512299001BD600
/* GLAlertSelectView.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
GLAlertSelectView.xib
;
sourceTree
=
"<group>"
;
};
E0F97B062451620B001BD600
/* ProductDetailViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ProductDetailViewController.swift
;
sourceTree
=
"<group>"
;
};
E0F97B072451620B001BD600
/* ProductDetailViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
ProductDetailViewController.xib
;
sourceTree
=
"<group>"
;
};
E0F97B0A24516B1F001BD600
/* AddImgCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
AddImgCell.swift
;
sourceTree
=
"<group>"
;
};
E0F97B0B24516B1F001BD600
/* AddImgCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
AddImgCell.xib
;
sourceTree
=
"<group>"
;
};
E0F97B0E2451728D001BD600
/* AddGuiGeCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
AddGuiGeCell.swift
;
sourceTree
=
"<group>"
;
};
E0F97B0F2451728D001BD600
/* AddGuiGeCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
AddGuiGeCell.xib
;
sourceTree
=
"<group>"
;
};
E0F97B1224517A31001BD600
/* CommendCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
CommendCell.swift
;
sourceTree
=
"<group>"
;
};
E0F97B1324517A31001BD600
/* CommendCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
CommendCell.xib
;
sourceTree
=
"<group>"
;
};
E0F97B1624517C87001BD600
/* AutoTextField.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
AutoTextField.swift
;
sourceTree
=
"<group>"
;
};
E0F97B182451951D001BD600
/* ShangPinGguiGeCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ShangPinGguiGeCell.swift
;
sourceTree
=
"<group>"
;
};
E0F97B192451951D001BD600
/* ShangPinGguiGeCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
ShangPinGguiGeCell.xib
;
sourceTree
=
"<group>"
;
};
F9023F60244999F500DD5A63
/* WarehoseMangementCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
WarehoseMangementCell.swift
;
sourceTree
=
"<group>"
;
};
F9023F61244999F500DD5A63
/* WarehoseMangementCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
WarehoseMangementCell.xib
;
sourceTree
=
"<group>"
;
};
F9023F672449A50900DD5A63
/* TitleContentCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TitleContentCell.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -564,6 +594,7 @@
F9023F642449A3AE00DD5A63
/* Cell */
,
F95D9B4E24484F140080D6E3
/* AlertView */
,
E09B03C42445BF4600211A51
/* NavBarView */
,
E0F97B1624517C87001BD600
/* AutoTextField.swift */
,
);
path
=
View
;
sourceTree
=
"<group>"
;
...
...
@@ -571,7 +602,11 @@
E09B03AD2445B0BA00211A51
/* ViewController */
=
{
isa
=
PBXGroup
;
children
=
(
F961D2722450373B007FBE70
/* 订单列表 */
,
E0F97B05245161E6001BD600
/* 商品详情 */
,
F969BF17244EE42700C79953
/* 商品管理 */
,
E0336DD2244EC3CA00380BE9
/* 新增规格 */
,
E022E131244D80EA00FEF5F7
/* 订单详情 */
,
...
...
@@ -713,6 +748,15 @@
path
=
"预售价格修改"
;
sourceTree
=
"<group>"
;
};
E0F97B05245161E6001BD600
/* 商品详情 */
=
{
isa
=
PBXGroup
;
children
=
(
E0F97B062451620B001BD600
/* ProductDetailViewController.swift */
,
E0F97B072451620B001BD600
/* ProductDetailViewController.xib */
,
);
path
=
"商品详情"
;
sourceTree
=
"<group>"
;
};
F9023F5F2449996D00DD5A63
/* 仓库管理 */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -749,6 +793,16 @@
F9023F702449ACA800DD5A63
/* TitleAndSwitchCell.xib */
,
E0C4F4A5244EC82A00CC7E2F
/* TitleAndBtnCell.swift */
,
E0C4F4A6244EC82A00CC7E2F
/* TitleAndBtnCell.xib */
,
E0D46C5424503EC50087B564
/* TitleAndSelectCell.swift */
,
E0D46C5524503EC50087B564
/* TitleAndSelectCell.xib */
,
E0F97B0A24516B1F001BD600
/* AddImgCell.swift */
,
E0F97B0B24516B1F001BD600
/* AddImgCell.xib */
,
E0F97B0E2451728D001BD600
/* AddGuiGeCell.swift */
,
E0F97B0F2451728D001BD600
/* AddGuiGeCell.xib */
,
E0F97B1224517A31001BD600
/* CommendCell.swift */
,
E0F97B1324517A31001BD600
/* CommendCell.xib */
,
E0F97B182451951D001BD600
/* ShangPinGguiGeCell.swift */
,
E0F97B192451951D001BD600
/* ShangPinGguiGeCell.xib */
,
);
path
=
Cell
;
sourceTree
=
"<group>"
;
...
...
@@ -765,6 +819,8 @@
children
=
(
F95D9B512448530E0080D6E3
/* GeliAlertView.swift */
,
F95D9B4F24484FAE0080D6E3
/* GeliAlertView.xib */
,
E0F97B012451228A001BD600
/* GLAlertSelectView.swift */
,
E0F97B0324512299001BD600
/* GLAlertSelectView.xib */
,
);
path
=
AlertView
;
sourceTree
=
"<group>"
;
...
...
@@ -951,17 +1007,22 @@
F950FDB12451811A00C40530
/* TitleAndSelCalendarView.xib in Resources */
,
E0B6036F244D376900A56B38
/* KuWeiCell.xib in Resources */
,
E01C26B72446AF3100ADCC70
/* DemoViewController.xib in Resources */
,
E0F97B0424512299001BD600
/* GLAlertSelectView.xib in Resources */
,
E0C4F4BA244EEA7C00CC7E2F
/* JiaTiJiaCell.xib in Resources */
,
F9023F6E2449A9B100DD5A63
/* TitleAndTFCell.xib in Resources */
,
F9023F6A2449A50900DD5A63
/* TitleContentCell.xib in Resources */
,
E0516F782448003D00E373CE
/* PayViewController.xib in Resources */
,
E0D197D024485649002B080C
/* BluetoothConnectViewController.xib in Resources */
,
F969BF1F244EE67900C79953
/* GoodsManageListVC.xib in Resources */
,
E0F97B112451728D001BD600
/* AddGuiGeCell.xib in Resources */
,
E0C9EF13244E922200277435
/* OrderDViewController.xib in Resources */
,
F961D26924500550007FBE70
/* HeaderSelectView.xib in Resources */
,
E088CC942447124D000DAA8A
/* BindViewController.xib in Resources */
,
E0F97B092451620B001BD600
/* ProductDetailViewController.xib in Resources */
,
E0F97B0D24516B1F001BD600
/* AddImgCell.xib in Resources */
,
E0D197D6244860B1002B080C
/* BlueToothCell.xib in Resources */
,
E0C4F4BE244EF53D00CC7E2F
/* BindStepTwoViewController.xib in Resources */
,
E0F97B1524517A31001BD600
/* CommendCell.xib in Resources */
,
E0D197CB24484D90002B080C
/* PersonCenterCell.xib in Resources */
,
E00D85EB244561FE00F5F816
/* LaunchScreen.storyboard in Resources */
,
F9023F722449ACA800DD5A63
/* TitleAndSwitchCell.xib in Resources */
,
...
...
@@ -982,7 +1043,9 @@
F95D9B5024484FAE0080D6E3
/* GeliAlertView.xib in Resources */
,
E0DDCB1E244AE81800DF54C7
/* GuanLianKeHuCell.xib in Resources */
,
E0DDCB14244ADF2C00DF54C7
/* ChangePriceNormalCell.xib in Resources */
,
E0D46C5724503EC50087B564
/* TitleAndSelectCell.xib in Resources */
,
E0C4F4A8244EC82A00CC7E2F
/* TitleAndBtnCell.xib in Resources */
,
E0F97B1B2451951D001BD600
/* ShangPinGguiGeCell.xib in Resources */
,
E0336DD6244EC40000380BE9
/* CreatNewSpecsViewController.xib in Resources */
,
E0C4F4B6244EE9EE00CC7E2F
/* YuShouCell.xib in Resources */
,
E00D85E5244561FE00F5F816
/* Assets.xcassets in Resources */
,
...
...
@@ -1058,6 +1121,7 @@
F961D264244FD744007FBE70
/* SearchBarView.swift in Sources */
,
F9023F712449ACA800DD5A63
/* TitleAndSwitchCell.swift in Sources */
,
E0C4F4BD244EF53D00CC7E2F
/* BindStepTwoViewController.swift in Sources */
,
E0F97B1724517C87001BD600
/* AutoTextField.swift in Sources */
,
E0DDCB13244ADF2C00DF54C7
/* ChangePriceNormalCell.swift in Sources */
,
E09B03B62445B85A00211A51
/* LoginViewController.swift in Sources */
,
E0C4F4B9244EEA7C00CC7E2F
/* JiaTiJiaCell.swift in Sources */
,
...
...
@@ -1066,11 +1130,18 @@
E0336DD5244EC40000380BE9
/* CreatNewSpecsViewController.swift in Sources */
,
E0DDCB18244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.swift in Sources */
,
E0D197C12448431C002B080C
/* BabyToy.m in Sources */
,
E0F97B0C24516B1F001BD600
/* AddImgCell.swift in Sources */
,
E09B03C32445BD9500211A51
/* NavViewController.swift in Sources */
,
E0F97B102451728D001BD600
/* AddGuiGeCell.swift in Sources */
,
E0F97B1A2451951D001BD600
/* ShangPinGguiGeCell.swift in Sources */
,
E02DDD85244FDC6A00ABB707
/* TitleAndSwitchHeaderView.swift in Sources */
,
E0D197C02448431C002B080C
/* BabyCentralManager.m in Sources */
,
F95D9CA424493E840080D6E3
/* ShopInfoViewController.swift in Sources */
,
F9171EFC245128B200359C2B
/* Interface.swift in Sources */
,
E0F97B082451620B001BD600
/* ProductDetailViewController.swift in Sources */
,
E00D85DF244561FD00F5F816
/* AppDelegate.swift in Sources */
,
E0516F7F244806C500E373CE
/* MsgCenterViewController.swift in Sources */
,
F950FDA52451453A00C40530
/* ShopInfoModel.swift in Sources */
,
...
...
@@ -1108,6 +1179,10 @@
F9023F692449A50900DD5A63
/* TitleContentCell.swift in Sources */
,
E0DDCB1D244AE81800DF54C7
/* GuanLianKeHuCell.swift in Sources */
,
E0D197BF2448431C002B080C
/* BabyBluetooth.m in Sources */
,
E09B03C82445BF9300211A51
/* SwiftNotice.swift in Sources */
,
E0F97B1424517A31001BD600
/* CommendCell.swift in Sources */
,
E0D4165F24482AAF008DCAB4
/* AccountViewController.swift in Sources */
,
F950FDB32451820D00C40530
/* TitleAndSelCalendarView.swift in Sources */
,
E01C26B62446AF3100ADCC70
/* DemoViewController.swift in Sources */
,
...
...
@@ -1116,6 +1191,8 @@
E0516F772448003D00E373CE
/* PayViewController.swift in Sources */
,
E02DDD952450106C00ABB707
/* PuTongJieTiCell.swift in Sources */
,
E09B03A32445AF9500211A51
/* NetworkRequest.swift in Sources */
,
E0D46C5624503EC50087B564
/* TitleAndSelectCell.swift in Sources */
,
E0F97B022451228A001BD600
/* GLAlertSelectView.swift in Sources */
,
E09B03A72445B04E00211A51
/* BaseViewController.swift in Sources */
,
E02DDD9924501A5B00ABB707
/* DelGuiGeCell.swift in Sources */
,
E088CC932447124D000DAA8A
/* BindViewController.swift in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
9d9d2a91
No preview for this file type
GeliBusinessPlatform/Assets.xcassets/仓库/shangchuantupian.imageset/Contents.json
0 → 100644
View file @
9d9d2a91
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"shangchuantupian@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"shangchuantupian@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/仓库/shangchuantupian.imageset/shangchuantupian@2x.png
0 → 100644
View file @
9d9d2a91
3.65 KB
GeliBusinessPlatform/Assets.xcassets/仓库/shangchuantupian.imageset/shangchuantupian@3x.png
0 → 100644
View file @
9d9d2a91
6.78 KB
GeliBusinessPlatform/Assets.xcassets/仓库/xinzeng -1.imageset/Contents.json
0 → 100644
View file @
9d9d2a91
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"xinzeng @2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"xinzeng @3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/仓库/xinzeng -1.imageset/xinzeng @2x.png
0 → 100644
View file @
9d9d2a91
5.74 KB
GeliBusinessPlatform/Assets.xcassets/仓库/xinzeng -1.imageset/xinzeng @3x.png
0 → 100644
View file @
9d9d2a91
10.8 KB
GeliBusinessPlatform/Assets.xcassets/仓库/xinzeng .imageset/Contents.json
0 → 100644
View file @
9d9d2a91
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"xinzeng @2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"xinzeng @3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/仓库/xinzeng .imageset/xinzeng @2x.png
0 → 100644
View file @
9d9d2a91
5.74 KB
GeliBusinessPlatform/Assets.xcassets/仓库/xinzeng .imageset/xinzeng @3x.png
0 → 100644
View file @
9d9d2a91
10.8 KB
GeliBusinessPlatform/SceneDelegate.swift
View file @
9d9d2a91
...
...
@@ -20,8 +20,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
// Create the SwiftUI view that provides the window contents.
let
contentView
=
LoginViewController
()
let
contentView
=
ProductDetailViewController
()
// Use a UIHostingController as window root view controller.
if
let
windowScene
=
scene
as?
UIWindowScene
{
...
...
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
0 → 100644
View file @
9d9d2a91
//
// GLAlertSelectView.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/23.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
import
IQKeyboardManagerSwift
@objc
protocol
GLAlertSelectViewDelegate
{
@objc
optional
func
GLAlertSelectViewClick
(
sender
:
UIButton
,
cell
:
TitleAndSelectCell
)
@objc
optional
func
GLAlertSelectViewClose
(
sender
:
UIButton
)
@objc
optional
func
GLAlertSelectDelAction
(
sender
:
Array
<
Any
>
)
@objc
optional
func
GLAlertSelectEditAction
(
sender
:
Int
)
@objc
optional
func
GLAlertSelectSubmitAction
()
@objc
optional
func
KuWeiDataArr
(
sender
:
Array
<
Any
>
)
}
class
GLAlertSelectView
:
UIView
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndSelectCellDelegate
,
KuWeiCellCellDelegate
{
var
contentView
:
UIView
!
var
delegate
:
GLAlertSelectViewDelegate
?
var
inputTextTF
:
UITextField
?
var
dataArr
=
Array
<
String
>
(){
didSet
{
let
tbvH
=
CGFloat
(
dataArr
.
count
*
49
)
*
glscale
if
(
titleLbl
.
text
?
.
contains
(
"库位"
))
!
{
UIView
.
animate
(
withDuration
:
0.5
)
{
self
.
btmVHeight
.
constant
=
195.5
*
glscale
+
tbvH
if
self
.
btmVHeight
.
constant
>
fullScreenHeight
*
0.75
{
self
.
btmVHeight
.
constant
=
fullScreenHeight
*
0.75
}
}
}
else
{
UIView
.
animate
(
withDuration
:
0.5
)
{
self
.
btmVHeight
.
constant
=
100*
glscale
+
tbvH
}
}
}
}
@IBAction
func
closeAction
(
_
sender
:
UIButton
)
{
delegate
?
.
GLAlertSelectViewClose
?(
sender
:
sender
)
}
//初始化时将xib中的view添加进来
@IBOutlet
weak
var
btmView
:
UIView
!
@IBOutlet
weak
var
btmVHeight
:
NSLayoutConstraint
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
@IBOutlet
weak
var
selectTbv
:
UITableView
!
//库位
@IBOutlet
weak
var
ipdVHeight
:
NSLayoutConstraint
!
@IBOutlet
weak
var
inputDataView
:
UIView
!
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
self
.
setSelectView
()
}
init
(
frame
:
CGRect
,
title
:
String
)
{
super
.
init
(
frame
:
frame
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
titleLbl
.
text
=
title
if
title
.
contains
(
"库位"
)
{
self
.
setKuWeiView
()
}
else
{
self
.
setSelectView
()
}
}
// /初始化时将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
()
}
self
.
setSelectView
()
}
//加载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
self
.
setSelectView
()
return
view
}
//选择页面
func
setSelectView
(){
selectTbv
.
register
(
UINib
(
nibName
:
"TitleAndSelectCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"selectTbvCell"
)
btmVHeight
.
constant
=
0
selectTbv
.
isScrollEnabled
=
false
ipdVHeight
.
constant
=
0.001
}
func
setKuWeiView
(){
selectTbv
.
register
(
UINib
(
nibName
:
"KuWeiCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"KuWei"
)
btmVHeight
.
constant
=
0
selectTbv
.
isScrollEnabled
=
true
inputDataView
.
addSubview
(
getInputView
())
ipdVHeight
.
constant
=
95.5
}
//MARK: - cell delegate
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
49*
glscale
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
dataArr
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
(
titleLbl
.
text
?
.
contains
(
"库位"
))
!
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"KuWei"
)
as!
KuWeiCell
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
cell
.
nameLbl
.
text
=
dataArr
[
indexPath
.
row
]
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"selectTbvCell"
)
as!
TitleAndSelectCell
cell
.
titleLbl
.
text
=
dataArr
[
indexPath
.
row
]
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
return
cell
}
@IBAction
func
submitClick
(
_
sender
:
Any
)
{
delegate
?
.
GLAlertSelectSubmitAction
?()
}
//MARK: - 自定义CELL DELEGATE
//普通
func
TitleAndSelectCellClick
(
content
:
UIButton
,
cell
:
TitleAndSelectCell
)
{
delegate
?
.
GLAlertSelectViewClick
?(
sender
:
content
,
cell
:
cell
)
for
item
in
selectTbv
.
visibleCells
{
let
cel
=
item
as!
TitleAndSelectCell
cel
.
selectBtn
.
isSelected
=
false
if
cell
==
cel
{
cell
.
selectBtn
.
isSelected
=
true
}
}
}
//库位
func
editClickAction
(
sender
:
Int
)
{
print
(
sender
)
// delegate?.GLAlertSelectEditAction?(sender: sender)
}
func
deleClickAction
(
sender
:
Int
)
{
print
(
sender
)
dataArr
.
remove
(
at
:
sender
)
print
(
dataArr
)
delegate
?
.
GLAlertSelectDelAction
?(
sender
:
dataArr
)
}
//MARK: - 库位输入界面
func
getInputView
()
->
UIView
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
95.5
*
glscale
))
view
.
backgroundColor
=
UIColor
.
white
let
ti3
=
UILabel
()
ti3
.
text
=
"操作"
ti3
.
textColor
=
UIColor
(
named
:
"灰色字体颜色"
)
ti3
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
view
.
addSubview
(
ti3
)
ti3
.
sizeToFit
()
ti3
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
15*
glscale
)
make
.
right
.
equalTo
(
-
33*
glscale
)
make
.
width
.
equalTo
(
28*
glscale
)
make
.
height
.
equalTo
(
18.5
*
glscale
)
}
let
ti2
=
UILabel
()
ti2
.
text
=
"库存数"
ti2
.
textColor
=
UIColor
(
named
:
"灰色字体颜色"
)
ti2
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
view
.
addSubview
(
ti2
)
ti2
.
sizeToFit
()
ti2
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
15*
glscale
)
make
.
right
.
equalTo
(
ti3
.
snp_left
)
.
offset
(
-
80*
glscale
)
make
.
width
.
equalTo
(
44*
glscale
)
make
.
height
.
equalTo
(
18.5
*
glscale
)
}
let
ti1
=
UILabel
()
ti1
.
text
=
"库位名称"
ti1
.
textColor
=
UIColor
(
named
:
"灰色字体颜色"
)
ti1
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
view
.
addSubview
(
ti1
)
ti1
.
sizeToFit
()
ti1
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
15*
glscale
)
make
.
left
.
equalTo
(
20*
glscale
)
make
.
width
.
equalTo
(
60*
glscale
)
make
.
height
.
equalTo
(
18.5
*
glscale
)
}
let
inputTF
=
UITextField
()
inputTF
.
addTarget
(
self
,
action
:
#selector(
textChange(TF:)
)
,
for
:
.
allEditingEvents
)
inputTF
.
placeholder
=
"请输入库位名称"
inputTF
.
textAlignment
=
.
center
inputTF
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
inputTF
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
inputTF
.
borderStyle
=
.
none
inputTF
.
layer
.
cornerRadius
=
3
inputTF
.
layer
.
masksToBounds
=
true
inputTF
.
layer
.
borderColor
=
UIColor
(
named
:
"灰色字体颜色"
)?
.
cgColor
inputTF
.
layer
.
borderWidth
=
1
view
.
addSubview
(
inputTF
)
inputTF
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
ti1
.
snp_bottom
)
.
offset
(
15*
glscale
)
make
.
left
.
equalTo
(
15*
glscale
)
make
.
width
.
equalTo
(
120*
glscale
)
make
.
height
.
equalTo
(
32*
glscale
)
}
inputTextTF
=
inputTF
let
l
=
UILabel
()
l
.
text
=
"-"
l
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
l
.
textColor
=
UIColor
(
named
:
"灰色字体颜色"
)
view
.
addSubview
(
l
)
l
.
snp
.
makeConstraints
{
(
make
)
in
make
.
centerX
.
equalTo
(
ti2
.
snp_centerX
)
make
.
centerY
.
equalTo
(
inputTF
.
snp_centerY
)
make
.
width
.
height
.
equalTo
(
8*
glscale
)
}
let
btn
=
UIButton
()
btn
.
setTitle
(
"新增"
,
for
:
.
normal
)
btn
.
setTitleColor
(
UIColor
(
named
:
"按钮渐变色下,字体颜色"
),
for
:
.
normal
)
btn
.
addTarget
(
self
,
action
:
#selector(
addKuWei
)
,
for
:
.
touchUpInside
)
btn
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
view
.
addSubview
(
btn
)
btn
.
snp
.
makeConstraints
{
(
make
)
in
make
.
centerX
.
equalTo
(
ti3
.
snp_centerX
)
make
.
centerY
.
equalTo
(
inputTF
.
snp_centerY
)
make
.
width
.
height
.
equalTo
(
50*
glscale
)
}
let
lbottom
=
UIView
()
lbottom
.
backgroundColor
=
UIColor
(
named
:
"灰色分界线"
)
view
.
addSubview
(
lbottom
)
lbottom
.
snp
.
makeConstraints
{
(
make
)
in
make
.
bottom
.
left
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
1
)
}
return
view
}
@objc
func
textChange
(
TF
:
UITextField
){
}
@objc
func
addKuWei
(){
IQKeyboardManager
.
shared
.
resignFirstResponder
()
if
(
inputTextTF
?
.
text
!.
count
)
!
>
0
{
dataArr
.
append
(
inputTextTF
!.
text
!
)
let
tbvH
=
CGFloat
(
dataArr
.
count
)
*
49.0
*
glscale
self
.
btmVHeight
.
constant
=
195.5
*
glscale
+
tbvH
if
self
.
btmVHeight
.
constant
>
fullScreenHeight
*
0.75
{
self
.
btmVHeight
.
constant
=
fullScreenHeight
*
0.75
}
inputTextTF
?
.
text
=
""
delegate
?
.
KuWeiDataArr
?(
sender
:
dataArr
)
selectTbv
?
.
reloadData
()
}
else
{
print
(
"请输入xxx"
)
}
}
}
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.xib
0 → 100644
View file @
9d9d2a91
<?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"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_5"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"GLAlertSelectView"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"btmVHeight"
destination=
"Hoo-aN-HCc"
id=
"Bu6-dV-7CS"
/>
<outlet
property=
"btmView"
destination=
"Y0m-9G-DsZ"
id=
"iws-lT-YWW"
/>
<outlet
property=
"inputDataView"
destination=
"vcr-wd-MNy"
id=
"IgT-35-D2O"
/>
<outlet
property=
"ipdVHeight"
destination=
"3on-fS-fVn"
id=
"cWQ-H2-4TU"
/>
<outlet
property=
"selectTbv"
destination=
"aRc-4S-xXS"
id=
"5M8-Mi-14u"
/>
<outlet
property=
"titleLbl"
destination=
"Obf-xN-br1"
id=
"U6P-eK-FXk"
/>
</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=
"414"
height=
"896"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"F3A-eQ-U1t"
>
<rect
key=
"frame"
x=
"0.0"
y=
"-26"
width=
"414"
height=
"888"
/>
<color
key=
"backgroundColor"
name=
"标题字颜色"
/>
<state
key=
"normal"
>
<color
key=
"titleColor"
name=
"标题字颜色"
/>
</state>
<connections>
<action
selector=
"closeAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"Aaj-rD-zGE"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Y0m-9G-DsZ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"562"
width=
"414"
height=
"300"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"yGj-x3-YL4"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"251"
width=
"414"
height=
"49"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"suw-JT-5QG"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientEndColor"
>
<color
key=
"value"
name=
"按钮渐变色下,字体颜色"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"gradientHorizontal"
value=
"YES"
/>
<userDefinedRuntimeAttribute
type=
"string"
keyPath=
"titleString"
value=
"确定"
/>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"titleFontSize"
>
<real
key=
"value"
value=
"17"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"submitClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"JRB-mC-cTP"
/>
</connections>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"标题"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Obf-xN-br1"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"51"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"51"
id=
"c9U-Vw-8IK"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"15"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"aRc-4S-xXS"
>
<rect
key=
"frame"
x=
"0.0"
y=
"147.66666666666663"
width=
"414"
height=
"103.33333333333331"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"5Tz-Qf-U57"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"OfK-fO-bG2"
/>
</connections>
</tableView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"J9Q-vG-5ea"
>
<rect
key=
"frame"
x=
"0.0"
y=
"51"
width=
"414"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"VOq-3e-VA4"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vcr-wd-MNy"
>
<rect
key=
"frame"
x=
"0.0"
y=
"52.000000000000007"
width=
"414"
height=
"95.666666666666686"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"95.5"
id=
"3on-fS-fVn"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstItem=
"Obf-xN-br1"
firstAttribute=
"leading"
secondItem=
"Y0m-9G-DsZ"
secondAttribute=
"leading"
id=
"0xt-5x-vBu"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"yGj-x3-YL4"
secondAttribute=
"bottom"
id=
"2Mb-zY-cPE"
/>
<constraint
firstItem=
"yGj-x3-YL4"
firstAttribute=
"top"
secondItem=
"aRc-4S-xXS"
secondAttribute=
"bottom"
id=
"7b3-6J-4vb"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"J9Q-vG-5ea"
secondAttribute=
"trailing"
id=
"Ayc-Fs-sJL"
/>
<constraint
firstItem=
"aRc-4S-xXS"
firstAttribute=
"leading"
secondItem=
"Y0m-9G-DsZ"
secondAttribute=
"leading"
id=
"Blv-EE-YPC"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Obf-xN-br1"
secondAttribute=
"trailing"
id=
"EFd-Zg-ckk"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"yGj-x3-YL4"
secondAttribute=
"trailing"
id=
"GBS-1r-eov"
/>
<constraint
firstItem=
"vcr-wd-MNy"
firstAttribute=
"top"
secondItem=
"J9Q-vG-5ea"
secondAttribute=
"bottom"
id=
"GyN-Hn-hV1"
/>
<constraint
firstAttribute=
"height"
constant=
"300"
id=
"Hoo-aN-HCc"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstAttribute=
"trailing"
secondItem=
"aRc-4S-xXS"
secondAttribute=
"trailing"
id=
"IAT-TW-rGX"
/>
<constraint
firstItem=
"Obf-xN-br1"
firstAttribute=
"top"
secondItem=
"Y0m-9G-DsZ"
secondAttribute=
"top"
id=
"USd-x6-b0o"
/>
<constraint
firstItem=
"vcr-wd-MNy"
firstAttribute=
"leading"
secondItem=
"Y0m-9G-DsZ"
secondAttribute=
"leading"
id=
"aep-dI-qYg"
/>
<constraint
firstItem=
"aRc-4S-xXS"
firstAttribute=
"top"
secondItem=
"vcr-wd-MNy"
secondAttribute=
"bottom"
id=
"avj-JH-wkd"
/>
<constraint
firstItem=
"J9Q-vG-5ea"
firstAttribute=
"top"
secondItem=
"Obf-xN-br1"
secondAttribute=
"bottom"
id=
"cEv-eF-rJQ"
/>
<constraint
firstItem=
"yGj-x3-YL4"
firstAttribute=
"leading"
secondItem=
"Y0m-9G-DsZ"
secondAttribute=
"leading"
id=
"ckq-Tx-j6z"
/>
<constraint
firstItem=
"J9Q-vG-5ea"
firstAttribute=
"leading"
secondItem=
"Y0m-9G-DsZ"
secondAttribute=
"leading"
id=
"fUk-vy-b9c"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"vcr-wd-MNy"
secondAttribute=
"trailing"
id=
"riA-Yr-24J"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"Y0m-9G-DsZ"
firstAttribute=
"leading"
secondItem=
"vUN-kp-3ea"
secondAttribute=
"leading"
id=
"3go-Qx-14T"
/>
<constraint
firstItem=
"vUN-kp-3ea"
firstAttribute=
"bottom"
secondItem=
"Y0m-9G-DsZ"
secondAttribute=
"bottom"
id=
"Lle-RG-x2d"
/>
<constraint
firstItem=
"vUN-kp-3ea"
firstAttribute=
"trailing"
secondItem=
"F3A-eQ-U1t"
secondAttribute=
"trailing"
id=
"TIf-Qw-p7x"
/>
<constraint
firstItem=
"vUN-kp-3ea"
firstAttribute=
"bottom"
secondItem=
"F3A-eQ-U1t"
secondAttribute=
"bottom"
id=
"Tyl-MD-CuR"
/>
<constraint
firstItem=
"F3A-eQ-U1t"
firstAttribute=
"leading"
secondItem=
"vUN-kp-3ea"
secondAttribute=
"leading"
id=
"fjh-hA-Xby"
/>
<constraint
firstItem=
"F3A-eQ-U1t"
firstAttribute=
"leading"
secondItem=
"vUN-kp-3ea"
secondAttribute=
"leading"
id=
"uzh-6s-qLP"
/>
<constraint
firstItem=
"F3A-eQ-U1t"
firstAttribute=
"top"
secondItem=
"vUN-kp-3ea"
secondAttribute=
"top"
constant=
"-70"
id=
"x16-NC-4Mx"
/>
<constraint
firstItem=
"vUN-kp-3ea"
firstAttribute=
"trailing"
secondItem=
"Y0m-9G-DsZ"
secondAttribute=
"trailing"
id=
"xi7-Xc-5fL"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"vUN-kp-3ea"
/>
<point
key=
"canvasLocation"
x=
"128.98550724637681"
y=
"120.53571428571428"
/>
</view>
</objects>
<resources>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色下,字体颜色"
>
<color
red=
"0.27450980392156865"
green=
"0.5607843137254902"
blue=
"0.88627450980392153"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.1803921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451"
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/View/AlertView/GeliAlertView.xib
View file @
9d9d2a91
...
...
@@ -160,7 +160,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.
59999999999999998"
green=
"0.59999999999999998"
blue=
"0.59999999999999998
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.
40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/View/AutoTextField.swift
0 → 100644
View file @
9d9d2a91
//
// AutoTextField.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/23.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
@objc
protocol
AutoTextFieldDelegate
{
@objc
optional
func
sendString
(
str
:
String
)
@objc
optional
func
sendHeight
(
height
:
CGFloat
)
}
class
AutoTextField
:
UITextView
,
UITextViewDelegate
{
var
tfDelegate
:
AutoTextFieldDelegate
?
/// 占位文字颜色
var
placeholderColor
:
UIColor
?
{
willSet
{
self
.
placeholderLable
.
textColor
=
newValue
??
UIColor
.
lightGray
}
}
/// 占位文字
var
placeholder
:
String
?
{
willSet
{
self
.
placeholderLable
.
text
=
" "
+
(
newValue
??
""
)
}
}
/// 字体大小
var
textFont
:
UIFont
?
{
willSet
{
self
.
placeholderLable
.
font
=
newValue
self
.
font
=
newValue
}
}
/// 最小的高度
private
var
minHeight
:
CGFloat
=
0.0
/// 初始化方法
///
/// - Parameters:
/// - frame: frame
/// - placeholder: 占位文字
convenience
init
(
frame
:
CGRect
,
placeholder
:
String
?)
{
self
.
init
(
frame
:
frame
,
textContainer
:
nil
)
self
.
minHeight
=
self
.
frame
.
height
// 设置字体
self
.
font
=
UIFont
.
systemFont
(
ofSize
:
14.0
)
if
let
placeholder
=
placeholder
{
self
.
placeholderLable
.
text
=
" "
+
placeholder
}
// 添加边框
self
.
layer
.
borderWidth
=
0.0
let
num
:
CGFloat
=
236.0
/
255.0
self
.
layer
.
borderColor
=
UIColor
.
init
(
red
:
num
,
green
:
num
,
blue
:
num
,
alpha
:
1.0
)
.
cgColor
self
.
layer
.
cornerRadius
=
5.0
self
.
clipsToBounds
=
true
self
.
delegate
=
self
}
/// 占位Label
private
lazy
var
placeholderLable
:
UILabel
=
{
let
label
=
UILabel
.
init
(
frame
:
CGRect
.
init
(
origin
:
CGPoint
.
init
(
x
:
2.0
,
y
:
0.0
),
size
:
self
.
frame
.
size
))
label
.
textColor
=
UIColor
.
lightGray
label
.
font
=
self
.
font
self
.
addSubview
(
label
)
return
label
}()
func
textViewDidChange
(
_
textView
:
UITextView
)
{
let
text
:
String
=
textView
.
text
!
self
.
placeholderLable
.
isHidden
=
true
tfDelegate
?
.
sendString
?(
str
:
text
)
if
text
.
isEmpty
{
var
newFrame
=
self
.
placeholderLable
.
frame
newFrame
.
origin
.
y
=
2.0
self
.
placeholderLable
.
frame
=
newFrame
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
DispatchTime
.
now
()
+
0.3
)
{
self
.
placeholderLable
.
isHidden
=
false
}
return
}
// 计算文字高度
let
height
=
self
.
getInputTextHeight
(
text
:
text
)
if
self
.
frame
.
height
!=
height
{
tfDelegate
?
.
sendHeight
?(
height
:
height
)
var
newFrame
=
self
.
frame
newFrame
.
size
.
height
=
height
newFrame
.
origin
.
y
-=
(
height
-
self
.
frame
.
height
)
UIView
.
animate
(
withDuration
:
0.3
,
animations
:
{
self
.
frame
=
newFrame
})
self
.
setContentOffset
(
CGPoint
.
init
(
x
:
0.0
,
y
:
4.0
),
animated
:
true
)
}
}
/// 计算文字高度
///
/// - Parameters:
/// - text: 输入文字
/// - maxWidth: 最大宽度,控件宽度
/// - Returns: 文字高度
func
getInputTextHeight
(
text
:
String
)
->
CGFloat
{
if
text
.
isEmpty
{
return
self
.
minHeight
}
let
str
=
NSString
.
init
(
string
:
self
.
text
)
let
rect
=
str
.
boundingRect
(
with
:
CGSize
.
init
(
width
:
self
.
frame
.
width
-
10.0
,
height
:
999.0
),
options
:
.
usesLineFragmentOrigin
,
attributes
:
[
NSAttributedString
.
Key
.
font
:
self
.
font
!
],
context
:
nil
)
return
max
(
rect
.
size
.
height
+
13.0
,
self
.
minHeight
)
}
}
GeliBusinessPlatform/View/Cell/AddGuiGeCell.swift
0 → 100644
View file @
9d9d2a91
//
// AddGuiGeCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/23.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
AddGuiGeCell
:
UITableViewCell
{
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
selectionStyle
=
.
none
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
}
GeliBusinessPlatform/View/Cell/AddGuiGeCell.xib
0 → 100644
View file @
9d9d2a91
<?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"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<capability
name=
"Safe area layout guides"
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"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"AddGuiGeCell"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"123.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"123.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FpT-RN-ad7"
>
<rect
key=
"frame"
x=
"148.5"
y=
"21.5"
width=
"78"
height=
"52"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"52"
id=
"jMA-bb-CP8"
/>
<constraint
firstAttribute=
"width"
constant=
"78"
id=
"zxB-d3-CDh"
/>
</constraints>
<state
key=
"normal"
image=
"xinzeng "
/>
</button>
</subviews>
<constraints>
<constraint
firstItem=
"FpT-RN-ad7"
firstAttribute=
"centerX"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerX"
id=
"CTD-cA-1jp"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"FpT-RN-ad7"
secondAttribute=
"bottom"
constant=
"50"
id=
"log-wz-xog"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<point
key=
"canvasLocation"
x=
"132"
y=
"122"
/>
</tableViewCell>
</objects>
<resources>
<image
name=
"xinzeng "
width=
"78"
height=
"51.5"
/>
</resources>
</document>
GeliBusinessPlatform/View/Cell/AddImgCell.swift
0 → 100644
View file @
9d9d2a91
//
// AddImgCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/23.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
AddImgCell
:
UITableViewCell
{
@IBOutlet
weak
var
scrollView
:
UIScrollView
!
@IBOutlet
weak
var
addBtn
:
UIButton
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
selectionStyle
=
.
none
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
}
GeliBusinessPlatform/View/Cell/AddImgCell.xib
0 → 100644
View file @
9d9d2a91
<?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"
useSafeAreas=
"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=
"Safe area layout guides"
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"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"AddImgCell"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"148.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"148.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Jjj-1k-5UP"
>
<rect
key=
"frame"
x=
"15"
y=
"147.5"
width=
"360"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"eDf-MR-72g"
/>
</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=
"XSw-NZ-AO1"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"360"
height=
"18.5"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"Nrc-i5-Oqy"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<scrollView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Y24-ev-r8H"
>
<rect
key=
"frame"
x=
"0.0"
y=
"43.5"
width=
"375"
height=
"105"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gQv-oK-QZk"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"105"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"375"
id=
"2Qg-D9-vf1"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstAttribute=
"height"
constant=
"105"
id=
"es6-VA-jmP"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
</view>
</subviews>
<constraints>
<constraint
firstItem=
"gQv-oK-QZk"
firstAttribute=
"leading"
secondItem=
"9px-ex-b2X"
secondAttribute=
"leading"
id=
"Glf-7Z-Btv"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"gQv-oK-QZk"
secondAttribute=
"trailing"
id=
"OO0-fE-rTK"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"gQv-oK-QZk"
secondAttribute=
"bottom"
id=
"ZX2-hb-scm"
/>
<constraint
firstItem=
"gQv-oK-QZk"
firstAttribute=
"top"
secondItem=
"9px-ex-b2X"
secondAttribute=
"top"
id=
"wU0-jt-kxT"
/>
</constraints>
<viewLayoutGuide
key=
"contentLayoutGuide"
id=
"uu1-Zh-eab"
/>
<viewLayoutGuide
key=
"frameLayoutGuide"
id=
"9px-ex-b2X"
/>
</scrollView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"OQa-ir-x7J"
>
<rect
key=
"frame"
x=
"15"
y=
"43.5"
width=
"90"
height=
"90"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"90"
id=
"Sbh-ll-iOW"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstAttribute=
"height"
constant=
"90"
id=
"gLW-Bq-4tz"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<state
key=
"normal"
image=
"shangchuantupian"
/>
</button>
</subviews>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"Y24-ev-r8H"
secondAttribute=
"bottom"
id=
"B7H-xl-IXT"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"XSw-NZ-AO1"
secondAttribute=
"trailing"
id=
"CEx-Ex-e8f"
/>
<constraint
firstItem=
"XSw-NZ-AO1"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"CIz-Fz-X4r"
/>
<constraint
firstItem=
"Jjj-1k-5UP"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"Jp4-6W-tib"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Jjj-1k-5UP"
secondAttribute=
"bottom"
id=
"K6E-dS-AYa"
/>
<constraint
firstItem=
"OQa-ir-x7J"
firstAttribute=
"top"
secondItem=
"XSw-NZ-AO1"
secondAttribute=
"bottom"
constant=
"10"
id=
"PWe-fE-lIM"
/>
<constraint
firstItem=
"Y24-ev-r8H"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
id=
"Qyk-fF-Qvr"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Y24-ev-r8H"
secondAttribute=
"trailing"
id=
"f0G-8q-9MZ"
/>
<constraint
firstItem=
"Y24-ev-r8H"
firstAttribute=
"top"
secondItem=
"XSw-NZ-AO1"
secondAttribute=
"bottom"
constant=
"10"
id=
"hQe-Og-RHo"
/>
<constraint
firstItem=
"XSw-NZ-AO1"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"jPZ-Xx-Tht"
/>
<constraint
firstItem=
"OQa-ir-x7J"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"uil-xE-CIr"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Jjj-1k-5UP"
secondAttribute=
"trailing"
id=
"vn7-WL-hNG"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"addBtn"
destination=
"OQa-ir-x7J"
id=
"Rvb-ce-lIf"
/>
<outlet
property=
"nameLbl"
destination=
"XSw-NZ-AO1"
id=
"Xsv-Ua-LM8"
/>
<outlet
property=
"scrollView"
destination=
"Y24-ev-r8H"
id=
"zN3-QJ-59D"
/>
</connections>
<point
key=
"canvasLocation"
x=
"131.15942028985509"
y=
"121.54017857142857"
/>
</tableViewCell>
</objects>
<resources>
<image
name=
"shangchuantupian"
width=
"90"
height=
"90"
/>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.1803921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451"
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/View/Cell/ChangePriceNormalCell.xib
View file @
9d9d2a91
...
...
@@ -137,7 +137,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.
59999999999999998"
green=
"0.59999999999999998"
blue=
"0.59999999999999998
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.
40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/View/Cell/CommendCell.swift
0 → 100644
View file @
9d9d2a91
//
// CommendCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/23.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
@objc
protocol
CommendCellDelegate
{
@objc
optional
func
CommendCellSendStr
(
content
:
String
)
@objc
optional
func
CommendCellSendH
(
height
:
CGFloat
)
}
class
CommendCell
:
UITableViewCell
,
AutoTextFieldDelegate
{
var
delegate
:
CommendCellDelegate
?
@IBOutlet
weak
var
line
:
UIView
!
@IBOutlet
weak
var
placeLbl
:
UILabel
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
var
autoTf
:
AutoTextField
?
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
selectionStyle
=
.
none
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
tapAction
)
)
placeLbl
.
isUserInteractionEnabled
=
true
placeLbl
.
addGestureRecognizer
(
tap
)
// Initialization code
}
@objc
func
tapAction
(){
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
:
""
)
textV
.
backgroundColor
=
UIColor
.
clear
textV
.
tfDelegate
=
self
textV
.
textColor
=
UIColor
.
black
textV
.
textAlignment
=
.
right
self
.
contentView
.
addSubview
(
textV
)
autoTf
=
textV
}
}
func
sendString
(
str
:
String
)
{
if
str
.
count
>
0
{
placeLbl
.
isHidden
=
true
}
else
{
placeLbl
.
isHidden
=
false
}
delegate
?
.
CommendCellSendStr
?(
content
:
str
)
}
func
sendHeight
(
height
:
CGFloat
)
{
autoTf
?
.
frame
=
CGRect
(
x
:
titleLbl
.
frame
.
maxX
+
15
,
y
:
13
,
width
:
fullScreenWidth
-
30
-
titleLbl
.
frame
.
maxX
,
height
:
height
)
titleLbl
.
snp
.
updateConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
autoTf
!.
snp_top
)
make
.
left
.
equalTo
(
15
)
make
.
right
.
equalTo
(
autoTf
!.
snp_left
)
.
offset
(
-
15
)
make
.
height
.
equalTo
(
18.5
)
}
delegate
?
.
CommendCellSendH
?(
height
:
height
)
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
}
GeliBusinessPlatform/View/Cell/CommendCell.xib
0 → 100644
View file @
9d9d2a91
<?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"
useSafeAreas=
"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=
"Safe area layout guides"
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=
"AutoTextField"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
rowHeight=
"47"
id=
"KGk-i7-Jjw"
customClass=
"CommendCell"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"398"
height=
"47"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"398"
height=
"47"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<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"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
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"
/>
<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=
"S58-2t-uxP"
>
<rect
key=
"frame"
x=
"84"
y=
"15"
width=
"299"
height=
"18.5"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"a6L-cc-t4K"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"W34-St-iXm"
>
<rect
key=
"frame"
x=
"15"
y=
"46"
width=
"383"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"NOp-ze-TNS"
/>
</constraints>
</view>
</subviews>
<constraints>
<constraint
firstItem=
"S58-2t-uxP"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"8IR-MS-yh2"
/>
<constraint
firstItem=
"Mid-SG-EgI"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"Dpk-qZ-nAj"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"W34-St-iXm"
secondAttribute=
"trailing"
id=
"G7X-xt-Dt3"
/>
<constraint
firstItem=
"S58-2t-uxP"
firstAttribute=
"leading"
secondItem=
"Mid-SG-EgI"
secondAttribute=
"trailing"
constant=
"15"
id=
"S9y-Hy-358"
/>
<constraint
firstItem=
"W34-St-iXm"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"ZsV-6P-jss"
/>
<constraint
firstItem=
"Mid-SG-EgI"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"jKX-cQ-WnO"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"W34-St-iXm"
secondAttribute=
"bottom"
id=
"lvw-eS-fBm"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"S58-2t-uxP"
secondAttribute=
"trailing"
constant=
"15"
id=
"pJe-Zt-UoR"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"placeLbl"
destination=
"S58-2t-uxP"
id=
"vAI-GJ-LWk"
/>
<outlet
property=
"titleLbl"
destination=
"Mid-SG-EgI"
id=
"fkz-F3-jJH"
/>
</connections>
<point
key=
"canvasLocation"
x=
"153.62318840579712"
y=
"67.299107142857139"
/>
</tableViewCell>
</objects>
<resources>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.1803921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451"
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.40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/View/Cell/DaiQueRenCell.xib
View file @
9d9d2a91
...
...
@@ -121,8 +121,16 @@
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"R3b-6k-iUu"
>
<rect
key=
"frame"
x=
"151"
y=
"168.5"
width=
"82"
height=
"30"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"82"
id=
"qwi-Kw-TXJ"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"tJI-zH-vye"
/>
<constraint
firstAttribute=
"width"
constant=
"82"
id=
"qwi-Kw-TXJ"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"tJI-zH-vye"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"取消订单"
>
...
...
@@ -147,8 +155,16 @@
<rect
key=
"frame"
x=
"248"
y=
"168.5"
width=
"82"
height=
"30"
/>
<color
key=
"backgroundColor"
name=
"按钮背景颜色"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"82"
id=
"4qc-z9-vHW"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"WGr-SL-sTg"
/>
<constraint
firstAttribute=
"width"
constant=
"82"
id=
"4qc-z9-vHW"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"WGr-SL-sTg"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"确认订单"
>
...
...
@@ -205,10 +221,22 @@
</view>
</subviews>
<constraints>
<constraint
firstItem=
"ufT-fd-pM6"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"EKE-6C-DJq"
/>
<constraint
firstItem=
"ufT-fd-pM6"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"G5a-lj-WNr"
/>
<constraint
firstItem=
"ufT-fd-pM6"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"EKE-6C-DJq"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstItem=
"ufT-fd-pM6"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"G5a-lj-WNr"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstAttribute=
"bottom"
secondItem=
"ufT-fd-pM6"
secondAttribute=
"bottom"
id=
"cex-Sc-iGM"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"ufT-fd-pM6"
secondAttribute=
"trailing"
constant=
"15"
id=
"x9W-uE-hQW"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"ufT-fd-pM6"
secondAttribute=
"trailing"
constant=
"15"
id=
"x9W-uE-hQW"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
</tableViewCellContentView>
<color
key=
"backgroundColor"
name=
"app底色"
/>
...
...
@@ -248,7 +276,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.
59999999999999998"
green=
"0.59999999999999998"
blue=
"0.59999999999999998
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.
40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
GeliBusinessPlatform/View/Cell/ShangPinGguiGeCell.swift
0 → 100644
View file @
9d9d2a91
//
// ShangPinGguiGeCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/23.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
ShangPinGguiGeCell
:
UITableViewCell
{
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
selectionStyle
=
.
none
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
}
GeliBusinessPlatform/View/Cell/ShangPinGguiGeCell.xib
0 → 100644
View file @
9d9d2a91
<?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"
useSafeAreas=
"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=
"Safe area layout guides"
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"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"ShangPinGguiGeCell"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"146"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"146"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"售价:¥260.00"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Mw0-dB-6KQ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"187.5"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"cTs-tj-wBd"
/>
</constraints>
<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=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"oOy-dE-JIB"
>
<rect
key=
"frame"
x=
"187.5"
y=
"0.0"
width=
"187.5"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"hTR-gc-CIs"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"K8k-YW-neS"
>
<rect
key=
"frame"
x=
"15"
y=
"49"
width=
"345"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"DDV-Is-JZh"
/>
</constraints>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"规格:100kg/件"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"GPm-DS-HCD"
>
<rect
key=
"frame"
x=
"0.0"
y=
"50"
width=
"187.5"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"O1L-rk-sve"
/>
</constraints>
<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=
"重量(kg):10kg"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"EeX-7S-sb3"
>
<rect
key=
"frame"
x=
"187.5"
y=
"50"
width=
"187.5"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"sFh-GY-fga"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"dLV-gy-4MF"
>
<rect
key=
"frame"
x=
"15"
y=
"99"
width=
"345"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"ubu-me-Hbc"
/>
</constraints>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"冷藏:-18℃"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bIm-PK-kvk"
>
<rect
key=
"frame"
x=
"0.0"
y=
"100"
width=
"187.5"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"b0p-xi-VUN"
/>
</constraints>
<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=
"yWF-ML-clI"
>
<rect
key=
"frame"
x=
"187.5"
y=
"100"
width=
"187.5"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"Vhh-bn-CUk"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"编辑规格"
>
<color
key=
"titleColor"
name=
"蓝色字体颜色"
/>
</state>
</button>
</subviews>
<constraints>
<constraint
firstItem=
"yWF-ML-clI"
firstAttribute=
"top"
secondItem=
"dLV-gy-4MF"
secondAttribute=
"bottom"
id=
"4Z4-S5-zYD"
/>
<constraint
firstItem=
"EeX-7S-sb3"
firstAttribute=
"leading"
secondItem=
"GPm-DS-HCD"
secondAttribute=
"trailing"
id=
"6he-O7-qaA"
/>
<constraint
firstItem=
"GPm-DS-HCD"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
id=
"8ap-Jh-WKN"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"K8k-YW-neS"
secondAttribute=
"trailing"
constant=
"15"
id=
"Ai9-Wm-Kly"
/>
<constraint
firstItem=
"oOy-dE-JIB"
firstAttribute=
"width"
secondItem=
"Mw0-dB-6KQ"
secondAttribute=
"width"
id=
"CTH-cF-Vv9"
/>
<constraint
firstItem=
"yWF-ML-clI"
firstAttribute=
"leading"
secondItem=
"bIm-PK-kvk"
secondAttribute=
"trailing"
id=
"I4O-7p-T2E"
/>
<constraint
firstItem=
"oOy-dE-JIB"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"Jsj-Z5-Czt"
/>
<constraint
firstItem=
"Mw0-dB-6KQ"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
id=
"PcZ-yC-jNk"
/>
<constraint
firstItem=
"Mw0-dB-6KQ"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"UrE-nZ-0Ou"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"oOy-dE-JIB"
secondAttribute=
"trailing"
id=
"Wdn-Vq-vfJ"
/>
<constraint
firstItem=
"oOy-dE-JIB"
firstAttribute=
"leading"
secondItem=
"Mw0-dB-6KQ"
secondAttribute=
"trailing"
id=
"XhB-sH-Fd1"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"yWF-ML-clI"
secondAttribute=
"trailing"
id=
"XmT-41-e7C"
/>
<constraint
firstItem=
"dLV-gy-4MF"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"bOL-OP-9Kw"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"EeX-7S-sb3"
secondAttribute=
"trailing"
id=
"drL-r7-Erz"
/>
<constraint
firstItem=
"K8k-YW-neS"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"hLc-yF-uxx"
/>
<constraint
firstItem=
"bIm-PK-kvk"
firstAttribute=
"top"
secondItem=
"dLV-gy-4MF"
secondAttribute=
"bottom"
id=
"lLs-EN-Mbn"
/>
<constraint
firstItem=
"EeX-7S-sb3"
firstAttribute=
"width"
secondItem=
"GPm-DS-HCD"
secondAttribute=
"width"
id=
"nbk-Dm-GIi"
/>
<constraint
firstItem=
"bIm-PK-kvk"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
id=
"qQi-us-lCp"
/>
<constraint
firstItem=
"EeX-7S-sb3"
firstAttribute=
"top"
secondItem=
"K8k-YW-neS"
secondAttribute=
"bottom"
id=
"rFN-Nj-vBJ"
/>
<constraint
firstItem=
"yWF-ML-clI"
firstAttribute=
"width"
secondItem=
"bIm-PK-kvk"
secondAttribute=
"width"
id=
"she-GH-xJn"
/>
<constraint
firstItem=
"dLV-gy-4MF"
firstAttribute=
"top"
secondItem=
"GPm-DS-HCD"
secondAttribute=
"bottom"
id=
"yEL-gU-NmI"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"dLV-gy-4MF"
secondAttribute=
"trailing"
constant=
"15"
id=
"ycN-v6-zRc"
/>
<constraint
firstItem=
"K8k-YW-neS"
firstAttribute=
"top"
secondItem=
"Mw0-dB-6KQ"
secondAttribute=
"bottom"
id=
"ysz-b9-nOC"
/>
<constraint
firstItem=
"GPm-DS-HCD"
firstAttribute=
"top"
secondItem=
"K8k-YW-neS"
secondAttribute=
"bottom"
id=
"zsM-hW-cF0"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<point
key=
"canvasLocation"
x=
"131.15942028985509"
y=
"121.875"
/>
</tableViewCell>
</objects>
<resources>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.1803921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451"
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.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/View/Cell/TitleAndBtnCell.xib
View file @
9d9d2a91
...
...
@@ -92,7 +92,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.
59999999999999998"
green=
"0.59999999999999998"
blue=
"0.59999999999999998
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.
40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/View/Cell/TitleAndSelectCell.swift
0 → 100644
View file @
9d9d2a91
//
// TitleAndSelectCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/22.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
@objc
protocol
TitleAndSelectCellDelegate
{
@objc
optional
func
TitleAndSelectCellClick
(
content
:
UIButton
,
cell
:
TitleAndSelectCell
)
}
class
TitleAndSelectCell
:
UITableViewCell
{
var
delegate
:
TitleAndSelectCellDelegate
?
@IBOutlet
weak
var
selectBtn
:
UIButton
!
@IBAction
func
selectClick
(
_
sender
:
UIButton
)
{
delegate
?
.
TitleAndSelectCellClick
?(
content
:
sender
,
cell
:
self
)
}
@IBOutlet
weak
var
titleLbl
:
UILabel
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
selectionStyle
=
.
none
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
}
GeliBusinessPlatform/View/Cell/TitleAndSelectCell.xib
0 → 100644
View file @
9d9d2a91
<?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"
useSafeAreas=
"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=
"Safe area layout guides"
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"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"TitleAndSelectCell"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"标题"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"4Hx-2L-jWw"
>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"305"
height=
"44"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"nmk-ai-I5m"
>
<rect
key=
"frame"
x=
"285"
y=
"0.0"
width=
"20"
height=
"44"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"20"
id=
"dUL-xt-Cqa"
/>
</constraints>
<state
key=
"normal"
title=
"Button"
image=
"daixuan"
/>
<state
key=
"selected"
image=
"yuxuan"
/>
<connections>
<action
selector=
"selectClick:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"s1q-8q-wPh"
/>
</connections>
</button>
</subviews>
<constraints>
<constraint
firstItem=
"4Hx-2L-jWw"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"GnK-Zb-hVm"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstItem=
"nmk-ai-I5m"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"Qle-nk-kP9"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"4Hx-2L-jWw"
secondAttribute=
"trailing"
id=
"ZYQ-eh-y1K"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"4Hx-2L-jWw"
secondAttribute=
"bottom"
id=
"hYK-3c-bmk"
/>
<constraint
firstItem=
"4Hx-2L-jWw"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"vAt-h5-RDj"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"nmk-ai-I5m"
secondAttribute=
"bottom"
id=
"y5f-9e-nDa"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"nmk-ai-I5m"
secondAttribute=
"trailing"
constant=
"15"
id=
"yv9-E1-zCT"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"selectBtn"
destination=
"nmk-ai-I5m"
id=
"Ds3-GX-gVv"
/>
<outlet
property=
"titleLbl"
destination=
"4Hx-2L-jWw"
id=
"1dE-sY-xMj"
/>
</connections>
<point
key=
"canvasLocation"
x=
"132"
y=
"122"
/>
</tableViewCell>
</objects>
<resources>
<image
name=
"daixuan"
width=
"19"
height=
"19"
/>
<image
name=
"yuxuan"
width=
"19"
height=
"19"
/>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.1803921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/View/Cell/TitleContentCell.xib
View file @
9d9d2a91
<?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"
/>
<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=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
...
GeliBusinessPlatform/View/Cell/WareHouseSpCell.xib
View file @
9d9d2a91
...
...
@@ -54,7 +54,8 @@
</connections>
</button>
<switch
opaque=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"750"
verticalHuggingPriority=
"750"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"GUA-N4-Rgf"
>
<rect
key=
"frame"
x=
"259"
y=
"6.5"
width=
"49"
height=
"31"
/>
<rect
key=
"frame"
x=
"258"
y=
"6.5"
width=
"49"
height=
"31"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"47"
id=
"8ML-UL-R2l"
/>
<constraint
firstAttribute=
"height"
constant=
"31"
id=
"m01-R5-2E5"
/>
...
...
@@ -80,7 +81,7 @@
<constraint
firstItem=
"zsG-fB-Zeb"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"kT5-VR-Vqg"
/>
<constraint
firstItem=
"GUA-N4-Rgf"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"n0g-sO-UI3"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"uEc-pe-iBV"
secondAttribute=
"trailing"
id=
"riL-Qy-yIc"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"GUA-N4-Rgf"
secondAttribute=
"trailing"
constant=
"1
4
"
id=
"zP6-ZR-myY"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"GUA-N4-Rgf"
secondAttribute=
"trailing"
constant=
"1
5
"
id=
"zP6-ZR-myY"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
...
...
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.xib
View file @
9d9d2a91
<?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=
"retina4_7"
orientation=
"portrait"
appearance=
"light"
/>
<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=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
...
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
0 → 100644
View file @
9d9d2a91
//
// ProductDetailViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/23.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
import
LGButton
class
ProductDetailViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
CommendCellDelegate
{
let
titleArr
=
[
"商品信息"
,
"商品图片"
,
"商品规格"
,
"其它信息"
,
"商品详情"
]
let
spxxArr
=
[
"商品名称"
,
"商品类型"
,
"商品分类"
,
"品牌"
,
"起卖数量"
,
"是否清真"
,
"是否询价"
]
let
sptpArr
=
[
"商品封面图(限一张)"
,
"商品主图(限五张)"
]
let
qtxxArr
=
[
"关键字"
,
"物流费用"
,
"国家"
,
"商品状态"
,
"运输方式"
]
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
}
@IBOutlet
weak
var
submitBtn
:
LGButton
!
@IBOutlet
weak
var
listTbv
:
UITableView
!
var
cellHeight
=
18.5
var
contentStr
:
String
=
""
var
guiGeArr
:
Array
<
Any
>
=
[]
//根据规格资料数量控制右上角新增按钮是否显示
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"商品详情"
self
.
view
.
addSubview
(
navbar
)
listTbv
.
separatorStyle
=
.
none
listTbv
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
NavCGRect
.
height
)
make
.
left
.
right
.
equalTo
(
0
)
make
.
bottom
.
equalTo
(
submitBtn
.
snp_top
)
}
listTbv
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTF"
)
listTbv
.
register
(
UINib
(
nibName
:
"TitleAndSwitchCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndSwitch"
)
listTbv
.
register
(
UINib
(
nibName
:
"TitleAndBtnCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndBtn"
)
listTbv
.
register
(
UINib
(
nibName
:
"AddImgCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"AddImg"
)
listTbv
.
register
(
UINib
(
nibName
:
"AddGuiGeCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"AddGuiGe"
)
listTbv
.
register
(
UINib
(
nibName
:
"CommendCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"Commend"
)
// Do any additional setup after loading the view.
}
//MARK: - cell delegate
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
5
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
switch
section
{
case
0
:
return
7
case
1
:
return
2
case
2
:
return
1
case
3
:
return
5
default
:
return
2
}
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
switch
indexPath
.
section
{
case
0
:
if
indexPath
.
row
==
0
||
indexPath
.
row
==
4
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTF"
)
as!
TitleAndTFCell
cell
.
nameLbl
.
text
=
spxxArr
[
indexPath
.
row
]
return
cell
}
if
indexPath
.
row
>
4
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndSwitch"
)
as!
TitleAndSwitchCell
cell
.
namelbl
.
text
=
spxxArr
[
indexPath
.
row
]
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtn"
)
as!
TitleAndBtnCell
cell
.
nameLbl
.
text
=
spxxArr
[
indexPath
.
row
]
return
cell
case
1
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"AddImg"
)
as!
AddImgCell
cell
.
nameLbl
.
text
=
sptpArr
[
indexPath
.
row
]
return
cell
case
2
:
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"AddGuiGe"
)
as!
AddGuiGeCell
return
cell
case
3
:
if
indexPath
.
row
<
2
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTF"
)
as!
TitleAndTFCell
cell
.
nameLbl
.
text
=
qtxxArr
[
indexPath
.
row
]
return
cell
}
else
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtn"
)
as!
TitleAndBtnCell
cell
.
nameLbl
.
text
=
qtxxArr
[
indexPath
.
row
]
return
cell
}
default
:
if
indexPath
.
row
==
0
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"Commend"
)
as!
CommendCell
cell
.
delegate
=
self
return
cell
}
else
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"AddGuiGe"
)
as!
AddGuiGeCell
return
cell
}
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
switch
indexPath
.
section
{
case
0
:
return
49*
glscale
case
1
:
return
148.5
*
glscale
case
2
:
return
123.5
*
glscale
case
3
:
return
49*
glscale
default
:
if
indexPath
.
row
==
0
{
return
CGFloat
(
cellHeight
)
+
27.5
}
else
{
return
155.5
}
}
}
//header
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
39*
glscale
))
let
lbl
=
UILabel
(
frame
:
CGRect
(
x
:
15*
glscale
,
y
:
15*
glscale
,
width
:
fullScreenWidth
,
height
:
21*
glscale
))
lbl
.
text
=
titleArr
[
section
]
lbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
lbl
.
font
=
UIFont
.
boldSystemFont
(
ofSize
:
15
)
view
.
addSubview
(
lbl
)
if
section
==
2
&&
guiGeArr
.
count
>
0
{
let
btn
=
UIButton
()
btn
.
setTitle
(
" 新增"
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
btn
.
setTitleColor
(
UIColor
(
named
:
"蓝色字体颜色"
),
for
:
.
normal
)
btn
.
setImage
(
UIImage
(
named
:
"编组"
),
for
:
.
normal
)
view
.
addSubview
(
btn
)
btn
.
sizeToFit
()
btn
.
snp
.
makeConstraints
{
(
make
)
in
make
.
centerY
.
equalTo
(
lbl
.
snp_centerY
)
make
.
right
.
equalTo
(
-
15
)
make
.
height
.
equalTo
(
btn
.
frame
.
size
.
height
)
make
.
width
.
equalTo
(
btn
.
frame
.
size
.
width
)
}
let
btn2
=
UIButton
()
btn2
.
backgroundColor
=
UIColor
.
black
view
.
addSubview
(
btn2
)
btn2
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
right
.
bottom
.
equalTo
(
0
)
make
.
width
.
equalTo
(
80
)
}
}
return
view
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
39*
glscale
}
//footer
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
10*
glscale
))
view
.
backgroundColor
=
UIColor
(
named
:
"app底色"
)
return
view
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
return
10*
glscale
}
//MARK: - 自定义delegate
func
CommendCellSendH
(
height
:
CGFloat
)
{
cellHeight
=
Double
(
height
)
listTbv
.
beginUpdates
()
listTbv
.
endUpdates
()
}
func
CommendCellSendStr
(
content
:
String
)
{
}
override
func
backAction
()
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.xib
0 → 100644
View file @
9d9d2a91
<?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"
useSafeAreas=
"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=
"Safe area layout guides"
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=
"ProductDetailViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"listTbv"
destination=
"IHM-ED-ttx"
id=
"Huh-Oq-0XN"
/>
<outlet
property=
"submitBtn"
destination=
"6Jp-Xx-Q5Z"
id=
"C6U-uz-2vx"
/>
<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=
"6Jp-Xx-Q5Z"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"49"
id=
"WPf-78-zz1"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientEndColor"
>
<color
key=
"value"
name=
"按钮渐变色下,字体颜色"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"gradientHorizontal"
value=
"YES"
/>
<userDefinedRuntimeAttribute
type=
"string"
keyPath=
"titleString"
value=
"保存"
/>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"titleFontSize"
>
<real
key=
"value"
value=
"17"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"submitAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"Miy-vj-Bgk"
/>
</connections>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"18"
sectionFooterHeight=
"18"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"IHM-ED-ttx"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"40h-ag-zwa"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"OaC-hl-du0"
/>
</connections>
</tableView>
<view
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ewl-Lo-wtw"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"862"
width=
"414"
height=
"40"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"40"
id=
"5pr-3g-1WD"
/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientEndColor"
>
<color
key=
"value"
name=
"按钮渐变色下,字体颜色"
/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"gradientHorizontal"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"IHM-ED-ttx"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"MNm-jA-Ppd"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"IHM-ED-ttx"
secondAttribute=
"trailing"
id=
"Vnl-z5-Y1J"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"6Jp-Xx-Q5Z"
secondAttribute=
"bottom"
id=
"eJm-P9-WlY"
/>
<constraint
firstItem=
"IHM-ED-ttx"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"iph-5V-7eS"
/>
<constraint
firstItem=
"6Jp-Xx-Q5Z"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"jJ0-JV-Yjh"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"6Jp-Xx-Q5Z"
secondAttribute=
"trailing"
id=
"n1j-qx-pdg"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"ewl-Lo-wtw"
secondAttribute=
"trailing"
id=
"nAq-Ah-M4q"
/>
<constraint
firstItem=
"6Jp-Xx-Q5Z"
firstAttribute=
"top"
secondItem=
"IHM-ED-ttx"
secondAttribute=
"bottom"
id=
"puU-q8-Nrg"
/>
<constraint
firstItem=
"ewl-Lo-wtw"
firstAttribute=
"top"
secondItem=
"6Jp-Xx-Q5Z"
secondAttribute=
"bottom"
id=
"qSh-pw-OQl"
/>
<constraint
firstItem=
"ewl-Lo-wtw"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"zse-fm-lO5"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"147.82608695652175"
y=
"82.366071428571431"
/>
</view>
</objects>
<resources>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色下,字体颜色"
>
<color
red=
"0.27450980392156865"
green=
"0.5607843137254902"
blue=
"0.88627450980392153"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/新增、编辑(查看)仓库/CheckWareHourseViewController.swift
View file @
9d9d2a91
...
...
@@ -10,7 +10,7 @@ import UIKit
import
LGButton
import
IQKeyboardManagerSwift
class
CheckWareHourseViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
WareHouseSpCellDelegate
,
KuWeiCellCell
Delegate
{
class
CheckWareHourseViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
WareHouseSpCellDelegate
,
GLAlertSelectView
Delegate
{
var
titleStr
:
String
?
@IBOutlet
weak
var
bottomBtn
:
LGButton
!
...
...
@@ -27,14 +27,7 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
var
listArray
=
[
"a"
,
"b"
,
"c"
]
var
btmView
:
UIView
?
var
header
:
UIView
?
var
inputV
:
UIView
?
var
wareHourseTbv
:
UITableView
?
var
btmButton
:
LGButton
?
var
glSelectView
:
GLAlertSelectView
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
titleStr
...
...
@@ -58,22 +51,13 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
// Do any additional setup after loading the view.
}
//MARK: -方法
func
GLAlertSelectViewClose
(
sender
:
UIButton
)
{
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
}
@IBAction
func
submitAction
(
_
sender
:
LGButton
)
{
wareHourseTbv
?
.
removeFromSuperview
()
btmButton
?
.
removeFromSuperview
()
inputV
?
.
removeFromSuperview
()
btmView
?
.
removeFromSuperview
()
header
?
.
removeFromSuperview
()
warehourseTypeSelectView
?
.
removeFromSuperview
()
header
=
nil
wareHourseTbv
=
nil
btmButton
=
nil
inputV
=
nil
btmView
=
nil
if
sender
.
tag
==
999
{
//请选择或填写包含库位的确定按钮
print
(
"tag 999"
)
...
...
@@ -98,251 +82,49 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
print
(
"删除"
)
}
func
deleClickAction
(
sender
:
Int
)
{
//点击库位删除
print
(
"删除第
\(
sender
)
行cell"
)
}
func
editClickAction
(
sender
:
Int
)
{
//点击库位编辑
print
(
"编辑第
\(
sender
)
行cell"
)
}
@objc
func
removeActin
(
sender
:
UIButton
){
sender
.
superview
?
.
removeFromSuperview
()
wareHourseTbv
?
.
removeFromSuperview
()
btmButton
?
.
removeFromSuperview
()
inputV
?
.
removeFromSuperview
()
btmView
?
.
removeFromSuperview
()
header
?
.
removeFromSuperview
()
header
=
nil
wareHourseTbv
=
nil
btmButton
=
nil
inputV
=
nil
btmView
=
nil
}
//MARK: - 自定义DELEGATE
//库位
func
GLAlertSelectDelAction
(
sender
:
Array
<
Any
>
)
{
print
(
sender
)
}
func
GLAlertSelectEditAction
(
sender
:
Int
)
{
print
(
sender
)
}
func
GLAlertSelectSubmitAction
()
{
print
(
"确定"
)
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
}
func
clickAction
(
sender
:
UIButton
)
{
IQKeyboardManager
.
shared
.
resignFirstResponder
()
if
sender
.
tag
==
1
{
//新增仓库类型
let
bgView
=
UIView
(
frame
:
self
.
view
.
bounds
)
bgView
.
backgroundColor
=
UIColor
.
clear
self
.
view
.
addSubview
(
bgView
)
let
colorV
=
UIButton
(
frame
:
bgView
.
bounds
)
colorV
.
addTarget
(
self
,
action
:
#selector(
removeActin(sender:)
)
,
for
:
.
touchUpInside
)
colorV
.
backgroundColor
=
UIColor
(
named
:
"标题字颜色"
)
colorV
.
alpha
=
0.5
bgView
.
addSubview
(
colorV
)
let
bottomV
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
fullScreenHeight
,
width
:
fullScreenWidth
,
height
:
251*
glscale
))
bottomV
.
backgroundColor
=
UIColor
.
clear
bgView
.
addSubview
(
bottomV
)
let
colorView
=
UIView
(
frame
:
bottomV
.
bounds
)
colorView
.
backgroundColor
=
UIColor
.
white
colorView
.
layer
.
cornerRadius
=
5
colorView
.
layer
.
masksToBounds
=
true
bottomV
.
addSubview
(
colorView
)
let
title
=
UILabel
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
51*
glscale
))
title
.
text
=
"请选择仓库类型"
title
.
textAlignment
=
.
center
title
.
font
=
UIFont
(
name
:
"苹方-简 中黑体"
,
size
:
15*
glscale
)
bottomV
.
addSubview
(
title
)
let
line
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
title
.
frame
.
maxY
,
width
:
fullScreenWidth
,
height
:
1
))
line
.
backgroundColor
=
UIColor
(
named
:
"灰色分界线"
)
bottomV
.
addSubview
(
line
)
let
firstBtn
=
self
.
setBtn
(
tagView
:
line
,
title
:
"冷冻"
,
tag
:
0
)
bottomV
.
addSubview
(
firstBtn
)
let
secBtn
=
self
.
setBtn
(
tagView
:
firstBtn
,
title
:
"冷藏"
,
tag
:
1
)
bottomV
.
addSubview
(
secBtn
)
let
thirdBtn
=
self
.
setBtn
(
tagView
:
secBtn
,
title
:
"常温"
,
tag
:
2
)
bottomV
.
addSubview
(
thirdBtn
)
let
submitBtn
=
LGButton
()
submitBtn
.
frame
=
CGRect
(
x
:
0
,
y
:
thirdBtn
.
frame
.
maxY
,
width
:
fullScreenWidth
,
height
:
bottomV
.
bounds
.
size
.
height
-
thirdBtn
.
frame
.
maxY
)
submitBtn
.
titleString
=
"确定"
submitBtn
.
titleFontSize
=
17
submitBtn
.
gradientStartColor
=
UIColor
(
named
:
"按钮渐变色上"
)
submitBtn
.
gradientEndColor
=
UIColor
(
named
:
"按钮渐变色下,字体颜色"
)
submitBtn
.
gradientHorizontal
=
true
submitBtn
.
addTarget
(
self
,
action
:
#selector(
submitAction(_:)
)
,
for
:
.
touchUpInside
)
bottomV
.
addSubview
(
submitBtn
)
for
item
in
btnArray
{
let
btn
=
item
as!
UIButton
if
btn
.
tag
==
warehourseType
{
btn
.
isSelected
=
true
}
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
titleLbl
.
text
=
"请选择仓库类型"
view
.
delegate
=
self
view
.
dataArr
=
listArray
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
UIView
.
animate
(
withDuration
:
0.1
)
{
bottomV
.
frame
=
CGRect
(
x
:
0
,
y
:
fullScreenHeight
-
251*
glscale
,
width
:
fullScreenWidth
,
height
:
251*
glscale
)
}
warehourseTypeSelectView
=
bgView
}
if
sender
.
tag
==
2
{
//MARK: -包含库位
let
bgView
=
UIView
(
frame
:
self
.
view
.
bounds
)
bgView
.
backgroundColor
=
UIColor
.
clear
self
.
view
.
addSubview
(
bgView
)
let
colorV
=
UIButton
(
frame
:
bgView
.
bounds
)
colorV
.
addTarget
(
self
,
action
:
#selector(
removeActin(sender:)
)
,
for
:
.
touchUpInside
)
colorV
.
backgroundColor
=
UIColor
(
named
:
"标题字颜色"
)
colorV
.
alpha
=
0.5
bgView
.
addSubview
(
colorV
)
let
tbvHeight
=
CGFloat
(
listArray
.
count
)
*
49.0
var
bvHeight
=
197.5
+
tbvHeight
if
bvHeight
>
fullScreenHeight
*
0.75
{
bvHeight
=
fullScreenHeight
*
0.75
}
let
bottomView
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
fullScreenHeight
,
width
:
fullScreenWidth
,
height
:
bvHeight
))
bottomView
.
backgroundColor
=
UIColor
.
clear
bgView
.
addSubview
(
bottomView
)
btmView
=
bottomView
let
head
=
self
.
getHeaderView
()
bottomView
.
addSubview
(
head
)
header
=
head
let
input
=
self
.
getInputView
(
y
:
head
.
frame
.
maxY
)
bottomView
.
addSubview
(
input
)
inputV
=
input
if
wareHourseTbv
==
nil
{
let
tbv
=
UITableView
(
frame
:
CGRect
(
x
:
0
,
y
:
input
.
frame
.
maxY
,
width
:
fullScreenWidth
,
height
:
bvHeight
-
197.5
))
tbv
.
delegate
=
self
tbv
.
dataSource
=
self
bottomView
.
addSubview
(
tbv
)
tbv
.
backgroundColor
=
UIColor
.
white
tbv
.
separatorStyle
=
.
none
wareHourseTbv
=
tbv
wareHourseTbv
?
.
register
(
UINib
(
nibName
:
"KuWeiCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"KuWei"
)
}
let
submitBtn
=
LGButton
()
submitBtn
.
frame
=
CGRect
(
x
:
0
,
y
:
(
wareHourseTbv
?
.
frame
.
maxY
)
!
,
width
:
fullScreenWidth
,
height
:
49
)
submitBtn
.
titleString
=
"确定"
submitBtn
.
titleFontSize
=
17
submitBtn
.
gradientStartColor
=
UIColor
(
named
:
"按钮渐变色上"
)
submitBtn
.
gradientEndColor
=
UIColor
(
named
:
"按钮渐变色下,字体颜色"
)
submitBtn
.
gradientHorizontal
=
true
submitBtn
.
tag
=
999
submitBtn
.
addTarget
(
self
,
action
:
#selector(
submitAction(_:)
)
,
for
:
.
touchUpInside
)
bottomView
.
addSubview
(
submitBtn
)
btmButton
=
submitBtn
warehourseTypeSelectView
=
bgView
UIView
.
animate
(
withDuration
:
0.1
){
bottomView
.
frame
=
CGRect
(
x
:
0
,
y
:
fullScreenHeight
-
bvHeight
,
width
:
fullScreenWidth
,
height
:
bvHeight
)
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
,
title
:
"请选择或填写包含库位"
)
view
.
delegate
=
self
view
.
dataArr
=
listArray
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
}
}
func
getInputView
(
y
:
CGFloat
)
->
UIView
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
y
,
width
:
fullScreenWidth
,
height
:
95.5
))
view
.
backgroundColor
=
UIColor
.
white
let
ti3
=
UILabel
()
ti3
.
text
=
"操作"
ti3
.
textColor
=
UIColor
(
named
:
"灰色字体颜色"
)
ti3
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
view
.
addSubview
(
ti3
)
ti3
.
sizeToFit
()
ti3
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
15
)
make
.
right
.
equalTo
(
-
33
)
make
.
width
.
equalTo
(
28
)
make
.
height
.
equalTo
(
18.5
)
}
let
ti2
=
UILabel
()
ti2
.
text
=
"库存数"
ti2
.
textColor
=
UIColor
(
named
:
"灰色字体颜色"
)
ti2
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
view
.
addSubview
(
ti2
)
ti2
.
sizeToFit
()
ti2
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
15
)
make
.
right
.
equalTo
(
ti3
.
snp_left
)
.
offset
(
-
80
)
make
.
width
.
equalTo
(
44
)
make
.
height
.
equalTo
(
18.5
)
}
let
ti1
=
UILabel
()
ti1
.
text
=
"库位名称"
ti1
.
textColor
=
UIColor
(
named
:
"灰色字体颜色"
)
ti1
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
view
.
addSubview
(
ti1
)
ti1
.
sizeToFit
()
ti1
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
15
)
make
.
left
.
equalTo
(
20
)
make
.
width
.
equalTo
(
60
)
make
.
height
.
equalTo
(
18.5
)
}
let
inputTF
=
UITextField
()
inputTF
.
addTarget
(
self
,
action
:
#selector(
textChange(TF:)
)
,
for
:
.
allEditingEvents
)
inputTF
.
placeholder
=
"请输入库位名称"
inputTF
.
textAlignment
=
.
center
inputTF
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
inputTF
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
inputTF
.
borderStyle
=
.
none
inputTF
.
layer
.
cornerRadius
=
3
inputTF
.
layer
.
masksToBounds
=
true
inputTF
.
layer
.
borderColor
=
UIColor
(
named
:
"灰色字体颜色"
)?
.
cgColor
inputTF
.
layer
.
borderWidth
=
1
view
.
addSubview
(
inputTF
)
inputTF
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
ti1
.
snp_bottom
)
.
offset
(
15
)
make
.
left
.
equalTo
(
15
)
make
.
width
.
equalTo
(
120
)
make
.
height
.
equalTo
(
32
)
}
let
l
=
UILabel
()
l
.
text
=
"-"
l
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
l
.
textColor
=
UIColor
(
named
:
"灰色字体颜色"
)
view
.
addSubview
(
l
)
l
.
snp
.
makeConstraints
{
(
make
)
in
make
.
centerX
.
equalTo
(
ti2
.
snp_centerX
)
make
.
centerY
.
equalTo
(
inputTF
.
snp_centerY
)
make
.
width
.
height
.
equalTo
(
8
)
}
let
btn
=
UIButton
()
btn
.
setTitle
(
"新增"
,
for
:
.
normal
)
btn
.
setTitleColor
(
UIColor
(
named
:
"按钮渐变色下,字体颜色"
),
for
:
.
normal
)
btn
.
addTarget
(
self
,
action
:
#selector(
addKuWei
)
,
for
:
.
touchUpInside
)
btn
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
view
.
addSubview
(
btn
)
btn
.
snp
.
makeConstraints
{
(
make
)
in
make
.
centerX
.
equalTo
(
ti3
.
snp_centerX
)
make
.
centerY
.
equalTo
(
inputTF
.
snp_centerY
)
make
.
width
.
height
.
equalTo
(
50
)
}
return
view
}
@objc
func
addKuWei
(){
listArray
.
append
(
"
\(
listArray
.
count
)
"
)
let
tbvHeight
=
CGFloat
(
listArray
.
count
)
*
49.0
var
bvHeight
=
197.5
+
tbvHeight
if
bvHeight
>
fullScreenHeight
*
0.75
{
bvHeight
=
fullScreenHeight
*
0.75
}
btmView
?
.
frame
=
CGRect
(
x
:
0
,
y
:
fullScreenHeight
-
bvHeight
,
width
:
fullScreenWidth
,
height
:
bvHeight
)
header
?
.
frame
=
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
53
)
inputV
?
.
frame
=
CGRect
(
x
:
0
,
y
:
(
header
?
.
frame
.
maxY
)
!
,
width
:
fullScreenWidth
,
height
:
95.5
)
wareHourseTbv
?
.
frame
=
CGRect
(
x
:
0
,
y
:
(
inputV
?
.
frame
.
maxY
)
!
,
width
:
fullScreenWidth
,
height
:
bvHeight
-
197.5
)
btmButton
?
.
frame
=
CGRect
(
x
:
0
,
y
:
(
wareHourseTbv
?
.
frame
.
maxY
)
!
,
width
:
fullScreenWidth
,
height
:
49
)
wareHourseTbv
?
.
reloadData
()
}
func
setBtn
(
tagView
:
UIView
,
title
:
String
,
tag
:
Int
)
->
UIView
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
tagView
.
frame
.
maxY
,
width
:
fullScreenWidth
,
height
:
49*
glscale
))
...
...
@@ -400,24 +182,17 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
49
}
@objc
func
textChange
(
TF
:
UITextField
){
print
(
"
\(
TF
.
text
)
"
)
}
//footer
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
if
tableView
==
wareHourseTbv
{
let
view
=
UIView
()
return
view
}
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
self
.
view
.
bounds
.
size
.
width
,
height
:
10
))
view
.
backgroundColor
=
UIColor
(
named
:
"app背景色"
)
return
view
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
if
tableView
==
wareHourseTbv
{
return
0.01
}
return
10
}
...
...
@@ -460,8 +235,8 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
tableView
==
listView
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"WareHouse"
)
as!
WareHouseSpCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"WareHouse"
)
as!
WareHouseSpCell
cell
.
clickBtn
.
isHidden
=
true
cell
.
detailTF
.
isUserInteractionEnabled
=
false
cell
.
whSwitch
.
isUserInteractionEnabled
=
false
...
...
@@ -477,43 +252,9 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
}
else
{
//默认仓库
cell
.
detailTF
.
isHidden
=
true
cell
.
clickBtn
.
isHidden
=
true
cell
.
btnImg
.
isHidden
=
true
}
return
cell
}
else
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"KuWei"
)
as!
KuWeiCell
cell
.
nameLbl
.
text
=
listArray
[
indexPath
.
row
]
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
return
cell
}
}
func
getHeaderView
()
->
UIView
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
53
))
view
.
backgroundColor
=
UIColor
.
white
let
bezierPath
=
UIBezierPath
(
roundedRect
:
view
.
bounds
,
byRoundingCorners
:
[
.
topLeft
,
.
topRight
],
cornerRadii
:
CGSize
(
width
:
5
,
height
:
5
))
let
shapeLayer
=
CAShapeLayer
()
shapeLayer
.
frame
=
view
.
bounds
shapeLayer
.
path
=
bezierPath
.
cgPath
view
.
layer
.
mask
=
shapeLayer
let
lbl
=
UILabel
(
frame
:
view
.
bounds
)
lbl
.
text
=
"请选择或填写包含库位"
lbl
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
lbl
.
font
=
UIFont
.
systemFont
(
ofSize
:
17
)
lbl
.
textAlignment
=
.
center
view
.
addSubview
(
lbl
)
let
line
=
UIView
()
line
.
backgroundColor
=
UIColor
(
named
:
"灰色分界线"
)
view
.
addSubview
(
line
)
line
.
snp
.
makeConstraints
{
(
make
)
in
make
.
bottom
.
right
.
equalTo
(
0
)
make
.
left
.
equalTo
(
15
)
make
.
height
.
equalTo
(
1
)
}
return
view
}
}
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
View file @
9d9d2a91
...
...
@@ -9,7 +9,7 @@
import
UIKit
import
LGButton
class
CreatNewSpecsViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndTFCellDelegate
,
TitleAndBtnCellDelegate
,
TitleAndSwitchCellDelegate
,
TitleAndSwitchHeaderViewDelegate
,
NewCreateHeaderDelegate
,
NewCreateFooterDelegate
,
YuShouCellDelegate
{
class
CreatNewSpecsViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndTFCellDelegate
,
TitleAndBtnCellDelegate
,
TitleAndSwitchCellDelegate
,
TitleAndSwitchHeaderViewDelegate
,
NewCreateHeaderDelegate
,
NewCreateFooterDelegate
,
YuShouCellDelegate
,
GLAlertSelectViewDelegate
{
let
titleArray
=
[
"售价:"
,
"规格:"
,
"重量:"
,
"温藏:"
,
"单位:"
]
let
pliceHolderArr
=
[
"请输入商品售价"
,
"请输入商品规格"
,
"请输入商品重量"
,
"请选择商品温藏"
,
"请选择商品单位"
]
...
...
@@ -25,6 +25,10 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
//规格
var
normalArr
:
NSArray
=
[]
//普通
var
specalArr
:
NSArray
=
[]
//预售
//选择页面
var
selectView
:
GLAlertSelectView
?
=
nil
var
selectListArr
:
Array
<
String
>
=
[
"a"
,
"b"
,
"c"
]
//测试数据
var
addNormal
=
0
var
addSpecal
=
0
...
...
@@ -47,6 +51,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
listTbv
?
.
register
(
UINib
(
nibName
:
"YuShouCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"YuShou"
)
listTbv
?
.
register
(
UINib
(
nibName
:
"PuTongJieTiCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"PuTongJieTi"
)
listTbv
?
.
register
(
UINib
(
nibName
:
"DelGuiGeCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"DelGuiGe"
)
}
...
...
@@ -57,6 +62,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
}
//MARK: - cell delegate
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
if
(
navbar
.
title
?
.
contains
(
"编辑"
))
!
{
return
4
}
else
{
...
...
@@ -64,6 +70,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
section
==
0
{
return
titleArray
.
count
}
...
...
@@ -86,6 +93,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
section
==
0
{
if
indexPath
.
row
<
3
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTF"
)
as!
TitleAndTFCell
...
...
@@ -215,7 +223,40 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
func
textFieldContent
(
content
:
String
,
cell
:
TitleAndTFCell
)
{
}
func
GLAlertSelectViewClose
(
sender
:
UIButton
)
{
print
(
"关闭"
)
selectView
?
.
removeFromSuperview
()
selectView
=
nil
}
func
GLAlertSelectViewClick
(
sender
:
UIButton
,
cell
:
TitleAndSelectCell
)
{
print
(
cell
.
tag
)
}
func
GLAlertSelectSubmitAction
()
{
print
(
"确定"
)
selectView
?
.
removeFromSuperview
()
selectView
=
nil
}
func
btnClick
(
content
:
String
,
cell
:
TitleAndBtnCell
)
{
if
cell
.
tag
==
3
{
if
selectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
titleLbl
.
text
=
"请选择商品温藏"
view
.
delegate
=
self
view
.
dataArr
=
selectListArr
self
.
view
.
addSubview
(
view
)
selectView
=
view
}
}
else
{
if
selectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
titleLbl
.
text
=
"请选择商品单位"
view
.
delegate
=
self
view
.
dataArr
=
selectListArr
self
.
view
.
addSubview
(
view
)
selectView
=
view
}
}
}
func
switchStatus
(
sender
:
UISwitch
)
{
...
...
@@ -262,4 +303,10 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
}
listTbv
.
reloadData
()
}
//MARK: - 选择页面
}
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