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
e7837bf6
Commit
e7837bf6
authored
Nov 02, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供应商/分销商管理公用CELL
parent
8f358d4a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/GYS_FX_ProductCellTableViewCell.swift
...sPlatform/View/Cell/GYS_FX_ProductCellTableViewCell.swift
+2
-2
GeliBusinessPlatform/View/Cell/GYS_GuanLi_Cell.swift
GeliBusinessPlatform/View/Cell/GYS_GuanLi_Cell.swift
+18
-3
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
e7837bf6
No preview for this file type
GeliBusinessPlatform/View/Cell/GYS_FX_ProductCellTableViewCell.swift
View file @
e7837bf6
GeliBusinessPlatform/View/Cell/GYS_GuanLi_Cell.swift
View file @
e7837bf6
...
...
@@ -9,6 +9,7 @@
import
UIKit
class
GYS_GuanLi_Cell
:
UITableViewCell
{
var
isFenXiaoShang
:
Bool
=
false
//分销商管理 == true,改变合作按钮颜色。
@IBOutlet
weak
var
icon_Img
:
UIImageView
!//
公司LOGO
@IBOutlet
weak
var
status_Lbl
:
UILabel
!//
状态
...
...
@@ -16,6 +17,10 @@ class GYS_GuanLi_Cell: UITableViewCell {
@IBOutlet
weak
var
adr_Lbl
:
UILabel
!//
地址
@IBOutlet
weak
var
title_Lbl
:
UILabel
!//
公司名
@IBAction
func
stopAction
(
_
sender
:
UIButton
)
{
if
isFenXiaoShang
{
//分销商管理,删除功能。
return
}
print
(
"终止合作"
)
}
@IBOutlet
weak
var
submitBtn
:
UIButton
!//
终止按钮
-
默认隐藏
...
...
@@ -25,7 +30,17 @@ class GYS_GuanLi_Cell: UITableViewCell {
self
.
selectionStyle
=
.
none
}
override
func
layoutIfNeeded
()
{
super
.
layoutIfNeeded
()
if
isFenXiaoShang
{
submitBtn
.
isHidden
=
false
submitBtn
.
backgroundColor
=
UIColor
.
white
submitBtn
.
layer
.
borderWidth
=
1
submitBtn
.
layer
.
borderColor
=
UIColor
(
named
:
"按钮背景颜色"
)?
.
cgColor
submitBtn
.
setTitle
(
"删除"
,
for
:
.
normal
)
submitBtn
.
titleLabel
?
.
textColor
=
UIColor
(
named
:
"按钮背景颜色"
)
}
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
...
...
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