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
ddbe5d2e
Commit
ddbe5d2e
authored
May 27, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
595
parent
327bb1ca
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
8 deletions
+40
-8
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+27
-5
GeliBusinessPlatform/ViewController/商品详情/EPViewController.xib
...BusinessPlatform/ViewController/商品详情/EPViewController.xib
+13
-3
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
ddbe5d2e
No preview for this file type
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
ddbe5d2e
...
@@ -31,6 +31,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -31,6 +31,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
var
titleStrArr
:
Array
<
String
>
?
=
[]
var
titleStrArr
:
Array
<
String
>
?
=
[]
var
goods_id
:
Int
?
var
goods_id
:
Int
?
var
goodsDetailModel
:
GoodsDetailModel
?
=
nil
var
goodsDetailModel
:
GoodsDetailModel
?
=
nil
var
editActionArr
=
[
"保存"
]
func
GLASClose
(
view
:
GLAlertSelectView
,
selectnum
:
Int
,
selectArr
:
Array
<
Int
>
)
{
func
GLASClose
(
view
:
GLAlertSelectView
,
selectnum
:
Int
,
selectArr
:
Array
<
Int
>
)
{
if
view
.
titleLbl
.
text
==
"请选择商品类型"
{
if
view
.
titleLbl
.
text
==
"请选择商品类型"
{
print
(
itemTypeArr
,
selectArr
)
print
(
itemTypeArr
,
selectArr
)
...
@@ -112,6 +113,19 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -112,6 +113,19 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
self
.
editBtn
!.
setTitle
(
"保存"
,
for
:
.
normal
)
self
.
editBtn
!.
setTitle
(
"保存"
,
for
:
.
normal
)
self
.
isAllEditing
=
true
self
.
isAllEditing
=
true
self
.
listTbv
.
reloadData
()
self
.
listTbv
.
reloadData
()
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
)
btn
.
setTitle
(
self
.
editActionArr
[
i
],
for
:
.
normal
)
btn
.
setTitleColor
(
UIColor
(
named
:
"蓝色字体颜色"
),
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
boldSystemFont
(
ofSize
:
13
)
btn
.
addTarget
(
self
,
action
:
#selector(
self.btmBtnClick(sender:)
)
,
for
:
.
touchUpInside
)
}
})
{
(
error
)
in
})
{
(
error
)
in
}
}
...
@@ -215,7 +229,11 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -215,7 +229,11 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
//MARK:--修改商品接口
//MARK:--修改商品接口
goodsEdit
(
dic
,
success
:
{
(
data
)
in
goodsEdit
(
dic
,
success
:
{
(
data
)
in
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"提交修改成功"
),
delay
:
1.2
)
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"提交修改成功"
),
delay
:
1.2
)
self
.
editBtn
!.
setTitle
(
"编辑"
,
for
:
.
normal
)
self
.
btmBtnBGView
.
subviews
.
forEach
{
(
view
)
in
view
.
removeFromSuperview
()
}
self
.
setBtmBtnUi
()
self
.
isAllEditing
=
false
self
.
isAllEditing
=
false
self
.
listTbv
.
reloadData
()
self
.
listTbv
.
reloadData
()
self
.
delegate
?
.
EPViewControllerFinishEdit
()
self
.
delegate
?
.
EPViewControllerFinishEdit
()
...
@@ -588,10 +606,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -588,10 +606,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
}
}
}
}
override
func
viewDidLoad
()
{
func
setBtmBtnUi
(){
super
.
viewDidLoad
()
//MARK:--获取新增商品的基本信息(品牌和分类等)
HUD
.
flash
(
.
progress
)
titleStrArr
?
.
insert
(
"编辑"
,
at
:
0
)
titleStrArr
?
.
insert
(
"编辑"
,
at
:
0
)
titleStrArr
?
.
append
(
"删除"
)
titleStrArr
?
.
append
(
"删除"
)
let
w
=
fullScreenWidth
/
4
let
w
=
fullScreenWidth
/
4
...
@@ -604,6 +619,13 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -604,6 +619,13 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
btn
.
titleLabel
?
.
font
=
UIFont
.
boldSystemFont
(
ofSize
:
13
)
btn
.
titleLabel
?
.
font
=
UIFont
.
boldSystemFont
(
ofSize
:
13
)
btn
.
addTarget
(
self
,
action
:
#selector(
btmBtnClick(sender:)
)
,
for
:
.
touchUpInside
)
btn
.
addTarget
(
self
,
action
:
#selector(
btmBtnClick(sender:)
)
,
for
:
.
touchUpInside
)
}
}
}
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
//MARK:--获取新增商品的基本信息(品牌和分类等)
HUD
.
flash
(
.
progress
)
setBtmBtnUi
()
// }
// }
//是否为预售商品
//是否为预售商品
isYuShouShangPin
=
false
isYuShouShangPin
=
false
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.xib
View file @
ddbe5d2e
<?xml version="1.0" encoding="UTF-8"?>
<?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
6097
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
5704
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"EPViewController"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"EPViewController"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<connections>
<outlet
property=
"btmBtnBGView"
destination=
"H2x-8q-Enj"
id=
"zfZ-07-szf"
/>
<outlet
property=
"btmBtnBGView"
destination=
"H2x-8q-Enj"
id=
"zfZ-07-szf"
/>
<outlet
property=
"btmBtnViewH"
destination=
"zvU-A1-Wlq"
id=
"gZn-F8-1hh"
/>
<outlet
property=
"btmBtnViewH"
destination=
"zvU-A1-Wlq"
id=
"gZn-F8-1hh"
/>
...
@@ -35,9 +35,19 @@
...
@@ -35,9 +35,19 @@
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"2vd-kV-jwa"
/>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"2vd-kV-jwa"
/>
</constraints>
</constraints>
</view>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2Ws-Uv-Zxg"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"gxN-NS-GWS"
/>
</constraints>
</view>
</subviews>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraints>
<constraint
firstItem=
"2Ws-Uv-Zxg"
firstAttribute=
"leading"
secondItem=
"H2x-8q-Enj"
secondAttribute=
"leading"
id=
"8pM-Ud-n3l"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"2Ws-Uv-Zxg"
secondAttribute=
"trailing"
id=
"Bav-AY-AsO"
/>
<constraint
firstItem=
"2Ws-Uv-Zxg"
firstAttribute=
"top"
secondItem=
"H2x-8q-Enj"
secondAttribute=
"top"
id=
"PmK-ut-SI7"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"H4T-Vc-LT1"
secondAttribute=
"trailing"
id=
"gMO-l5-X4c"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"H4T-Vc-LT1"
secondAttribute=
"trailing"
id=
"gMO-l5-X4c"
/>
<constraint
firstItem=
"H4T-Vc-LT1"
firstAttribute=
"leading"
secondItem=
"H2x-8q-Enj"
secondAttribute=
"leading"
id=
"gji-ae-evc"
/>
<constraint
firstItem=
"H4T-Vc-LT1"
firstAttribute=
"leading"
secondItem=
"H2x-8q-Enj"
secondAttribute=
"leading"
id=
"gji-ae-evc"
/>
<constraint
firstItem=
"H4T-Vc-LT1"
firstAttribute=
"top"
secondItem=
"H2x-8q-Enj"
secondAttribute=
"top"
id=
"mt4-fp-PTo"
/>
<constraint
firstItem=
"H4T-Vc-LT1"
firstAttribute=
"top"
secondItem=
"H2x-8q-Enj"
secondAttribute=
"top"
id=
"mt4-fp-PTo"
/>
...
...
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