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
a5c118bd
Commit
a5c118bd
authored
Jan 13, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分销员接口修改
parent
a997896c
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
96 additions
and
42 deletions
+96
-42
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/分销员管理/FXYGL_ViewController.swift
...sPlatform/ViewController/分销员管理/FXYGL_ViewController.swift
+2
-2
GeliBusinessPlatform/ViewController/分销收益页/FXSY_ViewController.swift
...ssPlatform/ViewController/分销收益页/FXSY_ViewController.swift
+76
-29
GeliBusinessPlatform/ViewController/客户详情/KHXQ_ViewController.swift
...essPlatform/ViewController/客户详情/KHXQ_ViewController.swift
+2
-2
GeliBusinessPlatform/ViewController/待审核分销员/DSHFXY_ViewController.swift
...latform/ViewController/待审核分销员/DSHFXY_ViewController.swift
+2
-2
GeliBusinessPlatform/ViewController/蓝牙连接/BluetoothConnectViewController.swift
.../ViewController/蓝牙连接/BluetoothConnectViewController.swift
+2
-0
GeliBusinessPlatform/ViewController/蓝牙连接/BluetoothConnectViewController.xib
...rm/ViewController/蓝牙连接/BluetoothConnectViewController.xib
+12
-7
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
a5c118bd
No preview for this file type
GeliBusinessPlatform/ViewController/分销员管理/FXYGL_ViewController.swift
View file @
a5c118bd
...
...
@@ -239,7 +239,7 @@ class FXYGL_ViewController: BaseViewController, UISearchBarDelegate, SearchBarVi
self
.
tableView
?
.
mj_header
?
.
endRefreshing
()
self
.
page
=
2
if
model
.
data
?
.
res
?
.
count
==
0
{
if
model
.
data
?
.
res
?
.
count
==
nil
{
self
.
tableView
?
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
tableView
?
.
mj_footer
?
.
endRefreshing
()
...
...
@@ -257,7 +257,7 @@ class FXYGL_ViewController: BaseViewController, UISearchBarDelegate, SearchBarVi
]
dbtManageQuery
(
dic
,
success
:
{
(
data
)
in
let
model
=
data
as!
dbtManageQueryModel
if
model
.
data
?
.
res
?
.
count
==
0
{
if
model
.
data
?
.
res
?
.
count
==
nil
{
self
.
tableView
?
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
page
+=
1
...
...
GeliBusinessPlatform/ViewController/分销收益页/FXSY_ViewController.swift
View file @
a5c118bd
...
...
@@ -42,13 +42,12 @@ 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
{
cell
.
order_id_lbl
.
text
=
"#"
+
(
data
?
.
record_sn
)
!
cell
.
time_lbl
.
text
=
data
?
.
add_time
!
cell
.
price_lbl
.
text
=
data
?
.
in_amount
!
cell
.
order_id_lbl2
.
text
=
(
data
?
.
order_sn
!
)
!
+
"("
+
(
data
?
.
remark
!
)
!
+
")"
}
let
data
=
dataArr
[
indexPath
.
row
]
cell
.
order_id_lbl
.
text
=
"#"
+
(
data
.
record_sn
)
!
cell
.
time_lbl
.
text
=
data
.
add_time
!
cell
.
price_lbl
.
text
=
data
.
in_amount
!
cell
.
order_id_lbl2
.
text
=
data
.
order_sn
!
+
"("
+
data
.
remark
!
+
")"
return
cell
}
...
...
@@ -241,20 +240,23 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
let
arr
=
getDate
()
date_lbl
.
text
=
"
\(
arr
.
first
!
)
年
\(
arr
[
1
]
)
月
\(
arr
.
last
!
)
日"
// loadData(dic: dic)
headerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
loadData
)
)
gys_list
.
mj_header
=
self
.
headerMJ
gys_list
.
mj_header
?
.
beginRefreshing
()
footerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
loadMoreData
)
)
gys_list
.
mj_footer
=
self
.
footerMJ
}
var
isFirstTime
=
true
// var isNonFirst = false
@objc
func
loadData
(){
var
page
=
0
//MARK:--加载更多数据
@objc
func
loadMoreData
(){
print
(
"加载更多数据"
)
var
dic
:
Dictionary
<
String
,
Any
>!
// if isNonFirst {
var
year
=
"0"
var
month
=
"0"
var
day
=
"0"
...
...
@@ -277,24 +279,66 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
"keyword"
:
keyword
as
Any
,
"year"
:
year
as
Any
,
"month"
:
month
as
Any
,
"day"
:
day
as
Any
"day"
:
day
as
Any
,
"page"
:
page
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
// ]
// }
dbtIncomeInfo
(
dic
)
{
(
data
)
in
let
dateModel
=
data
as!
dbtIncomeInfoModel
self
.
model
=
dateModel
.
data
if
self
.
model
?
.
res
?
.
count
==
nil
{
self
.
gys_list
?
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
page
+=
1
self
.
model
?
.
res
?
.
forEach
({
(
item
)
in
self
.
dataArr
.
append
(
item
)
})
self
.
gys_list
.
reloadData
()
self
.
gys_list
?
.
mj_footer
?
.
endRefreshing
()
}
}
failture
:
{
(
err
)
in
self
.
gys_list
.
mj_footer
?
.
endRefreshing
()
}
}
@objc
func
loadData
(){
var
dic
:
Dictionary
<
String
,
Any
>!
page
=
1
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
,
"page"
:
page
as
Any
]
dbtIncomeInfo
(
dic
)
{
(
data
)
in
let
dateModel
=
data
as!
dbtIncomeInfoModel
self
.
model
=
dateModel
.
data
if
self
.
model
?
.
res
?
.
count
==
nil
{
self
.
gys_list
?
.
mj_header
?
.
endRefreshing
()
self
.
gys_list
?
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
if
self
.
model
?
.
inc
!=
nil
{
self
.
income_lbl
.
text
=
"收入:¥"
+
String
(
format
:
"%.02f"
,
self
.
model
?
.
inc
!
as!
CVarArg
)
self
.
income_lbl
.
isHidden
=
false
...
...
@@ -310,11 +354,7 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
}
self
.
dataArr
.
removeAll
()
self
.
model
?
.
res
?
.
forEach
({
(
item
)
in
self
.
dataArr
.
append
(
item
)
})
self
.
gys_list
.
reloadData
()
if
self
.
isFirstTime
{
self
.
isFirstTime
=
false
...
...
@@ -338,7 +378,14 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
SetTopFrame
(
view
:
self
.
top_view
,
height
:
0.00001
)
}
}
self
.
gys_list
.
mj_header
?
.
endRefreshing
()
self
.
page
=
2
self
.
model
?
.
res
?
.
forEach
({
(
item
)
in
self
.
dataArr
.
append
(
item
)
})
self
.
gys_list
?
.
mj_header
?
.
endRefreshing
()
self
.
gys_list
.
reloadData
()
}
}
failture
:
{
(
err
)
in
self
.
gys_list
.
mj_header
?
.
endRefreshing
()
}
...
...
GeliBusinessPlatform/ViewController/客户详情/KHXQ_ViewController.swift
View file @
a5c118bd
...
...
@@ -228,7 +228,7 @@ class KHXQ_ViewController: BaseViewController, TimeShowDownViewDeleagte, UISearc
self
.
tableView
?
.
mj_header
?
.
endRefreshing
()
self
.
page
=
2
if
model
.
data
?
.
count
==
0
{
if
model
.
data
?
.
count
==
nil
{
self
.
tableView
?
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
tableView
?
.
mj_footer
?
.
endRefreshing
()
...
...
@@ -248,7 +248,7 @@ class KHXQ_ViewController: BaseViewController, TimeShowDownViewDeleagte, UISearc
]
dbtCustomerInfo
(
dic
,
success
:
{
(
data
)
in
let
model
=
data
as!
dbtCustomerInfoModel
if
model
.
data
?
.
count
==
0
{
if
model
.
data
?
.
count
==
nil
{
self
.
tableView
?
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
page
+=
1
...
...
GeliBusinessPlatform/ViewController/待审核分销员/DSHFXY_ViewController.swift
View file @
a5c118bd
...
...
@@ -233,7 +233,7 @@ class DSHFXY_ViewController: BaseViewController, HeaderSelectViewDelegate, TimeS
self
.
tableView
.
reloadData
()
self
.
page
=
2
self
.
tableView
.
mj_header
?
.
endRefreshing
()
if
model
.
data
?
.
count
==
0
{
if
model
.
data
?
.
count
==
nil
{
self
.
tableView
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
tableView
.
mj_footer
?
.
endRefreshing
()
...
...
@@ -257,7 +257,7 @@ class DSHFXY_ViewController: BaseViewController, HeaderSelectViewDelegate, TimeS
]
examineDbtInfo
(
dic
)
{
(
data
)
in
let
model
=
data
as!
examineDbtInfoModel
if
model
.
data
?
.
count
==
0
{
if
model
.
data
?
.
count
==
nil
{
self
.
tableView
.
mj_footer
?
.
endRefreshingWithNoMoreData
()
}
else
{
self
.
page
+=
1
...
...
GeliBusinessPlatform/ViewController/蓝牙连接/BluetoothConnectViewController.swift
View file @
a5c118bd
...
...
@@ -120,6 +120,7 @@ class BluetoothConnectViewController: BaseViewController,UITableViewDelegate,UIT
}
}
//MARK:--外设返回数据(回调)
func
peripheral
(
_
peripheral
:
CBPeripheral
,
didUpdateValueFor
characteristic
:
CBCharacteristic
,
error
:
Error
?)
{
let
data
=
characteristic
.
value
...
...
@@ -128,6 +129,7 @@ class BluetoothConnectViewController: BaseViewController,UITableViewDelegate,UIT
if
data
!.
count
>=
1
{
if
resultByte
!
[
0
]
==
16
{
print
(
"---打印机打开--"
)
}
else
if
resultByte
!
[
0
]
==
1
{
print
(
"---打印机缺纸--"
)
}
...
...
GeliBusinessPlatform/ViewController/蓝牙连接/BluetoothConnectViewController.xib
View file @
a5c118bd
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
5702
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<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_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15704"
/>
<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=
"BluetoothConnectViewController"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"BluetoothConnectViewController"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"bottomView"
destination=
"z6g-3U-Gjc"
id=
"Kx7-8l-LwL"
/>
<outlet
property=
"tableView"
destination=
"IoW-aR-gg0"
id=
"Cxv-cQ-rjJ"
/>
...
...
@@ -48,14 +50,14 @@
<constraint
firstAttribute=
"width"
constant=
"20"
id=
"Xi5-pM-tII"
/>
</constraints>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
roundedRect
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Kxt-WC-XyY"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"
system
"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Kxt-WC-XyY"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"50"
/>
<connections>
<action
selector=
"searchAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"lDV-he-pEz"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstItem=
"bS9-xW-ajm"
firstAttribute=
"centerY"
secondItem=
"z6g-3U-Gjc"
secondAttribute=
"centerY"
id=
"I5U-kM-DXb"
/>
<constraint
firstAttribute=
"height"
constant=
"50"
id=
"LW6-DI-gTT"
/>
...
...
@@ -76,6 +78,7 @@
</constraints>
</view>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"IoW-aR-gg0"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"1BX-uM-9UQ"
/>
...
...
@@ -89,7 +92,6 @@
<constraint
firstItem=
"EhN-in-WvW"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"b7Q-gR-cJG"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"IoW-aR-gg0"
secondAttribute=
"trailing"
id=
"hos-nX-fj1"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"127.53623188405798"
y=
"111.16071428571428"
/>
</view>
</objects>
...
...
@@ -99,10 +101,13 @@
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.180
3921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.180
00000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
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>
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