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
d39d5f5f
Commit
d39d5f5f
authored
May 27, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上下架
parent
972ba595
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
14 deletions
+43
-14
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+36
-7
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+7
-7
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
d39d5f5f
No preview for this file type
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
d39d5f5f
...
...
@@ -116,8 +116,8 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
self
.
btmBtnBGView
.
subviews
.
forEach
{
(
view
)
in
view
.
removeFromSuperview
()
}
for
i
in
0
..<
self
.
editActionArr
.
count
{
let
btn
=
UIButton
(
frame
:
CGRect
(
x
:
0
,
y
:
1
,
width
:
fullScreenWidth
,
height
:
49
))
self
.
btmBtnBGView
.
addSubview
(
btn
)
...
...
@@ -230,8 +230,8 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
goodsEdit
(
dic
,
success
:
{
(
data
)
in
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"提交修改成功"
),
delay
:
1.2
)
self
.
btmBtnBGView
.
subviews
.
forEach
{
(
view
)
in
view
.
removeFromSuperview
()
}
view
.
removeFromSuperview
()
}
self
.
setBtmBtnUi
()
self
.
isAllEditing
=
false
...
...
@@ -247,7 +247,11 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
let
dataM
=
data
as!
UpDataModel
if
dataM
.
code
==
1
{
HUD
.
flash
(
.
label
(
"提交成功"
),
delay
:
1.2
)
self
.
loadData
()
self
.
delegate
?
.
EPViewControllerFinishEdit
()
}
})
{
(
erro
)
in
...
...
@@ -448,12 +452,34 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
self
.
itemTypeArr
?
.
remove
(
at
:
(
model
.
data
?
.
goods_res
!.
goods_type
)
!
)
}
self
.
btmBtnBGView
.
subviews
.
forEach
{
(
view
)
in
view
.
removeFromSuperview
()
}
if
model
.
data
?
.
goods_res
?
.
is_show
==
0
{
if
(
self
.
titleStrArr
?
.
contains
(
"下架"
))
!
{
self
.
titleStrArr
?
.
insert
(
"上架"
,
at
:
3
)
self
.
titleStrArr
?
.
remove
(
at
:
1
)
}
}
else
{
if
(
self
.
titleStrArr
?
.
contains
(
"上架"
))
!
{
self
.
titleStrArr
?
.
insert
(
"下架"
,
at
:
1
)
self
.
titleStrArr
?
.
remove
(
at
:
3
)
}
}
self
.
setBtmBtnUi
()
let
contentArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
let
titles
=
NSMutableArray
()
titles
.
removeAllObjects
()
for
num
in
self
.
itemTypeArr
!
{
if
num
!=
99
{
titles
.
add
(
contentArr
[
num
])
if
num
>
1
{
titles
.
add
(
contentArr
[
num
-
1
])
}
else
{
titles
.
add
(
contentArr
[
num
])
}
}
}
if
titles
.
componentsJoined
(
by
:
","
)
.
contains
(
"预售"
)
{
...
...
@@ -570,6 +596,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
self
.
faHuoTime
=
"
\(
model
.
data
!.
goods_res
!.
set_time
!
)
"
}
//商品主图
self
.
maxFiveImgsArr
.
removeAll
()
for
item
in
model
.
data
!.
banner_res
!
{
self
.
maxFiveImgsArr
.
append
(
item
.
img_original
!
)
}
...
...
@@ -608,8 +635,10 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
}
func
setBtmBtnUi
(){
titleStrArr
?
.
insert
(
"编辑"
,
at
:
0
)
titleStrArr
?
.
append
(
"删除"
)
if
titleStrArr
!.
count
==
2
{
titleStrArr
?
.
insert
(
"编辑"
,
at
:
0
)
titleStrArr
?
.
append
(
"删除"
)
}
let
w
=
fullScreenWidth
/
4
// if titleStrArr!.count == 4 {
for
i
in
0
..<
titleStrArr
!.
count
{
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
d39d5f5f
...
...
@@ -16,13 +16,13 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
super
.
viewDidLoad
()
setTabv
()
let
cover
=
UIView
()
self
.
view
.
addSubview
(
cover
)
cover
.
backgroundColor
=
UIColor
.
black
cover
.
alpha
=
0.3
cover
.
snp
.
makeConstraints
{
(
make
)
in
make
.
top
.
right
.
bottom
.
left
.
equalTo
(
0
)
}
//
let cover = UIView()
//
self.view.addSubview(cover)
//
cover.backgroundColor = UIColor.black
//
cover.alpha = 0.3
//
cover.snp.makeConstraints { (make) in
//
make.top.right.bottom.left.equalTo(0)
//
}
}
//MARK:--二维码方法
...
...
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