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
b3e38b9a
Commit
b3e38b9a
authored
May 15, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品详情修改
parent
ed374529
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+3
-2
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
...orm/ViewController/新增规格/CreatNewSpecsViewController.swift
+1
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
b3e38b9a
No preview for this file type
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
b3e38b9a
...
@@ -414,8 +414,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -414,8 +414,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
self
.
listTbv
.
reloadData
()
self
.
listTbv
.
reloadData
()
}
}
}
else
{
//可多张
}
else
{
//可多张
let
num
=
5
-
maxFiveImgsArr
.
count
_
=
self
.
presentHGImagePicker
(
maxSelected
:
1
)
{
(
assets
)
in
_
=
self
.
presentHGImagePicker
(
maxSelected
:
num
)
{
(
assets
)
in
//结果处理
//结果处理
print
(
"共选择了
\(
assets
.
count
)
张图片,分别如下:"
)
print
(
"共选择了
\(
assets
.
count
)
张图片,分别如下:"
)
let
option
=
PHImageRequestOptions
()
let
option
=
PHImageRequestOptions
()
...
@@ -526,6 +525,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -526,6 +525,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
let
vc
=
CreatNewSpecsViewController
()
let
vc
=
CreatNewSpecsViewController
()
vc
.
barTitle
=
"编辑规格"
vc
.
barTitle
=
"编辑规格"
vc
.
datasArr
=
guiGeArr
vc
.
datasArr
=
guiGeArr
vc
.
isJieTiJiaSetting
=
true
let
dataDict
:
GuiGeModel
!
let
dataDict
:
GuiGeModel
!
if
selectIdx
?
.
item
!=
nil
{
if
selectIdx
?
.
item
!=
nil
{
dataDict
=
guiGeArr
[
selectIdx
!.
item
]
dataDict
=
guiGeArr
[
selectIdx
!.
item
]
...
@@ -586,6 +586,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -586,6 +586,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
"ItemCell"
,
for
:
indexPath
)
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
"ItemCell"
,
for
:
indexPath
)
as!
ItemCell
as!
ItemCell
cell
.
tag
=
indexPath
.
row
cell
.
tag
=
indexPath
.
row
cell
.
nameLbl
.
text
=
"规格"
+
indexPath
.
item
!
if
selectIdx
==
nil
{
if
selectIdx
==
nil
{
selectIdx
=
IndexPath
(
item
:
0
,
section
:
0
)
selectIdx
=
IndexPath
(
item
:
0
,
section
:
0
)
}
}
...
...
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
View file @
b3e38b9a
...
@@ -93,8 +93,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -93,8 +93,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
navbar
.
title
=
barTitle
navbar
.
title
=
barTitle
self
.
view
.
addSubview
(
navbar
)
self
.
view
.
addSubview
(
navbar
)
if
datasArr
.
count
>
1
&&
barTitle
!.
contains
(
"编辑"
)
==
true
{
//展示topbar
if
datasArr
.
count
>
1
&&
barTitle
!.
contains
(
"编辑"
)
==
true
{
//展示topbar
isJieTiJiaSetting
=
true
SetTopFrame
(
view
:
topBarView
,
height
:
41
)
SetTopFrame
(
view
:
topBarView
,
height
:
41
)
if
collectView
==
nil
{
if
collectView
==
nil
{
let
collectionView
=
UICollectionView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
0
,
height
:
0
),
collectionViewLayout
:
layout
)
let
collectionView
=
UICollectionView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
0
,
height
:
0
),
collectionViewLayout
:
layout
)
...
...
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