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
7b5956c6
Commit
7b5956c6
authored
Dec 23, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分账设置修改
parent
c768492d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
26 deletions
+30
-26
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Define/Define.swift
GeliBusinessPlatform/Define/Define.swift
+4
-4
GeliBusinessPlatform/ViewController/分销商分账设置/DistributorSettingViewController.swift
...Controller/分销商分账设置/DistributorSettingViewController.swift
+19
-16
GeliBusinessPlatform/ViewController/分销商分账设置/DistributorSettingViewController.xib
...ewController/分销商分账设置/DistributorSettingViewController.xib
+7
-6
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
7b5956c6
No preview for this file type
GeliBusinessPlatform/Define/Define.swift
View file @
7b5956c6
...
...
@@ -27,10 +27,10 @@ let systemVersion = (UIDevice.current.systemVersion as String)
//接口地址
//test
//
let SERVERCE_ImageHost = "https://z.gelifood.com/"
//
let SERVERCE_HOST = "https://z.gelifood.com/admin/"
let
SERVERCE_ImageHost
=
"https://zx.gelifood.com/"
let
SERVERCE_HOST
=
"https://zx.gelifood.com/admin/"
let
SERVERCE_ImageHost
=
"https://z.gelifood.com/"
let
SERVERCE_HOST
=
"https://z.gelifood.com/admin/"
//
let SERVERCE_ImageHost = "https://zx.gelifood.com/"
//
let SERVERCE_HOST = "https://zx.gelifood.com/admin/"
////online
//视图常量
...
...
GeliBusinessPlatform/ViewController/分销商分账设置/DistributorSettingViewController.swift
View file @
7b5956c6
...
...
@@ -9,6 +9,7 @@
import
UIKit
class
DistributorSettingViewController
:
BaseViewController
{
@IBOutlet
weak
var
share_intro_lbl
:
UILabel
!
@IBOutlet
weak
var
intro_lbl
:
UILabel
!
@IBOutlet
weak
var
topLbl
:
UILabel
!
var
dataM
:
getDbtRuleDataModel
?
=
nil
...
...
@@ -36,15 +37,17 @@ class DistributorSettingViewController: BaseViewController {
dbt_type
=
"2"
}
// if dataM?.share_type == 1 {
// sharetypeBtn1 .setImage(UIImage.init(named: "yuxuan"), for: .normal)
// sharetypeBtn2 .setImage(UIImage.init(named: "daixuan"), for: .normal)
// share_type = "1"
// }else if dataM?.share_type == 2 {
if
dataM
?
.
share_type
==
1
{
share_intro_lbl
.
text
=
"即用户进入分销员发送链接绑定关系,随后所买的分销商品只结算给该绑定分销员"
sharetypeBtn1
.
setImage
(
UIImage
.
init
(
named
:
"daixuan"
),
for
:
.
normal
)
sharetypeBtn2
.
setImage
(
UIImage
.
init
(
named
:
"yuxuan"
),
for
:
.
normal
)
share_type
=
"1"
}
else
if
dataM
?
.
share_type
==
2
{
sharetypeBtn1
.
setImage
(
UIImage
.
init
(
named
:
"yuxuan"
),
for
:
.
normal
)
sharetypeBtn2
.
setImage
(
UIImage
.
init
(
named
:
"daixuan"
),
for
:
.
normal
)
share_intro_lbl
.
text
=
"即用户在哪个链接购买分销商品就结算给哪个发送链接的分销员"
share_type
=
"2"
//
}
}
}
}
...
...
@@ -68,17 +71,18 @@ class DistributorSettingViewController: BaseViewController {
@IBOutlet
weak
var
sharetypeBtn2
:
UIButton
!
@IBAction
func
sharetypeAction
(
_
sender
:
UIButton
)
{
// if sharetypeBtn1 == sender {
// sharetypeBtn1 .setImage(UIImage.init(named: "yuxuan"), for: .normal)
// sharetypeBtn2 .setImage(UIImage.init(named: "daixuan"), for: .normal)
// share_type = "1"
//
// }else if sharetypeBtn2 == sender{
if
sharetypeBtn1
==
sender
{
sharetypeBtn1
.
setImage
(
UIImage
.
init
(
named
:
"yuxuan"
),
for
:
.
normal
)
sharetypeBtn2
.
setImage
(
UIImage
.
init
(
named
:
"daixuan"
),
for
:
.
normal
)
share_type
=
"2"
share_intro_lbl
.
text
=
"即用户在哪个链接购买分销商品就结算给哪个发送链接的分销员"
}
else
if
sharetypeBtn2
==
sender
{
share_intro_lbl
.
text
=
"即用户进入分销员发送链接绑定关系,随后所买的分销商品只结算给该绑定分销员"
sharetypeBtn1
.
setImage
(
UIImage
.
init
(
named
:
"daixuan"
),
for
:
.
normal
)
sharetypeBtn2
.
setImage
(
UIImage
.
init
(
named
:
"yuxuan"
),
for
:
.
normal
)
share_type
=
"
2
"
//
}
share_type
=
"
1
"
}
}
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
//保存
...
...
@@ -91,7 +95,6 @@ class DistributorSettingViewController: BaseViewController {
}
failture
:
{
(
error
)
in
}
}
...
...
GeliBusinessPlatform/ViewController/分销商分账设置/DistributorSettingViewController.xib
View file @
7b5956c6
...
...
@@ -13,6 +13,7 @@
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"DistributorSettingViewController"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"intro_lbl"
destination=
"rdF-Hk-QO2"
id=
"QxI-s7-k0v"
/>
<outlet
property=
"share_intro_lbl"
destination=
"120-wO-RM3"
id=
"ePZ-fJ-hFb"
/>
<outlet
property=
"sharetypeBtn1"
destination=
"7Jf-Vg-Ti2"
id=
"dPC-FK-G2x"
/>
<outlet
property=
"sharetypeBtn2"
destination=
"kUr-sL-blR"
id=
"g8o-jB-DgV"
/>
<outlet
property=
"topLbl"
destination=
"M3H-QL-Wkh"
id=
"ArN-vW-hMc"
/>
...
...
@@ -138,25 +139,25 @@
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"kUr-sL-blR"
>
<rect
key=
"frame"
x=
"110"
y=
"277"
width=
"
85
"
height=
"19"
/>
<rect
key=
"frame"
x=
"110"
y=
"277"
width=
"
78
"
height=
"19"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
" 1对
多结算"
image=
"yu
xuan"
>
<state
key=
"normal"
title=
" 1对
1结算"
image=
"dai
xuan"
>
<color
key=
"titleColor"
name=
"标题字颜色"
/>
</state>
<connections>
<action
selector=
"sharetypeAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"QAV-Pp-TsC"
/>
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"即用户
进入分销员发送链接绑定关系,随后所买的分销商品只结算给该绑定分销员。
"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"120-wO-RM3"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"即用户
在哪个链接购买分销商品就结算给哪个发送链接的分销员
"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"120-wO-RM3"
>
<rect
key=
"frame"
x=
"110"
y=
"306"
width=
"294"
height=
"36.5"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
hidden=
"YES"
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7Jf-Vg-Ti2"
>
<rect
key=
"frame"
x=
"21
8"
y=
"277"
width=
"78
"
height=
"19"
/>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7Jf-Vg-Ti2"
>
<rect
key=
"frame"
x=
"21
1"
y=
"277"
width=
"85
"
height=
"19"
/>
<fontDescription
key=
"fontDescription"
name=
"PingFangSC-Regular"
family=
"PingFang SC"
pointSize=
"13"
/>
<state
key=
"normal"
title=
" 1对
1结算"
image=
"dai
xuan"
>
<state
key=
"normal"
title=
" 1对
多结算"
image=
"yu
xuan"
>
<color
key=
"titleColor"
name=
"标题字颜色"
/>
</state>
<connections>
...
...
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