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
4341ff50
Commit
4341ff50
authored
May 18, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情预售修正
parent
28a70dce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
17 deletions
+15
-17
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+10
-10
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
...orm/ViewController/新增规格/CreatNewSpecsViewController.swift
+3
-5
GeliBusinessPlatform/ViewController/新增规格/GuiGeModel.swift
GeliBusinessPlatform/ViewController/新增规格/GuiGeModel.swift
+2
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
4341ff50
No preview for this file type
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
4341ff50
...
...
@@ -612,13 +612,13 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
titles
.
add
(
contentArr
[
num
])
}
}
for
title
in
titles
{
let
str
=
title
as!
String
if
titles
.
componentsJoined
(
by
:
","
)
.
contains
(
"预售"
)
{
isYuShouShangPin
=
true
}
else
{
isYuShouShangPin
=
false
if
str
==
"预售"
{
isYuShouShangPin
=
true
}
}
print
(
"isYuShouShangPin == "
,
isYuShouShangPin
)
tishixxArr
.
insert
(
titles
.
componentsJoined
(
by
:
","
),
at
:
view
.
tag
)
tishixxArr
.
remove
(
at
:
view
.
tag
+
1
)
if
itemTypeArr
==
[
99
,
99
,
99
,
99
]
{
...
...
@@ -670,8 +670,9 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
vc
.
weight
=
dataDict
.
weight
vc
.
wenDu
=
dataDict
.
wenDu
vc
.
danWei
=
dataDict
.
danWei
vc
.
isNonYuShou
=
dataDict
.
isNonYuShou
vc
.
isYuShouSetting
=
dataDict
.
isYuShouSetting
print
(
"test == "
,
isYuShouShangPin
!
)
// vc.isNonYuShou = isYuShouShangPin!
vc
.
isYuShouSetting
=
isYuShouShangPin
!
vc
.
yuShouPrice
=
dataDict
.
yuShouPrice
vc
.
specalArr
=
dataDict
.
specalArr
vc
.
jieTiArr
=
dataDict
.
jieTiArr
...
...
@@ -695,14 +696,13 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
vc
.
barTitle
=
"新增规格"
vc
.
delegate
=
self
vc
.
danWeiArr
=
generalInfoModel
?
.
data
!.
unit
vc
.
isYuShouSetting
=
isYuShou
vc
.
isNonYuShou
=
isYuShou
vc
.
isYuShouSetting
=
isYuShouShangPin
!
vc
.
datasArr
=
guiGeArr
vc
.
selectIdx
=
selectIdx
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
//MARK: - 新增、编辑规格
//MARK: - 新增、编辑规格
数据返回
func
CreatNewSpecsViewControllerSaveAction
(
datas
:
Array
<
GuiGeModel
>
,
selectIdx
:
IndexPath
)
{
guiGeArr
=
datas
self
.
selectIdx
=
selectIdx
...
...
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
View file @
4341ff50
...
...
@@ -43,7 +43,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
var
selectYuShou
:
Bool
=
false
//是否选择设置预售价格
var
isNonYuShou
:
Bool
=
false
//是否选择预售价格
//
var isNonYuShou:Bool = false //是否选择预售价格
var
yuShouPrice
:
String
=
""
//预售设置数据记录
//选择页面
...
...
@@ -182,7 +182,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
dataModel
.
danWei
=
danWei
dataModel
.
jieTiArr
=
jieTiArr
as!
Array
<
Any
>
dataModel
.
specalArr
=
specalArr
as!
Array
<
Any
>
dataModel
.
isNonYuShou
=
isNonYuShou
//
dataModel.isNonYuShou = isNonYuShou
dataModel
.
isYuShouSetting
=
isYuShouSetting
dataModel
.
yuShouPrice
=
yuShouPrice
dataModel
.
itemDanWeiSelect
=
itemDanWeiSelect
...
...
@@ -317,7 +317,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
cell
.
namelbl
.
text
=
"预售设置"
cell
.
infoSw
.
isOn
=
isYuShouSetting
cell
.
tag
=
5
if
is
NonYuShou
==
false
{
if
is
YuShouSetting
==
false
{
cell
.
namelbl
.
alpha
=
0.45
cell
.
isUserInteractionEnabled
=
false
}
...
...
@@ -626,8 +626,6 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
weight
=
dataDict
.
weight
wenDu
=
dataDict
.
wenDu
danWei
=
dataDict
.
danWei
isNonYuShou
=
dataDict
.
isNonYuShou
isYuShouSetting
=
dataDict
.
isYuShouSetting
yuShouPrice
=
dataDict
.
yuShouPrice
specalArr
=
dataDict
.
specalArr
jieTiArr
=
dataDict
.
jieTiArr
...
...
GeliBusinessPlatform/ViewController/新增规格/GuiGeModel.swift
View file @
4341ff50
...
...
@@ -19,8 +19,8 @@ class GuiGeModel: NSObject {
var
wenDu
:
String
=
""
///单位
var
danWei
:
String
=
""
///是否预售
var
isNonYuShou
:
Bool
=
false
//
///是否预售
//
var isNonYuShou : Bool = false
///是否打开预售设置
var
isYuShouSetting
:
Bool
=
false
///预售价格
...
...
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