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
d224db7b
Commit
d224db7b
authored
May 27, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
给普通状态默认值
parent
5dbbca8c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+12
-12
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
d224db7b
No preview for this file type
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
d224db7b
...
...
@@ -38,7 +38,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
view
.
removeFromSuperview
()
glSelectView
=
nil
}
let
leiXingArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
let
titleArr
=
[
"商品信息"
,
"商品图片"
,
"商品规格"
,
"预售设置"
,
"其它信息"
,
"商品详情"
]
let
spxxArr
=
[
"商品名称"
,
"商品类型"
,
"商品分类"
,
"品牌"
,
"起卖数量"
,
"是否清真"
,
"是否询价"
]
var
tishixxArr
=
[
"请输入商品名称"
,
"普通"
,
"请选择商品分类"
,
"请选择品牌"
,
"请输入起卖数量"
]
...
...
@@ -284,6 +284,16 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
//是否为预售商品
isYuShouShangPin
=
false
if
itemTypeArr
?
.
count
==
0
{
for
i
in
0
..<
leiXingArr
.
count
{
if
i
==
1
{
itemTypeArr
?
.
append
(
1
)
}
else
{
itemTypeArr
?
.
append
(
99
)
}
}
}
navbar
.
title
=
"商品详情"
self
.
view
.
addSubview
(
navbar
)
listTbv
.
separatorStyle
=
.
none
...
...
@@ -548,17 +558,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
view
.
isShangPinType
=
true
view
.
titleLbl
.
text
=
"请选择商品类型"
view
.
delegate
=
self
view
.
dataArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
if
itemTypeArr
?
.
count
==
0
{
for
i
in
0
..<
view
.
dataArr
.
count
{
if
i
==
1
{
itemTypeArr
?
.
append
(
1
)
}
else
{
itemTypeArr
?
.
append
(
99
)
}
}
}
view
.
dataArr
=
leiXingArr
view
.
selectArray
=
itemTypeArr
view
.
tempArr
=
itemTypeArr
self
.
view
.
addSubview
(
view
)
...
...
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