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
dc98d23d
Commit
dc98d23d
authored
Apr 22, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增、编辑规格
parent
8e0526fb
Changes
39
Hide whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
1634 additions
and
71 deletions
+1634
-71
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+88
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Assets.xcassets/仓库/Off.imageset/Contents.json
...essPlatform/Assets.xcassets/仓库/Off.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/仓库/Off.imageset/Off@2x.png
...sinessPlatform/Assets.xcassets/仓库/Off.imageset/Off@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/仓库/Off.imageset/Off@3x.png
...sinessPlatform/Assets.xcassets/仓库/Off.imageset/Off@3x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/仓库/shanchu-1.imageset/Contents.json
...tform/Assets.xcassets/仓库/shanchu-1.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/仓库/shanchu-1.imageset/shanchu@2x.png
...form/Assets.xcassets/仓库/shanchu-1.imageset/shanchu@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/仓库/shanchu-1.imageset/shanchu@3x.png
...form/Assets.xcassets/仓库/shanchu-1.imageset/shanchu@3x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/字体色/#F57575.colorset/Contents.json
...atform/Assets.xcassets/字体色/#F57575.colorset/Contents.json
+21
-0
GeliBusinessPlatform/Assets.xcassets/背景色/按钮渐变色下,字体颜色.colorset/Contents.json
...rm/Assets.xcassets/背景色/按钮渐变色下,字体颜色.colorset/Contents.json
+14
-13
GeliBusinessPlatform/Assets.xcassets/订单管理/编组.imageset/Contents.json
...ssPlatform/Assets.xcassets/订单管理/编组.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/订单管理/编组.imageset/编组@2x.png
...sinessPlatform/Assets.xcassets/订单管理/编组.imageset/编组@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/订单管理/编组.imageset/编组@3x.png
...sinessPlatform/Assets.xcassets/订单管理/编组.imageset/编组@3x.png
+0
-0
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
+2
-2
GeliBusinessPlatform/View/Cell/MsgCenterCell.xib
GeliBusinessPlatform/View/Cell/MsgCenterCell.xib
+16
-2
GeliBusinessPlatform/View/Cell/TitleAndSwitchCell.xib
GeliBusinessPlatform/View/Cell/TitleAndSwitchCell.xib
+5
-1
GeliBusinessPlatform/View/Cell/TitleAndTFCell.xib
GeliBusinessPlatform/View/Cell/TitleAndTFCell.xib
+2
-2
GeliBusinessPlatform/View/Cell/WareHouseSpCell.xib
GeliBusinessPlatform/View/Cell/WareHouseSpCell.xib
+5
-1
GeliBusinessPlatform/ViewController/换绑支付账号(绑定,换绑)/BindViewController.xib
...tform/ViewController/换绑支付账号(绑定,换绑)/BindViewController.xib
+17
-17
GeliBusinessPlatform/ViewController/支付账号(设置,修改)/BindStepTwoViewController.swift
...iewController/支付账号(设置,修改)/BindStepTwoViewController.swift
+58
-0
GeliBusinessPlatform/ViewController/支付账号(设置,修改)/BindStepTwoViewController.xib
.../ViewController/支付账号(设置,修改)/BindStepTwoViewController.xib
+180
-0
GeliBusinessPlatform/ViewController/支付账号(设置,修改)/PayViewController.swift
...atform/ViewController/支付账号(设置,修改)/PayViewController.swift
+17
-1
GeliBusinessPlatform/ViewController/支付账号(设置,修改)/PayViewController.xib
...Platform/ViewController/支付账号(设置,修改)/PayViewController.xib
+17
-11
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
...orm/ViewController/新增规格/CreatNewSpecsViewController.swift
+180
-19
GeliBusinessPlatform/ViewController/新增规格/DelGuiGeCell.swift
GeliBusinessPlatform/ViewController/新增规格/DelGuiGeCell.swift
+24
-0
GeliBusinessPlatform/ViewController/新增规格/DelGuiGeCell.xib
GeliBusinessPlatform/ViewController/新增规格/DelGuiGeCell.xib
+43
-0
GeliBusinessPlatform/ViewController/新增规格/JiaTiJiaCell.swift
GeliBusinessPlatform/ViewController/新增规格/JiaTiJiaCell.swift
+24
-0
GeliBusinessPlatform/ViewController/新增规格/JiaTiJiaCell.xib
GeliBusinessPlatform/ViewController/新增规格/JiaTiJiaCell.xib
+21
-0
GeliBusinessPlatform/ViewController/新增规格/PuTongJieTiCell.swift
...usinessPlatform/ViewController/新增规格/PuTongJieTiCell.swift
+34
-0
GeliBusinessPlatform/ViewController/新增规格/PuTongJieTiCell.xib
GeliBusinessPlatform/ViewController/新增规格/PuTongJieTiCell.xib
+133
-0
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.swift
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.swift
+36
-0
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.xib
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.xib
+164
-0
GeliBusinessPlatform/ViewController/新增规格/footer/NewCreateFooter.swift
...Platform/ViewController/新增规格/footer/NewCreateFooter.swift
+49
-0
GeliBusinessPlatform/ViewController/新增规格/footer/NewCreateFooter.xib
...ssPlatform/ViewController/新增规格/footer/NewCreateFooter.xib
+61
-0
GeliBusinessPlatform/ViewController/新增规格/仅新增规格header/NewCreateHeader.swift
...orm/ViewController/新增规格/仅新增规格header/NewCreateHeader.swift
+53
-0
GeliBusinessPlatform/ViewController/新增规格/仅新增规格header/NewCreateHeader.xib
...tform/ViewController/新增规格/仅新增规格header/NewCreateHeader.xib
+84
-0
GeliBusinessPlatform/ViewController/新增规格/普通+预售header/TitleAndSwitchHeaderView.swift
...ontroller/新增规格/普通+预售header/TitleAndSwitchHeaderView.swift
+93
-0
GeliBusinessPlatform/ViewController/新增规格/普通+预售header/TitleAndSwitchHeaderView.xib
...wController/新增规格/普通+预售header/TitleAndSwitchHeaderView.xib
+123
-0
GeliBusinessPlatform/ViewController/登录/LoginViewController.swift
...inessPlatform/ViewController/登录/LoginViewController.swift
+1
-2
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
dc98d23d
...
...
@@ -18,6 +18,16 @@
E01C26B12446989700ADCC70
/* Interface_Z.plist in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01C26B02446989700ADCC70
/* Interface_Z.plist */
;
};
E01C26B62446AF3100ADCC70
/* DemoViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01C26B42446AF3100ADCC70
/* DemoViewController.swift */
;
};
E01C26B72446AF3100ADCC70
/* DemoViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E01C26B52446AF3100ADCC70
/* DemoViewController.xib */
;
};
E02DDD83244FD15B00ABB707
/* TitleAndSwitchHeaderView.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02DDD82244FD15B00ABB707
/* TitleAndSwitchHeaderView.xib */
;
};
E02DDD85244FDC6A00ABB707
/* TitleAndSwitchHeaderView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02DDD84244FDC6A00ABB707
/* TitleAndSwitchHeaderView.swift */
;
};
E02DDD8B244FE17400ABB707
/* NewCreateFooter.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02DDD8A244FE17400ABB707
/* NewCreateFooter.xib */
;
};
E02DDD8D244FE43900ABB707
/* NewCreateFooter.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02DDD8C244FE43900ABB707
/* NewCreateFooter.swift */
;
};
E02DDD90244FE54C00ABB707
/* NewCreateHeader.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02DDD8F244FE54C00ABB707
/* NewCreateHeader.swift */
;
};
E02DDD92244FE55400ABB707
/* NewCreateHeader.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02DDD91244FE55400ABB707
/* NewCreateHeader.xib */
;
};
E02DDD952450106C00ABB707
/* PuTongJieTiCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02DDD932450106C00ABB707
/* PuTongJieTiCell.swift */
;
};
E02DDD962450106C00ABB707
/* PuTongJieTiCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02DDD942450106C00ABB707
/* PuTongJieTiCell.xib */
;
};
E02DDD9924501A5B00ABB707
/* DelGuiGeCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02DDD9724501A5B00ABB707
/* DelGuiGeCell.swift */
;
};
E02DDD9A24501A5B00ABB707
/* DelGuiGeCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02DDD9824501A5B00ABB707
/* DelGuiGeCell.xib */
;
};
E0336DD5244EC40000380BE9
/* CreatNewSpecsViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0336DD3244EC40000380BE9
/* CreatNewSpecsViewController.swift */
;
};
E0336DD6244EC40000380BE9
/* CreatNewSpecsViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0336DD4244EC40000380BE9
/* CreatNewSpecsViewController.xib */
;
};
E0516F772448003D00E373CE
/* PayViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0516F752448003D00E373CE
/* PayViewController.swift */
;
};
...
...
@@ -48,6 +58,12 @@
E0B6036F244D376900A56B38
/* KuWeiCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B6036D244D376900A56B38
/* KuWeiCell.xib */
;
};
E0C4F4A7244EC82A00CC7E2F
/* TitleAndBtnCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0C4F4A5244EC82A00CC7E2F
/* TitleAndBtnCell.swift */
;
};
E0C4F4A8244EC82A00CC7E2F
/* TitleAndBtnCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0C4F4A6244EC82A00CC7E2F
/* TitleAndBtnCell.xib */
;
};
E0C4F4B5244EE9EE00CC7E2F
/* YuShouCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0C4F4B3244EE9EE00CC7E2F
/* YuShouCell.swift */
;
};
E0C4F4B6244EE9EE00CC7E2F
/* YuShouCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0C4F4B4244EE9EE00CC7E2F
/* YuShouCell.xib */
;
};
E0C4F4B9244EEA7C00CC7E2F
/* JiaTiJiaCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0C4F4B7244EEA7C00CC7E2F
/* JiaTiJiaCell.swift */
;
};
E0C4F4BA244EEA7C00CC7E2F
/* JiaTiJiaCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0C4F4B8244EEA7C00CC7E2F
/* JiaTiJiaCell.xib */
;
};
E0C4F4BD244EF53D00CC7E2F
/* BindStepTwoViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0C4F4BB244EF53D00CC7E2F
/* BindStepTwoViewController.swift */
;
};
E0C4F4BE244EF53D00CC7E2F
/* BindStepTwoViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0C4F4BC244EF53D00CC7E2F
/* BindStepTwoViewController.xib */
;
};
E0C9EF12244E922200277435
/* OrderDViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0C9EF10244E922200277435
/* OrderDViewController.swift */
;
};
E0C9EF13244E922200277435
/* OrderDViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0C9EF11244E922200277435
/* OrderDViewController.xib */
;
};
E0D197BA2448431C002B080C
/* BabyDefine.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0D197A92448431B002B080C
/* BabyDefine.m */
;
};
...
...
@@ -140,6 +156,16 @@
E01C26B42446AF3100ADCC70
/* DemoViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DemoViewController.swift
;
sourceTree
=
"<group>"
;
};
E01C26B52446AF3100ADCC70
/* DemoViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
DemoViewController.xib
;
sourceTree
=
"<group>"
;
};
E01C26BA2446D68500ADCC70
/* Bridge_Header.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
Bridge_Header.h
;
sourceTree
=
"<group>"
;
};
E02DDD82244FD15B00ABB707
/* TitleAndSwitchHeaderView.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
TitleAndSwitchHeaderView.xib
;
sourceTree
=
"<group>"
;
};
E02DDD84244FDC6A00ABB707
/* TitleAndSwitchHeaderView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TitleAndSwitchHeaderView.swift
;
sourceTree
=
"<group>"
;
};
E02DDD8A244FE17400ABB707
/* NewCreateFooter.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
NewCreateFooter.xib
;
sourceTree
=
"<group>"
;
};
E02DDD8C244FE43900ABB707
/* NewCreateFooter.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
NewCreateFooter.swift
;
sourceTree
=
"<group>"
;
};
E02DDD8F244FE54C00ABB707
/* NewCreateHeader.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
NewCreateHeader.swift
;
sourceTree
=
"<group>"
;
};
E02DDD91244FE55400ABB707
/* NewCreateHeader.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
NewCreateHeader.xib
;
sourceTree
=
"<group>"
;
};
E02DDD932450106C00ABB707
/* PuTongJieTiCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PuTongJieTiCell.swift
;
sourceTree
=
"<group>"
;
};
E02DDD942450106C00ABB707
/* PuTongJieTiCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
PuTongJieTiCell.xib
;
sourceTree
=
"<group>"
;
};
E02DDD9724501A5B00ABB707
/* DelGuiGeCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DelGuiGeCell.swift
;
sourceTree
=
"<group>"
;
};
E02DDD9824501A5B00ABB707
/* DelGuiGeCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
DelGuiGeCell.xib
;
sourceTree
=
"<group>"
;
};
E0336DD3244EC40000380BE9
/* CreatNewSpecsViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
CreatNewSpecsViewController.swift
;
sourceTree
=
"<group>"
;
};
E0336DD4244EC40000380BE9
/* CreatNewSpecsViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
CreatNewSpecsViewController.xib
;
sourceTree
=
"<group>"
;
};
E0516F752448003D00E373CE
/* PayViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PayViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -170,6 +196,12 @@
E0B6036D244D376900A56B38
/* KuWeiCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
KuWeiCell.xib
;
sourceTree
=
"<group>"
;
};
E0C4F4A5244EC82A00CC7E2F
/* TitleAndBtnCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TitleAndBtnCell.swift
;
sourceTree
=
"<group>"
;
};
E0C4F4A6244EC82A00CC7E2F
/* TitleAndBtnCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
TitleAndBtnCell.xib
;
sourceTree
=
"<group>"
;
};
E0C4F4B3244EE9EE00CC7E2F
/* YuShouCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YuShouCell.swift
;
sourceTree
=
"<group>"
;
};
E0C4F4B4244EE9EE00CC7E2F
/* YuShouCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
YuShouCell.xib
;
sourceTree
=
"<group>"
;
};
E0C4F4B7244EEA7C00CC7E2F
/* JiaTiJiaCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
JiaTiJiaCell.swift
;
sourceTree
=
"<group>"
;
};
E0C4F4B8244EEA7C00CC7E2F
/* JiaTiJiaCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
JiaTiJiaCell.xib
;
sourceTree
=
"<group>"
;
};
E0C4F4BB244EF53D00CC7E2F
/* BindStepTwoViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
BindStepTwoViewController.swift
;
sourceTree
=
"<group>"
;
};
E0C4F4BC244EF53D00CC7E2F
/* BindStepTwoViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
BindStepTwoViewController.xib
;
sourceTree
=
"<group>"
;
};
E0C9EF10244E922200277435
/* OrderDViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
OrderDViewController.swift
;
sourceTree
=
"<group>"
;
};
E0C9EF11244E922200277435
/* OrderDViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
OrderDViewController.xib
;
sourceTree
=
"<group>"
;
};
E0D197A82448431B002B080C
/* BabyCentralManager.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BabyCentralManager.h
;
sourceTree
=
"<group>"
;
};
...
...
@@ -362,11 +394,49 @@
path
=
"订单详情"
;
sourceTree
=
"<group>"
;
};
E02DDD86244FDF2300ABB707
/* 普通+预售header */
=
{
isa
=
PBXGroup
;
children
=
(
E02DDD84244FDC6A00ABB707
/* TitleAndSwitchHeaderView.swift */
,
E02DDD82244FD15B00ABB707
/* TitleAndSwitchHeaderView.xib */
,
);
path
=
"普通+预售header"
;
sourceTree
=
"<group>"
;
};
E02DDD87244FE14D00ABB707
/* footer */
=
{
isa
=
PBXGroup
;
children
=
(
E02DDD8A244FE17400ABB707
/* NewCreateFooter.xib */
,
E02DDD8C244FE43900ABB707
/* NewCreateFooter.swift */
,
);
path
=
footer
;
sourceTree
=
"<group>"
;
};
E02DDD8E244FE52D00ABB707
/* 仅新增规格header */
=
{
isa
=
PBXGroup
;
children
=
(
E02DDD8F244FE54C00ABB707
/* NewCreateHeader.swift */
,
E02DDD91244FE55400ABB707
/* NewCreateHeader.xib */
,
);
path
=
"仅新增规格header"
;
sourceTree
=
"<group>"
;
};
E0336DD2244EC3CA00380BE9
/* 新增规格 */
=
{
isa
=
PBXGroup
;
children
=
(
E0336DD3244EC40000380BE9
/* CreatNewSpecsViewController.swift */
,
E0336DD4244EC40000380BE9
/* CreatNewSpecsViewController.xib */
,
E0C4F4B3244EE9EE00CC7E2F
/* YuShouCell.swift */
,
E0C4F4B4244EE9EE00CC7E2F
/* YuShouCell.xib */
,
E0C4F4B7244EEA7C00CC7E2F
/* JiaTiJiaCell.swift */
,
E0C4F4B8244EEA7C00CC7E2F
/* JiaTiJiaCell.xib */
,
E02DDD87244FE14D00ABB707
/* footer */
,
E02DDD8E244FE52D00ABB707
/* 仅新增规格header */
,
E02DDD86244FDF2300ABB707
/* 普通+预售header */
,
E02DDD932450106C00ABB707
/* PuTongJieTiCell.swift */
,
E02DDD942450106C00ABB707
/* PuTongJieTiCell.xib */
,
E02DDD9724501A5B00ABB707
/* DelGuiGeCell.swift */
,
E02DDD9824501A5B00ABB707
/* DelGuiGeCell.xib */
,
);
path
=
"新增规格"
;
sourceTree
=
"<group>"
;
...
...
@@ -374,6 +444,8 @@
E0516F742448000F00E373CE
/* 支付账号(设置,修改) */
=
{
isa
=
PBXGroup
;
children
=
(
E0C4F4BB244EF53D00CC7E2F
/* BindStepTwoViewController.swift */
,
E0C4F4BC244EF53D00CC7E2F
/* BindStepTwoViewController.xib */
,
E0516F752448003D00E373CE
/* PayViewController.swift */
,
E0516F762448003D00E373CE
/* PayViewController.xib */
,
);
...
...
@@ -814,11 +886,14 @@
F9023F63244999F500DD5A63
/* WarehoseMangementCell.xib in Resources */
,
E0516F832448086700E373CE
/* MsgCenterCell.xib in Resources */
,
E0DDCB10244AD8C500DF54C7
/* DaiQueRenCell.xib in Resources */
,
E02DDD92244FE55400ABB707
/* NewCreateHeader.xib in Resources */
,
E09B03B72445B85A00211A51
/* LoginViewController.xib in Resources */
,
E09B03C12445B96500211A51
/* FgPassViewController.xib in Resources */
,
E0D197C7244845FD002B080C
/* PersonCenterViewController.xib in Resources */
,
E02DDD83244FD15B00ABB707
/* TitleAndSwitchHeaderView.xib in Resources */
,
E0B6036F244D376900A56B38
/* KuWeiCell.xib in Resources */
,
E01C26B72446AF3100ADCC70
/* DemoViewController.xib in Resources */
,
E0C4F4BA244EEA7C00CC7E2F
/* JiaTiJiaCell.xib in Resources */
,
F9023F6E2449A9B100DD5A63
/* TitleAndTFCell.xib in Resources */
,
F9023F6A2449A50900DD5A63
/* TitleContentCell.xib in Resources */
,
E0516F782448003D00E373CE
/* PayViewController.xib in Resources */
,
...
...
@@ -828,24 +903,29 @@
F961D26924500550007FBE70
/* HeaderSelectView.xib in Resources */
,
E088CC942447124D000DAA8A
/* BindViewController.xib in Resources */
,
E0D197D6244860B1002B080C
/* BlueToothCell.xib in Resources */
,
E0C4F4BE244EF53D00CC7E2F
/* BindStepTwoViewController.xib in Resources */
,
E0D197CB24484D90002B080C
/* PersonCenterCell.xib in Resources */
,
E00D85EB244561FE00F5F816
/* LaunchScreen.storyboard in Resources */
,
F9023F722449ACA800DD5A63
/* TitleAndSwitchCell.xib in Resources */
,
E08B0675244A98B2001D2E01
/* WareHouseSpCell.xib in Resources */
,
E0D4166024482AAF008DCAB4
/* AccountViewController.xib in Resources */
,
E02DDD8B244FE17400ABB707
/* NewCreateFooter.xib in Resources */
,
E0DDCB19244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.xib in Resources */
,
F95D9CA524493E840080D6E3
/* ShopInfoViewController.xib in Resources */
,
F961D26F245015D6007FBE70
/* SelectContentView.xib in Resources */
,
E01C26B12446989700ADCC70
/* Interface_Z.plist in Resources */
,
F969BF08244EC38000C79953
/* GoodsCollectionViewCell.xib in Resources */
,
E0D4166524483058008DCAB4
/* ChangePassViewController.xib in Resources */
,
E02DDD9A24501A5B00ABB707
/* DelGuiGeCell.xib in Resources */
,
E00D85E8244561FE00F5F816
/* Preview Assets.xcassets in Resources */
,
E02DDD962450106C00ABB707
/* PuTongJieTiCell.xib in Resources */
,
E0A7548B244A8F0F00A84B67
/* CheckWareHourseViewController.xib in Resources */
,
F95D9B5024484FAE0080D6E3
/* GeliAlertView.xib in Resources */
,
E0DDCB1E244AE81800DF54C7
/* GuanLianKeHuCell.xib in Resources */
,
E0DDCB14244ADF2C00DF54C7
/* ChangePriceNormalCell.xib in Resources */
,
E0C4F4A8244EC82A00CC7E2F
/* TitleAndBtnCell.xib in Resources */
,
E0336DD6244EC40000380BE9
/* CreatNewSpecsViewController.xib in Resources */
,
E0C4F4B6244EE9EE00CC7E2F
/* YuShouCell.xib in Resources */
,
E00D85E5244561FE00F5F816
/* Assets.xcassets in Resources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
...
...
@@ -918,12 +998,16 @@
E0D197BA2448431C002B080C
/* BabyDefine.m in Sources */
,
F961D264244FD744007FBE70
/* SearchBarView.swift in Sources */
,
F9023F712449ACA800DD5A63
/* TitleAndSwitchCell.swift in Sources */
,
E0C4F4BD244EF53D00CC7E2F
/* BindStepTwoViewController.swift in Sources */
,
E0DDCB13244ADF2C00DF54C7
/* ChangePriceNormalCell.swift in Sources */
,
E09B03B62445B85A00211A51
/* LoginViewController.swift in Sources */
,
E0C4F4B9244EEA7C00CC7E2F
/* JiaTiJiaCell.swift in Sources */
,
E02DDD90244FE54C00ABB707
/* NewCreateHeader.swift in Sources */
,
E0336DD5244EC40000380BE9
/* CreatNewSpecsViewController.swift in Sources */
,
E0DDCB18244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.swift in Sources */
,
E0D197C12448431C002B080C
/* BabyToy.m in Sources */
,
E09B03C32445BD9500211A51
/* NavViewController.swift in Sources */
,
E02DDD85244FDC6A00ABB707
/* TitleAndSwitchHeaderView.swift in Sources */
,
E0D197C02448431C002B080C
/* BabyCentralManager.m in Sources */
,
F95D9CA424493E840080D6E3
/* ShopInfoViewController.swift in Sources */
,
E00D85DF244561FD00F5F816
/* AppDelegate.swift in Sources */
,
...
...
@@ -944,6 +1028,7 @@
F961D271245016B7007FBE70
/* SelectContentView.swift in Sources */
,
E08B0674244A98B2001D2E01
/* WareHouseSpCell.swift in Sources */
,
E0D197CA24484D90002B080C
/* PersonCenterCell.swift in Sources */
,
E0C4F4B5244EE9EE00CC7E2F
/* YuShouCell.swift in Sources */
,
E09B03A82445B04E00211A51
/* BaseView.swift in Sources */
,
E0DDCB0F244AD8C500DF54C7
/* DaiQueRenCell.swift in Sources */
,
F969BF07244EC38000C79953
/* GoodsCollectionViewCell.swift in Sources */
,
...
...
@@ -961,10 +1046,13 @@
E0A7548A244A8F0F00A84B67
/* CheckWareHourseViewController.swift in Sources */
,
F9023F62244999F500DD5A63
/* WarehoseMangementCell.swift in Sources */
,
E0516F772448003D00E373CE
/* PayViewController.swift in Sources */
,
E02DDD952450106C00ABB707
/* PuTongJieTiCell.swift in Sources */
,
E09B03A32445AF9500211A51
/* NetworkRequest.swift in Sources */
,
E09B03A72445B04E00211A51
/* BaseViewController.swift in Sources */
,
E02DDD9924501A5B00ABB707
/* DelGuiGeCell.swift in Sources */
,
E088CC932447124D000DAA8A
/* BindViewController.swift in Sources */
,
E088CC8D24470BF0000DAA8A
/* CodeView.swift in Sources */
,
E02DDD8D244FE43900ABB707
/* NewCreateFooter.swift in Sources */
,
E0D197CF24485649002B080C
/* BluetoothConnectViewController.swift in Sources */
,
E0D197BC2448431C002B080C
/* BabyPeripheralManager.m in Sources */
,
);
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
dc98d23d
No preview for this file type
GeliBusinessPlatform/Assets.xcassets/仓库/Off.imageset/Contents.json
0 → 100644
View file @
dc98d23d
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"Off@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"Off@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/仓库/Off.imageset/Off@2x.png
0 → 100644
View file @
dc98d23d
1.86 KB
GeliBusinessPlatform/Assets.xcassets/仓库/Off.imageset/Off@3x.png
0 → 100644
View file @
dc98d23d
3.33 KB
GeliBusinessPlatform/Assets.xcassets/仓库/shanchu-1.imageset/Contents.json
0 → 100644
View file @
dc98d23d
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"shanchu@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"shanchu@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/仓库/shanchu-1.imageset/shanchu@2x.png
0 → 100644
View file @
dc98d23d
1.04 KB
GeliBusinessPlatform/Assets.xcassets/仓库/shanchu-1.imageset/shanchu@3x.png
0 → 100644
View file @
dc98d23d
1.98 KB
GeliBusinessPlatform/Assets.xcassets/字体色/#F57575.colorset/Contents.json
0 → 100644
View file @
dc98d23d
{
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
},
"colors"
:
[
{
"idiom"
:
"universal"
,
"color"
:
{
"color-space"
:
"srgb"
,
"components"
:
{
"red"
:
"0.961"
,
"alpha"
:
"1.000"
,
"blue"
:
"0.459"
,
"green"
:
"0.459"
}
}
}
]
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/背景色/按钮渐变色下,字体颜色.colorset/Contents.json
View file @
dc98d23d
{
"properties"
:
{
"localizable"
:
true
},
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
},
"colors"
:
[
{
"idiom"
:
"universal"
,
"color"
:
{
"color-space"
:
"srgb"
,
"components"
:
{
"red"
:
"0x46"
,
"alpha"
:
"1.000"
,
"blue"
:
"0xE2"
,
"green"
:
"0x8F"
,
"red"
:
"0x46"
"green"
:
"0x8F"
}
},
"idiom"
:
"universal"
}
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
},
"properties"
:
{
"localizable"
:
true
}
}
]
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/订单管理/编组.imageset/Contents.json
0 → 100644
View file @
dc98d23d
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"编组@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"编组@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
GeliBusinessPlatform/Assets.xcassets/订单管理/编组.imageset/编组@2x.png
0 → 100644
View file @
dc98d23d
207 Bytes
GeliBusinessPlatform/Assets.xcassets/订单管理/编组.imageset/编组@3x.png
0 → 100644
View file @
dc98d23d
346 Bytes
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
View file @
dc98d23d
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6096
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
5702
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_5"
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=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
...
...
GeliBusinessPlatform/View/Cell/MsgCenterCell.xib
View file @
dc98d23d
...
...
@@ -49,11 +49,25 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
numberOfLines=
"2"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"L0Y-lD-jK8"
>
<rect
key=
"frame"
x=
"15"
y=
"45"
width=
"315"
height=
"45"
/>
<attributedString
key=
"attributedText"
>
<fragment
content=
"亲爱的格利食品网商户您好,您提交的(六和川香鸡柳 2.5kg*2)商品已通过审核。"
>
<fragment
content=
"亲爱的格利食品网商户您好,您提交的(六和川香鸡柳"
>
<attributes>
<color
key=
"NSColor"
name=
"标题字颜色"
/>
<font
key=
"NSFont"
size=
"13"
name=
".PingFangSC-Regular"
/>
<paragraphStyle
key=
"NSParagraphStyle"
alignment=
"natural"
lineBreakMode=
"wordWrapping"
baseWritingDirection=
"natural"
lineSpacing=
"3"
tighteningFactorForTruncation=
"0.0"
/>
</attributes>
</fragment>
<fragment
content=
" 2.5kg*2"
>
<attributes>
<color
key=
"NSColor"
name=
"标题字颜色"
/>
<font
key=
"NSFont"
metaFont=
"system"
/>
<paragraphStyle
key=
"NSParagraphStyle"
alignment=
"natural"
lineBreakMode=
"wordWrapping"
baseWritingDirection=
"natural"
lineSpacing=
"2"
tighteningFactorForTruncation=
"0.0"
/>
<paragraphStyle
key=
"NSParagraphStyle"
alignment=
"natural"
lineBreakMode=
"wordWrapping"
baseWritingDirection=
"natural"
lineSpacing=
"3"
tighteningFactorForTruncation=
"0.0"
/>
</attributes>
</fragment>
<fragment
content=
")商品已通过审核。"
>
<attributes>
<color
key=
"NSColor"
name=
"标题字颜色"
/>
<font
key=
"NSFont"
size=
"13"
name=
".PingFangSC-Regular"
/>
<paragraphStyle
key=
"NSParagraphStyle"
alignment=
"natural"
lineBreakMode=
"wordWrapping"
baseWritingDirection=
"natural"
lineSpacing=
"3"
tighteningFactorForTruncation=
"0.0"
/>
</attributes>
</fragment>
</attributedString>
...
...
GeliBusinessPlatform/View/Cell/TitleAndSwitchCell.xib
View file @
dc98d23d
...
...
@@ -31,8 +31,9 @@
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<switch
opaque=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"750"
verticalHuggingPriority=
"750"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
on=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FvZ-bw-uC0"
>
<switch
opaque=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"750"
verticalHuggingPriority=
"750"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FvZ-bw-uC0"
>
<rect
key=
"frame"
x=
"256"
y=
"9.5"
width=
"51"
height=
"31"
/>
<color
key=
"onTintColor"
name=
"蓝色字体颜色"
/>
</switch>
</subviews>
<constraints>
...
...
@@ -60,5 +61,8 @@
<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/TitleAndTFCell.xib
View file @
dc98d23d
...
...
@@ -30,8 +30,8 @@
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入内容"
textAlignment=
"right"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Q6V-I9-aNd"
>
<rect
key=
"frame"
x=
"65"
y=
"1
6"
width=
"240"
height=
"18.5
"
/>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入内容"
textAlignment=
"right"
minimumFontSize=
"17"
clearButtonMode=
"whileEditing"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Q6V-I9-aNd"
>
<rect
key=
"frame"
x=
"65"
y=
"1
5.5"
width=
"240"
height=
"19
"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<textInputTraits
key=
"textInputTraits"
/>
...
...
GeliBusinessPlatform/View/Cell/WareHouseSpCell.xib
View file @
dc98d23d
...
...
@@ -53,12 +53,13 @@
<action
selector=
"btnAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"utA-cq-ZXb"
/>
</connections>
</button>
<switch
opaque=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"750"
verticalHuggingPriority=
"750"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
on=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"GUA-N4-Rgf"
>
<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"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"47"
id=
"8ML-UL-R2l"
/>
<constraint
firstAttribute=
"height"
constant=
"31"
id=
"m01-R5-2E5"
/>
</constraints>
<color
key=
"onTintColor"
name=
"蓝色字体颜色"
/>
</switch>
</subviews>
<constraints>
...
...
@@ -101,5 +102,8 @@
<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/ViewController/换绑支付账号(绑定,换绑)/BindViewController.xib
View file @
dc98d23d
...
...
@@ -29,7 +29,7 @@
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"OsT-yM-MMu"
>
<rect
key=
"frame"
x=
"15"
y=
"49"
width=
"399"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace
"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"0Ta-R8-nvT"
/>
</constraints>
...
...
@@ -43,7 +43,7 @@
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入格利支付账号"
textAlignment=
"
natural
"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ffm-Wf-cTs"
>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入格利支付账号"
textAlignment=
"
right
"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ffm-Wf-cTs"
>
<rect
key=
"frame"
x=
"108"
y=
"7.5"
width=
"291"
height=
"34"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"34"
id=
"xqs-jB-AOk"
/>
...
...
@@ -118,7 +118,7 @@
</userDefinedRuntimeAttributes>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"KNo-tQ-dsg"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
9
4"
width=
"414"
height=
"50"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
10
4"
width=
"414"
height=
"50"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"1x9-Pa-mWp"
>
<rect
key=
"frame"
x=
"15"
y=
"49"
width=
"399"
height=
"1"
/>
...
...
@@ -127,17 +127,17 @@
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"g0H-fg-q7U"
/>
</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=
"Hcl-nQ-8fP"
>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"
67
"
height=
"49"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
格利支付手机号
:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Hcl-nQ-8fP"
>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"
110
"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"
67
"
id=
"YlY-IS-raZ"
/>
<constraint
firstAttribute=
"width"
constant=
"
110
"
id=
"YlY-IS-raZ"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入手机号码"
textAlignment=
"
natural
"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"t65-xv-Q0b"
>
<rect
key=
"frame"
x=
"
82"
y=
"7.5"
width=
"317
"
height=
"34"
/>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入手机号码"
textAlignment=
"
right
"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"t65-xv-Q0b"
>
<rect
key=
"frame"
x=
"
125"
y=
"7.5"
width=
"274
"
height=
"34"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"34"
id=
"qOh-u3-0Al"
/>
</constraints>
...
...
@@ -161,7 +161,7 @@
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bCp-kS-a0t"
>
<rect
key=
"frame"
x=
"0.0"
y=
"1
4
4"
width=
"414"
height=
"50"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"1
5
4"
width=
"414"
height=
"50"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"验证码:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"SjA-bd-foE"
>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"54"
height=
"50"
/>
...
...
@@ -178,14 +178,14 @@
<constraint
firstAttribute=
"width"
constant=
"80"
id=
"D0G-bA-CcS"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"
层
获取验证码"
>
<state
key=
"normal"
title=
"获取验证码"
>
<color
key=
"titleColor"
name=
"按钮渐变色下,字体颜色"
/>
</state>
<connections>
<action
selector=
"getCodeAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"nmY-n3-f3Q"
/>
</connections>
</button>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入验证码"
textAlignment=
"
natural
"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"3oP-hI-HAZ"
>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入验证码"
textAlignment=
"
right
"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"3oP-hI-HAZ"
>
<rect
key=
"frame"
x=
"69"
y=
"8"
width=
"235"
height=
"34"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"34"
id=
"pxa-wr-z3b"
/>
...
...
@@ -210,7 +210,7 @@
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"waH-iS-ZgL"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"37.5"
y=
"
29
4"
width=
"339"
height=
"44"
/>
<rect
key=
"frame"
x=
"37.5"
y=
"
30
4"
width=
"339"
height=
"44"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"QhC-kH-4kk"
/>
...
...
@@ -236,7 +236,7 @@
</connections>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JJc-HS-SOo"
>
<rect
key=
"frame"
x=
"167.5"
y=
"3
5
8"
width=
"79"
height=
"26"
/>
<rect
key=
"frame"
x=
"167.5"
y=
"3
6
8"
width=
"79"
height=
"26"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"26"
id=
"5wB-Bp-zPy"
/>
<constraint
firstAttribute=
"width"
constant=
"79"
id=
"W6O-hL-jZ9"
/>
...
...
@@ -259,7 +259,7 @@
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"bCp-kS-a0t"
secondAttribute=
"trailing"
id=
"UOk-Tx-QwB"
/>
<constraint
firstItem=
"waH-iS-ZgL"
firstAttribute=
"top"
secondItem=
"bCp-kS-a0t"
secondAttribute=
"bottom"
constant=
"100"
id=
"UjX-A0-vCe"
/>
<constraint
firstItem=
"bCp-kS-a0t"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"UvF-Pr-mil"
/>
<constraint
firstItem=
"KNo-tQ-dsg"
firstAttribute=
"top"
secondItem=
"NLt-l1-671"
secondAttribute=
"bottom"
id=
"W4q-P7-j7d"
/>
<constraint
firstItem=
"KNo-tQ-dsg"
firstAttribute=
"top"
secondItem=
"NLt-l1-671"
secondAttribute=
"bottom"
constant=
"10"
id=
"W4q-P7-j7d"
/>
<constraint
firstItem=
"prG-Tn-Xbh"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"WVR-Ex-lJM"
/>
<constraint
firstItem=
"JJc-HS-SOo"
firstAttribute=
"centerX"
secondItem=
"waH-iS-ZgL"
secondAttribute=
"centerX"
id=
"av7-O1-Iv8"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"KNo-tQ-dsg"
secondAttribute=
"trailing"
id=
"eXN-H3-sud"
/>
...
...
@@ -278,16 +278,16 @@
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色下,字体颜色"
>
<color
red=
"0.27
799999713897705"
green=
"0.56099998950958252"
blue=
"0.88999998569488525
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.27
450980392156865"
green=
"0.5607843137254902"
blue=
"0.88627450980392153
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"未登录提示背景色"
>
<color
red=
"1"
green=
"0.43900001049041748"
blue=
"0.43900001049041748"
alpha=
"0.64999997615814209"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.180
00000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.180
3921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.929
00002002716064"
green=
"0.92900002002716064"
blue=
"0.92900002002716064
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.929
41176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
GeliBusinessPlatform/ViewController/支付账号(设置,修改)/BindStepTwoViewController.swift
0 → 100644
View file @
dc98d23d
//
// BindStepTwoViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/21.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
import
LGButton
class
BindStepTwoViewController
:
BaseViewController
{
@IBOutlet
weak
var
accountLbl
:
UILabel
!
@IBAction
func
getCodeAction
(
_
sender
:
Any
)
{
}
@IBAction
func
forgetPassAction
(
_
sender
:
Any
)
{
}
@IBAction
func
nextStep
(
_
sender
:
Any
)
{
}
@IBOutlet
weak
var
topView
:
UIView
!
@IBOutlet
weak
var
inputTF
:
UITextField
!
@IBOutlet
weak
var
nextBtn
:
LGButton
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"绑定支付账户"
self
.
view
.
addSubview
(
navbar
)
topView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
NavCGRect
.
height
)
make
.
left
.
right
.
equalTo
(
0
)
make
.
height
.
equalTo
(
99
)
}
if
inputTF
.
text
?
.
count
==
0
{
nextBtn
.
alpha
=
0.5
nextBtn
.
isUserInteractionEnabled
=
false
}
else
{
nextBtn
.
alpha
=
1
nextBtn
.
isUserInteractionEnabled
=
true
}
// Do any additional setup after loading the view.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
GeliBusinessPlatform/ViewController/支付账号(设置,修改)/BindStepTwoViewController.xib
0 → 100644
View file @
dc98d23d
<?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=
"BindStepTwoViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"accountLbl"
destination=
"LOM-aL-uSm"
id=
"Ej4-uV-9bk"
/>
<outlet
property=
"inputTF"
destination=
"aZQ-or-Ekx"
id=
"KKJ-ou-7WF"
/>
<outlet
property=
"nextBtn"
destination=
"B7f-Hz-PLj"
id=
"bNM-Qb-uaI"
/>
<outlet
property=
"topView"
destination=
"qeZ-NG-WV9"
id=
"wsf-Ri-WGg"
/>
<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=
"qeZ-NG-WV9"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"99"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"手机号码:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"00T-Ki-nkX"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"67"
height=
"18.5"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"67"
id=
"3Z7-aM-urw"
/>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"kbo-UG-q8p"
/>
</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=
"155*****121"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"LOM-aL-uSm"
>
<rect
key=
"frame"
x=
"327"
y=
"15"
width=
"72"
height=
"18.5"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"2ii-aD-Dsg"
/>
<constraint
firstAttribute=
"width"
constant=
"72"
id=
"VuV-bl-LZv"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Jv7-db-gIy"
>
<rect
key=
"frame"
x=
"15"
y=
"49"
width=
"399"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"QkO-DR-FIA"
/>
</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=
"XCu-6L-Ydp"
>
<rect
key=
"frame"
x=
"15"
y=
"65"
width=
"54"
height=
"18.5"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"6C0-UN-H70"
/>
<constraint
firstAttribute=
"width"
constant=
"54"
id=
"aVy-Hw-PDj"
/>
</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=
"EMV-Hk-uFx"
>
<rect
key=
"frame"
x=
"332"
y=
"50"
width=
"67"
height=
"49"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"67"
id=
"PBX-MG-43r"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"获取验证码"
>
<color
key=
"titleColor"
name=
"按钮渐变色下,字体颜色"
/>
</state>
<connections>
<action
selector=
"getCodeAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"3p8-73-upu"
/>
</connections>
</button>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入验证码"
textAlignment=
"right"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"aZQ-or-Ekx"
>
<rect
key=
"frame"
x=
"69"
y=
"50"
width=
"248"
height=
"49"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstItem=
"Jv7-db-gIy"
firstAttribute=
"leading"
secondItem=
"qeZ-NG-WV9"
secondAttribute=
"leading"
constant=
"15"
id=
"05c-3F-g83"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"XCu-6L-Ydp"
secondAttribute=
"bottom"
constant=
"15.5"
id=
"7Z3-am-XeO"
/>
<constraint
firstAttribute=
"height"
constant=
"99"
id=
"CuI-ga-oxe"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstAttribute=
"trailing"
secondItem=
"EMV-Hk-uFx"
secondAttribute=
"trailing"
constant=
"15"
id=
"H2B-Tp-Y2G"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Jv7-db-gIy"
secondAttribute=
"trailing"
id=
"PMt-xX-Cqg"
/>
<constraint
firstItem=
"aZQ-or-Ekx"
firstAttribute=
"leading"
secondItem=
"XCu-6L-Ydp"
secondAttribute=
"trailing"
id=
"Y7e-9R-DCE"
/>
<constraint
firstItem=
"00T-Ki-nkX"
firstAttribute=
"leading"
secondItem=
"qeZ-NG-WV9"
secondAttribute=
"leading"
constant=
"15"
id=
"YWD-ES-O8s"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"EMV-Hk-uFx"
secondAttribute=
"bottom"
id=
"bDp-oZ-TkU"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"LOM-aL-uSm"
secondAttribute=
"trailing"
constant=
"15"
id=
"doy-Q5-RhM"
/>
<constraint
firstItem=
"aZQ-or-Ekx"
firstAttribute=
"top"
secondItem=
"Jv7-db-gIy"
secondAttribute=
"bottom"
id=
"duw-ut-eOz"
/>
<constraint
firstItem=
"LOM-aL-uSm"
firstAttribute=
"centerY"
secondItem=
"00T-Ki-nkX"
secondAttribute=
"centerY"
id=
"ibP-Ll-L2M"
/>
<constraint
firstItem=
"EMV-Hk-uFx"
firstAttribute=
"top"
secondItem=
"Jv7-db-gIy"
secondAttribute=
"bottom"
id=
"oMd-8P-1if"
/>
<constraint
firstItem=
"Jv7-db-gIy"
firstAttribute=
"top"
secondItem=
"00T-Ki-nkX"
secondAttribute=
"bottom"
constant=
"15.5"
id=
"qKA-DR-qrK"
/>
<constraint
firstItem=
"EMV-Hk-uFx"
firstAttribute=
"leading"
secondItem=
"aZQ-or-Ekx"
secondAttribute=
"trailing"
constant=
"15"
id=
"qWf-YY-pHn"
/>
<constraint
firstItem=
"XCu-6L-Ydp"
firstAttribute=
"leading"
secondItem=
"qeZ-NG-WV9"
secondAttribute=
"leading"
constant=
"15"
id=
"rTt-6p-y1H"
/>
<constraint
firstItem=
"00T-Ki-nkX"
firstAttribute=
"top"
secondItem=
"qeZ-NG-WV9"
secondAttribute=
"top"
constant=
"15"
id=
"wcn-a7-goU"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"aZQ-or-Ekx"
secondAttribute=
"bottom"
id=
"y1S-CW-IqH"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"B7f-Hz-PLj"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"37.5"
y=
"243"
width=
"339"
height=
"44"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"ooh-p7-v9U"
/>
</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=
"nextStep:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"gD6-ue-Bde"
/>
</connections>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uVm-FH-axX"
>
<rect
key=
"frame"
x=
"149"
y=
"297"
width=
"116"
height=
"30"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"dsT-sJ-mSF"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"11"
/>
<state
key=
"normal"
title=
"忘记手机号码?"
>
<color
key=
"titleColor"
name=
"按钮渐变色下,字体颜色"
/>
</state>
<connections>
<action
selector=
"forgetPassAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"616-Hr-lW0"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"uVm-FH-axX"
secondAttribute=
"trailing"
constant=
"149"
id=
"3GD-ax-jUC"
/>
<constraint
firstItem=
"B7f-Hz-PLj"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
constant=
"37.5"
id=
"GVf-nl-UKJ"
/>
<constraint
firstItem=
"uVm-FH-axX"
firstAttribute=
"top"
secondItem=
"B7f-Hz-PLj"
secondAttribute=
"bottom"
constant=
"10"
id=
"HTH-CD-gj8"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"B7f-Hz-PLj"
secondAttribute=
"trailing"
constant=
"37.5"
id=
"MkO-FJ-nuQ"
/>
<constraint
firstItem=
"uVm-FH-axX"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
constant=
"149"
id=
"REr-yi-BXA"
/>
<constraint
firstItem=
"B7f-Hz-PLj"
firstAttribute=
"top"
secondItem=
"qeZ-NG-WV9"
secondAttribute=
"bottom"
constant=
"100"
id=
"Tzq-ar-jLH"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"qeZ-NG-WV9"
secondAttribute=
"trailing"
id=
"WtR-Xo-zsG"
/>
<constraint
firstItem=
"qeZ-NG-WV9"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"toL-CZ-eyt"
/>
<constraint
firstItem=
"qeZ-NG-WV9"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"utV-Ku-pWq"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"112.5"
/>
</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>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.59999999999999998"
green=
"0.59999999999999998"
blue=
"0.59999999999999998"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/支付账号(设置,修改)/PayViewController.swift
View file @
dc98d23d
...
...
@@ -7,19 +7,35 @@
//
import
UIKit
import
LGButton
class
PayViewController
:
BaseViewController
{
@IBOutlet
weak
var
enterBtn
:
LGButton
!
@IBOutlet
weak
var
changeBindBtn
:
UIButton
!
@IBOutlet
weak
var
pinkView
:
UIView
!
@IBOutlet
weak
var
passBtn
:
UIButton
!
@IBOutlet
weak
var
accountLbl
:
UILabel
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"支付账号"
self
.
view
.
addSubview
(
navbar
)
if
accountLbl
.
text
==
"未绑定支付账号"
{
enterBtn
.
titleString
=
"绑定账号"
enterBtn
.
borderColor
=
UIColor
(
named
:
"按钮渐变色下,字体颜色"
)
!
enterBtn
.
titleColor
=
UIColor
(
named
:
"按钮渐变色下,字体颜色"
)
!
enterBtn
.
gradientEndColor
=
UIColor
(
named
:
"app底色"
)
enterBtn
.
gradientStartColor
=
UIColor
(
named
:
"app底色"
)
enterBtn
.
borderWidth
=
1.5
passBtn
.
isHidden
=
true
changeBindBtn
.
isHidden
=
true
}
if
navbar
.
title
==
"支付账号"
{
passBtn
.
setTitle
(
"修改支付密码"
,
for
:
.
normal
)
}
else
{
...
...
GeliBusinessPlatform/ViewController/支付账号(设置,修改)/PayViewController.xib
View file @
dc98d23d
...
...
@@ -10,6 +10,9 @@
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"PayViewController"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"accountLbl"
destination=
"8zk-ru-La4"
id=
"sNs-yx-2VH"
/>
<outlet
property=
"changeBindBtn"
destination=
"ZQU-rH-u77"
id=
"TE7-D6-7Qr"
/>
<outlet
property=
"enterBtn"
destination=
"dpm-28-Ljh"
id=
"NR6-u2-KbX"
/>
<outlet
property=
"passBtn"
destination=
"aJE-2M-4y3"
id=
"oWF-if-08i"
/>
<outlet
property=
"pinkView"
destination=
"5ip-zi-hlC"
id=
"Yt8-rj-o8p"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
...
...
@@ -23,7 +26,7 @@
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"5ip-zi-hlC"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"22.5"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"p9B-w7-gh7"
>
<view
hidden=
"YES"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"p9B-w7-gh7"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"22.5"
/>
<color
key=
"backgroundColor"
name=
"未登录提示背景色"
/>
</view>
...
...
@@ -50,7 +53,7 @@
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Rgd-rh-pDk"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
81.5
"
width=
"414"
height=
"49"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
44
"
width=
"414"
height=
"49"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"格利支付账号:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gAe-Gc-sbd"
>
<rect
key=
"frame"
x=
"15"
y=
"16.5"
width=
"93"
height=
"16"
/>
...
...
@@ -62,13 +65,13 @@
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
15577124121
"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"8zk-ru-La4"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
未绑定支付账号
"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"8zk-ru-La4"
>
<rect
key=
"frame"
x=
"108"
y=
"16.5"
width=
"291"
height=
"16"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"16"
id=
"UO1-eZ-po3"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"
标题字
颜色"
/>
<color
key=
"textColor"
name=
"
灰色字体
颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
...
...
@@ -83,7 +86,7 @@
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"dpm-28-Ljh"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"37.5"
y=
"
230.5
"
width=
"339"
height=
"44"
/>
<rect
key=
"frame"
x=
"37.5"
y=
"
193
"
width=
"339"
height=
"44"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"SHF-XC-TVk"
/>
...
...
@@ -109,7 +112,7 @@
</connections>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"aJE-2M-4y3"
>
<rect
key=
"frame"
x=
"37.5"
y=
"2
94.5
"
width=
"339"
height=
"44"
/>
<rect
key=
"frame"
x=
"37.5"
y=
"2
57
"
width=
"339"
height=
"44"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"eSu-6w-UFn"
/>
</constraints>
...
...
@@ -133,7 +136,7 @@
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ZQU-rH-u77"
>
<rect
key=
"frame"
x=
"37.5"
y=
"3
58.5
"
width=
"339"
height=
"44"
/>
<rect
key=
"frame"
x=
"37.5"
y=
"3
21
"
width=
"339"
height=
"44"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"1p9-tQ-TTs"
/>
</constraints>
...
...
@@ -161,7 +164,7 @@
<constraints>
<constraint
firstItem=
"ZQU-rH-u77"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
constant=
"37.5"
id=
"0We-Ts-fZc"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"ZQU-rH-u77"
secondAttribute=
"trailing"
constant=
"37.5"
id=
"1jG-xm-6oQ"
/>
<constraint
firstItem=
"Rgd-rh-pDk"
firstAttribute=
"top"
secondItem=
"5ip-zi-hlC"
secondAttribute=
"bottom"
constant=
"
1
5"
id=
"PCc-Zy-jgd"
/>
<constraint
firstItem=
"Rgd-rh-pDk"
firstAttribute=
"top"
secondItem=
"5ip-zi-hlC"
secondAttribute=
"bottom"
constant=
"
-22.
5"
id=
"PCc-Zy-jgd"
/>
<constraint
firstItem=
"dpm-28-Ljh"
firstAttribute=
"top"
secondItem=
"Rgd-rh-pDk"
secondAttribute=
"bottom"
constant=
"100"
id=
"PKh-DP-mhF"
/>
<constraint
firstItem=
"aJE-2M-4y3"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
constant=
"37.5"
id=
"PTM-cu-Nar"
/>
<constraint
firstItem=
"5ip-zi-hlC"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"Pv6-ef-Loz"
/>
...
...
@@ -176,7 +179,7 @@
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"Rgd-rh-pDk"
secondAttribute=
"trailing"
id=
"wiY-zs-sO1"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"13
3"
y=
"113
"
/>
<point
key=
"canvasLocation"
x=
"13
1.8840579710145"
y=
"112.5
"
/>
</view>
</objects>
<resources>
...
...
@@ -184,13 +187,16 @@
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色下,字体颜色"
>
<color
red=
"0.27
799999713897705"
green=
"0.56099998950958252"
blue=
"0.88999998569488525
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.27
450980392156865"
green=
"0.5607843137254902"
blue=
"0.88627450980392153
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"未登录提示背景色"
>
<color
red=
"1"
green=
"0.43900001049041748"
blue=
"0.43900001049041748"
alpha=
"0.64999997615814209"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.1803921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451"
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"
/>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
View file @
dc98d23d
...
...
@@ -9,12 +9,26 @@
import
UIKit
import
LGButton
class
CreatNewSpecsViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndTFCellDelegate
,
TitleAndBtnCellDelegate
,
TitleAndSwitchCellDelegate
{
var
dataArr
=
NSMutableArray
()
class
CreatNewSpecsViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndTFCellDelegate
,
TitleAndBtnCellDelegate
,
TitleAndSwitchCellDelegate
,
TitleAndSwitchHeaderViewDelegate
,
NewCreateHeaderDelegate
,
NewCreateFooterDelegate
,
YuShouCellDelegate
{
let
titleArray
=
[
"售价:"
,
"规格:"
,
"重量:"
,
"温藏:"
,
"单位:"
]
let
pliceHolderArr
=
[
"请输入商品售价"
,
"请输入商品规格"
,
"请输入商品重量"
,
"请选择商品温藏"
,
"请选择商品单位"
]
@IBOutlet
weak
var
bottomBtn
:
LGButton
!
@IBOutlet
weak
var
listTbv
:
UITableView
!
var
isYuShouSetting
:
Bool
=
false
var
isJieTiJiaSetting
:
Bool
=
false
var
selectYuShou
:
Bool
=
false
//是否选择设置预售价格
var
isSelectNonYuShou
:
Bool
=
true
//跳转前确定是否能选择预售
//规格
var
normalArr
:
NSArray
=
[]
//普通
var
specalArr
:
NSArray
=
[]
//预售
//测试数据
var
addNormal
=
0
var
addSpecal
=
0
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"新增规格"
...
...
@@ -26,36 +40,51 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
make
.
bottom
.
equalTo
(
bottomBtn
.
snp_top
)
}
for
_
in
0
..<
7
{
dataArr
.
add
(
"0"
)
}
listTbv
?
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTF"
)
listTbv
?
.
register
(
UINib
(
nibName
:
"TitleAndBtnCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndBtn"
)
listTbv
?
.
register
(
UINib
(
nibName
:
"TitleAndSwitchCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndSwitch"
)
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"
)
}
@IBAction
func
saveAction
(
_
sender
:
Any
)
{
print
(
"save"
)
print
(
dataArr
)
}
//MARK: - cell delegate
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
3
if
(
navbar
.
title
?
.
contains
(
"编辑"
))
!
{
return
4
}
else
{
return
3
}
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
section
==
0
{
return
titleArray
.
count
}
return
1
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
if
section
!=
0
{
return
10
if
section
==
2
{
if
selectYuShou
{
//预售
if
normalArr
.
count
==
0
{
return
addNormal
}
else
{
return
normalArr
.
count
}
}
else
{
//非预售
if
specalArr
.
count
==
0
{
return
addSpecal
}
else
{
return
specalArr
.
count
}
}
}
return
0.0
1
return
1
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
section
==
0
{
if
indexPath
.
row
<
3
{
...
...
@@ -76,29 +105,161 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndSwitch"
)
as!
TitleAndSwitchCell
cell
.
delegate
=
self
cell
.
namelbl
.
font
=
UIFont
.
boldSystemFont
(
ofSize
:
15
)
if
indexPath
.
section
==
1
{
cell
.
namelbl
.
text
=
"预售设置"
cell
.
infoSw
.
isOn
=
isYuShouSetting
cell
.
tag
=
5
if
isSelectNonYuShou
{
cell
.
namelbl
.
alpha
=
0.45
cell
.
isUserInteractionEnabled
=
false
}
}
if
indexPath
.
section
==
1
{
if
isYuShouSetting
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"YuShou"
)
as!
YuShouCell
cell
.
tag
=
indexPath
.
row
cell
.
infoSw
.
isOn
=
isYuShouSetting
cell
.
delegate
=
self
return
cell
}
}
if
indexPath
.
section
==
2
{
cell
.
namelbl
.
text
=
"阶梯价设置"
cell
.
tag
=
6
if
indexPath
.
section
==
2
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"PuTongJieTi"
)
as!
PuTongJieTiCell
cell
.
titleLbl
.
text
=
"
\(
indexPath
.
row
+
1
)
.数量≥"
return
cell
}
if
indexPath
.
section
==
3
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DelGuiGe"
)
as!
DelGuiGeCell
return
cell
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
==
1
{
if
isYuShouSetting
{
return
184.5
}
}
if
indexPath
.
section
==
2
{
if
isJieTiJiaSetting
{
return
49
}
else
{
return
0.001
}
}
return
49
}
//header
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
()
if
section
==
2
{
let
view
=
NewCreateHeader
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
49
))
view
.
delegate
=
self
view
.
infoSw
.
isOn
=
isJieTiJiaSetting
if
isJieTiJiaSetting
==
false
{
return
view
}
if
isYuShouSetting
{
let
view
=
TitleAndSwitchHeaderView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
90
))
view
.
delegate
=
self
view
.
selectYuShou
=
selectYuShou
view
.
infoSW
.
isOn
=
isJieTiJiaSetting
return
view
}
return
view
}
return
view
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
if
section
!=
0
{
if
section
==
2
{
if
isYuShouSetting
&&
isJieTiJiaSetting
{
return
90
}
return
59
}
return
10
}
return
0.01
}
//footer
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
if
section
==
2
{
if
isJieTiJiaSetting
{
let
view
=
NewCreateFooter
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
49
))
view
.
delegate
=
self
return
view
}
}
let
view
=
UIView
()
return
view
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
if
section
==
2
{
if
isJieTiJiaSetting
{
return
49
}
}
return
0.01
}
//MARK: - NEW CELL DELEGATE
func
textFieldContent
(
content
:
String
,
cell
:
TitleAndTFCell
)
{
dataArr
.
replaceObject
(
at
:
cell
.
tag
,
with
:
content
)
}
func
btnClick
(
content
:
String
,
cell
:
TitleAndBtnCell
)
{
dataArr
.
replaceObject
(
at
:
cell
.
tag
,
with
:
content
)
}
func
switchStatus
(
sender
:
UISwitch
)
{
isJieTiJiaSetting
=
sender
.
isOn
listTbv
.
reloadData
()
}
func
switchClick
(
content
:
UISwitch
,
cell
:
TitleAndSwitchCell
)
{
dataArr
.
replaceObject
(
at
:
cell
.
tag
,
with
:
"
\(
content
.
isOn
)
"
)
if
cell
.
tag
==
5
{
isYuShouSetting
=
content
.
isOn
let
idxPath
=
IndexPath
(
row
:
0
,
section
:
1
)
if
isYuShouSetting
&&
isJieTiJiaSetting
{
listTbv
.
reloadData
()
}
else
{
listTbv
.
reloadRows
(
at
:
[
idxPath
],
with
:
.
none
)
}
}
}
func
newCreateSwitchStatus
(
sender
:
UISwitch
)
{
isJieTiJiaSetting
=
sender
.
isOn
listTbv
.
reloadData
()
}
func
footerClickAction
()
{
if
selectYuShou
{
//预售
addNormal
+=
1
}
else
{
//非预售
addSpecal
+=
1
}
listTbv
.
reloadData
()
}
func
YuShouCellSwitchStatus
(
sender
:
UISwitch
)
{
isYuShouSetting
=
sender
.
isOn
listTbv
.
reloadData
()
}
func
selectYuShou
(
sender
:
UIButton
)
{
if
sender
.
tag
==
0
{
selectYuShou
=
false
addNormal
=
normalArr
.
count
}
else
{
selectYuShou
=
true
addSpecal
=
specalArr
.
count
}
listTbv
.
reloadData
()
}
}
GeliBusinessPlatform/ViewController/新增规格/DelGuiGeCell.swift
0 → 100644
View file @
dc98d23d
//
// DelGuiGeCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/22.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
DelGuiGeCell
:
UITableViewCell
{
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
}
GeliBusinessPlatform/ViewController/新增规格/DelGuiGeCell.xib
0 → 100644
View file @
dc98d23d
<?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=
"DelGuiGeCell"
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=
"Z4L-ca-0NK"
>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"305"
height=
"44"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"#F57575"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<constraints>
<constraint
firstItem=
"Z4L-ca-0NK"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"BDn-Tg-gK2"
/>
<constraint
firstItem=
"Z4L-ca-0NK"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"Taf-RS-mBA"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Z4L-ca-0NK"
secondAttribute=
"bottom"
id=
"fTq-tW-jeG"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Z4L-ca-0NK"
secondAttribute=
"trailing"
id=
"v5X-rs-oUC"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<point
key=
"canvasLocation"
x=
"133"
y=
"113"
/>
</tableViewCell>
</objects>
<resources>
<namedColor
name=
"#F57575"
>
<color
red=
"0.96100002527236938"
green=
"0.45899999141693115"
blue=
"0.45899999141693115"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/新增规格/JiaTiJiaCell.swift
0 → 100644
View file @
dc98d23d
//
// JiaTiJiaCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/21.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
JiaTiJiaCell
:
UITableViewCell
{
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
}
GeliBusinessPlatform/ViewController/新增规格/JiaTiJiaCell.xib
0 → 100644
View file @
dc98d23d
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"13142"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"12042"
/>
<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=
"JiaTiJiaCell"
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=
"43"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
</tableViewCell>
</objects>
</document>
GeliBusinessPlatform/ViewController/新增规格/PuTongJieTiCell.swift
0 → 100644
View file @
dc98d23d
//
// PuTongJieTiCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/22.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
@objc
protocol
PuTongJieTiCellDelegate
{
@objc
optional
func
PuTongJieTiDelAction
(
sender
:
UIButton
)
}
class
PuTongJieTiCell
:
UITableViewCell
{
var
delegate
:
PuTongJieTiCellDelegate
?
@IBAction
func
delAction
(
_
sender
:
UIButton
)
{
delegate
?
.
PuTongJieTiDelAction
?(
sender
:
sender
)
}
@IBOutlet
weak
var
priceTF
:
NSLayoutConstraint
!
@IBOutlet
weak
var
countTF
:
UITextField
!
@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/ViewController/新增规格/PuTongJieTiCell.xib
0 → 100644
View file @
dc98d23d
<?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=
"PuTongJieTiCell"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
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=
"375"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"1.数量≥"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"dEb-Pr-hmY"
>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"53"
height=
"44"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"53"
id=
"W3h-E6-0mn"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
borderStyle=
"roundedRect"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"DMW-oR-f6E"
>
<rect
key=
"frame"
x=
"68"
y=
"8.5"
width=
"65"
height=
"27"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"65"
id=
"0iD-vP-zok"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstAttribute=
"height"
constant=
"27"
id=
"NjB-AG-aSv"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"件,每件单价"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"pPe-AI-jdo"
>
<rect
key=
"frame"
x=
"138"
y=
"0.0"
width=
"80"
height=
"44"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"80"
id=
"aEA-uU-gay"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
borderStyle=
"roundedRect"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"GZ7-X2-hIF"
>
<rect
key=
"frame"
x=
"223"
y=
"8.5"
width=
"65"
height=
"27"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"65"
id=
"UEh-eZ-aNG"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint
firstAttribute=
"height"
constant=
"27"
id=
"pup-rk-VW7"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"元"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"391-hq-gOx"
>
<rect
key=
"frame"
x=
"293"
y=
"14"
width=
"14"
height=
"16"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"16"
id=
"U2e-pS-acN"
/>
<constraint
firstAttribute=
"width"
constant=
"14"
id=
"rpL-tO-re6"
>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"isAdaptateScreen"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"shanchu-1"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"fBF-Qr-i0h"
>
<rect
key=
"frame"
x=
"340"
y=
"12"
width=
"20"
height=
"20"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"20"
id=
"Cki-hB-Qgn"
/>
<constraint
firstAttribute=
"width"
constant=
"20"
id=
"PBw-9f-NmU"
/>
</constraints>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7H6-Et-Mew"
>
<rect
key=
"frame"
x=
"327"
y=
"0.0"
width=
"48"
height=
"44"
/>
<connections>
<action
selector=
"delAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"Cwe-fY-unD"
/>
</connections>
</button>
</subviews>
<constraints>
<constraint
firstItem=
"pPe-AI-jdo"
firstAttribute=
"leading"
secondItem=
"DMW-oR-f6E"
secondAttribute=
"trailing"
constant=
"5"
id=
"1eq-IG-Uis"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"7H6-Et-Mew"
secondAttribute=
"bottom"
id=
"34u-cf-buq"
/>
<constraint
firstItem=
"7H6-Et-Mew"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"6wu-hQ-vVF"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"pPe-AI-jdo"
secondAttribute=
"bottom"
id=
"F3H-3q-glQ"
/>
<constraint
firstItem=
"dEb-Pr-hmY"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"K2X-jf-lm6"
/>
<constraint
firstItem=
"7H6-Et-Mew"
firstAttribute=
"leading"
secondItem=
"391-hq-gOx"
secondAttribute=
"trailing"
constant=
"20"
id=
"KBT-2k-yrO"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"7H6-Et-Mew"
secondAttribute=
"trailing"
id=
"Vfx-kJ-AhI"
/>
<constraint
firstItem=
"391-hq-gOx"
firstAttribute=
"leading"
secondItem=
"GZ7-X2-hIF"
secondAttribute=
"trailing"
constant=
"5"
id=
"Wen-Hf-hbf"
/>
<constraint
firstItem=
"fBF-Qr-i0h"
firstAttribute=
"centerY"
secondItem=
"GZ7-X2-hIF"
secondAttribute=
"centerY"
id=
"X4w-E6-OyZ"
/>
<constraint
firstItem=
"pPe-AI-jdo"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"ack-Eo-u1C"
/>
<constraint
firstItem=
"GZ7-X2-hIF"
firstAttribute=
"centerY"
secondItem=
"pPe-AI-jdo"
secondAttribute=
"centerY"
id=
"arW-S4-lyK"
/>
<constraint
firstItem=
"GZ7-X2-hIF"
firstAttribute=
"leading"
secondItem=
"pPe-AI-jdo"
secondAttribute=
"trailing"
constant=
"5"
id=
"gmr-ud-GfJ"
/>
<constraint
firstItem=
"391-hq-gOx"
firstAttribute=
"centerY"
secondItem=
"GZ7-X2-hIF"
secondAttribute=
"centerY"
id=
"jiQ-Wh-UYo"
/>
<constraint
firstItem=
"DMW-oR-f6E"
firstAttribute=
"leading"
secondItem=
"dEb-Pr-hmY"
secondAttribute=
"trailing"
id=
"l7C-w8-vCN"
/>
<constraint
firstItem=
"pPe-AI-jdo"
firstAttribute=
"centerY"
secondItem=
"DMW-oR-f6E"
secondAttribute=
"centerY"
id=
"ldO-DF-6Q9"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"fBF-Qr-i0h"
secondAttribute=
"trailing"
constant=
"15"
id=
"prz-qI-4IE"
/>
<constraint
firstItem=
"dEb-Pr-hmY"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
id=
"rNM-CO-mIf"
/>
<constraint
firstItem=
"DMW-oR-f6E"
firstAttribute=
"centerY"
secondItem=
"dEb-Pr-hmY"
secondAttribute=
"centerY"
id=
"ubk-am-ThT"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"dEb-Pr-hmY"
secondAttribute=
"bottom"
id=
"vCM-yI-wRl"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"countTF"
destination=
"DMW-oR-f6E"
id=
"SSR-pc-LuB"
/>
<outlet
property=
"priceTF"
destination=
"jiQ-Wh-UYo"
id=
"mL5-Wd-vuG"
/>
<outlet
property=
"titleLbl"
destination=
"dEb-Pr-hmY"
id=
"B1t-aG-1n8"
/>
</connections>
<point
key=
"canvasLocation"
x=
"131.15942028985509"
y=
"112.5"
/>
</tableViewCell>
</objects>
<resources>
<image
name=
"shanchu-1"
width=
"20"
height=
"20"
/>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.1803921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.swift
0 → 100644
View file @
dc98d23d
//
// YuShouCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/21.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
@objc
protocol
YuShouCellDelegate
{
@objc
optional
func
YuShouCellSwitchStatus
(
sender
:
UISwitch
)
}
class
YuShouCell
:
UITableViewCell
{
var
delegate
:
YuShouCellDelegate
?
@IBOutlet
weak
var
inputTF3
:
UITextField
!
@IBOutlet
weak
var
inputTF2
:
NSLayoutConstraint
!
@IBOutlet
weak
var
inputTF1
:
UITextField
!
@IBOutlet
weak
var
infoSw
:
UISwitch
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
infoSw
.
transform
=
CGAffineTransform
(
scaleX
:
0.8
,
y
:
0.8
)
infoSw
.
addTarget
(
self
,
action
:
#selector(
switchChange(sender:)
)
,
for
:
.
valueChanged
)
// Initialization code
}
@objc
func
switchChange
(
sender
:
UISwitch
){
delegate
?
.
YuShouCellSwitchStatus
?(
sender
:
sender
)
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
}
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.xib
0 → 100644
View file @
dc98d23d
<?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=
"YuShouCell"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"184.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=
"320"
height=
"184.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XRF-Gv-9pf"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"305"
height=
"21"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"21"
id=
"x0m-s4-pKH"
/>
</constraints>
<attributedString
key=
"attributedText"
>
<fragment
content=
"预售设置"
>
<attributes>
<color
key=
"NSColor"
name=
"标题字颜色"
/>
<font
key=
"NSFont"
size=
"15"
name=
"PingFangSC-Medium"
/>
</attributes>
</fragment>
</attributedString>
<nil
key=
"highlightedColor"
/>
</label>
<switch
opaque=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"750"
verticalHuggingPriority=
"750"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
on=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"05q-1N-wvO"
>
<rect
key=
"frame"
x=
"258"
y=
"10"
width=
"49"
height=
"31"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"47"
id=
"XbV-B6-6sH"
/>
<constraint
firstAttribute=
"height"
constant=
"31"
id=
"xe0-nb-ftK"
/>
</constraints>
</switch>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"预售价:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gDh-Mx-qdQ"
>
<rect
key=
"frame"
x=
"16"
y=
"55"
width=
"54"
height=
"16"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"16"
id=
"9EA-2G-l2u"
/>
<constraint
firstAttribute=
"width"
constant=
"54"
id=
"J5O-dq-tOP"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入预售价格"
textAlignment=
"right"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"COH-zY-OUo"
>
<rect
key=
"frame"
x=
"85"
y=
"46"
width=
"220"
height=
"34"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"34"
id=
"iAs-XY-QMJ"
/>
</constraints>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7Ri-WT-Tkw"
>
<rect
key=
"frame"
x=
"15"
y=
"80"
width=
"305"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"ZDR-wF-8Uf"
/>
</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=
"gt2-Bp-s7f"
>
<rect
key=
"frame"
x=
"15"
y=
"96.5"
width=
"70"
height=
"18.5"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"70"
id=
"Bee-fq-cM2"
/>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"VoT-c2-rAv"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入预售库存"
textAlignment=
"right"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Qb7-aM-usa"
>
<rect
key=
"frame"
x=
"100"
y=
"89"
width=
"204"
height=
"34"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"34"
id=
"JmO-9y-uwH"
/>
</constraints>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ZyU-aV-HmY"
>
<rect
key=
"frame"
x=
"15"
y=
"132"
width=
"305"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"jGo-VL-q8Q"
/>
</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=
"65l-Cs-6yM"
>
<rect
key=
"frame"
x=
"16"
y=
"149"
width=
"67"
height=
"16"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"16"
id=
"nUL-ID-Cgd"
/>
<constraint
firstAttribute=
"width"
constant=
"67"
id=
"x2l-e6-9vz"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textField
opaque=
"NO"
tag=
"2"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入预售定金比例"
textAlignment=
"right"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mht-f5-qwh"
>
<rect
key=
"frame"
x=
"98"
y=
"140"
width=
"207"
height=
"34"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"34"
id=
"57U-zx-suF"
/>
</constraints>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
</subviews>
<constraints>
<constraint
firstItem=
"COH-zY-OUo"
firstAttribute=
"leading"
secondItem=
"gDh-Mx-qdQ"
secondAttribute=
"trailing"
constant=
"15"
id=
"2Gu-fB-DY7"
/>
<constraint
firstAttribute=
"trailingMargin"
secondItem=
"Qb7-aM-usa"
secondAttribute=
"trailing"
id=
"5OZ-X0-Dvh"
/>
<constraint
firstItem=
"65l-Cs-6yM"
firstAttribute=
"top"
secondItem=
"ZyU-aV-HmY"
secondAttribute=
"bottom"
constant=
"16"
id=
"5i4-Xk-Wrs"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"7Ri-WT-Tkw"
secondAttribute=
"trailing"
id=
"8XF-H9-e6S"
/>
<constraint
firstItem=
"ZyU-aV-HmY"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"Avr-9G-c2l"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"05q-1N-wvO"
secondAttribute=
"trailing"
constant=
"15"
id=
"BVi-tR-PMA"
/>
<constraint
firstItem=
"COH-zY-OUo"
firstAttribute=
"centerY"
secondItem=
"gDh-Mx-qdQ"
secondAttribute=
"centerY"
id=
"Cku-Mu-C62"
/>
<constraint
firstItem=
"XRF-Gv-9pf"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"DFI-bQ-jVB"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"ZyU-aV-HmY"
secondAttribute=
"trailing"
id=
"Dx1-AY-PIa"
/>
<constraint
firstItem=
"ZyU-aV-HmY"
firstAttribute=
"top"
secondItem=
"Qb7-aM-usa"
secondAttribute=
"bottom"
constant=
"9"
id=
"GNU-Re-QFk"
/>
<constraint
firstItem=
"XRF-Gv-9pf"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"Mug-Q7-5za"
/>
<constraint
firstItem=
"05q-1N-wvO"
firstAttribute=
"centerY"
secondItem=
"XRF-Gv-9pf"
secondAttribute=
"centerY"
id=
"NSj-qO-Hhj"
/>
<constraint
firstItem=
"7Ri-WT-Tkw"
firstAttribute=
"top"
secondItem=
"COH-zY-OUo"
secondAttribute=
"bottom"
id=
"Ufi-P3-Gg5"
/>
<constraint
firstItem=
"mht-f5-qwh"
firstAttribute=
"leading"
secondItem=
"65l-Cs-6yM"
secondAttribute=
"trailing"
constant=
"15"
id=
"Vtv-XJ-2oh"
/>
<constraint
firstItem=
"gDh-Mx-qdQ"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leadingMargin"
id=
"aLN-QR-3pf"
/>
<constraint
firstItem=
"Qb7-aM-usa"
firstAttribute=
"centerY"
secondItem=
"gt2-Bp-s7f"
secondAttribute=
"centerY"
id=
"b8D-hX-Yk3"
/>
<constraint
firstItem=
"gDh-Mx-qdQ"
firstAttribute=
"top"
secondItem=
"XRF-Gv-9pf"
secondAttribute=
"bottom"
constant=
"19"
id=
"d5y-FH-bLa"
/>
<constraint
firstItem=
"gt2-Bp-s7f"
firstAttribute=
"top"
secondItem=
"7Ri-WT-Tkw"
secondAttribute=
"bottom"
constant=
"15.5"
id=
"fQi-BQ-7wO"
/>
<constraint
firstItem=
"mht-f5-qwh"
firstAttribute=
"centerY"
secondItem=
"65l-Cs-6yM"
secondAttribute=
"centerY"
id=
"ksq-Bc-vQ2"
/>
<constraint
firstItem=
"gt2-Bp-s7f"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"lF6-cU-DsU"
/>
<constraint
firstItem=
"Qb7-aM-usa"
firstAttribute=
"leading"
secondItem=
"gt2-Bp-s7f"
secondAttribute=
"trailing"
constant=
"15"
id=
"m64-af-emt"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"COH-zY-OUo"
secondAttribute=
"trailing"
constant=
"15"
id=
"qNF-VN-Dps"
/>
<constraint
firstItem=
"7Ri-WT-Tkw"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"r1R-iT-mAW"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"mht-f5-qwh"
secondAttribute=
"trailing"
constant=
"15"
id=
"un4-dj-TW4"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"XRF-Gv-9pf"
secondAttribute=
"trailing"
id=
"yYn-Z0-kdm"
/>
<constraint
firstItem=
"65l-Cs-6yM"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leadingMargin"
id=
"zjC-cY-SUm"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"infoSw"
destination=
"05q-1N-wvO"
id=
"HtL-79-Qch"
/>
<outlet
property=
"inputTF1"
destination=
"COH-zY-OUo"
id=
"hNT-E8-8k9"
/>
<outlet
property=
"inputTF2"
destination=
"b8D-hX-Yk3"
id=
"YpH-fW-FaR"
/>
<outlet
property=
"inputTF3"
destination=
"mht-f5-qwh"
id=
"lPo-lt-ttH"
/>
</connections>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"112.83482142857142"
/>
</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.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/ViewController/新增规格/footer/NewCreateFooter.swift
0 → 100644
View file @
dc98d23d
//
// NewCreatHeader.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/22.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
@objc
protocol
NewCreateFooterDelegate
{
@objc
optional
func
footerClickAction
()
}
class
NewCreateFooter
:
UIView
{
@IBAction
func
clickAction
(
_
sender
:
Any
)
{
delegate
?
.
footerClickAction
?()
}
var
contentView
:
UIView
!
var
delegate
:
NewCreateFooterDelegate
?
//初始化时将xib中的view添加进来
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
// /初始化时将xib中的view添加进来
required
init
?(
coder
aDecoder
:
NSCoder
)
{
super
.
init
(
coder
:
aDecoder
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
//加载xib
func
loadViewFromNib
()
->
UIView
{
let
className
=
type
(
of
:
self
)
let
bundle
=
Bundle
(
for
:
className
)
let
name
=
NSStringFromClass
(
className
)
.
components
(
separatedBy
:
"."
)
.
last
let
nib
=
UINib
(
nibName
:
name
!
,
bundle
:
bundle
)
let
view
=
nib
.
instantiate
(
withOwner
:
self
,
options
:
nil
)
.
first
as!
UIView
return
view
}
}
GeliBusinessPlatform/ViewController/新增规格/footer/NewCreateFooter.xib
0 → 100644
View file @
dc98d23d
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"15702"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"NewCreateFooter"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
contentMode=
"scaleToFill"
id=
"iN0-l3-epB"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"49"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"新增阶梯价"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"E8y-E7-Qry"
>
<rect
key=
"frame"
x=
"154"
y=
"16.5"
width=
"67"
height=
"16"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"67"
id=
"cU2-1O-6Zn"
/>
<constraint
firstAttribute=
"height"
constant=
"16"
id=
"rr9-nU-d5k"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"蓝色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"编组"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Iq6-om-UWg"
>
<rect
key=
"frame"
x=
"139"
y=
"19.5"
width=
"10"
height=
"10"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"10"
id=
"AuL-mP-jHY"
/>
<constraint
firstAttribute=
"height"
constant=
"10"
id=
"u56-CP-Z63"
/>
</constraints>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gjY-Gc-wDu"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"49"
/>
<connections>
<action
selector=
"clickAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"PKB-12-zUG"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"E8y-E7-Qry"
firstAttribute=
"leading"
secondItem=
"Iq6-om-UWg"
secondAttribute=
"trailing"
constant=
"5"
id=
"4YS-WB-xHl"
/>
<constraint
firstItem=
"gjY-Gc-wDu"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
id=
"A9t-EC-rst"
/>
<constraint
firstItem=
"Iq6-om-UWg"
firstAttribute=
"centerY"
secondItem=
"E8y-E7-Qry"
secondAttribute=
"centerY"
id=
"Bf1-5G-Va5"
/>
<constraint
firstItem=
"E8y-E7-Qry"
firstAttribute=
"centerY"
secondItem=
"iN0-l3-epB"
secondAttribute=
"centerY"
id=
"FMJ-5X-Ann"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"gjY-Gc-wDu"
secondAttribute=
"trailing"
id=
"Ody-OB-IO6"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"gjY-Gc-wDu"
secondAttribute=
"bottom"
id=
"cFY-Ur-sUx"
/>
<constraint
firstItem=
"E8y-E7-Qry"
firstAttribute=
"centerX"
secondItem=
"iN0-l3-epB"
secondAttribute=
"centerX"
id=
"hKA-ge-FDG"
/>
<constraint
firstItem=
"gjY-Gc-wDu"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"qQs-rT-ntZ"
/>
</constraints>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
<point
key=
"canvasLocation"
x=
"29.710144927536234"
y=
"-35.15625"
/>
</view>
</objects>
<resources>
<image
name=
"编组"
width=
"10"
height=
"10.5"
/>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/新增规格/仅新增规格header/NewCreateHeader.swift
0 → 100644
View file @
dc98d23d
//
// NewCreateHeader.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/22.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
@objc
protocol
NewCreateHeaderDelegate
{
@objc
optional
func
newCreateSwitchStatus
(
sender
:
UISwitch
)
}
class
NewCreateHeader
:
UIView
{
@IBOutlet
weak
var
infoSw
:
UISwitch
!
var
contentView
:
UIView
!
var
delegate
:
NewCreateHeaderDelegate
?
//初始化时将xib中的view添加进来
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
infoSw
.
transform
=
CGAffineTransform
(
scaleX
:
0.8
,
y
:
0.8
)
infoSw
.
addTarget
(
self
,
action
:
#selector(
switchChange(sender:)
)
,
for
:
.
valueChanged
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
// /初始化时将xib中的view添加进来
required
init
?(
coder
aDecoder
:
NSCoder
)
{
super
.
init
(
coder
:
aDecoder
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
//加载xib
func
loadViewFromNib
()
->
UIView
{
let
className
=
type
(
of
:
self
)
let
bundle
=
Bundle
(
for
:
className
)
let
name
=
NSStringFromClass
(
className
)
.
components
(
separatedBy
:
"."
)
.
last
let
nib
=
UINib
(
nibName
:
name
!
,
bundle
:
bundle
)
let
view
=
nib
.
instantiate
(
withOwner
:
self
,
options
:
nil
)
.
first
as!
UIView
return
view
}
@objc
func
switchChange
(
sender
:
UISwitch
){
delegate
?
.
newCreateSwitchStatus
?(
sender
:
sender
)
}
}
GeliBusinessPlatform/ViewController/新增规格/仅新增规格header/NewCreateHeader.xib
0 → 100644
View file @
dc98d23d
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"15702"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"NewCreateHeader"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"infoSw"
destination=
"cBB-j6-Bd8"
id=
"mtr-6F-fZB"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
contentMode=
"scaleToFill"
id=
"iN0-l3-epB"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"59"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"阶梯价设置"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ds4-R8-AHh"
>
<rect
key=
"frame"
x=
"15"
y=
"25"
width=
"360"
height=
"21"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"21"
id=
"OmF-Td-YNd"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"15"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<switch
opaque=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"750"
verticalHuggingPriority=
"750"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"cBB-j6-Bd8"
>
<rect
key=
"frame"
x=
"313"
y=
"20"
width=
"49"
height=
"31"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"47"
id=
"Rza-PV-b6F"
/>
<constraint
firstAttribute=
"height"
constant=
"31"
id=
"snd-Se-Lex"
/>
</constraints>
<color
key=
"onTintColor"
name=
"蓝色字体颜色"
/>
</switch>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Btd-x9-nUa"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"10"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"10"
id=
"MEf-5y-y6N"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"8dO-kM-aGa"
>
<rect
key=
"frame"
x=
"15"
y=
"58"
width=
"360"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"1AZ-Dc-9De"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"ds4-R8-AHh"
secondAttribute=
"trailing"
id=
"7g2-ny-sgT"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"8dO-kM-aGa"
secondAttribute=
"bottom"
id=
"Loj-MM-nFX"
/>
<constraint
firstItem=
"Btd-x9-nUa"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"PBX-MZ-eDc"
/>
<constraint
firstItem=
"ds4-R8-AHh"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
constant=
"15"
id=
"Qmu-UI-FKJ"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"cBB-j6-Bd8"
secondAttribute=
"trailing"
constant=
"15"
id=
"Xdw-qJ-lCn"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Btd-x9-nUa"
secondAttribute=
"trailing"
id=
"ebe-Zk-E8n"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"8dO-kM-aGa"
secondAttribute=
"trailing"
id=
"jVd-l0-Trp"
/>
<constraint
firstItem=
"Btd-x9-nUa"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
id=
"kQN-bY-wAr"
/>
<constraint
firstItem=
"8dO-kM-aGa"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
constant=
"15"
id=
"ode-aE-HN5"
/>
<constraint
firstItem=
"ds4-R8-AHh"
firstAttribute=
"top"
secondItem=
"Btd-x9-nUa"
secondAttribute=
"bottom"
constant=
"15"
id=
"vQb-04-bfJ"
/>
<constraint
firstItem=
"cBB-j6-Bd8"
firstAttribute=
"centerY"
secondItem=
"ds4-R8-AHh"
secondAttribute=
"centerY"
id=
"vn3-b4-PGA"
/>
</constraints>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
<point
key=
"canvasLocation"
x=
"132.60869565217394"
y=
"112.83482142857142"
/>
</view>
</objects>
<resources>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.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/ViewController/新增规格/普通+预售header/TitleAndSwitchHeaderView.swift
0 → 100644
View file @
dc98d23d
//
// TitleAndSwitchHeaderView.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/22.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
@objc
protocol
TitleAndSwitchHeaderViewDelegate
{
@objc
optional
func
switchStatus
(
sender
:
UISwitch
)
@objc
optional
func
selectYuShou
(
sender
:
UIButton
)
}
class
TitleAndSwitchHeaderView
:
UIView
{
@IBOutlet
weak
var
rightBtn
:
UIButton
!
@IBOutlet
weak
var
leftBtn
:
UIButton
!
@IBOutlet
weak
var
bottomLine
:
UIView
!
var
selectYuShou
:
Bool
=
false
{
didSet
{
var
sender
=
0
if
selectYuShou
{
sender
=
1
leftBtn
.
setTitleColor
(
UIColor
(
named
:
"标题字颜色"
),
for
:
.
normal
)
rightBtn
.
setTitleColor
(
UIColor
(
named
:
"按钮渐变色下,字体颜色"
),
for
:
.
normal
)
}
else
{
leftBtn
.
setTitleColor
(
UIColor
(
named
:
"按钮渐变色下,字体颜色"
),
for
:
.
normal
)
rightBtn
.
setTitleColor
(
UIColor
(
named
:
"标题字颜色"
),
for
:
.
normal
)
}
let
x
=
CGFloat
(
sender
)
*
fullScreenWidth
*
0.5
bottomLine
.
snp
.
updateConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
x
)
make
.
bottom
.
equalTo
(
0
)
make
.
width
.
equalTo
(
fullScreenWidth
*
0.5
)
make
.
height
.
equalTo
(
1.5
)
}
}
}
var
contentView
:
UIView
!
var
delegate
:
TitleAndSwitchHeaderViewDelegate
?
@IBOutlet
weak
var
infoSW
:
UISwitch
!
//初始化时将xib中的view添加进来
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
infoSW
.
transform
=
CGAffineTransform
(
scaleX
:
0.8
,
y
:
0.8
)
infoSW
.
addTarget
(
self
,
action
:
#selector(
switchChange(sender:)
)
,
for
:
.
valueChanged
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
// /初始化时将xib中的view添加进来
required
init
?(
coder
aDecoder
:
NSCoder
)
{
super
.
init
(
coder
:
aDecoder
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalToSuperview
()
}
}
//加载xib
func
loadViewFromNib
()
->
UIView
{
let
className
=
type
(
of
:
self
)
let
bundle
=
Bundle
(
for
:
className
)
let
name
=
NSStringFromClass
(
className
)
.
components
(
separatedBy
:
"."
)
.
last
let
nib
=
UINib
(
nibName
:
name
!
,
bundle
:
bundle
)
let
view
=
nib
.
instantiate
(
withOwner
:
self
,
options
:
nil
)
.
first
as!
UIView
return
view
}
@IBAction
func
btnClick
(
_
sender
:
UIButton
)
{
delegate
?
.
selectYuShou
?(
sender
:
sender
)
if
sender
==
leftBtn
{
leftBtn
.
setTitleColor
(
UIColor
(
named
:
"按钮渐变色下,字体颜色"
),
for
:
.
normal
)
rightBtn
.
setTitleColor
(
UIColor
(
named
:
"标题字颜色"
),
for
:
.
normal
)
}
else
{
leftBtn
.
setTitleColor
(
UIColor
(
named
:
"标题字颜色"
),
for
:
.
normal
)
rightBtn
.
setTitleColor
(
UIColor
(
named
:
"按钮渐变色下,字体颜色"
),
for
:
.
normal
)
}
let
x
=
CGFloat
(
sender
.
tag
)
*
fullScreenWidth
*
0.5
bottomLine
.
snp
.
updateConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
x
)
make
.
bottom
.
equalTo
(
0
)
make
.
width
.
equalTo
(
fullScreenWidth
*
0.5
)
make
.
height
.
equalTo
(
1.5
)
}
}
@objc
func
switchChange
(
sender
:
UISwitch
){
delegate
?
.
switchStatus
?(
sender
:
sender
)
}
}
GeliBusinessPlatform/ViewController/新增规格/普通+预售header/TitleAndSwitchHeaderView.xib
0 → 100644
View file @
dc98d23d
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"15702"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"TitleAndSwitchHeaderView"
customModule=
"GeliBusinessPlatform"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"bottomLine"
destination=
"iUg-fe-DMN"
id=
"yjY-Th-O9n"
/>
<outlet
property=
"infoSW"
destination=
"CB7-5d-TkX"
id=
"NR3-4A-D6i"
/>
<outlet
property=
"leftBtn"
destination=
"Foa-mx-5Yx"
id=
"T72-dm-y5o"
/>
<outlet
property=
"rightBtn"
destination=
"ybR-u7-XP4"
id=
"Dk3-d2-gbZ"
/>
</connections>
</placeholder>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
contentMode=
"scaleToFill"
id=
"iN0-l3-epB"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"90"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FFu-OD-rc8"
>
<rect
key=
"frame"
x=
"15"
y=
"25"
width=
"360"
height=
"21"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"21"
id=
"eWf-JK-npI"
/>
</constraints>
<attributedString
key=
"attributedText"
>
<fragment
content=
"阶梯价设置"
>
<attributes>
<color
key=
"NSColor"
name=
"标题字颜色"
/>
<font
key=
"NSFont"
size=
"15"
name=
"PingFangSC-Medium"
/>
</attributes>
</fragment>
</attributedString>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"249"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Foa-mx-5Yx"
>
<rect
key=
"frame"
x=
"0.0"
y=
"62"
width=
"187.5"
height=
"28"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"普通阶梯"
>
<color
key=
"titleColor"
name=
"按钮渐变色下,字体颜色"
/>
</state>
<connections>
<action
selector=
"btnClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"DGZ-ML-eds"
/>
</connections>
</button>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ybR-u7-XP4"
>
<rect
key=
"frame"
x=
"187.5"
y=
"62"
width=
"187.5"
height=
"28"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"预售阶梯"
>
<color
key=
"titleColor"
name=
"灰色字体颜色"
/>
</state>
<connections>
<action
selector=
"btnClick:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"6nc-cF-mIF"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"iUg-fe-DMN"
>
<rect
key=
"frame"
x=
"0.0"
y=
"88.5"
width=
"187.5"
height=
"1.5"
/>
<color
key=
"backgroundColor"
name=
"按钮渐变色下,字体颜色"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1.5"
id=
"mRk-Rh-qk5"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"76R-R0-pCI"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"10"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"10"
id=
"gst-6z-Cbn"
/>
</constraints>
</view>
<switch
opaque=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"750"
verticalHuggingPriority=
"750"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
on=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"CB7-5d-TkX"
>
<rect
key=
"frame"
x=
"313"
y=
"20"
width=
"49"
height=
"31"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"47"
id=
"Y31-f9-i9E"
/>
<constraint
firstAttribute=
"height"
constant=
"31"
id=
"eeo-If-fWq"
/>
</constraints>
<color
key=
"onTintColor"
name=
"蓝色字体颜色"
/>
</switch>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"76R-R0-pCI"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
id=
"4o5-ak-hVE"
/>
<constraint
firstItem=
"FFu-OD-rc8"
firstAttribute=
"top"
secondItem=
"76R-R0-pCI"
secondAttribute=
"bottom"
constant=
"15"
id=
"HvO-2g-yPj"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"FFu-OD-rc8"
secondAttribute=
"trailing"
id=
"JhF-wO-qGP"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Foa-mx-5Yx"
secondAttribute=
"bottom"
id=
"LS2-nW-eWp"
/>
<constraint
firstItem=
"76R-R0-pCI"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"LrY-UI-RcR"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"ybR-u7-XP4"
secondAttribute=
"trailing"
id=
"NLC-no-i4E"
/>
<constraint
firstItem=
"iUg-fe-DMN"
firstAttribute=
"width"
secondItem=
"Foa-mx-5Yx"
secondAttribute=
"width"
id=
"Nde-M0-QZ0"
/>
<constraint
firstItem=
"ybR-u7-XP4"
firstAttribute=
"width"
secondItem=
"Foa-mx-5Yx"
secondAttribute=
"width"
id=
"RZg-bk-Vbc"
/>
<constraint
firstItem=
"ybR-u7-XP4"
firstAttribute=
"leading"
secondItem=
"Foa-mx-5Yx"
secondAttribute=
"trailing"
id=
"S3X-IS-ztd"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"76R-R0-pCI"
secondAttribute=
"trailing"
id=
"Uth-qd-FUC"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"iUg-fe-DMN"
secondAttribute=
"bottom"
id=
"UyW-VQ-lzx"
/>
<constraint
firstItem=
"ybR-u7-XP4"
firstAttribute=
"height"
secondItem=
"Foa-mx-5Yx"
secondAttribute=
"height"
id=
"X7T-nQ-A6m"
/>
<constraint
firstItem=
"CB7-5d-TkX"
firstAttribute=
"centerY"
secondItem=
"FFu-OD-rc8"
secondAttribute=
"centerY"
id=
"e18-MP-pNs"
/>
<constraint
firstItem=
"FFu-OD-rc8"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
constant=
"15"
id=
"kCT-vS-1St"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"CB7-5d-TkX"
secondAttribute=
"trailing"
constant=
"15"
id=
"ktE-YY-c70"
/>
<constraint
firstItem=
"Foa-mx-5Yx"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"lve-Dd-EFp"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"ybR-u7-XP4"
secondAttribute=
"bottom"
id=
"ras-iE-35P"
/>
<constraint
firstItem=
"iUg-fe-DMN"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"u3M-i0-jPq"
/>
</constraints>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
<point
key=
"canvasLocation"
x=
"158.69565217391306"
y=
"-158.03571428571428"
/>
</view>
</objects>
<resources>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色下,字体颜色"
>
<color
red=
"0.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.59999999999999998"
green=
"0.59999999999999998"
blue=
"0.59999999999999998"
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/ViewController/登录/LoginViewController.swift
View file @
dc98d23d
...
...
@@ -70,8 +70,7 @@ class LoginViewController: BaseViewController {
//MARK: -跳转忘记密码,登录
@IBAction
func
forgetPasswordAction
(
_
sender
:
Any
)
{
let
vc
=
CheckWareHourseViewController
()
vc
.
titleStr
=
"新增仓库"
let
vc
=
MsgCenterViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
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