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
b8d42b88
Commit
b8d42b88
authored
Dec 30, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分销员功能完成
parent
14257e89
Changes
45
Hide whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
2701 additions
and
128 deletions
+2701
-128
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+80
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Assets.xcassets/分销商管理/up_black.imageset/Contents.json
...orm/Assets.xcassets/分销商管理/up_black.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/分销商管理/up_black.imageset/up_black.png
...form/Assets.xcassets/分销商管理/up_black.imageset/up_black.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/分销商管理/up_black.imageset/up_black@2x.png
...m/Assets.xcassets/分销商管理/up_black.imageset/up_black@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/分销商管理/up_black.imageset/up_black@3x.png
...m/Assets.xcassets/分销商管理/up_black.imageset/up_black@3x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/日历/icon_rili.imageset/Contents.json
...tform/Assets.xcassets/日历/icon_rili.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/日历/icon_rili.imageset/icon_rili.png
...tform/Assets.xcassets/日历/icon_rili.imageset/icon_rili.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/日历/icon_rili.imageset/icon_rili@2x.png
...rm/Assets.xcassets/日历/icon_rili.imageset/icon_rili@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/日历/icon_rili.imageset/icon_rili@3x.png
...rm/Assets.xcassets/日历/icon_rili.imageset/icon_rili@3x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/背景色/#E9E7ED.colorset/Contents.json
...atform/Assets.xcassets/背景色/#E9E7ED.colorset/Contents.json
+41
-0
GeliBusinessPlatform/Interface/Interface_Z.plist
GeliBusinessPlatform/Interface/Interface_Z.plist
+16
-0
GeliBusinessPlatform/Model/UpDataModel.swift
GeliBusinessPlatform/Model/UpDataModel.swift
+1
-1
GeliBusinessPlatform/Model/dbtIncomeInfoInterface.swift
GeliBusinessPlatform/Model/dbtIncomeInfoInterface.swift
+125
-0
GeliBusinessPlatform/Model/dbtIncomeInfo_model/dbtIncomeInfoModel.swift
...atform/Model/dbtIncomeInfo_model/dbtIncomeInfoModel.swift
+170
-8
GeliBusinessPlatform/View/AlertView/DistributorSettingAlertView.xib
...ssPlatform/View/AlertView/DistributorSettingAlertView.xib
+2
-5
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
+1
-1
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.xib
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.xib
+16
-7
GeliBusinessPlatform/View/AlertView/GLAlertTbAddView.xib
GeliBusinessPlatform/View/AlertView/GLAlertTbAddView.xib
+2
-5
GeliBusinessPlatform/View/AlertView/GLMessageAlertView.xib
GeliBusinessPlatform/View/AlertView/GLMessageAlertView.xib
+2
-2
GeliBusinessPlatform/View/AlertView/GeliAlertTextFiled.xib
GeliBusinessPlatform/View/AlertView/GeliAlertTextFiled.xib
+10
-6
GeliBusinessPlatform/View/AlertView/GeliAlertTextView.xib
GeliBusinessPlatform/View/AlertView/GeliAlertTextView.xib
+10
-9
GeliBusinessPlatform/View/AlertView/GeliAlertView.swift
GeliBusinessPlatform/View/AlertView/GeliAlertView.swift
+1
-0
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
+9
-5
GeliBusinessPlatform/View/Cell/TitleAndTFCell.swift
GeliBusinessPlatform/View/Cell/TitleAndTFCell.swift
+1
-1
GeliBusinessPlatform/View/Cell/WareHouseSpCell.swift
GeliBusinessPlatform/View/Cell/WareHouseSpCell.swift
+1
-1
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
+2
-2
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeCell.swift
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeCell.swift
+1
-1
GeliBusinessPlatform/ViewController/分销员管理/ADD_FXY_View.swift
GeliBusinessPlatform/ViewController/分销员管理/ADD_FXY_View.swift
+107
-0
GeliBusinessPlatform/ViewController/分销员管理/ADD_FXY_View.xib
GeliBusinessPlatform/ViewController/分销员管理/ADD_FXY_View.xib
+265
-0
GeliBusinessPlatform/ViewController/分销员管理/FXYGL_Cell.swift
GeliBusinessPlatform/ViewController/分销员管理/FXYGL_Cell.swift
+35
-0
GeliBusinessPlatform/ViewController/分销员管理/FXYGL_Cell.xib
GeliBusinessPlatform/ViewController/分销员管理/FXYGL_Cell.xib
+164
-0
GeliBusinessPlatform/ViewController/分销员管理/FXYGL_ViewController.swift
...sPlatform/ViewController/分销员管理/FXYGL_ViewController.swift
+270
-0
GeliBusinessPlatform/ViewController/分销员管理/FXYGL_ViewController.xib
...essPlatform/ViewController/分销员管理/FXYGL_ViewController.xib
+59
-0
GeliBusinessPlatform/ViewController/分销收益页/FXSY_Detail_ViewController.swift
...orm/ViewController/分销收益页/FXSY_Detail_ViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/分销收益页/FXSY_ViewController.swift
...ssPlatform/ViewController/分销收益页/FXSY_ViewController.swift
+83
-70
GeliBusinessPlatform/ViewController/客户详情/KHXQ_Cell.swift
GeliBusinessPlatform/ViewController/客户详情/KHXQ_Cell.swift
+36
-0
GeliBusinessPlatform/ViewController/客户详情/KHXQ_Cell.xib
GeliBusinessPlatform/ViewController/客户详情/KHXQ_Cell.xib
+192
-0
GeliBusinessPlatform/ViewController/客户详情/KHXQ_ViewController.swift
...essPlatform/ViewController/客户详情/KHXQ_ViewController.swift
+256
-0
GeliBusinessPlatform/ViewController/客户详情/KHXQ_ViewController.xib
...inessPlatform/ViewController/客户详情/KHXQ_ViewController.xib
+97
-0
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+9
-3
GeliBusinessPlatform/ViewController/待审核分销员/DSHFXY_Cell.swift
GeliBusinessPlatform/ViewController/待审核分销员/DSHFXY_Cell.swift
+34
-0
GeliBusinessPlatform/ViewController/待审核分销员/DSHFXY_Cell.xib
GeliBusinessPlatform/ViewController/待审核分销员/DSHFXY_Cell.xib
+184
-0
GeliBusinessPlatform/ViewController/待审核分销员/DSHFXY_ViewController.swift
...latform/ViewController/待审核分销员/DSHFXY_ViewController.swift
+326
-0
GeliBusinessPlatform/ViewController/待审核分销员/DSHFXY_ViewController.xib
...sPlatform/ViewController/待审核分销员/DSHFXY_ViewController.xib
+46
-0
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
b8d42b88
...
...
@@ -68,6 +68,10 @@
E0239203249069FD00C4C632
/* CGDXQVc.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0239201249069FD00C4C632
/* CGDXQVc.xib */
;
};
E02392062490819600C4C632
/* CGDListCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02392042490819600C4C632
/* CGDListCell.swift */
;
};
E02392072490819600C4C632
/* CGDListCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E02392052490819600C4C632
/* CGDListCell.xib */
;
};
E0272A85259C2525008142BB
/* FXYGL_ViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0272A83259C2525008142BB
/* FXYGL_ViewController.swift */
;
};
E0272A86259C2525008142BB
/* FXYGL_ViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0272A84259C2525008142BB
/* FXYGL_ViewController.xib */
;
};
E0272A8C259C29DB008142BB
/* FXYGL_Cell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0272A8A259C29DB008142BB
/* FXYGL_Cell.swift */
;
};
E0272A8D259C29DB008142BB
/* FXYGL_Cell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0272A8B259C29DB008142BB
/* FXYGL_Cell.xib */
;
};
E0273DD824551B4C00B3FCAE
/* SendTimeSelectView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0273DD724551B4C00B3FCAE
/* SendTimeSelectView.swift */
;
};
E0273DDA24551B6D00B3FCAE
/* SendTimeSelectView.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0273DD924551B6D00B3FCAE
/* SendTimeSelectView.xib */
;
};
E0273DDD24551D4500B3FCAE
/* OnlyLabelCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0273DDB24551D4500B3FCAE
/* OnlyLabelCell.swift */
;
};
...
...
@@ -136,6 +140,10 @@
E03984942468F2CA00DFA56F
/* UIKit.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E03984932468F2CA00DFA56F
/* UIKit.framework */
;
};
E03984962468F2D100DFA56F
/* Photos.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E03984952468F2D100DFA56F
/* Photos.framework */
;
};
E03984982468F2DA00DFA56F
/* SafariServices.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E03984972468F2DA00DFA56F
/* SafariServices.framework */
;
};
E04025FB259C142E00EDF182
/* KHXQ_ViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E04025F9259C142E00EDF182
/* KHXQ_ViewController.swift */
;
};
E04025FC259C142E00EDF182
/* KHXQ_ViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E04025FA259C142E00EDF182
/* KHXQ_ViewController.xib */
;
};
E0402602259C186800EDF182
/* KHXQ_Cell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0402600259C186800EDF182
/* KHXQ_Cell.swift */
;
};
E0402603259C186800EDF182
/* KHXQ_Cell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0402601259C186800EDF182
/* KHXQ_Cell.xib */
;
};
E040399624D14D37008CF965
/* LalamoveModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E040399524D14D37008CF965
/* LalamoveModel.swift */
;
};
E040399824D14E0E008CF965
/* LalamoveInterface.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E040399724D14E0E008CF965
/* LalamoveInterface.swift */
;
};
E0404F822476355500D9ACE8
/* SDWebImage in Frameworks */
=
{
isa
=
PBXBuildFile
;
productRef
=
E0404F812476355500D9ACE8
/* SDWebImage */
;
};
...
...
@@ -301,6 +309,10 @@
E0B903BD259ADAFE0041EF62
/* dbtIncomeInfoInterface.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B903BC259ADAFE0041EF62
/* dbtIncomeInfoInterface.swift */
;
};
E0B903C9259B11C20041EF62
/* FXSY_Detail_ViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B903C7259B11C20041EF62
/* FXSY_Detail_ViewController.swift */
;
};
E0B903CA259B11C20041EF62
/* FXSY_Detail_ViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B903C8259B11C20041EF62
/* FXSY_Detail_ViewController.xib */
;
};
E0B903D1259B1CDC0041EF62
/* DSHFXY_ViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B903CF259B1CDC0041EF62
/* DSHFXY_ViewController.swift */
;
};
E0B903D2259B1CDC0041EF62
/* DSHFXY_ViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B903D0259B1CDC0041EF62
/* DSHFXY_ViewController.xib */
;
};
E0B903DB259B26EA0041EF62
/* DSHFXY_Cell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B903D9259B26EA0041EF62
/* DSHFXY_Cell.swift */
;
};
E0B903DC259B26EA0041EF62
/* DSHFXY_Cell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B903DA259B26EA0041EF62
/* DSHFXY_Cell.xib */
;
};
E0B9461E24566B3100FBEC9A
/* TitleAndTFAndBtnCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B9461C24566B3100FBEC9A
/* TitleAndTFAndBtnCell.swift */
;
};
E0B9461F24566B3100FBEC9A
/* TitleAndTFAndBtnCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B9461D24566B3100FBEC9A
/* TitleAndTFAndBtnCell.xib */
;
};
E0B94623245671E100FBEC9A
/* DaiKeXiaDanGouWuViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0B94621245671E100FBEC9A
/* DaiKeXiaDanGouWuViewController.swift */
;
};
...
...
@@ -323,6 +335,8 @@
E0BE8A9D245A9E5900E80134
/* YingFuZhangKuanXQCell.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0BE8A9B245A9E5900E80134
/* YingFuZhangKuanXQCell.xib */
;
};
E0BE8AA4245AA31400E80134
/* YingFuZhangKuanXQViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0BE8AA2245AA31400E80134
/* YingFuZhangKuanXQViewController.swift */
;
};
E0BE8AA5245AA31400E80134
/* YingFuZhangKuanXQViewController.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0BE8AA3245AA31400E80134
/* YingFuZhangKuanXQViewController.xib */
;
};
E0BFFAA0259C2E6200CC8CA3
/* ADD_FXY_View.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0BFFA9F259C2E6200CC8CA3
/* ADD_FXY_View.swift */
;
};
E0BFFAA5259C2E6D00CC8CA3
/* ADD_FXY_View.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
E0BFFAA4259C2E6D00CC8CA3
/* ADD_FXY_View.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 */
;
};
...
...
@@ -742,6 +756,10 @@
E0239201249069FD00C4C632
/* CGDXQVc.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
CGDXQVc.xib
;
sourceTree
=
"<group>"
;
};
E02392042490819600C4C632
/* CGDListCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
CGDListCell.swift
;
sourceTree
=
"<group>"
;
};
E02392052490819600C4C632
/* CGDListCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
CGDListCell.xib
;
sourceTree
=
"<group>"
;
};
E0272A83259C2525008142BB
/* FXYGL_ViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
FXYGL_ViewController.swift
;
sourceTree
=
"<group>"
;
};
E0272A84259C2525008142BB
/* FXYGL_ViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
FXYGL_ViewController.xib
;
sourceTree
=
"<group>"
;
};
E0272A8A259C29DB008142BB
/* FXYGL_Cell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
FXYGL_Cell.swift
;
sourceTree
=
"<group>"
;
};
E0272A8B259C29DB008142BB
/* FXYGL_Cell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
FXYGL_Cell.xib
;
sourceTree
=
"<group>"
;
};
E0273DD724551B4C00B3FCAE
/* SendTimeSelectView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SendTimeSelectView.swift
;
sourceTree
=
"<group>"
;
};
E0273DD924551B6D00B3FCAE
/* SendTimeSelectView.xib */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
file.xib
;
path
=
SendTimeSelectView.xib
;
sourceTree
=
"<group>"
;
};
E0273DDB24551D4500B3FCAE
/* OnlyLabelCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
OnlyLabelCell.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -811,6 +829,10 @@
E03984932468F2CA00DFA56F
/* UIKit.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
UIKit.framework
;
path
=
System/Library/Frameworks/UIKit.framework
;
sourceTree
=
SDKROOT
;
};
E03984952468F2D100DFA56F
/* Photos.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
Photos.framework
;
path
=
System/Library/Frameworks/Photos.framework
;
sourceTree
=
SDKROOT
;
};
E03984972468F2DA00DFA56F
/* SafariServices.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
SafariServices.framework
;
path
=
System/Library/Frameworks/SafariServices.framework
;
sourceTree
=
SDKROOT
;
};
E04025F9259C142E00EDF182
/* KHXQ_ViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
KHXQ_ViewController.swift
;
sourceTree
=
"<group>"
;
};
E04025FA259C142E00EDF182
/* KHXQ_ViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
KHXQ_ViewController.xib
;
sourceTree
=
"<group>"
;
};
E0402600259C186800EDF182
/* KHXQ_Cell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
KHXQ_Cell.swift
;
sourceTree
=
"<group>"
;
};
E0402601259C186800EDF182
/* KHXQ_Cell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
KHXQ_Cell.xib
;
sourceTree
=
"<group>"
;
};
E040399524D14D37008CF965
/* LalamoveModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
LalamoveModel.swift
;
sourceTree
=
"<group>"
;
};
E040399724D14E0E008CF965
/* LalamoveInterface.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
LalamoveInterface.swift
;
sourceTree
=
"<group>"
;
};
E042F72E245272FF00CDFA12
/* XiaYunDanViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
XiaYunDanViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -981,6 +1003,10 @@
E0B903BC259ADAFE0041EF62
/* dbtIncomeInfoInterface.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
dbtIncomeInfoInterface.swift
;
sourceTree
=
"<group>"
;
};
E0B903C7259B11C20041EF62
/* FXSY_Detail_ViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
FXSY_Detail_ViewController.swift
;
sourceTree
=
"<group>"
;
};
E0B903C8259B11C20041EF62
/* FXSY_Detail_ViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
FXSY_Detail_ViewController.xib
;
sourceTree
=
"<group>"
;
};
E0B903CF259B1CDC0041EF62
/* DSHFXY_ViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DSHFXY_ViewController.swift
;
sourceTree
=
"<group>"
;
};
E0B903D0259B1CDC0041EF62
/* DSHFXY_ViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
DSHFXY_ViewController.xib
;
sourceTree
=
"<group>"
;
};
E0B903D9259B26EA0041EF62
/* DSHFXY_Cell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DSHFXY_Cell.swift
;
sourceTree
=
"<group>"
;
};
E0B903DA259B26EA0041EF62
/* DSHFXY_Cell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
DSHFXY_Cell.xib
;
sourceTree
=
"<group>"
;
};
E0B9461C24566B3100FBEC9A
/* TitleAndTFAndBtnCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
TitleAndTFAndBtnCell.swift
;
sourceTree
=
"<group>"
;
};
E0B9461D24566B3100FBEC9A
/* TitleAndTFAndBtnCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
TitleAndTFAndBtnCell.xib
;
sourceTree
=
"<group>"
;
};
E0B94621245671E100FBEC9A
/* DaiKeXiaDanGouWuViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DaiKeXiaDanGouWuViewController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1003,6 +1029,8 @@
E0BE8A9B245A9E5900E80134
/* YingFuZhangKuanXQCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
YingFuZhangKuanXQCell.xib
;
sourceTree
=
"<group>"
;
};
E0BE8AA2245AA31400E80134
/* YingFuZhangKuanXQViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YingFuZhangKuanXQViewController.swift
;
sourceTree
=
"<group>"
;
};
E0BE8AA3245AA31400E80134
/* YingFuZhangKuanXQViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
YingFuZhangKuanXQViewController.xib
;
sourceTree
=
"<group>"
;
};
E0BFFA9F259C2E6200CC8CA3
/* ADD_FXY_View.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ADD_FXY_View.swift
;
sourceTree
=
"<group>"
;
};
E0BFFAA4259C2E6D00CC8CA3
/* ADD_FXY_View.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
ADD_FXY_View.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>"
;
};
...
...
@@ -1649,6 +1677,19 @@
path
=
"订单详情"
;
sourceTree
=
"<group>"
;
};
E0272A82259C2506008142BB
/* 分销员管理 */
=
{
isa
=
PBXGroup
;
children
=
(
E0272A83259C2525008142BB
/* FXYGL_ViewController.swift */
,
E0272A84259C2525008142BB
/* FXYGL_ViewController.xib */
,
E0272A8A259C29DB008142BB
/* FXYGL_Cell.swift */
,
E0272A8B259C29DB008142BB
/* FXYGL_Cell.xib */
,
E0BFFA9F259C2E6200CC8CA3
/* ADD_FXY_View.swift */
,
E0BFFAA4259C2E6D00CC8CA3
/* ADD_FXY_View.xib */
,
);
path
=
"分销员管理"
;
sourceTree
=
"<group>"
;
};
E02C88232456B23400925766
/* 物流跟踪 */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -1780,6 +1821,17 @@
path
=
"客户管理"
;
sourceTree
=
"<group>"
;
};
E04025F8259C13FE00EDF182
/* 客户详情 */
=
{
isa
=
PBXGroup
;
children
=
(
E04025F9259C142E00EDF182
/* KHXQ_ViewController.swift */
,
E04025FA259C142E00EDF182
/* KHXQ_ViewController.xib */
,
E0402600259C186800EDF182
/* KHXQ_Cell.swift */
,
E0402601259C186800EDF182
/* KHXQ_Cell.xib */
,
);
path
=
"客户详情"
;
sourceTree
=
"<group>"
;
};
E040399424D14D1F008CF965
/* LalamoveInterface */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -2064,6 +2116,9 @@
E09B03AD2445B0BA00211A51
/* ViewController */
=
{
isa
=
PBXGroup
;
children
=
(
E0272A82259C2506008142BB
/* 分销员管理 */
,
E04025F8259C13FE00EDF182
/* 客户详情 */
,
E0B903CE259B1CC30041EF62
/* 待审核分销员 */
,
E02EE118259ACBD600733764
/* 分销收益页 */
,
E077DC6725512E73000B0DA5
/* 分销商品管理 */
,
E077DC5C25512489000B0DA5
/* 供应商合作管理 */
,
...
...
@@ -2396,6 +2451,17 @@
path
=
dbtIncomeInfo_model
;
sourceTree
=
"<group>"
;
};
E0B903CE259B1CC30041EF62
/* 待审核分销员 */
=
{
isa
=
PBXGroup
;
children
=
(
E0B903CF259B1CDC0041EF62
/* DSHFXY_ViewController.swift */
,
E0B903D0259B1CDC0041EF62
/* DSHFXY_ViewController.xib */
,
E0B903D9259B26EA0041EF62
/* DSHFXY_Cell.swift */
,
E0B903DA259B26EA0041EF62
/* DSHFXY_Cell.xib */
,
);
path
=
"待审核分销员"
;
sourceTree
=
"<group>"
;
};
E0B94620245671AD00FBEC9A
/* 代客下单(购物) */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -3412,6 +3478,7 @@
isa
=
PBXResourcesBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
E0B903D2259B1CDC0041EF62
/* DSHFXY_ViewController.xib in Resources */
,
E042F731245272FF00CDFA12
/* XiaYunDanViewController.xib in Resources */
,
F9D44E9224CBE66E00FBD8DB
/* ToFormChangeView.xib in Resources */
,
E01E5472254FABFD00A2620C
/* GYS_FX_ProductCellTableViewCell.xib in Resources */
,
...
...
@@ -3456,6 +3523,7 @@
F93E320B2473D83D00524DFC
/* GeliAlertTextFiled.xib in Resources */
,
E07B1E5F24591AA50055BA3C
/* KeHuXQViewController.xib in Resources */
,
F993C66F24CADE2400493CC7
/* WayBillStautsTableViewCell.xib in Resources */
,
E0B903DC259B26EA0041EF62
/* DSHFXY_Cell.xib in Resources */
,
E095C42724874BDA00922571
/* CKNonGmCell.xib in Resources */
,
E02DDD83244FD15B00ABB707
/* TitleAndSwitchHeaderView.xib in Resources */
,
E03549AE24582828008BD021
/* KeHuGuanLiCell.xib in Resources */
,
...
...
@@ -3513,6 +3581,8 @@
E0F97B0D24516B1F001BD600
/* AddImgCell.xib in Resources */
,
E09B3AD224B2FCAF00E3B238
/* ShareSDKUI.bundle in Resources */
,
E0D197D6244860B1002B080C
/* BlueToothCell.xib in Resources */
,
E04025FC259C142E00EDF182
/* KHXQ_ViewController.xib in Resources */
,
E0272A8D259C29DB008142BB
/* FXYGL_Cell.xib in Resources */
,
E08A7AE124652E2C00F934F2
/* BingDingKeHuViewController.xib in Resources */
,
F9A1D4AB255B7AF70018DA8A
/* RetailManageHeaderView.xib in Resources */
,
E00CBA0224820CF000701D9D
/* CRKSumCell.xib in Resources */
,
...
...
@@ -3570,6 +3640,7 @@
E0EFB9C724930C0D005FB0CD
/* CGDListViewController.xib in Resources */
,
E02DDD9A24501A5B00ABB707
/* DelGuiGeCell.xib in Resources */
,
F9A1D4A5255B77070018DA8A
/* RetailManageViewCell.xib in Resources */
,
E0402603259C186800EDF182
/* KHXQ_Cell.xib in Resources */
,
F971D7B3248B6432007F1619
/* address_new.json in Resources */
,
E00D85E8244561FE00F5F816
/* Preview Assets.xcassets in Resources */
,
E02DDD962450106C00ABB707
/* PuTongJieTiCell.xib in Resources */
,
...
...
@@ -3606,6 +3677,7 @@
E02392072490819600C4C632
/* CGDListCell.xib in Resources */
,
F970B3682550F5AA0026F9D5
/* RetailManageViewController.xib in Resources */
,
E0F3C2CC24590C86006F0D1F
/* XinZengAndBianJiKeHuViewController.xib in Resources */
,
E0272A86259C2525008142BB
/* FXYGL_ViewController.xib in Resources */
,
E02C88272456B24F00925766
/* WuLiuGenZongViewController.xib in Resources */
,
F9D44E8924CBC6A400FBD8DB
/* ToAndFormSelectViewController.xib in Resources */
,
E0C4F4A8244EC82A00CC7E2F
/* TitleAndBtnCell.xib in Resources */
,
...
...
@@ -3614,6 +3686,7 @@
F9ECC929255CD7FD00990B61
/* RetailManageDetailViewController.xib in Resources */
,
F9C2F6F9254FE14900516E00
/* DistributorSettingViewController.xib in Resources */
,
E0BE8AA5245AA31400E80134
/* YingFuZhangKuanXQViewController.xib in Resources */
,
E0BFFAA5259C2E6D00CC8CA3
/* ADD_FXY_View.xib in Resources */
,
E0F97B1B2451951D001BD600
/* ShangPinGguiGeCell.xib in Resources */
,
E07B1E70245929060055BA3C
/* GYSGLViewController.xib in Resources */
,
E0336DD6244EC40000380BE9
/* CreatNewSpecsViewController.xib in Resources */
,
...
...
@@ -3706,6 +3779,7 @@
F933F6D22452DAE100189561
/* TabBarContentClassView.swift in Sources */
,
F933F6C82452C68B00189561
/* PKHUDTextView.swift in Sources */
,
F956D5AF246A2D9C003FF510
/* LMNCheckboxLine.m in Sources */
,
E04025FB259C142E00EDF182
/* KHXQ_ViewController.swift in Sources */
,
E0A409C82464010D00CFF109
/* FirstCell.swift in Sources */
,
E0A0A66D255A2C1600B0D1A5
/* getDbtRuleModel.swift in Sources */
,
F9531F422465108800724BEE
/* JXPhotoBrowserDefaultPageIndicator.swift in Sources */
,
...
...
@@ -3736,6 +3810,7 @@
F9A4AB6E24C927E900094BD1
/* LogisticsCostDetailViewController.swift in Sources */
,
E07337F82579E8660039767A
/* GYS_FX_Product_ListVc.swift in Sources */
,
E0BE8A7F245A740600E80134
/* ChengGongCell.swift in Sources */
,
E0402602259C186800EDF182
/* KHXQ_Cell.swift in Sources */
,
E02DDD90244FE54C00ABB707
/* NewCreateHeader.swift in Sources */
,
E0B903BD259ADAFE0041EF62
/* dbtIncomeInfoInterface.swift in Sources */
,
E0228BB0246FDA9A005812FA
/* TitleAndLblCell.swift in Sources */
,
...
...
@@ -3749,6 +3824,7 @@
E0A320C52456D01300AF321C
/* DaiKeXiaDanFooterView.swift in Sources */
,
E0336DD5244EC40000380BE9
/* CreatNewSpecsViewController.swift in Sources */
,
F9531F3F2465108800724BEE
/* JXPhotoBrowserNumberPageIndicator.swift in Sources */
,
E0272A85259C2525008142BB
/* FXYGL_ViewController.swift in Sources */
,
E09F4CA22452D18800BE033D
/* ZengZhiServicesViewController.swift in Sources */
,
F94A315B24628C7E00FEC38E
/* WorkItemTableViewCell.swift in Sources */
,
E0DDCB18244AE2AC00DF54C7
/* XiuGaiYuShouJiaViewController.swift in Sources */
,
...
...
@@ -3827,6 +3903,7 @@
F9171EFC245128B200359C2B
/* Interface.swift in Sources */
,
E0AACC76255BB03C00FC9010
/* TitleAndSelectCell.swift in Sources */
,
E0F97B082451620B001BD600
/* ProductDetailViewController.swift in Sources */
,
E0BFFAA0259C2E6200CC8CA3
/* ADD_FXY_View.swift in Sources */
,
F95A9EDD24557CD500867849
/* GuanLianKehuVC.swift in Sources */
,
E00D85DF244561FD00F5F816
/* AppDelegate.swift in Sources */
,
E0516F7F244806C500E373CE
/* MsgCenterViewController.swift in Sources */
,
...
...
@@ -3840,8 +3917,10 @@
F95A9ED524551DF900867849
/* UIView+constraints.swift in Sources */
,
F956D5B9246A33E2003FF510
/* OrderInterface.swift in Sources */
,
F933F6CA2452C68B00189561
/* PKHUDRotatingImageView.swift in Sources */
,
E0B903D1259B1CDC0041EF62
/* DSHFXY_ViewController.swift in Sources */
,
F950FDE324518B9500C40530
/* FSCalendarHeaderView.m in Sources */
,
E02EE11B259ACC0500733764
/* FXSY_ViewController.swift in Sources */
,
E0B903DB259B26EA0041EF62
/* DSHFXY_Cell.swift in Sources */
,
E0707DCE2462479300E039A8
/* SJMapViewController.swift in Sources */
,
F950FDA32451438A00C40530
/* AdminInfoModel.swift in Sources */
,
E0D197D5244860B1002B080C
/* BlueToothCell.swift in Sources */
,
...
...
@@ -3858,6 +3937,7 @@
F96A585124790E300070A057
/* TFHppleElement.m in Sources */
,
E0D197BB2448431C002B080C
/* BabyCallback.m in Sources */
,
F950FDDD24518B9500C40530
/* FSCalendarCollectionViewLayout.m in Sources */
,
E0272A8C259C29DB008142BB
/* FXYGL_Cell.swift in Sources */
,
E07B1E5E24591AA50055BA3C
/* KeHuXQViewController.swift in Sources */
,
F9DDBE962457D3EC00A32CB2
/* WebViewController.swift in Sources */
,
F993C66E24CADE2400493CC7
/* WayBillStautsTableViewCell.swift in Sources */
,
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
b8d42b88
No preview for this file type
GeliBusinessPlatform/Assets.xcassets/分销商管理/up_black.imageset/Contents.json
0 → 100644
View file @
b8d42b88
{
"images"
:
[
{
"filename"
:
"up_black.png"
,
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"up_black@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"up_black@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
GeliBusinessPlatform/Assets.xcassets/分销商管理/up_black.imageset/up_black.png
0 → 100644
View file @
b8d42b88
251 Bytes
GeliBusinessPlatform/Assets.xcassets/分销商管理/up_black.imageset/up_black@2x.png
0 → 100644
View file @
b8d42b88
487 Bytes
GeliBusinessPlatform/Assets.xcassets/分销商管理/up_black.imageset/up_black@3x.png
0 → 100644
View file @
b8d42b88
911 Bytes
GeliBusinessPlatform/Assets.xcassets/日历/icon_rili.imageset/Contents.json
0 → 100644
View file @
b8d42b88
{
"images"
:
[
{
"filename"
:
"icon_rili.png"
,
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"icon_rili@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"icon_rili@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
GeliBusinessPlatform/Assets.xcassets/日历/icon_rili.imageset/icon_rili.png
0 → 100644
View file @
b8d42b88
590 Bytes
GeliBusinessPlatform/Assets.xcassets/日历/icon_rili.imageset/icon_rili@2x.png
0 → 100644
View file @
b8d42b88
1.15 KB
GeliBusinessPlatform/Assets.xcassets/日历/icon_rili.imageset/icon_rili@3x.png
0 → 100644
View file @
b8d42b88
2.07 KB
GeliBusinessPlatform/Assets.xcassets/背景色/#E9E7ED.colorset/Contents.json
0 → 100644
View file @
b8d42b88
{
"colors"
:
[
{
"color"
:
{
"color-space"
:
"srgb"
,
"components"
:
{
"alpha"
:
"1.000"
,
"blue"
:
"0.929"
,
"green"
:
"0.906"
,
"red"
:
"0.914"
}
},
"idiom"
:
"universal"
},
{
"appearances"
:
[
{
"appearance"
:
"luminosity"
,
"value"
:
"dark"
}
],
"color"
:
{
"color-space"
:
"srgb"
,
"components"
:
{
"alpha"
:
"1.000"
,
"blue"
:
"0.929"
,
"green"
:
"0.906"
,
"red"
:
"0.914"
}
},
"idiom"
:
"universal"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
},
"properties"
:
{
"localizable"
:
true
}
}
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
b8d42b88
...
...
@@ -304,5 +304,21 @@
<string>
Distribution/dbtIncomeInfo
</string>
<key>
收益详情界面信息
</key>
<string>
Distribution/incomeDetails
</string>
<key>
待审核分销员界面信息查询
</key>
<string>
Distribution/examineDbtInfo
</string>
<key>
审核操作(通过和不通过)
</key>
<string>
Distribution/examineOperation
</string>
<key>
客户详情信息界面查询
</key>
<string>
Distribution/dbtCustomerInfo
</string>
<key>
删除客户
</key>
<string>
Distribution/deleteDbtCustomer
</string>
<key>
分销员管理界面信息查询
</key>
<string>
Distribution/dbtManageQuery
</string>
<key>
手机号检索信息
</key>
<string>
Distribution/phoneRetrievalInfo
</string>
<key>
新增分销员
</key>
<string>
Distribution/addDistributor
</string>
<key>
删除分销员
</key>
<string>
Distribution/stopDbtCooperation
</string>
</dict>
</plist>
GeliBusinessPlatform/Model/UpDataModel.swift
View file @
b8d42b88
...
...
@@ -8,7 +8,7 @@
import
Foundation
import
ObjectMapper
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库审核,商品入库,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单,审核采购单,撤销入库,采购单修改支付状态,供应商编辑,新增供应商,编辑客户,新增客户,应收账款收款,设为未收,取消采购单,修改采购订单,新增品牌,拒绝退款,确认用户退款到账,拒绝接单,审核同意退货退款,取消订单审核,确认收到退货,审核同意退货或退款,订单确认收货,取消运单,支付运费,选定地址添加收发货历史,取消货拉拉订单,货拉拉二次支付,货拉拉格利支付,发票消息短信通知,修改电子发票链接地址,分销分账设置,供应商新增店铺,标记已人工结算,铺货与取消铺货,终止合作,分销商品管理,分销商新增供应商
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库审核,商品入库,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单,审核采购单,撤销入库,采购单修改支付状态,供应商编辑,新增供应商,编辑客户,新增客户,应收账款收款,设为未收,取消采购单,修改采购订单,新增品牌,拒绝退款,确认用户退款到账,拒绝接单,审核同意退货退款,取消订单审核,确认收到退货,审核同意退货或退款,订单确认收货,取消运单,支付运费,选定地址添加收发货历史,取消货拉拉订单,货拉拉二次支付,货拉拉格利支付,发票消息短信通知,修改电子发票链接地址,分销分账设置,供应商新增店铺,标记已人工结算,铺货与取消铺货,终止合作,分销商品管理,分销商新增供应商
,审核操作(通过和不通过),删除客户,新增分销员,删除分销员
class
UpDataModel
:
Mappable
{
...
...
GeliBusinessPlatform/Model/dbtIncomeInfoInterface.swift
View file @
b8d42b88
...
...
@@ -44,3 +44,128 @@ func incomeDetails(_ params:[String:Any],success:@escaping (_ res:Any)->(),failt
failture
(
error
)
}
}
//MARK:--待审核分销员界面信息查询
/*
user_token 用户token
keyword 模糊搜素(分销员名称)
start_time 开始时间
end_time 结束时间
from 来源:0:PC后台,1:小程序,2:PC官网,3:商户端app,不传为全部
*/
func
examineDbtInfo
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"待审核分销员界面信息查询"
,
params
,
{
(
rep
:
DataResponse
<
examineDbtInfoModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--审核操作(通过和不通过)
/*
user_token 用户token
keyword 模糊搜素(分销员名称)
start_time 开始时间
end_time 结束时间
from 来源:0:PC后台,1:小程序,2:PC官网,3:商户端app,不传为全部
*/
func
examineOperation
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"审核操作(通过和不通过)"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--客户详情信息界面查询
/*
user_token 用户token
keyword 模糊搜素(分销员名称)
start_time 开始时间
end_time 结束时间
page
*/
func
dbtCustomerInfo
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"客户详情信息界面查询"
,
params
,
{
(
rep
:
DataResponse
<
dbtCustomerInfoModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--删除客户
/*
user_token 用户token
user_id 客户id
type_id 邀请人id
*/
func
deleteDbtCustomer
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"删除客户"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--分销员管理界面信息查询
/*
user_token 用户token
keyword 模糊搜索(分销员名称)
page 分页查询
*/
func
dbtManageQuery
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"分销员管理界面信息查询"
,
params
,
{
(
rep
:
DataResponse
<
dbtManageQueryModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--手机号检索信息
/*
user_token 用户token
phone 手机号
*/
func
phoneRetrievalInfo
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"手机号检索信息"
,
params
,
{
(
rep
:
DataResponse
<
phoneRetrievalInfoModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--新增分销员
/*
user_token 用户token
user_id 客户id
type_id 邀请人id
*/
func
addDistributor
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"新增分销员"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
//MARK:--删除分销员
/*
user_token 用户token
user_id 客户id
type_id 邀请人id
*/
func
stopDbtCooperation
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"删除分销员"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
GeliBusinessPlatform/Model/dbtIncomeInfo_model/dbtIncomeInfoModel.swift
View file @
b8d42b88
...
...
@@ -25,10 +25,10 @@ class dbtIncomeInfoModel: Mappable {
}
class
dbtIncomeInfoDataModel
:
Mappable
{
var
is_sup
:
Int
?
//
/
是否是供应商(1是0否)
var
is_dbt
:
Int
?
//
/
是否是分销商(1是0否)
var
inc
:
Float
?
//
/
收入
var
exp
:
Float
?
//
/
支出
var
is_sup
:
Int
?
//是否是供应商(1是0否)
var
is_dbt
:
Int
?
//是否是分销商(1是0否)
var
inc
:
Float
?
//收入
var
exp
:
Float
?
//支出
var
res
:
Array
<
dbtIncomeInfoDatasModel
>
?
required
init
?(
map
:
Map
)
{
}
...
...
@@ -41,12 +41,12 @@ class dbtIncomeInfoDataModel: Mappable {
}
}
class
dbtIncomeInfoDatasModel
:
Mappable
{
var
add_time
:
String
?
//
/
时间
var
add_time
:
String
?
//时间
var
record_sn
:
String
?
///流水号
var
remark
:
String
?
//
/
分账类型
var
remark
:
String
?
//分账类型
var
order_sn
:
String
?
//
/
订单编号
var
in_amount
:
String
?
//
/
收益金额
var
order_sn
:
String
?
//订单编号
var
in_amount
:
String
?
//收益金额
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
...
...
@@ -108,3 +108,165 @@ class incomeDetailsDataModel: Mappable {
refund_cycle
<-
map
[
"refund_cycle"
]
}
}
class
examineDbtInfoModel
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
Array
<
examineDbtInfoDataModel
>
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
class
examineDbtInfoDataModel
:
Mappable
{
var
user_name
:
String
?
//用户名
var
phone
:
String
?
//手机号
var
create_time
:
String
?
//申请时间
var
from
:
Int
?
//来源:1:小程序,2:食品网,4:全部
var
user_id
:
Int
?
//用户id
var
type
:
Int
?
//类型:0内部员工 1外部员工
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
user_name
<-
map
[
"user_name"
]
phone
<-
map
[
"phone"
]
create_time
<-
map
[
"create_time"
]
from
<-
map
[
"from"
]
user_id
<-
map
[
"user_id"
]
type
<-
map
[
"type"
]
}
}
class
dbtCustomerInfoModel
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
Array
<
dbtCustomerInfoDataModel
>
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
class
dbtCustomerInfoDataModel
:
Mappable
{
var
user_id
:
Int
?
//客户的id
var
type_id
:
Int
?
//邀请人id
var
create_time
:
String
?
//加入时间
var
customer_name
:
String
?
//客户名称
var
customer_phone
:
String
?
//客户手机号码
var
distributor_name
:
String
?
//邀请人名称
var
order_number
:
String
?
//下单数量
var
sum_order_money
:
String
?
//成交金额
var
latest_order_time
:
String
?
//最近下单时间
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
user_id
<-
map
[
"user_id"
]
type_id
<-
map
[
"type_id"
]
create_time
<-
map
[
"create_time"
]
customer_name
<-
map
[
"customer_name"
]
customer_phone
<-
map
[
"customer_phone"
]
distributor_name
<-
map
[
"distributor_name"
]
order_number
<-
map
[
"order_number"
]
sum_order_money
<-
map
[
"sum_order_money"
]
latest_order_time
<-
map
[
"latest_order_time"
]
}
}
class
dbtManageQueryModel
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
dbtManageQueryDataModel
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
class
dbtManageQueryDataModel
:
Mappable
{
var
count
:
Int
?
//总人数
var
res
:
Array
<
dbtManageQueryDatasModel
>
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
count
<-
map
[
"count"
]
res
<-
map
[
"res"
]
}
}
class
dbtManageQueryDatasModel
:
Mappable
{
var
user_name
:
String
?
//用户名
var
type
:
Int
?
//类型:0内部员工 1外部员工
var
update_time
:
String
?
//合作时间
var
user_id
:
Int
?
//用户id
var
sum_in_amount
:
Float
?
//累计佣金收益
var
count_customers
:
Int
?
//累计客户人数
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
user_name
<-
map
[
"user_name"
]
type
<-
map
[
"type"
]
update_time
<-
map
[
"update_time"
]
user_id
<-
map
[
"user_id"
]
sum_in_amount
<-
map
[
"sum_in_amount"
]
count_customers
<-
map
[
"count_customers"
]
}
}
class
phoneRetrievalInfoModel
:
Mappable
{
var
code
:
Int
?
var
message
:
String
?
var
data
:
phoneRetrievalInfoDataModel
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
code
<-
map
[
"code"
]
message
<-
map
[
"message"
]
data
<-
map
[
"data"
]
}
}
class
phoneRetrievalInfoDataModel
:
Mappable
{
var
user_name
:
String
?
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
user_name
<-
map
[
"user_name"
]
}
}
GeliBusinessPlatform/View/AlertView/DistributorSettingAlertView.xib
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
156
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
701
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
125
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
703
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
...
@@ -341,9 +341,6 @@
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
...
...
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
View file @
b8d42b88
...
...
@@ -466,7 +466,7 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
}
let
inputTF
=
UITextField
()
inputTF
.
addTarget
(
self
,
action
:
#selector(
textChange(TF:)
)
,
for
:
.
allEditingEvents
)
inputTF
.
addTarget
(
self
,
action
:
#selector(
textChange(TF:)
)
,
for
:
.
editingChanged
)
inputTF
.
placeholder
=
"请输入库位名称"
inputTF
.
textAlignment
=
.
center
inputTF
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
...
...
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.xib
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097.2
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
7701
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_5"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
7703
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
...
...
@@ -24,7 +25,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"896"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"F3A-eQ-U1t"
>
<button
opaque=
"NO"
alpha=
"0.5"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"F3A-eQ-U1t"
>
<rect
key=
"frame"
x=
"0.0"
y=
"-60"
width=
"414"
height=
"1016"
/>
<color
key=
"backgroundColor"
name=
"标题字颜色"
/>
<state
key=
"normal"
>
...
...
@@ -36,7 +37,7 @@
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"yGj-x3-YL4"
customClass=
"LGButton"
customModule=
"LGButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"83"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"color"
keyPath=
"gradientStartColor"
>
<color
key=
"value"
name=
"按钮渐变色上"
/>
...
...
@@ -90,13 +91,13 @@
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vcr-wd-MNy"
>
<rect
key=
"frame"
x=
"0.0"
y=
"52.000000000000007"
width=
"414"
height=
"95.666666666666686"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"95.5"
id=
"GWf-OE-tbg"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"Obf-xN-br1"
firstAttribute=
"top"
secondItem=
"Y0m-9G-DsZ"
secondAttribute=
"top"
id=
"3uO-4M-WHX"
/>
<constraint
firstAttribute=
"height"
constant=
"250"
id=
"HPp-z3-Qzc"
/>
...
...
@@ -115,6 +116,7 @@
</constraints>
</view>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"vUN-kp-3ea"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"F3A-eQ-U1t"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
constant=
"-60"
id=
"3h8-Iy-I3T"
/>
...
...
@@ -132,10 +134,14 @@
<constraint
firstItem=
"yGj-x3-YL4"
firstAttribute=
"trailing"
secondItem=
"vUN-kp-3ea"
secondAttribute=
"trailing"
id=
"xKf-sb-Q5b"
/>
<constraint
firstItem=
"vUN-kp-3ea"
firstAttribute=
"bottom"
secondItem=
"qFB-1i-CWM"
secondAttribute=
"bottom"
id=
"xMm-ka-fIT"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"vUN-kp-3ea"
/>
<point
key=
"canvasLocation"
x=
"128.98550724637681"
y=
"120.53571428571428"
/>
</view>
</objects>
<designables>
<designable
name=
"yGj-x3-YL4"
>
<size
key=
"intrinsicContentSize"
width=
"10"
height=
"10"
/>
</designable>
</designables>
<resources>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
@@ -152,5 +158,8 @@
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/View/AlertView/GLAlertTbAddView.xib
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
156
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
701
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
125
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
703
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
...
@@ -199,9 +199,6 @@
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
...
...
GeliBusinessPlatform/View/AlertView/GLMessageAlertView.xib
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
156
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
701
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
125
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
703
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
...
GeliBusinessPlatform/View/AlertView/GeliAlertTextFiled.xib
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
7701
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina5_5"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
7703
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
...
...
@@ -53,7 +54,7 @@
<constraint
firstAttribute=
"width"
constant=
"1"
id=
"Hda-pW-vCm"
/>
</constraints>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
hasAttributedTitle=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"jjl-au-58t"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
hasAttributedTitle=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"jjl-au-58t"
>
<rect
key=
"frame"
x=
"0.0"
y=
"125"
width=
"137"
height=
"49"
/>
<color
key=
"tintColor"
name=
"灰色字体颜色"
/>
<state
key=
"normal"
>
...
...
@@ -69,7 +70,7 @@
<action
selector=
"leftAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"LsY-OO-91v"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
hasAttributedTitle=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"LNC-Jz-ETd"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
hasAttributedTitle=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"LNC-Jz-ETd"
>
<rect
key=
"frame"
x=
"138"
y=
"125"
width=
"137"
height=
"49"
/>
<state
key=
"normal"
>
<attributedString
key=
"attributedTitle"
>
...
...
@@ -108,7 +109,7 @@
</userDefinedRuntimeAttributes>
</textField>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"B2W-zJ-284"
firstAttribute=
"leading"
secondItem=
"jjl-au-58t"
secondAttribute=
"trailing"
id=
"305-TD-iiF"
/>
<constraint
firstItem=
"LNC-Jz-ETd"
firstAttribute=
"top"
secondItem=
"CtT-4q-BsP"
secondAttribute=
"bottom"
id=
"9Z5-0e-qrb"
/>
...
...
@@ -146,6 +147,7 @@
</userDefinedRuntimeAttributes>
</view>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"ffS-dx-p3e"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"jqY-C3-bYZ"
firstAttribute=
"leading"
secondItem=
"Opm-YW-4MN"
secondAttribute=
"leading"
id=
"20N-X3-mf3"
/>
...
...
@@ -155,7 +157,6 @@
<constraint
firstAttribute=
"bottom"
secondItem=
"jqY-C3-bYZ"
secondAttribute=
"bottom"
id=
"xQl-pJ-MzL"
/>
<constraint
firstItem=
"jqY-C3-bYZ"
firstAttribute=
"top"
secondItem=
"Opm-YW-4MN"
secondAttribute=
"top"
id=
"zuG-ET-91R"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"ffS-dx-p3e"
/>
<point
key=
"canvasLocation"
x=
"-155"
y=
"111"
/>
</view>
</objects>
...
...
@@ -178,5 +179,8 @@
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/View/AlertView/GeliAlertTextView.xib
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
7701
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina5_5"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
7703
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
...
...
@@ -70,7 +71,7 @@
<constraint
firstAttribute=
"width"
constant=
"1"
id=
"Mbt-D4-gC5"
/>
</constraints>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
hasAttributedTitle=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uxE-uw-0md"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
hasAttributedTitle=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uxE-uw-0md"
>
<rect
key=
"frame"
x=
"0.0"
y=
"197"
width=
"137"
height=
"49"
/>
<color
key=
"tintColor"
name=
"灰色字体颜色"
/>
<state
key=
"normal"
>
...
...
@@ -86,7 +87,7 @@
<action
selector=
"leftAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"IdL-ds-TFl"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
hasAttributedTitle=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ePO-y1-BiN"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
hasAttributedTitle=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ePO-y1-BiN"
>
<rect
key=
"frame"
x=
"138"
y=
"197"
width=
"137"
height=
"49"
/>
<state
key=
"normal"
>
<attributedString
key=
"attributedTitle"
>
...
...
@@ -114,7 +115,7 @@
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"ort-a6-At0"
firstAttribute=
"top"
secondItem=
"wXk-Gr-x6B"
secondAttribute=
"bottom"
constant=
"15"
id=
"20E-op-sJJ"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"wXk-Gr-x6B"
secondAttribute=
"trailing"
constant=
"15"
id=
"3Gk-Bd-LmH"
/>
...
...
@@ -154,6 +155,7 @@
</userDefinedRuntimeAttributes>
</view>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"zbe-pF-tHJ"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"y7W-CL-kpT"
firstAttribute=
"leading"
secondItem=
"G1J-il-RBv"
secondAttribute=
"leading"
id=
"74s-kQ-L3r"
/>
...
...
@@ -163,7 +165,6 @@
<constraint
firstAttribute=
"trailing"
secondItem=
"y7W-CL-kpT"
secondAttribute=
"trailing"
id=
"h7o-OK-7v1"
/>
<constraint
firstItem=
"edy-Uj-qaX"
firstAttribute=
"centerX"
secondItem=
"G1J-il-RBv"
secondAttribute=
"centerX"
id=
"mob-gs-x4q"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"zbe-pF-tHJ"
/>
<point
key=
"canvasLocation"
x=
"-155.07246376811597"
y=
"110.86956521739131"
/>
</view>
</objects>
...
...
@@ -180,9 +181,6 @@
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
...
...
@@ -192,5 +190,8 @@
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/View/AlertView/GeliAlertView.swift
View file @
b8d42b88
...
...
@@ -28,6 +28,7 @@ class GeliAlertView: UIView {
//选择了该版本取消更新后不再提示
// UserDefaults.standard.setValue(appStoreVersion, forKey: "appStoreVersion")
}
self
.
removeFromSuperview
()
}
@IBAction
func
rightAction
(
_
sender
:
UIButton
)
{
...
...
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
7701
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_5"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
7703
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
...
...
@@ -70,7 +71,7 @@
</attributedString>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
hasAttributedTitle=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Dyd-7e-8BO"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
hasAttributedTitle=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Dyd-7e-8BO"
>
<rect
key=
"frame"
x=
"0.0"
y=
"109"
width=
"124"
height=
"49"
/>
<color
key=
"tintColor"
name=
"灰色字体颜色"
/>
<state
key=
"normal"
>
...
...
@@ -86,7 +87,7 @@
<action
selector=
"leftAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"AFp-VK-m6e"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
hasAttributedTitle=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"PtZ-E6-HsS"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
hasAttributedTitle=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"PtZ-E6-HsS"
>
<rect
key=
"frame"
x=
"125"
y=
"109"
width=
"124"
height=
"49"
/>
<state
key=
"normal"
>
<attributedString
key=
"attributedTitle"
>
...
...
@@ -102,7 +103,7 @@
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"xhi-ml-JFj"
firstAttribute=
"top"
secondItem=
"iMI-qP-BVc"
secondAttribute=
"bottom"
constant=
"10"
id=
"1aG-41-dKY"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"PtZ-E6-HsS"
secondAttribute=
"trailing"
id=
"2hY-Ev-agW"
/>
...
...
@@ -195,5 +196,8 @@
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/View/Cell/TitleAndTFCell.swift
View file @
b8d42b88
...
...
@@ -18,7 +18,7 @@ class TitleAndTFCell: UITableViewCell {
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
textTF
.
addTarget
(
self
,
action
:
#selector(
textChange(textField:)
)
,
for
:
.
allEditingEvents
)
textTF
.
addTarget
(
self
,
action
:
#selector(
textChange(textField:)
)
,
for
:
.
editingChanged
)
}
...
...
GeliBusinessPlatform/View/Cell/WareHouseSpCell.swift
View file @
b8d42b88
...
...
@@ -28,7 +28,7 @@ class WareHouseSpCell: UITableViewCell {
self
.
selectionStyle
=
.
none
whSwitch
.
addTarget
(
self
,
action
:
#selector(
swValueChange(sender:)
)
,
for
:
.
valueChanged
)
whSwitch
.
transform
=
CGAffineTransform
(
scaleX
:
0.8
,
y
:
0.8
)
detailTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
allEditingEvents
)
detailTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
editingChanged
)
// Initialization code
}
@objc
func
swValueChange
(
sender
:
UISwitch
){
...
...
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
View file @
b8d42b88
...
...
@@ -77,8 +77,8 @@ class XuanZeShangPinCell: UITableViewCell{
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
selectBtn
.
isUserInteractionEnabled
=
false
priceTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
allEditingEvents
)
countTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
allEditingEvents
)
priceTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
editingChanged
)
countTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
editingChanged
)
// Initialization code
...
...
GeliBusinessPlatform/ViewController/入库/PiCiXuanZeCell.swift
View file @
b8d42b88
...
...
@@ -31,7 +31,7 @@ class PiCiXuanZeCell: UITableViewCell,UITextFieldDelegate {
self
.
selectionStyle
=
.
none
textTF
.
keyboardType
=
.
numberPad
textTF
.
delegate
=
self
textTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
allEditingEvents
)
textTF
.
addTarget
(
self
,
action
:
#selector(
textChange(sender:)
)
,
for
:
.
editingChanged
)
// Initialization code
}
...
...
GeliBusinessPlatform/ViewController/分销员管理/ADD_FXY_View.swift
0 → 100644
View file @
b8d42b88
//
// ADD_FXY_View.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/12/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
protocol
ADD_FXY_ViewDelegate
{
func
ADD_FXY_ViewTextInput
(
txt
:
String
,
type
:
Int
,
view
:
ADD_FXY_View
)
func
ADD_FXY_ViewTypeSelect
(
type
:
Int
)
func
ADD_FXY_ViewFinish
(
name
:
String
)
}
class
ADD_FXY_View
:
UIView
{
var
delegate
:
ADD_FXY_ViewDelegate
?
func
setUI
(){
phoneTf
.
addTarget
(
self
,
action
:
#selector(
textChange(tf:)
)
,
for
:
.
editingChanged
)
nameTf
.
addTarget
(
self
,
action
:
#selector(
textChange(tf:)
)
,
for
:
.
editingChanged
)
nameTf
.
isUserInteractionEnabled
=
false
}
var
temp
=
""
@objc
func
textChange
(
tf
:
UITextField
){
if
tf
==
phoneTf
{
if
tf
.
text
!.
count
<=
11
{
temp
=
tf
.
text
!
}
phoneTf
.
text
=
temp
delegate
?
.
ADD_FXY_ViewTextInput
(
txt
:
temp
,
type
:
1
,
view
:
self
)
}
else
{
if
phoneTf
.
text
!.
count
<
11
{
HUD
.
flash
(
.
label
(
"请输入手机号码添加分销员"
),
delay
:
1.2
)
nameTf
.
text
=
""
nameTf
.
isUserInteractionEnabled
=
false
}
delegate
?
.
ADD_FXY_ViewTextInput
(
txt
:
tf
.
text
!
,
type
:
2
,
view
:
self
)
}
}
@IBAction
func
finish_action
(
_
sender
:
UIButton
)
{
if
sender
.
titleLabel
?
.
text
==
"确定"
{
if
phoneTf
.
text
?
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请输入手机号码添加分销员"
),
delay
:
1.2
)
return
}
if
nameTf
.
text
?
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请输入分销员名称"
),
delay
:
1.2
)
return
}
delegate
?
.
ADD_FXY_ViewFinish
(
name
:
nameTf
.
text
!
)
}
else
{
self
.
removeFromSuperview
()
}
}
@IBAction
func
select_action
(
_
sender
:
UIButton
)
{
var
type
=
1
if
sender
==
left_btn
{
left_btn
.
isSelected
=
true
right_btn
.
isSelected
=
false
type
=
1
}
else
{
left_btn
.
isSelected
=
false
right_btn
.
isSelected
=
true
type
=
2
}
delegate
?
.
ADD_FXY_ViewTypeSelect
(
type
:
type
)
}
@IBOutlet
weak
var
right_btn
:
UIButton
!
@IBOutlet
weak
var
left_btn
:
UIButton
!
@IBAction
func
close_action
(
_
sender
:
Any
)
{
self
.
removeFromSuperview
()
}
@IBOutlet
weak
var
phoneTf
:
UITextField
!
@IBOutlet
weak
var
nameTf
:
UITextField
!
var
contentView
:
UIView
!
//初始化时将xib中的view添加进来
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
contentView
=
loadViewFromNib
()
addSubview
(
contentView
)
contentView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
left
.
right
.
bottom
.
equalToSuperview
()
}
setUI
()
}
// /初始化时将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
()
}
setUI
()
}
//加载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/分销员管理/ADD_FXY_View.xib
0 → 100644
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17701"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina5_9"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17703"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"ADD_FXY_View"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"left_btn"
destination=
"HI7-ge-8w9"
id=
"Qfj-TG-yFR"
/>
<outlet
property=
"nameTf"
destination=
"vQM-cF-hsK"
id=
"eL1-Kr-Yhn"
/>
<outlet
property=
"phoneTf"
destination=
"gAe-Jm-J5D"
id=
"v6F-TG-Pnw"
/>
<outlet
property=
"right_btn"
destination=
"DoJ-Gd-HSM"
id=
"drd-Tu-jIw"
/>
</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=
"812"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<button
opaque=
"NO"
alpha=
"0.40000000000000002"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
pointerInteraction=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"HR5-nh-7vV"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"812"
/>
<color
key=
"backgroundColor"
name=
"标题字颜色"
/>
<connections>
<action
selector=
"close_action:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"iQx-RN-fEW"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ePh-m3-A60"
>
<rect
key=
"frame"
x=
"40"
y=
"276"
width=
"295"
height=
"260"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"新增分销员"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FM4-oN-T34"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"295"
height=
"38.666666666666664"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"38.5"
id=
"9Nr-W7-TNw"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"EbV-CR-bio"
>
<rect
key=
"frame"
x=
"0.0"
y=
"38.666666666666686"
width=
"295"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"Crr-iK-3fB"
/>
</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=
"CnP-jf-e0e"
>
<rect
key=
"frame"
x=
"14.999999999999996"
y=
"62.999999999999993"
width=
"42.666666666666657"
height=
"19.666666666666664"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"0w7-2M-l1F"
>
<rect
key=
"frame"
x=
"87.666666666666671"
y=
"55.333333333333314"
width=
"192.33333333333331"
height=
"35"
/>
<subviews>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入手机号"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gAe-Jm-J5D"
>
<rect
key=
"frame"
x=
"14.999999999999986"
y=
"0.0"
width=
"177.33333333333331"
height=
"35"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<textInputTraits
key=
"textInputTraits"
keyboardType=
"numberPad"
/>
</textField>
</subviews>
<color
key=
"backgroundColor"
name=
"#E9E7ED"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"35"
id=
"3lo-6Q-zqc"
/>
<constraint
firstItem=
"gAe-Jm-J5D"
firstAttribute=
"leading"
secondItem=
"0w7-2M-l1F"
secondAttribute=
"leading"
constant=
"15"
id=
"4dD-VW-3q2"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"gAe-Jm-J5D"
secondAttribute=
"trailing"
id=
"Piu-6Q-vt8"
/>
<constraint
firstItem=
"gAe-Jm-J5D"
firstAttribute=
"top"
secondItem=
"0w7-2M-l1F"
secondAttribute=
"top"
id=
"a26-6T-QPL"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"gAe-Jm-J5D"
secondAttribute=
"bottom"
id=
"cjg-Xf-ScY"
/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"3"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"名称:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"oke-NQ-EI9"
>
<rect
key=
"frame"
x=
"15.000000000000002"
y=
"119.66666666666669"
width=
"29.666666666666671"
height=
"17"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"byV-pN-LaQ"
>
<rect
key=
"frame"
x=
"87.666666666666671"
y=
"110.66666666666669"
width=
"192.33333333333331"
height=
"35"
/>
<subviews>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入名称/选择"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vQM-cF-hsK"
>
<rect
key=
"frame"
x=
"14.999999999999986"
y=
"0.0"
width=
"177.33333333333331"
height=
"35"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
</subviews>
<color
key=
"backgroundColor"
name=
"#E9E7ED"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"35"
id=
"1l3-cx-9Ai"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"vQM-cF-hsK"
secondAttribute=
"trailing"
id=
"BFL-eu-mqC"
/>
<constraint
firstItem=
"vQM-cF-hsK"
firstAttribute=
"top"
secondItem=
"byV-pN-LaQ"
secondAttribute=
"top"
id=
"PE7-Sg-30l"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"vQM-cF-hsK"
secondAttribute=
"bottom"
id=
"XXy-jk-buW"
/>
<constraint
firstItem=
"vQM-cF-hsK"
firstAttribute=
"leading"
secondItem=
"byV-pN-LaQ"
secondAttribute=
"leading"
constant=
"15"
id=
"nAg-nh-PKO"
/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"3"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Hxy-4D-e9G"
>
<rect
key=
"frame"
x=
"0.0"
y=
"210"
width=
"295"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"sjA-vT-IK2"
/>
</constraints>
</view>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"DEf-je-5bM"
>
<rect
key=
"frame"
x=
"0.0"
y=
"211"
width=
"147.66666666666666"
height=
"49"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"取消"
>
<color
key=
"titleColor"
name=
"多选按钮字体颜色"
/>
</state>
<connections>
<action
selector=
"finish_action:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"OGG-sb-OSl"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"QFW-6e-lfz"
>
<rect
key=
"frame"
x=
"147.66666666666663"
y=
"211"
width=
"147.33333333333337"
height=
"49"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"确定"
>
<color
key=
"titleColor"
name=
"按钮渐变色下,字体颜色"
/>
</state>
<connections>
<action
selector=
"finish_action:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"gBi-UX-WMB"
/>
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"分销员类型:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"S72-Ei-glJ"
>
<rect
key=
"frame"
x=
"15"
y=
"166"
width=
"68.666666666666671"
height=
"18.666666666666657"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.666666666666657"
id=
"14G-fD-rQi"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
selected=
"YES"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"HI7-ge-8w9"
>
<rect
key=
"frame"
x=
"103.66666666666666"
y=
"166"
width=
"76"
height=
"18.666666666666657"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
" 内部员工"
image=
"daixuan"
>
<color
key=
"titleColor"
name=
"标题字颜色"
/>
</state>
<state
key=
"selected"
title=
" 内部员工"
image=
"yuxuan"
/>
<connections>
<action
selector=
"select_action:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"w3F-Aw-IwZ"
/>
</connections>
</button>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"DoJ-Gd-HSM"
>
<rect
key=
"frame"
x=
"199.66666666666666"
y=
"166"
width=
"75.999999999999972"
height=
"18.666666666666657"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
" 外部员工"
image=
"daixuan"
>
<color
key=
"titleColor"
name=
"标题字颜色"
/>
</state>
<state
key=
"selected"
title=
" 外部员工"
image=
"yuxuan"
/>
<connections>
<action
selector=
"select_action:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"4sy-9n-hx7"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"n61-7A-yQv"
>
<rect
key=
"frame"
x=
"147"
y=
"211"
width=
"1"
height=
"49"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"1"
id=
"IKr-CN-cIG"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"QFW-6e-lfz"
firstAttribute=
"top"
secondItem=
"Hxy-4D-e9G"
secondAttribute=
"bottom"
id=
"1xJ-uP-20q"
/>
<constraint
firstItem=
"byV-pN-LaQ"
firstAttribute=
"centerY"
secondItem=
"oke-NQ-EI9"
secondAttribute=
"centerY"
id=
"2xt-6K-gAk"
/>
<constraint
firstItem=
"HI7-ge-8w9"
firstAttribute=
"top"
secondItem=
"DoJ-Gd-HSM"
secondAttribute=
"top"
id=
"6Gv-Hi-uCx"
/>
<constraint
firstItem=
"0w7-2M-l1F"
firstAttribute=
"leading"
secondItem=
"CnP-jf-e0e"
secondAttribute=
"trailing"
constant=
"30"
id=
"9Dh-Kk-KSG"
/>
<constraint
firstItem=
"HI7-ge-8w9"
firstAttribute=
"leading"
secondItem=
"S72-Ei-glJ"
secondAttribute=
"trailing"
constant=
"20"
id=
"Dgu-of-zGU"
/>
<constraint
firstItem=
"FM4-oN-T34"
firstAttribute=
"leading"
secondItem=
"ePh-m3-A60"
secondAttribute=
"leading"
id=
"FTy-rX-JuI"
/>
<constraint
firstAttribute=
"height"
constant=
"260"
id=
"Gv8-cp-M65"
/>
<constraint
firstItem=
"EbV-CR-bio"
firstAttribute=
"top"
secondItem=
"FM4-oN-T34"
secondAttribute=
"bottom"
id=
"JJJ-kn-Z15"
/>
<constraint
firstItem=
"Hxy-4D-e9G"
firstAttribute=
"leading"
secondItem=
"ePh-m3-A60"
secondAttribute=
"leading"
id=
"Kpa-5z-hQY"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"byV-pN-LaQ"
secondAttribute=
"trailing"
constant=
"15"
id=
"LVa-Ii-8ro"
/>
<constraint
firstItem=
"QFW-6e-lfz"
firstAttribute=
"width"
secondItem=
"DEf-je-5bM"
secondAttribute=
"width"
id=
"Lfn-bc-LiP"
/>
<constraint
firstItem=
"DoJ-Gd-HSM"
firstAttribute=
"leading"
secondItem=
"HI7-ge-8w9"
secondAttribute=
"trailing"
constant=
"20"
id=
"Mjn-SI-6HQ"
/>
<constraint
firstItem=
"FM4-oN-T34"
firstAttribute=
"top"
secondItem=
"ePh-m3-A60"
secondAttribute=
"top"
id=
"Nwg-bd-vnZ"
/>
<constraint
firstItem=
"HI7-ge-8w9"
firstAttribute=
"top"
secondItem=
"byV-pN-LaQ"
secondAttribute=
"bottom"
constant=
"20.333333333333371"
id=
"OKY-FV-0KL"
/>
<constraint
firstItem=
"n61-7A-yQv"
firstAttribute=
"top"
secondItem=
"Hxy-4D-e9G"
secondAttribute=
"bottom"
id=
"PKG-vJ-FII"
/>
<constraint
firstItem=
"DoJ-Gd-HSM"
firstAttribute=
"centerY"
secondItem=
"HI7-ge-8w9"
secondAttribute=
"centerY"
id=
"RAl-gq-Nko"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"0w7-2M-l1F"
secondAttribute=
"trailing"
constant=
"15"
id=
"SY3-oX-kMa"
/>
<constraint
firstItem=
"S72-Ei-glJ"
firstAttribute=
"top"
secondItem=
"oke-NQ-EI9"
secondAttribute=
"bottom"
constant=
"29.333333333333314"
id=
"ScK-0U-eRz"
/>
<constraint
firstItem=
"CnP-jf-e0e"
firstAttribute=
"leading"
secondItem=
"ePh-m3-A60"
secondAttribute=
"leading"
constant=
"15"
id=
"Tdi-P6-19h"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"EbV-CR-bio"
secondAttribute=
"trailing"
id=
"Vgo-SI-4th"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"QFW-6e-lfz"
secondAttribute=
"trailing"
id=
"WsX-Ys-sX8"
/>
<constraint
firstItem=
"oke-NQ-EI9"
firstAttribute=
"leading"
secondItem=
"CnP-jf-e0e"
secondAttribute=
"leading"
id=
"YPf-9M-87G"
/>
<constraint
firstItem=
"S72-Ei-glJ"
firstAttribute=
"leading"
secondItem=
"oke-NQ-EI9"
secondAttribute=
"leading"
id=
"ab8-T7-rhH"
/>
<constraint
firstItem=
"Hxy-4D-e9G"
firstAttribute=
"top"
secondItem=
"S72-Ei-glJ"
secondAttribute=
"bottom"
constant=
"25.333333333333343"
id=
"bNG-UW-YQs"
/>
<constraint
firstItem=
"HI7-ge-8w9"
firstAttribute=
"centerY"
secondItem=
"S72-Ei-glJ"
secondAttribute=
"centerY"
id=
"bs4-iO-S64"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"FM4-oN-T34"
secondAttribute=
"trailing"
id=
"dQK-zE-cPQ"
/>
<constraint
firstItem=
"oke-NQ-EI9"
firstAttribute=
"top"
secondItem=
"CnP-jf-e0e"
secondAttribute=
"bottom"
constant=
"37"
id=
"fuJ-uk-GQ0"
/>
<constraint
firstItem=
"DEf-je-5bM"
firstAttribute=
"top"
secondItem=
"Hxy-4D-e9G"
secondAttribute=
"bottom"
id=
"g1p-XS-bRt"
/>
<constraint
firstItem=
"byV-pN-LaQ"
firstAttribute=
"leading"
secondItem=
"0w7-2M-l1F"
secondAttribute=
"leading"
id=
"how-yK-Tal"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Hxy-4D-e9G"
secondAttribute=
"trailing"
id=
"k8V-h4-MB5"
/>
<constraint
firstItem=
"QFW-6e-lfz"
firstAttribute=
"leading"
secondItem=
"DEf-je-5bM"
secondAttribute=
"trailing"
id=
"kXU-JX-aM5"
/>
<constraint
firstItem=
"Hxy-4D-e9G"
firstAttribute=
"top"
secondItem=
"HI7-ge-8w9"
secondAttribute=
"bottom"
constant=
"25.333333333333314"
id=
"l8r-3t-RGJ"
/>
<constraint
firstItem=
"EbV-CR-bio"
firstAttribute=
"leading"
secondItem=
"ePh-m3-A60"
secondAttribute=
"leading"
id=
"lnp-qN-RrG"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"n61-7A-yQv"
secondAttribute=
"bottom"
id=
"lw8-ot-8Zv"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"QFW-6e-lfz"
secondAttribute=
"bottom"
id=
"m8X-UI-kZB"
/>
<constraint
firstItem=
"CnP-jf-e0e"
firstAttribute=
"top"
secondItem=
"EbV-CR-bio"
secondAttribute=
"bottom"
constant=
"23.5"
id=
"o9n-go-cb8"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Hxy-4D-e9G"
secondAttribute=
"bottom"
constant=
"49"
id=
"qPT-4V-VWE"
/>
<constraint
firstItem=
"n61-7A-yQv"
firstAttribute=
"centerX"
secondItem=
"ePh-m3-A60"
secondAttribute=
"centerX"
id=
"tSH-4B-8Tm"
/>
<constraint
firstItem=
"DEf-je-5bM"
firstAttribute=
"leading"
secondItem=
"ePh-m3-A60"
secondAttribute=
"leading"
id=
"tnf-i6-6Us"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"DEf-je-5bM"
secondAttribute=
"bottom"
id=
"xAF-nB-c1U"
/>
<constraint
firstItem=
"0w7-2M-l1F"
firstAttribute=
"centerY"
secondItem=
"CnP-jf-e0e"
secondAttribute=
"centerY"
id=
"ybl-5S-Jyn"
/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"10"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"vUN-kp-3ea"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"ePh-m3-A60"
firstAttribute=
"leading"
secondItem=
"vUN-kp-3ea"
secondAttribute=
"leading"
constant=
"40"
id=
"3fu-KN-1XG"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"HR5-nh-7vV"
secondAttribute=
"bottom"
id=
"8xh-E4-dfm"
/>
<constraint
firstItem=
"HR5-nh-7vV"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
id=
"FOl-OB-1ga"
/>
<constraint
firstItem=
"HR5-nh-7vV"
firstAttribute=
"leading"
secondItem=
"vUN-kp-3ea"
secondAttribute=
"leading"
id=
"gGO-3O-TOw"
/>
<constraint
firstItem=
"vUN-kp-3ea"
firstAttribute=
"trailing"
secondItem=
"ePh-m3-A60"
secondAttribute=
"trailing"
constant=
"40"
id=
"pkZ-Mu-GuY"
/>
<constraint
firstItem=
"ePh-m3-A60"
firstAttribute=
"centerY"
secondItem=
"iN0-l3-epB"
secondAttribute=
"centerY"
id=
"wlW-A5-oBx"
/>
<constraint
firstItem=
"vUN-kp-3ea"
firstAttribute=
"trailing"
secondItem=
"HR5-nh-7vV"
secondAttribute=
"trailing"
id=
"z6m-hQ-PEb"
/>
</constraints>
<point
key=
"canvasLocation"
x=
"141.59999999999999"
y=
"77.58620689655173"
/>
</view>
</objects>
<resources>
<image
name=
"daixuan"
width=
"19"
height=
"19"
/>
<image
name=
"yuxuan"
width=
"19"
height=
"19"
/>
<namedColor
name=
"#E9E7ED"
>
<color
red=
"0.91399997472763062"
green=
"0.90600001811981201"
blue=
"0.92900002002716064"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"多选按钮字体颜色"
>
<color
red=
"0.41176470588235292"
green=
"0.41176470588235292"
blue=
"0.41176470588235292"
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>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/分销员管理/FXYGL_Cell.swift
0 → 100644
View file @
b8d42b88
//
// FXYGL_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/12/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
protocol
FXYGL_CellDelegate
{
func
FXYGL_CellCancel_Contract
(
num
:
Int
)
}
class
FXYGL_Cell
:
UITableViewCell
{
var
delegate
:
FXYGL_CellDelegate
?
@IBAction
func
cancel_contract_action
(
_
sender
:
UIButton
)
{
delegate
?
.
FXYGL_CellCancel_Contract
(
num
:
self
.
tag
)
}
@IBOutlet
weak
var
count_lbl
:
UILabel
!
@IBOutlet
weak
var
time_lbl
:
UILabel
!
@IBOutlet
weak
var
money_lbl
:
UILabel
!
@IBOutlet
weak
var
name_lbl
:
UILabel
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
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/分销员管理/FXYGL_Cell.xib
0 → 100644
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17701"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17703"
/>
<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=
"FXYGL_Cell"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"145"
/>
<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=
"145"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Joj-gd-Rns"
>
<rect
key=
"frame"
x=
"15"
y=
"18"
width=
"3"
height=
"12.5"
/>
<color
key=
"backgroundColor"
name=
"按钮渐变色下,字体颜色"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"12.5"
id=
"SV7-mF-k4Z"
/>
<constraint
firstAttribute=
"width"
constant=
"3"
id=
"tro-Fe-uBJ"
/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"2"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"LTB-jJ-brb"
>
<rect
key=
"frame"
x=
"25"
y=
"24.5"
width=
"0.0"
height=
"0.0"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"jinru"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"OSY-lr-AtN"
>
<rect
key=
"frame"
x=
"301"
y=
"19.5"
width=
"4"
height=
"9.5"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"4"
id=
"Bb2-JP-sTl"
/>
<constraint
firstAttribute=
"height"
constant=
"9.5"
id=
"fqg-Ow-EQP"
/>
</constraints>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"合作时间:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"BCP-Y0-f5N"
>
<rect
key=
"frame"
x=
"15"
y=
"68.5"
width=
"65"
height=
"19"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"累计收益:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Kmc-7o-JwY"
>
<rect
key=
"frame"
x=
"15"
y=
"39.5"
width=
"65"
height=
"19"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"累计客户人数:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"xt7-ct-Qh8"
>
<rect
key=
"frame"
x=
"15"
y=
"97.5"
width=
"91"
height=
"19"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"xed-U0-QYD"
>
<rect
key=
"frame"
x=
"106"
y=
"107"
width=
"0.0"
height=
"0.0"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"多选按钮字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Qdu-4Y-Gya"
>
<rect
key=
"frame"
x=
"80"
y=
"78"
width=
"0.0"
height=
"0.0"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"多选按钮字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"1i5-QO-HEu"
>
<rect
key=
"frame"
x=
"80"
y=
"49"
width=
"0.0"
height=
"0.0"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"多选按钮字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"hRt-KC-Zeu"
>
<rect
key=
"frame"
x=
"253"
y=
"91.5"
width=
"52"
height=
"31"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"52"
id=
"348-0c-Qym"
/>
<constraint
firstAttribute=
"height"
constant=
"31"
id=
"8Ys-AQ-5uO"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"终止合作"
/>
<connections>
<action
selector=
"cancel_contract_action:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"k5d-Mf-i4c"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JSM-eB-GI5"
>
<rect
key=
"frame"
x=
"253"
y=
"115.5"
width=
"52"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"按钮渐变色下,字体颜色"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"52"
id=
"Jde-cG-a8Z"
/>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"Xmj-Oo-2LZ"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"VGg-je-wQh"
>
<rect
key=
"frame"
x=
"15"
y=
"143"
width=
"305"
height=
"2"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"2"
id=
"v70-Sr-nbb"
/>
</constraints>
</view>
</subviews>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"OSY-lr-AtN"
secondAttribute=
"trailing"
constant=
"15"
id=
"1Xb-jH-Sno"
/>
<constraint
firstItem=
"Joj-gd-Rns"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"18"
id=
"5Cy-hX-zMw"
/>
<constraint
firstItem=
"LTB-jJ-brb"
firstAttribute=
"centerY"
secondItem=
"Joj-gd-Rns"
secondAttribute=
"centerY"
id=
"5ys-fM-ILn"
/>
<constraint
firstItem=
"Qdu-4Y-Gya"
firstAttribute=
"leading"
secondItem=
"BCP-Y0-f5N"
secondAttribute=
"trailing"
id=
"73V-vl-Kaf"
/>
<constraint
firstItem=
"xt7-ct-Qh8"
firstAttribute=
"top"
secondItem=
"BCP-Y0-f5N"
secondAttribute=
"bottom"
constant=
"10"
id=
"7zd-BP-gcA"
/>
<constraint
firstItem=
"Joj-gd-Rns"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"BJG-40-jsZ"
/>
<constraint
firstItem=
"1i5-QO-HEu"
firstAttribute=
"leading"
secondItem=
"Kmc-7o-JwY"
secondAttribute=
"trailing"
id=
"C0Y-Ar-fSu"
/>
<constraint
firstItem=
"OSY-lr-AtN"
firstAttribute=
"centerY"
secondItem=
"LTB-jJ-brb"
secondAttribute=
"centerY"
id=
"J1u-pV-aZz"
/>
<constraint
firstItem=
"BCP-Y0-f5N"
firstAttribute=
"top"
secondItem=
"Kmc-7o-JwY"
secondAttribute=
"bottom"
constant=
"10"
id=
"OJl-cO-QUs"
/>
<constraint
firstItem=
"1i5-QO-HEu"
firstAttribute=
"centerY"
secondItem=
"Kmc-7o-JwY"
secondAttribute=
"centerY"
id=
"OTF-cD-vbw"
/>
<constraint
firstItem=
"LTB-jJ-brb"
firstAttribute=
"leading"
secondItem=
"Joj-gd-Rns"
secondAttribute=
"trailing"
constant=
"7"
id=
"XdC-Qb-OCM"
/>
<constraint
firstItem=
"xt7-ct-Qh8"
firstAttribute=
"leading"
secondItem=
"BCP-Y0-f5N"
secondAttribute=
"leading"
id=
"ZWF-cn-4Ry"
/>
<constraint
firstItem=
"Qdu-4Y-Gya"
firstAttribute=
"centerY"
secondItem=
"BCP-Y0-f5N"
secondAttribute=
"centerY"
id=
"cka-we-dpq"
/>
<constraint
firstItem=
"xed-U0-QYD"
firstAttribute=
"centerY"
secondItem=
"xt7-ct-Qh8"
secondAttribute=
"centerY"
id=
"erO-08-sm9"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"VGg-je-wQh"
secondAttribute=
"trailing"
id=
"fRP-z7-A3Y"
/>
<constraint
firstItem=
"JSM-eB-GI5"
firstAttribute=
"centerX"
secondItem=
"hRt-KC-Zeu"
secondAttribute=
"centerX"
id=
"iLP-9r-jmo"
/>
<constraint
firstItem=
"Kmc-7o-JwY"
firstAttribute=
"leading"
secondItem=
"Joj-gd-Rns"
secondAttribute=
"leading"
id=
"lAg-lR-tDA"
/>
<constraint
firstItem=
"BCP-Y0-f5N"
firstAttribute=
"leading"
secondItem=
"Kmc-7o-JwY"
secondAttribute=
"leading"
id=
"n1T-kI-hBu"
/>
<constraint
firstItem=
"Kmc-7o-JwY"
firstAttribute=
"top"
secondItem=
"LTB-jJ-brb"
secondAttribute=
"bottom"
constant=
"15"
id=
"naL-iX-h6Z"
/>
<constraint
firstItem=
"VGg-je-wQh"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"sOT-w4-Zzh"
/>
<constraint
firstItem=
"xed-U0-QYD"
firstAttribute=
"leading"
secondItem=
"xt7-ct-Qh8"
secondAttribute=
"trailing"
id=
"tno-js-nTL"
/>
<constraint
firstItem=
"JSM-eB-GI5"
firstAttribute=
"bottom"
secondItem=
"xt7-ct-Qh8"
secondAttribute=
"bottom"
id=
"wl6-SD-PtW"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"hRt-KC-Zeu"
secondAttribute=
"trailing"
constant=
"15"
id=
"xBF-Ix-oKh"
/>
<constraint
firstItem=
"hRt-KC-Zeu"
firstAttribute=
"centerY"
secondItem=
"xt7-ct-Qh8"
secondAttribute=
"centerY"
id=
"yiF-ip-F9u"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"VGg-je-wQh"
secondAttribute=
"bottom"
id=
"zxc-ko-M6t"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"count_lbl"
destination=
"xed-U0-QYD"
id=
"97U-aO-6Xc"
/>
<outlet
property=
"money_lbl"
destination=
"1i5-QO-HEu"
id=
"bLJ-jx-Jwv"
/>
<outlet
property=
"name_lbl"
destination=
"LTB-jJ-brb"
id=
"4Fs-lX-yHq"
/>
<outlet
property=
"time_lbl"
destination=
"Qdu-4Y-Gya"
id=
"2RK-XE-FJj"
/>
</connections>
<point
key=
"canvasLocation"
x=
"140.57971014492756"
y=
"84.709821428571431"
/>
</tableViewCell>
</objects>
<resources>
<image
name=
"jinru"
width=
"13"
height=
"23"
/>
<namedColor
name=
"多选按钮字体颜色"
>
<color
red=
"0.41176470588235292"
green=
"0.41176470588235292"
blue=
"0.41176470588235292"
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>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/分销员管理/FXYGL_ViewController.swift
0 → 100644
View file @
b8d42b88
//
// FXYGL_ViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/12/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
FXYGL_ViewController
:
BaseViewController
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
,
FXYGL_CellDelegate
,
ADD_FXY_ViewDelegate
,
GeliAlertViewDelegate
{
func
ADD_FXY_ViewFinish
(
name
:
String
)
{
isAdd
=
true
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
alertView
.
titileLbl
.
text
=
"是否确定新增“"
+
name
+
"”为分销员?"
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"确定"
),
for
:
.
normal
)
self
.
view
.
window
?
.
addSubview
(
alertView
)
}
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
{
if
isAdd
{
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"user_name"
:
user_name
as
Any
,
"phone"
:
phoneNum
as
Any
,
"type"
:
select_type
as
Any
]
addDistributor
(
dic
)
{
(
data
)
in
self
.
add_fxy_view
?
.
removeFromSuperview
()
self
.
add_fxy_view
=
nil
self
.
tableView
.
mj_header
?
.
beginRefreshing
()
}
failture
:
{
(
err
)
in
}
}
else
{
let
model
=
dataArr
[
sender
.
tag
]
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"user_id"
:
model
.
user_id
as
Any
,
]
stopDbtCooperation
(
dic
)
{
(
data
)
in
self
.
tableView
.
mj_header
?
.
beginRefreshing
()
}
failture
:
{
(
err
)
in
}
}
}
var
select_type
=
0
var
phoneNum
=
""
var
user_name
=
""
var
add_fxy_view
:
ADD_FXY_View
?
func
ADD_FXY_ViewTextInput
(
txt
:
String
,
type
:
Int
,
view
:
ADD_FXY_View
)
{
if
type
==
1
{
phoneNum
=
txt
if
phoneNum
.
count
==
11
{
phoneRetrievalInfo
([
"user_token"
:
UserToken
as
Any
,
"phone"
:
phoneNum
as
Any
])
{
(
data
)
in
let
model
=
data
as!
phoneRetrievalInfoModel
view
.
phoneTf
.
resignFirstResponder
()
if
model
.
data
?
.
user_name
!=
nil
{
view
.
nameTf
.
text
=
model
.
data
?
.
user_name
view
.
nameTf
.
isUserInteractionEnabled
=
false
self
.
user_name
=
(
model
.
data
?
.
user_name
)
!
}
else
{
HUD
.
flash
(
.
label
(
"请输入分销员名称"
),
delay
:
1.2
)
view
.
nameTf
.
isUserInteractionEnabled
=
true
}
}
failture
:
{
(
err
)
in
}
}
}
else
{
user_name
=
txt
}
}
func
ADD_FXY_ViewTypeSelect
(
type
:
Int
)
{
select_type
=
type
}
var
isAdd
=
true
func
FXYGL_CellCancel_Contract
(
num
:
Int
)
{
isAdd
=
false
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
let
model
=
dataArr
[
num
]
alertView
.
titileLbl
.
text
=
"是否删除“"
+
model
.
user_name
!
+
"”分销员?"
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"确定"
),
for
:
.
normal
)
alertView
.
rightBtn
.
tag
=
num
self
.
view
.
window
?
.
addSubview
(
alertView
)
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
dataArr
.
count
}
func
rightBtnClick
()
{
add_fxy_view
=
ADD_FXY_View
(
frame
:
self
.
view
.
bounds
)
add_fxy_view
!.
delegate
=
self
self
.
view
.
addSubview
(
add_fxy_view
!
)
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"FXYGL_Cell"
)
as!
FXYGL_Cell
cell
.
tag
=
indexPath
.
row
let
model
=
dataArr
[
indexPath
.
row
]
cell
.
name_lbl
.
text
=
model
.
user_name
cell
.
count_lbl
.
text
=
StringByInt
(
number
:
model
.
count_customers
!
)
cell
.
money_lbl
.
text
=
String
(
format
:
"%.02f"
,
model
.
sum_in_amount
!
)
cell
.
time_lbl
.
text
=
model
.
update_time
cell
.
delegate
=
self
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
145
}
@IBOutlet
weak
var
tableView
:
UITableView
!
@IBOutlet
weak
var
search_view
:
UIView
!
//MARK: - search
var
blackBtnView
:
UIButton
!
=
nil
@objc
func
removeBlackBtnView
(){
if
blackBtnView
!=
nil
{
blackBtnView
.
removeFromSuperview
()
searchV
!.
resignFirstResponder
()
}
}
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
print
(
"调起搜索后添加个蒙版本"
)
blackBtnView
=
UIButton
()
blackBtnView
.
backgroundColor
=
UIColor
.
init
(
named
:
"提示视图背景色"
)
self
.
view
.
addSubview
(
blackBtnView
)
blackBtnView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
search_view
!.
snp_bottom
)
make
.
left
.
right
.
bottom
.
equalToSuperview
()
}
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
blackBtnView
.
isUserInteractionEnabled
=
false
return
true
}
weak
var
searchV
:
SearchBarView
?
=
nil
var
keyword
=
""
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
searchBar
.
resignFirstResponder
()
keyword
=
searchBar
.
text
!
removeBlackBtnView
()
if
keyword
.
count
>
0
{
tableView
.
mj_header
?
.
beginRefreshing
()
}
}
//MARK:--取消搜索代理
func
clearSearchAction
()
{
print
(
"取消搜索代理了--"
)
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
removeBlackBtnView
()
if
keyword
.
count
>
0
{
keyword
=
searchBar
.
text
!
if
keyword
.
count
==
0
{
tableView
.
mj_header
?
.
beginRefreshing
()
}
}
}
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"分销员管理"
navbar
.
rightTitle
=
"新增"
self
.
view
.
addSubview
(
navbar
)
SetTopFrame
(
view
:
search_view
,
height
:
46
)
let
searchBr
=
SearchBarView
.
init
()
searchV
=
searchBr
self
.
search_view
.
addSubview
(
searchBr
)
searchV
?
.
changecornerRadius
(
cornerRadius
:
35*0.5
)
searchBr
.
placeholderStr
=
"请输入分销商名称/手机号码"
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
0
)
make
.
right
.
equalTo
(
0
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
35
)
}
tableView
.
separatorStyle
=
.
none
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
register
(
UINib
(
nibName
:
"FXYGL_Cell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"FXYGL_Cell"
)
headerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
loadData
)
)
tableView
.
mj_header
=
self
.
headerMJ
tableView
.
mj_header
?
.
beginRefreshing
()
self
.
footerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
loadMoreData
)
)
tableView
.
mj_footer
=
self
.
footerMJ
// Do any additional setup after loading the view.
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
var
page
:
Int
=
0
var
isUpData
=
false
var
dataArr
:
Array
<
dbtManageQueryDatasModel
>
=
[]
@objc
func
loadData
(){
page
=
1
isUpData
=
true
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"page"
:
page
as
Any
]
dbtManageQuery
(
dic
)
{
(
data
)
in
self
.
dataArr
.
removeAll
()
let
model
=
data
as!
dbtManageQueryModel
model
.
data
?
.
res
?
.
forEach
({
(
item
)
in
self
.
dataArr
.
append
(
item
)
})
self
.
tableView
.
reloadData
()
self
.
tableView
?
.
mj_header
?
.
endRefreshing
()
self
.
page
=
2
if
model
.
data
?
.
res
?
.
count
==
0
{
self
.
tableView
?
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
tableView
?
.
mj_footer
?
.
endRefreshing
()
}
}
failture
:
{
(
err
)
in
self
.
tableView
?
.
mj_header
?
.
endRefreshing
()
}
}
//MARK:--加载更多数据
@objc
func
loadMoreData
(){
print
(
"加载更多数据"
)
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"page"
:
page
as
Any
]
dbtManageQuery
(
dic
,
success
:
{
(
data
)
in
let
model
=
data
as!
dbtManageQueryModel
if
model
.
data
?
.
res
?
.
count
==
0
{
self
.
tableView
?
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
page
+=
1
model
.
data
?
.
res
?
.
forEach
({
(
item
)
in
self
.
dataArr
.
append
(
item
)
})
self
.
tableView
.
reloadData
()
self
.
tableView
?
.
mj_footer
?
.
endRefreshing
()
}
})
{
(
error
)
in
self
.
tableView
?
.
mj_footer
?
.
endRefreshing
()
}
}
}
GeliBusinessPlatform/ViewController/分销员管理/FXYGL_ViewController.xib
0 → 100644
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17701"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17703"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"FXYGL_ViewController"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"search_view"
destination=
"okb-zH-841"
id=
"I2X-KI-aFK"
/>
<outlet
property=
"tableView"
destination=
"Jhe-4B-bxJ"
id=
"Jkd-VM-sli"
/>
<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=
"okb-zH-841"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"46"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"46"
id=
"wj9-QF-kGl"
/>
</constraints>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Jhe-4B-bxJ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"90"
width=
"414"
height=
"806"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"jJQ-q1-7fB"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"lkv-x2-m7H"
/>
</connections>
</tableView>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"okb-zH-841"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"Ijy-OU-jKB"
/>
<constraint
firstItem=
"Jhe-4B-bxJ"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"Ta7-eb-mnw"
/>
<constraint
firstItem=
"Jhe-4B-bxJ"
firstAttribute=
"top"
secondItem=
"okb-zH-841"
secondAttribute=
"bottom"
id=
"aJm-9c-ZQf"
/>
<constraint
firstItem=
"okb-zH-841"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"c9u-Xf-nar"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"Jhe-4B-bxJ"
secondAttribute=
"trailing"
id=
"nmM-Uc-wG6"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Jhe-4B-bxJ"
secondAttribute=
"bottom"
id=
"txW-bF-WUO"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"okb-zH-841"
secondAttribute=
"trailing"
id=
"x6S-8H-1Fe"
/>
</constraints>
<point
key=
"canvasLocation"
x=
"142"
y=
"85"
/>
</view>
</objects>
<resources>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/分销收益页/FXSY_Detail_ViewController.swift
View file @
b8d42b88
...
...
@@ -84,7 +84,7 @@ class FXSY_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
navbar
.
title
=
"收益详情"
self
.
view
.
addSubview
(
navbar
)
SetTopFrame
(
view
:
top_view
,
height
:
106
)
list_view
.
isScrollEnabled
=
false
list_view
.
separatorStyle
=
.
none
list_view
.
register
(
UINib
(
nibName
:
"TitleAndLblCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndLblCell"
)
incomeDetails
([
"user_token"
:
UserToken
as
Any
,
"record_sn"
:
record_sn
as
Any
])
{
(
data
)
in
...
...
GeliBusinessPlatform/ViewController/分销收益页/FXSY_ViewController.swift
View file @
b8d42b88
...
...
@@ -16,7 +16,8 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
GLAlertSelectView
)
{
inc_exp_type
=
selectNum
getData
()
// getData()
gys_list
.
mj_header
?
.
beginRefreshing
()
view
.
removeFromSuperview
()
glSelectView
=
nil
}
...
...
@@ -39,7 +40,7 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"FXSY_Cell"
)
as!
FXSY_Cell
let
data
=
model
?
.
res
!
[
indexPath
.
row
]
if
data
!=
nil
{
...
...
@@ -68,7 +69,8 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
date_lbl
.
text
=
arr
.
first
!
+
"年"
+
arr
[
1
]
+
"月"
+
arr
.
last
!
+
"日"
}
strNowTime
=
date
getData
()
// getData()
gys_list
.
mj_header
?
.
beginRefreshing
()
}
...
...
@@ -104,35 +106,11 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
}
}
getData
()
// getData()
gys_list
.
mj_header
?
.
beginRefreshing
()
}
func
getData
(){
var
year
=
"0"
var
month
=
"0"
var
day
=
"0"
if
strNowTime
.
count
==
4
{
year
=
strNowTime
}
else
if
strNowTime
.
count
>
4
&&
strNowTime
.
count
<=
7
{
let
arr
=
strNowTime
.
components
(
separatedBy
:
"-"
)
year
=
arr
.
first
!
month
=
arr
.
last
!
}
else
{
let
arr
=
strNowTime
.
components
(
separatedBy
:
"-"
)
year
=
arr
.
first
!
month
=
arr
[
1
]
day
=
arr
.
last
!
}
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"role_type"
:
role_type
as
Any
,
"inc_exp_type"
:
inc_exp_type
as
Any
,
"keyword"
:
keyword
as
Any
,
"year"
:
year
as
Any
,
"month"
:
month
as
Any
,
"day"
:
day
as
Any
]
loadData
(
dic
:
dic
)
}
var
glSelectView
:
GLAlertSelectView
?
@IBOutlet
weak
var
right_btn
:
UIButton
!
...
...
@@ -158,34 +136,12 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
@IBOutlet
weak
var
date_lbl
:
UILabel
!
@IBOutlet
weak
var
search_view
:
UIView
!
@IBOutlet
weak
var
gys_list
:
UITableView
!
// @IBOutlet weak var fxs_list: UITableView!
// @IBOutlet weak var fxs_list: UITableView!
weak
var
searchV
:
SearchBarView
?
=
nil
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
searchBar
.
resignFirstResponder
()
keyword
=
searchBar
.
text
!
removeBlackBtnView
()
if
keyword
.
count
>
0
{
getData
()
}
}
//MARK:--取消搜索代理
func
clearSearchAction
()
{
print
(
"取消搜索代理了--"
)
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
removeBlackBtnView
()
if
keyword
.
count
>
0
{
keyword
=
searchBar
.
text
!
if
keyword
.
count
==
0
{
getData
()
}
}
}
@IBOutlet
weak
var
time_select_btn
:
UIButton
!
var
blackBtnView
:
UIButton
!
=
nil
@objc
func
removeBlackBtnView
(){
if
blackBtnView
!=
nil
{
blackBtnView
.
removeFromSuperview
()
...
...
@@ -193,8 +149,6 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
time_select_btn
.
isUserInteractionEnabled
=
true
}
}
@IBOutlet
weak
var
time_select_btn
:
UIButton
!
var
blackBtnView
:
UIButton
!
=
nil
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
print
(
"调起搜索后添加个蒙版本"
)
blackBtnView
=
UIButton
()
...
...
@@ -207,10 +161,35 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
}
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
blackBtnView
.
isUserInteractionEnabled
=
false
return
true
}
weak
var
searchV
:
SearchBarView
?
=
nil
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
searchBar
.
resignFirstResponder
()
keyword
=
searchBar
.
text
!
removeBlackBtnView
()
if
keyword
.
count
>
0
{
gys_list
.
mj_header
?
.
beginRefreshing
()
}
}
//MARK:--取消搜索代理
func
clearSearchAction
()
{
print
(
"取消搜索代理了--"
)
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
removeBlackBtnView
()
if
keyword
.
count
>
0
{
keyword
=
searchBar
.
text
!
if
keyword
.
count
==
0
{
gys_list
.
mj_header
?
.
beginRefreshing
()
}
}
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
...
...
@@ -259,23 +238,56 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
let
arr
=
getDate
()
date_lbl
.
text
=
"
\(
arr
.
first
!
)
年
\(
arr
[
1
]
)
月
\(
arr
.
last
!
)
日"
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
// loadData(dic: dic)
headerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
loadData
)
)
gys_list
.
mj_header
=
self
.
headerMJ
gys_list
.
mj_header
?
.
beginRefreshing
()
}
var
isFirstTime
=
true
var
isNonFirst
=
false
@objc
func
loadData
(){
var
dic
:
Dictionary
<
String
,
Any
>!
if
isNonFirst
{
var
year
=
"0"
var
month
=
"0"
var
day
=
"0"
if
strNowTime
.
count
==
4
{
year
=
strNowTime
}
else
if
strNowTime
.
count
>
4
&&
strNowTime
.
count
<=
7
{
let
arr
=
strNowTime
.
components
(
separatedBy
:
"-"
)
year
=
arr
.
first
!
month
=
arr
.
last
!
}
else
{
let
arr
=
strNowTime
.
components
(
separatedBy
:
"-"
)
year
=
arr
.
first
!
month
=
arr
[
1
]
day
=
arr
.
last
!
}
dic
=
[
"user_token"
:
UserToken
as
Any
,
"role_type"
:
role_type
as
Any
,
"inc_exp_type"
:
inc_exp_type
as
Any
,
"keyword"
:
keyword
as
Any
,
"year"
:
year
as
Any
,
"month"
:
month
as
Any
,
"day"
:
day
as
Any
]
}
else
{
isNonFirst
=
true
dic
=
[
"user_token"
:
UserToken
as
Any
,
"role_type"
:
""
as
Any
,
"inc_exp_type"
:
inc_exp_type
as
Any
,
"keyword"
:
keyword
as
Any
,
"year"
:
""
as
Any
,
"month"
:
""
as
Any
,
"day"
:
""
as
Any
]
loadData
(
dic
:
dic
)
}
var
isFirstTime
=
true
func
loadData
(
dic
:
Dictionary
<
String
,
Any
>
){
]
}
dbtIncomeInfo
(
dic
)
{
(
data
)
in
let
dateModel
=
data
as!
dbtIncomeInfoModel
self
.
model
=
dateModel
.
data
...
...
@@ -317,8 +329,9 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
SetTopFrame
(
view
:
self
.
top_view
,
height
:
0.00001
)
}
}
self
.
gys_list
.
mj_header
?
.
endRefreshing
()
}
failture
:
{
(
err
)
in
self
.
gys_list
.
mj_header
?
.
endRefreshing
()
}
}
}
GeliBusinessPlatform/ViewController/客户详情/KHXQ_Cell.swift
0 → 100644
View file @
b8d42b88
//
// KHXQ_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/12/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
protocol
KHXQ_CellDelegate
{
func
KHXQ_Cell_Cancel_Contract
(
num
:
Int
)
}
class
KHXQ_Cell
:
UITableViewCell
{
var
delegate
:
KHXQ_CellDelegate
?
@IBAction
func
cancel_contract_action
(
_
sender
:
UIButton
)
{
delegate
?
.
KHXQ_Cell_Cancel_Contract
(
num
:
self
.
tag
)
}
@IBOutlet
weak
var
order_time_lbl
:
UILabel
!
@IBOutlet
weak
var
orders_lbl
:
UILabel
!
@IBOutlet
weak
var
invite_time_lbl
:
UILabel
!
@IBOutlet
weak
var
invite_peron_lbl
:
UILabel
!
@IBOutlet
weak
var
name_lbl
:
UILabel
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
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/客户详情/KHXQ_Cell.xib
0 → 100644
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17701"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17703"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"KHXQ_Cell"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"188"
/>
<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=
"188"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WUQ-i3-PR4"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"290"
height=
"173"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"CG3-VQ-bXG"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"0.0"
height=
"18.5"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"2sv-iA-WQv"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"8M9-sC-ZZh"
>
<rect
key=
"frame"
x=
"233"
y=
"3"
width=
"52"
height=
"43"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"43"
id=
"0oO-Vt-xXu"
/>
<constraint
firstAttribute=
"width"
constant=
"52"
id=
"XwD-O2-oe8"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"终止合作"
>
<color
key=
"titleColor"
name=
"#F57575"
/>
</state>
<connections>
<action
selector=
"cancel_contract_action:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"JcS-8T-cRI"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"HPH-5c-brH"
>
<rect
key=
"frame"
x=
"233"
y=
"32.5"
width=
"52"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"#F57575"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"o7j-rB-Ofw"
/>
<constraint
firstAttribute=
"width"
constant=
"52"
id=
"tff-gc-etY"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ly9-9O-pxg"
>
<rect
key=
"frame"
x=
"10"
y=
"46"
width=
"270"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"CQg-hg-VB7"
/>
</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=
"xtc-pq-hEp"
>
<rect
key=
"frame"
x=
"15"
y=
"57"
width=
"52"
height=
"18.5"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"邀请时间:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Jie-Wr-hbH"
>
<rect
key=
"frame"
x=
"15"
y=
"85.5"
width=
"65"
height=
"18.5"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"65"
id=
"ejT-If-5i0"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"下单数量:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"0Ux-k8-1pr"
>
<rect
key=
"frame"
x=
"15"
y=
"114"
width=
"65"
height=
"18.5"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"最近下单时间:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"jxh-aV-r49"
>
<rect
key=
"frame"
x=
"15"
y=
"142.5"
width=
"91"
height=
"18.5"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"91"
id=
"Ba8-n1-JN8"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ovS-io-khc"
>
<rect
key=
"frame"
x=
"67"
y=
"66"
width=
"0.0"
height=
"0.0"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"多选按钮字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"0WH-C8-D2F"
>
<rect
key=
"frame"
x=
"80"
y=
"123"
width=
"0.0"
height=
"0.0"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"多选按钮字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"jXs-jN-HVf"
>
<rect
key=
"frame"
x=
"106"
y=
"151.5"
width=
"0.0"
height=
"0.0"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"多选按钮字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ojP-23-Ipu"
>
<rect
key=
"frame"
x=
"80"
y=
"94.5"
width=
"0.0"
height=
"0.0"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"多选按钮字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"jXs-jN-HVf"
firstAttribute=
"leading"
secondItem=
"jxh-aV-r49"
secondAttribute=
"trailing"
id=
"1F4-ii-SDL"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"ly9-9O-pxg"
secondAttribute=
"trailing"
constant=
"10"
id=
"6oa-t1-WCp"
/>
<constraint
firstItem=
"0Ux-k8-1pr"
firstAttribute=
"top"
secondItem=
"Jie-Wr-hbH"
secondAttribute=
"bottom"
constant=
"10"
id=
"8cu-n1-QfZ"
/>
<constraint
firstItem=
"8M9-sC-ZZh"
firstAttribute=
"centerY"
secondItem=
"CG3-VQ-bXG"
secondAttribute=
"centerY"
id=
"9uJ-Kz-MVo"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"8M9-sC-ZZh"
secondAttribute=
"trailing"
constant=
"5"
id=
"BG2-Pe-Q1d"
/>
<constraint
firstItem=
"0WH-C8-D2F"
firstAttribute=
"centerY"
secondItem=
"0Ux-k8-1pr"
secondAttribute=
"centerY"
id=
"Cj4-jK-4Y4"
/>
<constraint
firstItem=
"ly9-9O-pxg"
firstAttribute=
"top"
secondItem=
"8M9-sC-ZZh"
secondAttribute=
"bottom"
id=
"E3A-Nz-NaD"
/>
<constraint
firstItem=
"CG3-VQ-bXG"
firstAttribute=
"leading"
secondItem=
"WUQ-i3-PR4"
secondAttribute=
"leading"
constant=
"15"
id=
"EhU-k1-EFI"
/>
<constraint
firstItem=
"ly9-9O-pxg"
firstAttribute=
"leading"
secondItem=
"WUQ-i3-PR4"
secondAttribute=
"leading"
constant=
"10"
id=
"Fk6-ss-hW9"
/>
<constraint
firstItem=
"0Ux-k8-1pr"
firstAttribute=
"leading"
secondItem=
"Jie-Wr-hbH"
secondAttribute=
"leading"
id=
"H9B-1g-IQP"
/>
<constraint
firstItem=
"Jie-Wr-hbH"
firstAttribute=
"top"
secondItem=
"xtc-pq-hEp"
secondAttribute=
"bottom"
constant=
"10"
id=
"J2s-fh-B3Y"
/>
<constraint
firstItem=
"HPH-5c-brH"
firstAttribute=
"bottom"
secondItem=
"CG3-VQ-bXG"
secondAttribute=
"bottom"
id=
"Jry-hF-qCa"
/>
<constraint
firstItem=
"ojP-23-Ipu"
firstAttribute=
"leading"
secondItem=
"Jie-Wr-hbH"
secondAttribute=
"trailing"
id=
"LFc-Wy-lEZ"
/>
<constraint
firstItem=
"jXs-jN-HVf"
firstAttribute=
"centerY"
secondItem=
"jxh-aV-r49"
secondAttribute=
"centerY"
id=
"LLn-d6-W2p"
/>
<constraint
firstItem=
"Jie-Wr-hbH"
firstAttribute=
"leading"
secondItem=
"xtc-pq-hEp"
secondAttribute=
"leading"
id=
"Scm-HR-1Kh"
/>
<constraint
firstItem=
"ovS-io-khc"
firstAttribute=
"leading"
secondItem=
"xtc-pq-hEp"
secondAttribute=
"trailing"
id=
"Sg8-Ni-i7D"
/>
<constraint
firstItem=
"ovS-io-khc"
firstAttribute=
"centerY"
secondItem=
"xtc-pq-hEp"
secondAttribute=
"centerY"
id=
"Vsy-kN-U2v"
/>
<constraint
firstItem=
"xtc-pq-hEp"
firstAttribute=
"leading"
secondItem=
"WUQ-i3-PR4"
secondAttribute=
"leading"
constant=
"15"
id=
"WYg-34-7ne"
/>
<constraint
firstItem=
"ojP-23-Ipu"
firstAttribute=
"centerY"
secondItem=
"Jie-Wr-hbH"
secondAttribute=
"centerY"
id=
"YSm-nv-1fr"
/>
<constraint
firstItem=
"HPH-5c-brH"
firstAttribute=
"centerX"
secondItem=
"8M9-sC-ZZh"
secondAttribute=
"centerX"
id=
"ZdX-qE-QAd"
/>
<constraint
firstItem=
"CG3-VQ-bXG"
firstAttribute=
"top"
secondItem=
"WUQ-i3-PR4"
secondAttribute=
"top"
constant=
"15"
id=
"hAh-Dx-qp2"
/>
<constraint
firstItem=
"jxh-aV-r49"
firstAttribute=
"leading"
secondItem=
"0Ux-k8-1pr"
secondAttribute=
"leading"
id=
"hbS-ni-fKz"
/>
<constraint
firstItem=
"jxh-aV-r49"
firstAttribute=
"top"
secondItem=
"0Ux-k8-1pr"
secondAttribute=
"bottom"
constant=
"10"
id=
"l30-o1-67f"
/>
<constraint
firstItem=
"0WH-C8-D2F"
firstAttribute=
"leading"
secondItem=
"Jie-Wr-hbH"
secondAttribute=
"trailing"
id=
"p6Q-2B-bn2"
/>
<constraint
firstItem=
"xtc-pq-hEp"
firstAttribute=
"top"
secondItem=
"ly9-9O-pxg"
secondAttribute=
"bottom"
constant=
"10"
id=
"xOq-hG-GxM"
/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"10"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"WUQ-i3-PR4"
secondAttribute=
"trailing"
constant=
"15"
id=
"7M0-L8-n8u"
/>
<constraint
firstItem=
"WUQ-i3-PR4"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"Gmm-t0-kdb"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"WUQ-i3-PR4"
secondAttribute=
"bottom"
id=
"cYE-8j-Xn7"
/>
<constraint
firstItem=
"WUQ-i3-PR4"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"esv-Ah-nwd"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<connections>
<outlet
property=
"invite_peron_lbl"
destination=
"ovS-io-khc"
id=
"weE-G1-tct"
/>
<outlet
property=
"invite_time_lbl"
destination=
"ojP-23-Ipu"
id=
"Xg2-21-XfK"
/>
<outlet
property=
"name_lbl"
destination=
"CG3-VQ-bXG"
id=
"vn1-Ho-Jce"
/>
<outlet
property=
"order_time_lbl"
destination=
"jXs-jN-HVf"
id=
"gLm-Qr-TG0"
/>
<outlet
property=
"orders_lbl"
destination=
"0WH-C8-D2F"
id=
"Gjh-el-7Nk"
/>
</connections>
<point
key=
"canvasLocation"
x=
"142"
y=
"83"
/>
</tableViewCell>
</objects>
<resources>
<namedColor
name=
"#F57575"
>
<color
red=
"0.96100002527236938"
green=
"0.45899999141693115"
blue=
"0.45899999141693115"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"多选按钮字体颜色"
>
<color
red=
"0.41176470588235292"
green=
"0.41176470588235292"
blue=
"0.41176470588235292"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/客户详情/KHXQ_ViewController.swift
0 → 100644
View file @
b8d42b88
//
// KHXQ_ViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/12/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
KHXQ_ViewController
:
BaseViewController
,
TimeShowDownViewDeleagte
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
,
KHXQ_CellDelegate
,
GeliAlertViewDelegate
{
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
{
let
model
=
dataArr
[
sender
.
tag
]
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"user_id"
:
model
.
user_id
as
Any
,
"type_id"
:
model
.
type_id
as
Any
]
deleteDbtCustomer
(
dic
)
{
(
data
)
in
HUD
.
flash
(
.
label
(
"客户删除成功"
),
delay
:
1.2
)
self
.
tableView
.
mj_header
?
.
beginRefreshing
()
}
failture
:
{
(
err
)
in
}
}
func
KHXQ_Cell_Cancel_Contract
(
num
:
Int
)
{
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
let
model
=
dataArr
[
num
]
alertView
.
titileLbl
.
text
=
"是否确定删除该“"
+
model
.
customer_name
!
+
"”客户,删除后该客户信息无法找回。"
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"确定"
),
for
:
.
normal
)
alertView
.
rightBtn
.
tag
=
num
self
.
view
.
window
?
.
addSubview
(
alertView
)
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
dataArr
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"KHXQ_Cell"
)
as!
KHXQ_Cell
cell
.
tag
=
indexPath
.
row
let
model
=
dataArr
[
indexPath
.
row
]
cell
.
name_lbl
.
text
=
model
.
customer_name
cell
.
invite_peron_lbl
.
text
=
model
.
distributor_name
cell
.
invite_time_lbl
.
text
=
model
.
create_time
if
model
.
order_number
!=
nil
&&
model
.
sum_order_money
!=
nil
{
cell
.
orders_lbl
.
text
=
model
.
order_number
!
+
"(累计成交金额"
+
model
.
sum_order_money
!
+
"元)"
}
cell
.
order_time_lbl
.
text
=
model
.
latest_order_time
cell
.
delegate
=
self
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
188
}
//MARK: - time select
func
TimeShowDownViewSelectMoreDate
(
beginDate
:
Date
?,
endginDate
:
Date
?)
{
if
beginDate
==
nil
{
startTime
=
0
endTime
=
0
}
else
{
let
timeInterval
:
TimeInterval
=
beginDate
!.
timeIntervalSince1970
let
timeIntervalEnd
:
TimeInterval
=
endginDate
!.
timeIntervalSince1970
startTime
=
Int
(
timeInterval
)
endTime
=
Int
(
timeIntervalEnd
)
}
//刷新
tableView
.
mj_header
?
.
beginRefreshing
()
}
func
TimeShowDownViewRemoveForSup
()
{
}
weak
var
timeShowDView
:
TimeShowDownView
!
=
nil
var
startTime
:
Int
?
=
0
var
endTime
:
Int
?
=
0
//MARK: - search
var
blackBtnView
:
UIButton
!
=
nil
@objc
func
removeBlackBtnView
(){
if
blackBtnView
!=
nil
{
blackBtnView
.
removeFromSuperview
()
searchV
!.
resignFirstResponder
()
}
}
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
print
(
"调起搜索后添加个蒙版本"
)
if
timeShowDView
!=
nil
{
timeShowDView
.
removeFromSuperview
()
}
blackBtnView
=
UIButton
()
blackBtnView
.
backgroundColor
=
UIColor
.
init
(
named
:
"提示视图背景色"
)
self
.
view
.
addSubview
(
blackBtnView
)
blackBtnView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
search_view
!.
snp_bottom
)
make
.
left
.
right
.
bottom
.
equalToSuperview
()
}
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
blackBtnView
.
isUserInteractionEnabled
=
false
return
true
}
weak
var
searchV
:
SearchBarView
?
=
nil
var
keyword
=
""
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
searchBar
.
resignFirstResponder
()
keyword
=
searchBar
.
text
!
removeBlackBtnView
()
if
keyword
.
count
>
0
{
tableView
.
mj_header
?
.
beginRefreshing
()
}
}
//MARK:--取消搜索代理
func
clearSearchAction
()
{
print
(
"取消搜索代理了--"
)
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
removeBlackBtnView
()
if
keyword
.
count
>
0
{
keyword
=
searchBar
.
text
!
if
keyword
.
count
==
0
{
tableView
.
mj_header
?
.
beginRefreshing
()
}
}
}
@IBOutlet
weak
var
tableView
:
UITableView
!
@IBOutlet
weak
var
top_view
:
UIView
!
@IBAction
func
date_select_action
(
_
sender
:
Any
)
{
removeBlackBtnView
()
let
timeShowDownView
=
TimeShowDownView
()
self
.
view
.
addSubview
(
timeShowDownView
)
timeShowDownView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
top_view
.
snp_bottom
)
}
timeShowDView
=
timeShowDownView
timeShowDownView
.
delegate
=
self
if
startTime
!=
0
{
var
time
=
TimeInterval
(
exactly
:
startTime
!
)
timeShowDownView
.
BeginDate
=
Date
(
timeIntervalSince1970
:
time
!
)
time
=
TimeInterval
(
exactly
:
endTime
!
)
timeShowDownView
.
EndDate
=
Date
(
timeIntervalSince1970
:
time
!
)
timeShowDownView
.
setOld
()
}
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
@IBOutlet
weak
var
search_view
:
UIView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"客户详情"
self
.
view
.
addSubview
(
navbar
)
SetTopFrame
(
view
:
top_view
,
height
:
46
)
// Do any additional setup after loading the view.
let
searchBr
=
SearchBarView
.
init
()
searchV
=
searchBr
self
.
search_view
.
addSubview
(
searchBr
)
searchV
?
.
changecornerRadius
(
cornerRadius
:
35*0.5
)
searchBr
.
placeholderStr
=
"请输入分销员名称/客户名称/手机号码"
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
0
)
make
.
right
.
equalTo
(
0
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
35
)
}
tableView
.
separatorStyle
=
.
none
tableView
.
showsVerticalScrollIndicator
=
false
headerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
loadData
)
)
tableView
.
mj_header
=
self
.
headerMJ
tableView
.
mj_header
?
.
beginRefreshing
()
self
.
footerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
loadMoreData
)
)
tableView
.
mj_footer
=
self
.
footerMJ
tableView
.
register
(
UINib
(
nibName
:
"KHXQ_Cell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"KHXQ_Cell"
)
}
var
page
:
Int
=
0
var
isUpData
=
false
var
dataArr
:
Array
<
dbtCustomerInfoDataModel
>
=
[]
@objc
func
loadData
(){
page
=
1
isUpData
=
true
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"start_time"
:
startTime
as
Any
,
"end_time"
:
endTime
as
Any
,
"page"
:
page
as
Any
]
dbtCustomerInfo
(
dic
)
{
(
data
)
in
self
.
dataArr
.
removeAll
()
let
model
=
data
as!
dbtCustomerInfoModel
model
.
data
?
.
forEach
({
(
item
)
in
self
.
dataArr
.
append
(
item
)
})
self
.
tableView
.
reloadData
()
self
.
tableView
?
.
mj_header
?
.
endRefreshing
()
self
.
page
=
2
if
model
.
data
?
.
count
==
0
{
self
.
tableView
?
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
tableView
?
.
mj_footer
?
.
endRefreshing
()
}
}
failture
:
{
(
err
)
in
self
.
tableView
?
.
mj_header
?
.
endRefreshing
()
}
}
//MARK:--加载更多数据
@objc
func
loadMoreData
(){
print
(
"加载更多数据"
)
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"start_time"
:
startTime
as
Any
,
"end_time"
:
endTime
as
Any
,
"page"
:
page
as
Any
]
dbtCustomerInfo
(
dic
,
success
:
{
(
data
)
in
let
model
=
data
as!
dbtCustomerInfoModel
if
model
.
data
?
.
count
==
0
{
self
.
tableView
?
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
page
+=
1
model
.
data
?
.
forEach
({
(
item
)
in
self
.
dataArr
.
append
(
item
)
})
self
.
tableView
.
reloadData
()
self
.
tableView
?
.
mj_footer
?
.
endRefreshing
()
}
})
{
(
error
)
in
self
.
tableView
?
.
mj_footer
?
.
endRefreshing
()
}
}
}
GeliBusinessPlatform/ViewController/客户详情/KHXQ_ViewController.xib
0 → 100644
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17701"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17703"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"KHXQ_ViewController"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"search_view"
destination=
"Kvv-pv-Bgx"
id=
"TSb-dj-r1S"
/>
<outlet
property=
"tableView"
destination=
"fBD-oN-C0s"
id=
"AFa-1G-0Vz"
/>
<outlet
property=
"top_view"
destination=
"p3w-Ks-hIC"
id=
"ep3-cW-z5z"
/>
<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=
"p3w-Ks-hIC"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"46"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"icon_rili"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tbr-cp-Ra9"
>
<rect
key=
"frame"
x=
"379"
y=
"13.5"
width=
"20"
height=
"19"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"20"
id=
"XaQ-Yw-nRl"
/>
<constraint
firstAttribute=
"height"
constant=
"19"
id=
"hn8-Ie-QaN"
/>
</constraints>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"sba-tO-C5x"
>
<rect
key=
"frame"
x=
"362"
y=
"0.0"
width=
"52"
height=
"46"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"52"
id=
"2qp-ks-2ec"
/>
</constraints>
<connections>
<action
selector=
"date_select_action:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"FnO-Xg-ksU"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Kvv-pv-Bgx"
>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"347"
height=
"46"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
</view>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"46"
id=
"2pN-vf-QXp"
/>
<constraint
firstItem=
"tbr-cp-Ra9"
firstAttribute=
"centerY"
secondItem=
"p3w-Ks-hIC"
secondAttribute=
"centerY"
id=
"4gI-JZ-pnu"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"tbr-cp-Ra9"
secondAttribute=
"trailing"
constant=
"15"
id=
"5QZ-jS-PyJ"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Kvv-pv-Bgx"
secondAttribute=
"bottom"
id=
"Ddz-C6-0dG"
/>
<constraint
firstItem=
"sba-tO-C5x"
firstAttribute=
"top"
secondItem=
"p3w-Ks-hIC"
secondAttribute=
"top"
id=
"KQP-wA-diV"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"sba-tO-C5x"
secondAttribute=
"bottom"
id=
"MaY-eg-UV4"
/>
<constraint
firstItem=
"Kvv-pv-Bgx"
firstAttribute=
"leading"
secondItem=
"p3w-Ks-hIC"
secondAttribute=
"leading"
constant=
"15"
id=
"XwI-te-cKf"
/>
<constraint
firstItem=
"sba-tO-C5x"
firstAttribute=
"leading"
secondItem=
"Kvv-pv-Bgx"
secondAttribute=
"trailing"
id=
"ndh-Jq-JYw"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"sba-tO-C5x"
secondAttribute=
"trailing"
id=
"r3Q-RS-x75"
/>
<constraint
firstItem=
"Kvv-pv-Bgx"
firstAttribute=
"top"
secondItem=
"p3w-Ks-hIC"
secondAttribute=
"top"
id=
"ycd-Ui-KDH"
/>
</constraints>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"fBD-oN-C0s"
>
<rect
key=
"frame"
x=
"0.0"
y=
"90"
width=
"414"
height=
"806"
/>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<color
key=
"sectionIndexBackgroundColor"
name=
"app底色"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"vNd-0D-Bg1"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"SUu-oX-R4J"
/>
</connections>
</tableView>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"p3w-Ks-hIC"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"Kir-Vu-IVk"
/>
<constraint
firstItem=
"p3w-Ks-hIC"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"dx2-qd-5eh"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"p3w-Ks-hIC"
secondAttribute=
"trailing"
id=
"eSZ-NG-2Dj"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"fBD-oN-C0s"
secondAttribute=
"bottom"
id=
"odk-rY-O3D"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"fBD-oN-C0s"
secondAttribute=
"trailing"
id=
"pGY-Tp-SGe"
/>
<constraint
firstItem=
"fBD-oN-C0s"
firstAttribute=
"top"
secondItem=
"p3w-Ks-hIC"
secondAttribute=
"bottom"
id=
"sRq-EU-bNN"
/>
<constraint
firstItem=
"fBD-oN-C0s"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"ylb-d4-edL"
/>
</constraints>
<point
key=
"canvasLocation"
x=
"141"
y=
"83"
/>
</view>
</objects>
<resources>
<image
name=
"icon_rili"
width=
"20"
height=
"19"
/>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
b8d42b88
...
...
@@ -632,13 +632,19 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
139
:
//分销员管理
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
let
vc
=
FXYGL_ViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
case
140
:
//待审核分销员管理
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
let
vc
=
DSHFXY_ViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
case
141
:
//分销客户管理
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
let
vc
=
KHXQ_ViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
case
142
:
//分销收益管理
let
vc
=
FXSY_ViewController
()
...
...
GeliBusinessPlatform/ViewController/待审核分销员/DSHFXY_Cell.swift
0 → 100644
View file @
b8d42b88
//
// DSHFXY_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/12/29.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
protocol
DSHFXY_CellDelegate
{
func
DSHFXY_Cell_Choice
(
num
:
Int
,
cell
:
DSHFXY_Cell
)
}
class
DSHFXY_Cell
:
UITableViewCell
{
var
delegate
:
DSHFXY_CellDelegate
?
@IBAction
func
cellAction
(
_
sender
:
UIButton
)
{
delegate
?
.
DSHFXY_Cell_Choice
(
num
:
sender
.
tag
,
cell
:
self
)
}
@IBOutlet
weak
var
way_lbl
:
UILabel
!
@IBOutlet
weak
var
time_lbl
:
UILabel
!
@IBOutlet
weak
var
name_lbl
:
UILabel
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
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/待审核分销员/DSHFXY_Cell.xib
0 → 100644
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17701"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17703"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"KGk-i7-Jjw"
customClass=
"DSHFXY_Cell"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"176"
/>
<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=
"176"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vbo-ra-lK1"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"290"
height=
"161"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"kehu"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XTT-9N-8Hz"
>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"15"
height=
"17"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"17"
id=
"5bS-Ql-KMW"
/>
<constraint
firstAttribute=
"width"
constant=
"15"
id=
"940-t2-JD5"
/>
</constraints>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"sSO-iZ-15g"
>
<rect
key=
"frame"
x=
"40"
y=
"23.5"
width=
"0.0"
height=
"0.0"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ac4-7n-qnV"
>
<rect
key=
"frame"
x=
"10"
y=
"42"
width=
"270"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"yxg-oa-iPp"
/>
</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=
"wdg-qV-Q32"
>
<rect
key=
"frame"
x=
"15"
y=
"53"
width=
"65"
height=
"18.5"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"IzO-wG-qNb"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"申请途径:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bEz-UQ-Ssf"
>
<rect
key=
"frame"
x=
"15"
y=
"81.5"
width=
"65"
height=
"18.5"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"NmW-AL-F9J"
>
<rect
key=
"frame"
x=
"0.0"
y=
"111"
width=
"290"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"8JG-zE-F1x"
/>
</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=
"iFj-hl-97T"
>
<rect
key=
"frame"
x=
"80"
y=
"62.5"
width=
"0.0"
height=
"0.0"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"多选按钮字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ROS-Fs-rpS"
>
<rect
key=
"frame"
x=
"80"
y=
"91"
width=
"0.0"
height=
"0.0"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"多选按钮字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ao2-nJ-41J"
>
<rect
key=
"frame"
x=
"0.0"
y=
"112"
width=
"145"
height=
"49"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"不通过"
>
<color
key=
"titleColor"
name=
"多选按钮字体颜色"
/>
</state>
<connections>
<action
selector=
"cellAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"hP9-Bu-zRq"
/>
</connections>
</button>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"dpm-YA-lkq"
>
<rect
key=
"frame"
x=
"145"
y=
"112"
width=
"145"
height=
"49"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Medium"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
"通过"
>
<color
key=
"titleColor"
name=
"按钮渐变色下,字体颜色"
/>
</state>
<connections>
<action
selector=
"cellAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"Qyk-Ar-EZi"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wko-us-a9c"
>
<rect
key=
"frame"
x=
"144.5"
y=
"112"
width=
"1"
height=
"49"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"1"
id=
"rLP-xB-Ujg"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"wdg-qV-Q32"
firstAttribute=
"top"
secondItem=
"ac4-7n-qnV"
secondAttribute=
"bottom"
constant=
"10"
id=
"9Af-5p-wsg"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"ao2-nJ-41J"
secondAttribute=
"bottom"
id=
"BNf-C1-y6H"
/>
<constraint
firstItem=
"ac4-7n-qnV"
firstAttribute=
"leading"
secondItem=
"vbo-ra-lK1"
secondAttribute=
"leading"
constant=
"10"
id=
"Cz8-BY-iZs"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"dpm-YA-lkq"
secondAttribute=
"trailing"
id=
"DTq-nM-wCC"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"NmW-AL-F9J"
secondAttribute=
"trailing"
id=
"EQW-Vz-WoX"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"wko-us-a9c"
secondAttribute=
"bottom"
id=
"Hdd-3P-uug"
/>
<constraint
firstItem=
"bEz-UQ-Ssf"
firstAttribute=
"top"
secondItem=
"wdg-qV-Q32"
secondAttribute=
"bottom"
constant=
"10"
id=
"KGL-Ya-air"
/>
<constraint
firstItem=
"wko-us-a9c"
firstAttribute=
"top"
secondItem=
"NmW-AL-F9J"
secondAttribute=
"bottom"
id=
"LAp-ha-WY3"
/>
<constraint
firstItem=
"ac4-7n-qnV"
firstAttribute=
"top"
secondItem=
"XTT-9N-8Hz"
secondAttribute=
"bottom"
constant=
"10"
id=
"Mq9-6X-sLB"
/>
<constraint
firstItem=
"sSO-iZ-15g"
firstAttribute=
"leading"
secondItem=
"XTT-9N-8Hz"
secondAttribute=
"trailing"
constant=
"10"
id=
"Pgv-ur-5he"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"ac4-7n-qnV"
secondAttribute=
"trailing"
constant=
"10"
id=
"Tbb-D2-wmm"
/>
<constraint
firstItem=
"bEz-UQ-Ssf"
firstAttribute=
"leading"
secondItem=
"wdg-qV-Q32"
secondAttribute=
"leading"
id=
"VYI-Vt-Faq"
/>
<constraint
firstItem=
"iFj-hl-97T"
firstAttribute=
"centerY"
secondItem=
"wdg-qV-Q32"
secondAttribute=
"centerY"
id=
"WVo-ZA-8XK"
/>
<constraint
firstItem=
"dpm-YA-lkq"
firstAttribute=
"top"
secondItem=
"NmW-AL-F9J"
secondAttribute=
"bottom"
id=
"YjQ-S6-HSD"
/>
<constraint
firstItem=
"sSO-iZ-15g"
firstAttribute=
"centerY"
secondItem=
"XTT-9N-8Hz"
secondAttribute=
"centerY"
id=
"aGN-ZX-EHe"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"dpm-YA-lkq"
secondAttribute=
"bottom"
id=
"ax5-aW-ZCz"
/>
<constraint
firstItem=
"ao2-nJ-41J"
firstAttribute=
"top"
secondItem=
"NmW-AL-F9J"
secondAttribute=
"bottom"
id=
"b6f-ys-qKF"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"NmW-AL-F9J"
secondAttribute=
"bottom"
constant=
"49"
id=
"ccI-vp-NIr"
/>
<constraint
firstItem=
"XTT-9N-8Hz"
firstAttribute=
"leading"
secondItem=
"vbo-ra-lK1"
secondAttribute=
"leading"
constant=
"15"
id=
"cet-RD-93r"
/>
<constraint
firstItem=
"XTT-9N-8Hz"
firstAttribute=
"top"
secondItem=
"vbo-ra-lK1"
secondAttribute=
"top"
constant=
"15"
id=
"jX5-iq-d6h"
/>
<constraint
firstItem=
"dpm-YA-lkq"
firstAttribute=
"leading"
secondItem=
"ao2-nJ-41J"
secondAttribute=
"trailing"
id=
"n4R-LZ-rRG"
/>
<constraint
firstItem=
"NmW-AL-F9J"
firstAttribute=
"leading"
secondItem=
"vbo-ra-lK1"
secondAttribute=
"leading"
id=
"naT-yh-4MV"
/>
<constraint
firstItem=
"ROS-Fs-rpS"
firstAttribute=
"centerY"
secondItem=
"bEz-UQ-Ssf"
secondAttribute=
"centerY"
id=
"q2b-gM-6Ha"
/>
<constraint
firstItem=
"wko-us-a9c"
firstAttribute=
"centerX"
secondItem=
"vbo-ra-lK1"
secondAttribute=
"centerX"
id=
"s3q-cH-FEe"
/>
<constraint
firstItem=
"ao2-nJ-41J"
firstAttribute=
"leading"
secondItem=
"vbo-ra-lK1"
secondAttribute=
"leading"
id=
"uGS-d9-JFb"
/>
<constraint
firstItem=
"ROS-Fs-rpS"
firstAttribute=
"leading"
secondItem=
"bEz-UQ-Ssf"
secondAttribute=
"trailing"
id=
"vWG-Te-naA"
/>
<constraint
firstItem=
"dpm-YA-lkq"
firstAttribute=
"width"
secondItem=
"ao2-nJ-41J"
secondAttribute=
"width"
id=
"xTG-PT-B4g"
/>
<constraint
firstItem=
"iFj-hl-97T"
firstAttribute=
"leading"
secondItem=
"wdg-qV-Q32"
secondAttribute=
"trailing"
id=
"xVZ-SY-XA0"
/>
<constraint
firstItem=
"wdg-qV-Q32"
firstAttribute=
"leading"
secondItem=
"vbo-ra-lK1"
secondAttribute=
"leading"
constant=
"15"
id=
"xgZ-si-Mou"
/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"10"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color
key=
"backgroundColor"
name=
"app底色"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"vbo-ra-lK1"
secondAttribute=
"trailing"
constant=
"15"
id=
"Cwx-UI-SCB"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"vbo-ra-lK1"
secondAttribute=
"bottom"
id=
"VGU-pp-edK"
/>
<constraint
firstItem=
"vbo-ra-lK1"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"Yrn-jA-TpU"
/>
<constraint
firstItem=
"vbo-ra-lK1"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"hLp-00-hbM"
/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"name_lbl"
destination=
"sSO-iZ-15g"
id=
"7DA-Xg-IYk"
/>
<outlet
property=
"time_lbl"
destination=
"iFj-hl-97T"
id=
"DAE-Je-Rc1"
/>
<outlet
property=
"way_lbl"
destination=
"ROS-Fs-rpS"
id=
"tyq-wW-5N6"
/>
</connections>
<point
key=
"canvasLocation"
x=
"140.57971014492756"
y=
"75"
/>
</tableViewCell>
</objects>
<resources>
<image
name=
"kehu"
width=
"17"
height=
"18.5"
/>
<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.41176470588235292"
green=
"0.41176470588235292"
blue=
"0.41176470588235292"
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>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/待审核分销员/DSHFXY_ViewController.swift
0 → 100644
View file @
b8d42b88
//
// DSHFXY_ViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/12/29.
// Copyright © 2020 junye lu. All rights reserved.
//
import
UIKit
class
DSHFXY_ViewController
:
BaseViewController
,
HeaderSelectViewDelegate
,
TimeShowDownViewDeleagte
,
SelectContentViewDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
,
DSHFXY_CellDelegate
,
GeliAlertViewDelegate
{
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
{
let
model
=
dataArr
[
sender
.
tag
]
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"action"
:
action
as
Any
,
"user_id"
:
model
.
user_id
as
Any
,
"type"
:
model
.
type
as
Any
]
examineOperation
(
dic
)
{
(
data
)
in
if
self
.
action
==
1
{
HUD
.
flash
(
.
label
(
"成功通过审核"
),
delay
:
1.2
)
}
else
{
HUD
.
flash
(
.
label
(
"已拒绝通过审核"
),
delay
:
1.2
)
}
self
.
tableView
.
mj_header
?
.
beginRefreshing
()
}
failture
:
{
(
err
)
in
}
}
var
action
=
0
func
DSHFXY_Cell_Choice
(
num
:
Int
,
cell
:
DSHFXY_Cell
)
{
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
""
if
num
==
1
{
alertView
.
titileLbl
.
text
=
"确定通过审核?"
action
=
1
}
else
{
alertView
.
titileLbl
.
text
=
"确定不通过审核?"
action
=
2
}
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"确定"
),
for
:
.
normal
)
alertView
.
rightBtn
.
tag
=
cell
.
tag
self
.
view
.
window
?
.
addSubview
(
alertView
)
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
176
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
dataArr
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DSHFXY_Cell"
)
as!
DSHFXY_Cell
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
let
model
=
dataArr
[
indexPath
.
row
]
cell
.
name_lbl
.
text
=
model
.
user_name
cell
.
time_lbl
.
text
=
model
.
create_time
switch
model
.
from
{
case
1
:
cell
.
way_lbl
.
text
=
"小程序"
break
case
2
:
cell
.
way_lbl
.
text
=
"格利食品网"
break
default
:
break
}
return
cell
}
func
didselectCell
(
sender
:
Int
)
{
selectIndexArr
[
showSelectvIndex
]
=
sender
var
arr
:[
String
]
=
[]
if
showSelectvIndex
==
1
{
let
arr2
=
[
"小程序"
,
"格利食品网"
]
arr
.
append
(
arr2
[
sender
])
from
=
sender
+
1
}
selectV
.
colseBytitleArr
(
arr
:
arr
,
index
:
showSelectvIndex
)
tableView
.
mj_header
?
.
beginRefreshing
()
}
func
selectContentvRemoveForSup
()
{
selectV
.
colseBytitleArr
(
arr
:
[],
index
:
showSelectvIndex
)
}
@IBOutlet
weak
var
search_view
:
UIView
!
var
blackBtnView
:
UIButton
!
=
nil
@objc
func
removeBlackBtnView
(){
if
blackBtnView
!=
nil
{
blackBtnView
.
removeFromSuperview
()
searchV
!.
resignFirstResponder
()
}
}
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
print
(
"调起搜索后添加个蒙版本"
)
if
showSelectV
!=
nil
{
showSelectV
.
removeFromSuperview
()
selectV
.
colseBytitleArr
(
arr
:
[],
index
:
showSelectvIndex
)
}
if
timeShowDView
!=
nil
{
timeShowDView
.
removeFromSuperview
()
selectV
.
colseBytitleArr
(
arr
:
[],
index
:
showSelectvIndex
)
}
blackBtnView
=
UIButton
()
blackBtnView
.
backgroundColor
=
UIColor
.
init
(
named
:
"提示视图背景色"
)
self
.
view
.
addSubview
(
blackBtnView
)
blackBtnView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
search_view
!.
snp_bottom
)
make
.
left
.
right
.
bottom
.
equalToSuperview
()
}
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
blackBtnView
.
isUserInteractionEnabled
=
false
return
true
}
weak
var
searchV
:
SearchBarView
?
=
nil
var
keyword
=
""
func
searchBarSearchButtonClicked
(
_
searchBar
:
UISearchBar
)
{
print
(
"点击搜索进行--"
)
searchBar
.
resignFirstResponder
()
keyword
=
searchBar
.
text
!
removeBlackBtnView
()
if
keyword
.
count
>
0
{
// getData()
tableView
.
mj_header
?
.
beginRefreshing
()
}
}
//MARK:--取消搜索代理
func
clearSearchAction
()
{
print
(
"取消搜索代理了--"
)
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
print
(
"编辑即将结束了--"
)
removeBlackBtnView
()
if
keyword
.
count
>
0
{
keyword
=
searchBar
.
text
!
if
keyword
.
count
==
0
{
tableView
.
mj_header
?
.
beginRefreshing
()
}
}
}
var
from
=
4
let
tableView
=
UITableView
()
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
navbar
.
title
=
"待审核分销员"
self
.
view
.
addSubview
(
navbar
)
SetTopFrame
(
view
:
search_view
,
height
:
46
)
initHeaderSelectView
()
let
searchBr
=
SearchBarView
.
init
()
searchV
=
searchBr
self
.
search_view
.
addSubview
(
searchBr
)
searchV
?
.
changecornerRadius
(
cornerRadius
:
35*0.5
)
searchBr
.
placeholderStr
=
"请输入分销员名称/客户名称/手机号码"
searchBr
.
delegate
=
self
searchBr
.
delegateL
=
self
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
equalTo
(
0
)
make
.
right
.
equalTo
(
0
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
35
)
}
tableView
.
separatorStyle
=
.
none
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
register
(
UINib
(
nibName
:
"DSHFXY_Cell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"DSHFXY_Cell"
)
tableView
.
backgroundColor
=
UIColor
(
named
:
"app底色"
)
headerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
loadData
)
)
self
.
tableView
.
mj_header
=
self
.
headerMJ
self
.
tableView
.
mj_header
?
.
beginRefreshing
()
self
.
view
.
addSubview
(
tableView
)
tableView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
equalTo
(
changeBgView
.
snp_bottom
)
make
.
left
.
right
.
bottom
.
equalTo
(
0
)
}
tableView
.
mj_header
?
.
beginRefreshing
()
}
var
dataArr
:
Array
<
examineDbtInfoDataModel
>
=
[]
@objc
func
loadData
(){
dataArr
.
removeAll
()
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"start_time"
:
startTime
as
Any
,
"end_time"
:
endTime
as
Any
,
"from"
:
from
as
Any
]
examineDbtInfo
(
dic
)
{
(
data
)
in
let
model
=
data
as!
examineDbtInfoModel
model
.
data
?
.
forEach
({
(
item
)
in
self
.
dataArr
.
append
(
item
)
})
self
.
tableView
.
reloadData
()
self
.
tableView
.
mj_header
?
.
endRefreshing
()
}
failture
:
{
(
err
)
in
self
.
tableView
.
mj_header
?
.
endRefreshing
()
}
}
//MARK:--HeaderSelectView
let
changeBgView
=
UIView
()
weak
var
selectV
:
HeaderSelectView
!
=
nil
var
showSelectvIndex
=
0
var
selectIndexArr
=
[
0
,
0
,
0
]
weak
var
showSelectV
:
SelectContentView
!
=
nil
weak
var
timeShowDView
:
TimeShowDownView
!
=
nil
var
startTime
:
Int
?
=
0
var
endTime
:
Int
?
=
0
func
initHeaderSelectView
()
{
self
.
view
.
addSubview
(
changeBgView
)
changeBgView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
right
.
equalToSuperview
()
make
.
top
.
equalTo
(
search_view
.
snp_bottom
)
make
.
height
.
equalTo
(
45
)
}
let
selectView
=
HeaderSelectView
()
selectView
.
firstBtn
.
setTitle
(
"申请时间"
,
for
:
.
normal
)
selectView
.
secBtn
.
setTitle
(
"申请途径"
,
for
:
.
normal
)
selectView
.
thereBtn
.
removeFromSuperview
()
selectView
.
firstBtn
.
snp_makeConstraints
{
(
make
)
in
make
.
left
.
top
.
bottom
.
equalTo
(
0
)
make
.
width
.
equalTo
(
fullScreenWidth
*
0.5
)
}
selectView
.
secBtn
.
snp_makeConstraints
{
(
make
)
in
make
.
right
.
top
.
bottom
.
equalTo
(
0
)
make
.
width
.
equalTo
(
fullScreenWidth
*
0.5
)
}
changeBgView
.
addSubview
(
selectView
)
selectView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
top
.
right
.
bottom
.
equalTo
(
0
);
}
selectView
.
delegate
=
self
selectV
=
selectView
}
//MARK:--下拉视图模块
func
showAction
(
sender
:
Int
)
{
showSelectvIndex
=
sender
switch
sender
{
case
1
:
do
{
let
showSelectView
=
SelectContentView
()
showSelectView
.
delegate
=
self
self
.
view
.
addSubview
(
showSelectView
)
showSelectView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
changeBgView
.
snp_bottom
)
}
showSelectV
=
showSelectView
showSelectView
.
dataArr
=
[
"小程序"
,
"格利食品网"
]
showSelectView
.
selectIndx
=
selectIndexArr
[
showSelectvIndex
]
}
break
case
0
:
do
{
//选择时间
let
timeShowDownView
=
TimeShowDownView
()
self
.
view
.
addSubview
(
timeShowDownView
)
timeShowDownView
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
right
.
bottom
.
equalToSuperview
()
make
.
top
.
equalTo
(
changeBgView
.
snp_bottom
)
}
timeShowDView
=
timeShowDownView
timeShowDownView
.
delegate
=
self
if
startTime
!=
0
{
var
time
=
TimeInterval
(
exactly
:
startTime
!
)
timeShowDownView
.
BeginDate
=
Date
(
timeIntervalSince1970
:
time
!
)
time
=
TimeInterval
(
exactly
:
endTime
!
)
timeShowDownView
.
EndDate
=
Date
(
timeIntervalSince1970
:
time
!
)
timeShowDownView
.
setOld
()
}
}
break
default
:
break
}
}
func
colseAction
(
sender
:
Int
)
{
if
showSelectV
!=
nil
{
showSelectV
.
removeFromSuperview
()
}
if
timeShowDView
!=
nil
{
timeShowDView
.
removeFromSuperview
()
}
}
//MARK:--TimeShowDownViewDeleagte
func
TimeShowDownViewRemoveForSup
()
{
selectV
.
colseBytitleArr
(
arr
:
[],
index
:
showSelectvIndex
)
}
func
TimeShowDownViewSelectMoreDate
(
beginDate
:
Date
?,
endginDate
:
Date
?)
{
if
beginDate
==
nil
{
startTime
=
0
endTime
=
0
}
else
{
let
timeInterval
:
TimeInterval
=
beginDate
!.
timeIntervalSince1970
let
timeIntervalEnd
:
TimeInterval
=
endginDate
!.
timeIntervalSince1970
startTime
=
Int
(
timeInterval
)
endTime
=
Int
(
timeIntervalEnd
)
}
tableView
.
mj_header
?
.
beginRefreshing
()
}
}
GeliBusinessPlatform/ViewController/待审核分销员/DSHFXY_ViewController.xib
0 → 100644
View file @
b8d42b88
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17701"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17703"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"DSHFXY_ViewController"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"search_view"
destination=
"oZK-Oh-YCm"
id=
"OGw-KL-GyM"
/>
<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=
"oZK-Oh-YCm"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"46"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"46"
id=
"lfm-vW-aiE"
/>
</constraints>
</view>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"oZK-Oh-YCm"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"3Je-OD-tOw"
/>
<constraint
firstItem=
"oZK-Oh-YCm"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"C7R-Fa-inu"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"oZK-Oh-YCm"
secondAttribute=
"trailing"
id=
"UwT-AA-mxp"
/>
</constraints>
<point
key=
"canvasLocation"
x=
"140.57971014492756"
y=
"69.642857142857139"
/>
</view>
</objects>
<resources>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment