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
cc448fb1
Commit
cc448fb1
authored
Jan 27, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分销分账设置部分完成
parent
f9df6fde
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
1 deletion
+43
-1
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/分销商分账设置/DistributorSettingViewController.swift
...Controller/分销商分账设置/DistributorSettingViewController.swift
+43
-1
GeliBusinessPlatform/ViewController/分销商分账设置/DistributorSettingViewController.xib
...ewController/分销商分账设置/DistributorSettingViewController.xib
+0
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
cc448fb1
No preview for this file type
GeliBusinessPlatform/ViewController/分销商分账设置/DistributorSettingViewController.swift
View file @
cc448fb1
...
...
@@ -9,6 +9,31 @@
import
UIKit
class
DistributorSettingViewController
:
BaseViewController
{
@IBAction
func
select_ac
(
_
sender
:
UIButton
)
{
if
sender
.
tag
==
2
{
btm_h
.
constant
=
0
btm_lbl
.
isHidden
=
true
btm_btn
.
setImage
(
UIImage
(
named
:
"daixuan"
),
for
:
.
normal
)
top_h
.
constant
=
36.5
top_lbl
.
isHidden
=
false
top_btn
.
setImage
(
UIImage
(
named
:
"yuxuan"
),
for
:
.
normal
)
}
else
{
top_h
.
constant
=
0
top_lbl
.
isHidden
=
true
top_btn
.
setImage
(
UIImage
(
named
:
"daixuan"
),
for
:
.
normal
)
btm_h
.
constant
=
36.5
btm_lbl
.
isHidden
=
false
btm_btn
.
setImage
(
UIImage
(
named
:
"yuxuan"
),
for
:
.
normal
)
}
select_type
=
sender
.
tag
}
var
select_type
=
2
@IBOutlet
weak
var
top_lbl
:
UILabel
!
@IBOutlet
weak
var
btm_lbl
:
UILabel
!
@IBOutlet
weak
var
btm_h
:
NSLayoutConstraint
!
@IBOutlet
weak
var
top_h
:
NSLayoutConstraint
!
@IBOutlet
weak
var
top_btn
:
UIButton
!
@IBOutlet
weak
var
btm_btn
:
UIButton
!
@IBOutlet
weak
var
share_intro_lbl
:
UILabel
!
@IBOutlet
weak
var
intro_lbl
:
UILabel
!
@IBOutlet
weak
var
topLbl
:
UILabel
!
...
...
@@ -27,6 +52,23 @@ class DistributorSettingViewController: BaseViewController {
}
if
dataM
!=
nil
{
if
dataM
?
.
commission_time
==
2
{
btm_h
.
constant
=
0
btm_lbl
.
isHidden
=
true
btm_btn
.
setImage
(
UIImage
(
named
:
"daixuan"
),
for
:
.
normal
)
top_h
.
constant
=
36.5
top_lbl
.
isHidden
=
false
top_btn
.
setImage
(
UIImage
(
named
:
"yuxuan"
),
for
:
.
normal
)
}
else
{
top_h
.
constant
=
0
top_lbl
.
isHidden
=
true
top_btn
.
setImage
(
UIImage
(
named
:
"daixuan"
),
for
:
.
normal
)
btm_h
.
constant
=
36.5
btm_lbl
.
isHidden
=
false
btm_btn
.
setImage
(
UIImage
(
named
:
"yuxuan"
),
for
:
.
normal
)
}
select_type
=
(
dataM
?
.
commission_time
)
!
if
dataM
?
.
dbt_type
==
1
{
typeBtn1
.
setImage
(
UIImage
.
init
(
named
:
"yuxuan"
),
for
:
.
normal
)
typeBtn2
.
setImage
(
UIImage
.
init
(
named
:
"daixuan"
),
for
:
.
normal
)
...
...
@@ -89,7 +131,7 @@ class DistributorSettingViewController: BaseViewController {
HUD
.
flash
(
.
progress
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
//分账方式 1人工结算 2自动结算 分享方式 1(1对1结算)2(1对多结算)
setDbtRule
([
"user_token"
:
UserToken
as
Any
,
"dbt_type"
:
dbt_type
as
Any
,
"commission_time"
:
"1"
as
Any
,
"share_type"
:
share_type
as
Any
])
{
(
data
)
in
setDbtRule
([
"user_token"
:
UserToken
as
Any
,
"dbt_type"
:
dbt_type
as
Any
,
"commission_time"
:
select_type
as
Any
,
"share_type"
:
share_type
as
Any
])
{
(
data
)
in
HUD
.
hide
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"提交成功"
),
delay
:
1.2
)
}
failture
:
{
(
error
)
in
...
...
GeliBusinessPlatform/ViewController/分销商分账设置/DistributorSettingViewController.xib
View file @
cc448fb1
This diff is collapsed.
Click to expand it.
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