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
d6b1f678
Commit
d6b1f678
authored
Jul 07, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善修改价格界面逻辑
parent
f8c7710e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/TitleAndTfYuanCell.swift
GeliBusinessPlatform/View/Cell/TitleAndTfYuanCell.swift
+4
-1
GeliBusinessPlatform/View/Cell/TitleAndTfYuanCell.xib
GeliBusinessPlatform/View/Cell/TitleAndTfYuanCell.xib
+0
-3
GeliBusinessPlatform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
...orm/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
+3
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
d6b1f678
No preview for this file type
GeliBusinessPlatform/View/Cell/TitleAndTfYuanCell.swift
View file @
d6b1f678
...
@@ -18,10 +18,13 @@ class TitleAndTfYuanCell: UITableViewCell,UITextFieldDelegate {
...
@@ -18,10 +18,13 @@ class TitleAndTfYuanCell: UITableViewCell,UITextFieldDelegate {
override
func
awakeFromNib
()
{
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
self
.
selectionStyle
=
.
none
textTF
.
delegate
=
self
// Initialization code
// Initialization code
}
}
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
if
textField
.
text
?
.
count
==
0
{
textField
.
text
=
"0"
}
delegate
?
.
TitleAndTfYuanCellGetData
(
price
:
textField
.
text
!
,
idx
:
self
.
tag
)
delegate
?
.
TitleAndTfYuanCellGetData
(
price
:
textField
.
text
!
,
idx
:
self
.
tag
)
}
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
...
...
GeliBusinessPlatform/View/Cell/TitleAndTfYuanCell.xib
View file @
d6b1f678
...
@@ -57,9 +57,6 @@
...
@@ -57,9 +57,6 @@
<real
key=
"value"
value=
"1"
/>
<real
key=
"value"
value=
"1"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</userDefinedRuntimeAttributes>
<connections>
<outlet
property=
"delegate"
destination=
"-1"
id=
"7h2-A8-F1h"
/>
</connections>
</textField>
</textField>
</subviews>
</subviews>
<constraints>
<constraints>
...
...
GeliBusinessPlatform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
View file @
d6b1f678
...
@@ -23,6 +23,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
...
@@ -23,6 +23,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
}
else
{
}
else
{
qtPrice
=
price
qtPrice
=
price
}
}
print
(
"abc == "
,
wlPrice
)
var
total
=
Float
(
0
)
var
total
=
Float
(
0
)
dataArr
?
.
forEach
({
(
item
)
in
dataArr
?
.
forEach
({
(
item
)
in
let
price
=
item
.
goods_subtotal
as!
NSString
let
price
=
item
.
goods_subtotal
as!
NSString
...
@@ -31,6 +32,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
...
@@ -31,6 +32,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
let
wl
=
wlPrice
as
NSString
let
wl
=
wlPrice
as
NSString
let
qt
=
qtPrice
as
NSString
let
qt
=
qtPrice
as
NSString
btnTitle
.
text
=
"确定(合计¥
\(
total
+
wl
.
floatValue
+
qt
.
floatValue
)
)"
btnTitle
.
text
=
"确定(合计¥
\(
total
+
wl
.
floatValue
+
qt
.
floatValue
)
)"
tableV
.
reloadData
()
}
}
var
orderID
:
Int
?
=
0
var
orderID
:
Int
?
=
0
...
@@ -181,6 +183,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
...
@@ -181,6 +183,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
5
))
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
5
))
view
.
backgroundColor
=
UIColor
(
named
:
"app底色"
)
return
view
return
view
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
...
...
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