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
c2f0b580
Commit
c2f0b580
authored
May 22, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改规格完成
parent
54d9e033
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
20 deletions
+39
-20
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Define/Define.swift
GeliBusinessPlatform/Define/Define.swift
+11
-0
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
...inessPlatform/ViewController/商品管理/GoodsManageListVC.swift
+2
-0
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+10
-9
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
...orm/ViewController/新增规格/CreatNewSpecsViewController.swift
+14
-10
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.xib
...tform/ViewController/新增规格/CreatNewSpecsViewController.xib
+2
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
c2f0b580
No preview for this file type
GeliBusinessPlatform/Define/Define.swift
View file @
c2f0b580
...
@@ -246,6 +246,17 @@ func dataChangeString(sender:Array<Any>) -> String{
...
@@ -246,6 +246,17 @@ func dataChangeString(sender:Array<Any>) -> String{
return
str
return
str
}
}
//MARK:--字符串转字典
func
getDictionaryFromJSONString
(
jsonString
:
String
)
->
NSDictionary
{
let
jsonData
:
Data
=
jsonString
.
data
(
using
:
.
utf8
)
!
let
dict
=
try
?
JSONSerialization
.
jsonObject
(
with
:
jsonData
,
options
:
.
mutableContainers
)
if
dict
!=
nil
{
return
dict
as!
NSDictionary
}
return
NSDictionary
()
}
//MARK:--字典转字符串
//MARK:--字典转字符串
func
dictChangeString
(
sender
:
Dictionary
<
String
,
String
>
)
->
String
{
func
dictChangeString
(
sender
:
Dictionary
<
String
,
String
>
)
->
String
{
var
str
=
""
var
str
=
""
...
...
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
View file @
c2f0b580
...
@@ -408,7 +408,9 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
...
@@ -408,7 +408,9 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
}
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
print
(
"选中===
\(
indexPath
)
"
)
print
(
"选中===
\(
indexPath
)
"
)
let
item
=
collection
?
.
cellForItem
(
at
:
indexPath
)
as!
GoodsCollectionViewCell
let
vc
=
EPViewController
()
let
vc
=
EPViewController
()
vc
.
titleStrArr
=
[
item
.
leftBtn
.
titleLabel
!.
text
!
,
item
.
rightBtn
.
titleLabel
!.
text
!
]
let
data
=
items
[
indexPath
.
row
]
let
data
=
items
[
indexPath
.
row
]
vc
.
goods_id
=
data
.
goods_id
vc
.
goods_id
=
data
.
goods_id
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
c2f0b580
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
c2f0b580
...
@@ -75,10 +75,10 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -75,10 +75,10 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
var
shiFouSH
=
false
//是否审核
var
shiFouSH
=
false
//是否审核
var
faHuoTime
=
""
//发货时间
var
faHuoTime
=
""
//发货时间
//预售时间段
//预售时间段
var
dj_time_start
:
Int
?
=
0
var
dj_time_start
:
Double
?
=
0
var
dj_time_end
:
Int
?
=
0
var
dj_time_end
:
Double
?
=
0
var
wk_time_start
:
Int
?
=
0
var
wk_time_start
:
Double
?
=
0
var
wk_time_end
:
Int
?
=
0
var
wk_time_end
:
Double
?
=
0
//MARK:--保存按钮
//MARK:--保存按钮
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
...
@@ -590,13 +590,13 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -590,13 +590,13 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
if
isWeiTime
{
if
isWeiTime
{
ysszHolder
.
insert
(
timeStr
,
at
:
2
)
ysszHolder
.
insert
(
timeStr
,
at
:
2
)
ysszHolder
.
remove
(
at
:
3
)
ysszHolder
.
remove
(
at
:
3
)
wk_time_start
=
Int
(
timeInterval
)
wk_time_start
=
Double
(
timeInterval
)
wk_time_end
=
Int
(
timeIntervalEnd
)
wk_time_end
=
Double
(
timeIntervalEnd
)
}
else
{
}
else
{
ysszHolder
.
insert
(
timeStr
,
at
:
1
)
ysszHolder
.
insert
(
timeStr
,
at
:
1
)
ysszHolder
.
remove
(
at
:
2
)
ysszHolder
.
remove
(
at
:
2
)
dj_time_start
=
Int
(
timeInterval
)
dj_time_start
=
Double
(
timeInterval
)
dj_time_end
=
Int
(
timeIntervalEnd
)
dj_time_end
=
Double
(
timeIntervalEnd
)
}
}
listTbv
.
reloadData
()
listTbv
.
reloadData
()
...
@@ -653,7 +653,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -653,7 +653,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
// print("上传图片==\(image)")
// print("上传图片==\(image)")
// self.maxFiveImgsArr.append(image!)
// self.maxFiveImgsArr.append(image!)
// let index = Dollar.indexOf(self.maxFiveImgsArr, value: image!)
// let index = Dollar.indexOf(self.maxFiveImgsArr, value: image!)
self
.
uploadImg
(
imge
:
image
!
,
isOriginal
:
false
,
tag
:
self
.
maxFiveImgsArr
.
count
)
self
.
maxFiveImgsArr
.
append
(
"insert"
)
self
.
uploadImg
(
imge
:
image
!
,
isOriginal
:
false
,
tag
:
self
.
maxFiveImgsArr
.
count
-
1
)
})
})
}
}
...
...
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
View file @
c2f0b580
...
@@ -44,6 +44,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -44,6 +44,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
var
selectIdx
:
IndexPath
?
var
selectIdx
:
IndexPath
?
var
isYuShouSetting
=
false
//打开预售
var
isYuShouSetting
=
false
//打开预售
@IBOutlet
weak
var
btmLblH
:
NSLayoutConstraint
!
var
isJieTiOpen
=
false
//控制阶梯价是否打开
var
isJieTiOpen
=
false
//控制阶梯价是否打开
var
isYsJieTiOpen
=
false
//控制预售阶梯是否打开
var
isYsJieTiOpen
=
false
//控制预售阶梯是否打开
...
@@ -90,6 +91,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -90,6 +91,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
isAllEditing
=
false
isAllEditing
=
false
bottomBtn
.
isHidden
=
true
bottomBtn
.
isHidden
=
true
btmLbl
.
isHidden
=
true
btmLbl
.
isHidden
=
true
btmLblH
.
constant
=
0
}
}
if
datasArr
.
count
>
1
&&
barTitle
!.
contains
(
"编辑"
)
==
true
{
//展示topbar
if
datasArr
.
count
>
1
&&
barTitle
!.
contains
(
"编辑"
)
==
true
{
//展示topbar
...
@@ -422,7 +424,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -422,7 +424,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
if
isYsJieTiOpen
&&
selectYuShou
{
if
isYsJieTiOpen
&&
selectYuShou
{
return
49
return
49
}
}
return
0.001
return
0.001
}
}
return
49
return
49
...
@@ -467,15 +469,17 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -467,15 +469,17 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
//footer
//footer
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
if
section
==
2
{
if
section
==
2
{
if
isJieTiOpen
&&
selectYuShou
==
false
{
if
barTitle
?
.
contains
(
"查看"
)
==
false
{
let
view
=
NewCreateFooter
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
49
))
if
isJieTiOpen
&&
selectYuShou
==
false
{
view
.
delegate
=
self
let
view
=
NewCreateFooter
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
49
))
return
view
view
.
delegate
=
self
}
return
view
if
isYsJieTiOpen
&&
selectYuShou
{
}
let
view
=
NewCreateFooter
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
49
))
if
isYsJieTiOpen
&&
selectYuShou
{
view
.
delegate
=
self
let
view
=
NewCreateFooter
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
49
))
return
view
view
.
delegate
=
self
return
view
}
}
}
}
}
let
view
=
UIView
()
let
view
=
UIView
()
...
...
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.xib
View file @
c2f0b580
...
@@ -8,10 +8,11 @@
...
@@ -8,10 +8,11 @@
<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=
"CreatNewSpecsViewController"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"CreatNewSpecsViewController"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<connections>
<outlet
property=
"bottomBtn"
destination=
"Y0N-V9-rbQ"
id=
"cyL-aV-aEN"
/>
<outlet
property=
"bottomBtn"
destination=
"Y0N-V9-rbQ"
id=
"cyL-aV-aEN"
/>
<outlet
property=
"btmLbl"
destination=
"cfi-M7-imX"
id=
"nul-AS-3bD"
/>
<outlet
property=
"btmLbl"
destination=
"cfi-M7-imX"
id=
"nul-AS-3bD"
/>
<outlet
property=
"btmLblH"
destination=
"vek-sO-irU"
id=
"oFb-8u-5yE"
/>
<outlet
property=
"listTbv"
destination=
"bSh-mx-Kzg"
id=
"xwd-1s-qv3"
/>
<outlet
property=
"listTbv"
destination=
"bSh-mx-Kzg"
id=
"xwd-1s-qv3"
/>
<outlet
property=
"topBarView"
destination=
"58G-5f-0zb"
id=
"HDH-SB-fbX"
/>
<outlet
property=
"topBarView"
destination=
"58G-5f-0zb"
id=
"HDH-SB-fbX"
/>
<outlet
property=
"topBarViewH"
destination=
"BMm-7O-bZv"
id=
"ygO-Sq-gGh"
/>
<outlet
property=
"topBarViewH"
destination=
"BMm-7O-bZv"
id=
"ygO-Sq-gGh"
/>
...
...
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