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
3800afc7
Commit
3800afc7
authored
Aug 14, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成取消订单原因
parent
f1e797cd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
5 deletions
+31
-5
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/OtherInfoTextViewTableViewCell.swift
...ssPlatform/View/Cell/OtherInfoTextViewTableViewCell.swift
+8
-1
GeliBusinessPlatform/ViewController/货拉拉/取消订单/HuolalaCancelViewController.swift
...ViewController/货拉拉/取消订单/HuolalaCancelViewController.swift
+22
-3
GeliBusinessPlatform/ViewController/货拉拉/运单详情/WaybillDetailViewController.swift
...ViewController/货拉拉/运单详情/WaybillDetailViewController.swift
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
3800afc7
No preview for this file type
GeliBusinessPlatform/View/Cell/OtherInfoTextViewTableViewCell.swift
View file @
3800afc7
...
@@ -8,8 +8,13 @@
...
@@ -8,8 +8,13 @@
import
UIKit
import
UIKit
protocol
OtherInfoTextViewTableViewCellDelegate
{
func
OtherInfoTextViewTableViewCellGetTextContent
(
sender
:
String
)
}
class
OtherInfoTextViewTableViewCell
:
UITableViewCell
,
UITextViewDelegate
{
class
OtherInfoTextViewTableViewCell
:
UITableViewCell
,
UITextViewDelegate
{
@IBOutlet
weak
var
nameLbl
:
UILabel
!
@IBOutlet
weak
var
nameLbl
:
UILabel
!
var
delegate
:
OtherInfoTextViewTableViewCellDelegate
?
@IBOutlet
weak
var
bgLeft
:
NSLayoutConstraint
!
@IBOutlet
weak
var
bgLeft
:
NSLayoutConstraint
!
@IBOutlet
weak
var
titleLeft
:
NSLayoutConstraint
!
@IBOutlet
weak
var
titleLeft
:
NSLayoutConstraint
!
...
@@ -34,6 +39,7 @@ class OtherInfoTextViewTableViewCell: UITableViewCell,UITextViewDelegate {
...
@@ -34,6 +39,7 @@ class OtherInfoTextViewTableViewCell: UITableViewCell,UITextViewDelegate {
{
{
textView
.
text
=
textView
.
text
.
subString
(
start
:
0
,
length
:
200
)
textView
.
text
=
textView
.
text
.
subString
(
start
:
0
,
length
:
200
)
}
}
delegate
?
.
OtherInfoTextViewTableViewCellGetTextContent
(
sender
:
textView
.
text
)
return
true
return
true
}
}
func
textViewDidChange
(
_
textView
:
UITextView
)
{
func
textViewDidChange
(
_
textView
:
UITextView
)
{
...
@@ -43,6 +49,7 @@ class OtherInfoTextViewTableViewCell: UITableViewCell,UITextViewDelegate {
...
@@ -43,6 +49,7 @@ class OtherInfoTextViewTableViewCell: UITableViewCell,UITextViewDelegate {
textView
.
text
=
textView
.
text
.
subString
(
start
:
0
,
length
:
200
)
textView
.
text
=
textView
.
text
.
subString
(
start
:
0
,
length
:
200
)
}
}
}
}
delegate
?
.
OtherInfoTextViewTableViewCellGetTextContent
(
sender
:
textView
.
text
)
}
}
}
}
GeliBusinessPlatform/ViewController/货拉拉/取消订单/HuolalaCancelViewController.swift
View file @
3800afc7
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
import
UIKit
import
UIKit
import
LGButton
import
LGButton
class
HuolalaCancelViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
class
HuolalaCancelViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
OtherInfoTextViewTableViewCellDelegate
{
@IBOutlet
weak
var
bottomLbl
:
UILabel
!
@IBOutlet
weak
var
bottomLbl
:
UILabel
!
var
lwbno
=
""
var
lwbno
=
""
...
@@ -17,6 +17,8 @@ class HuolalaCancelViewController: BaseViewController ,UITableViewDelegate,UITab
...
@@ -17,6 +17,8 @@ class HuolalaCancelViewController: BaseViewController ,UITableViewDelegate,UITab
var
selectID
=
81338860
var
selectID
=
81338860
var
reason_id
=
0
var
reason_id
=
0
var
reason
=
""
var
reason
=
""
var
reasonStr
=
""
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
listView
:
UITableView
!
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
...
@@ -34,9 +36,16 @@ class HuolalaCancelViewController: BaseViewController ,UITableViewDelegate,UITab
...
@@ -34,9 +36,16 @@ class HuolalaCancelViewController: BaseViewController ,UITableViewDelegate,UITab
}
}
@IBAction
func
cancelAction
(
_
sender
:
LGButton
)
{
@IBAction
func
cancelAction
(
_
sender
:
LGButton
)
{
if
selectID
==
81338860
{
if
selectID
==
81338860
{
HUD
.
flash
(
.
label
(
"请选择取消原因"
))
HUD
.
flash
(
.
label
(
"请选择取消原因"
)
,
delay
:
1.2
)
return
return
}
}
if
reason
==
"其他"
{
if
reasonStr
.
count
==
0
{
HUD
.
flash
(
.
label
(
"填写选择取消原因"
),
delay
:
1.2
)
return
}
}
orderCancelOrder
()
orderCancelOrder
()
}
}
//请求取消原因
//请求取消原因
...
@@ -131,6 +140,7 @@ class HuolalaCancelViewController: BaseViewController ,UITableViewDelegate,UITab
...
@@ -131,6 +140,7 @@ class HuolalaCancelViewController: BaseViewController ,UITableViewDelegate,UITab
cell
.
titleLeft
.
constant
=
15
cell
.
titleLeft
.
constant
=
15
cell
.
bgLeft
.
constant
=
15
cell
.
bgLeft
.
constant
=
15
}
}
cell
.
delegate
=
self
return
cell
return
cell
}
}
...
@@ -160,6 +170,9 @@ class HuolalaCancelViewController: BaseViewController ,UITableViewDelegate,UITab
...
@@ -160,6 +170,9 @@ class HuolalaCancelViewController: BaseViewController ,UITableViewDelegate,UITab
}
}
return
cell
return
cell
}
}
func
OtherInfoTextViewTableViewCellGetTextContent
(
sender
:
String
)
{
reasonStr
=
sender
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
sectionModel
=
reasonArr
[
indexPath
.
section
]
let
sectionModel
=
reasonArr
[
indexPath
.
section
]
let
rowModel
=
sectionModel
.
sub_cat
!
[
indexPath
.
row
]
let
rowModel
=
sectionModel
.
sub_cat
!
[
indexPath
.
row
]
...
@@ -234,8 +247,14 @@ class HuolalaCancelViewController: BaseViewController ,UITableViewDelegate,UITab
...
@@ -234,8 +247,14 @@ class HuolalaCancelViewController: BaseViewController ,UITableViewDelegate,UITab
//MARK:--取消货拉拉运单
//MARK:--取消货拉拉运单
func
orderCancelOrder
(){
func
orderCancelOrder
(){
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
var
lastReason
=
reason
if
reason
==
"其他"
{
lastReason
=
reasonStr
}
let
dict
=
[
"user_token"
:
UserToken
as
Any
,
"lwb_no"
:
lwbno
as
Any
,
"reason_id"
:
reason_id
as
Any
,
"reason"
:
lastReason
as
Any
,
"nonce_str"
:
String
.
randomStr
(
len
:
30
)
as
Any
]
orderLalamoveCancel
(
[
"user_token"
:
UserToken
as
Any
,
"lwb_no"
:
lwbno
as
Any
,
"reason_id"
:
reason_id
as
Any
,
"reason"
:
reason
as
Any
]
,
success
:
{
(
data
)
in
orderLalamoveCancel
(
dict
,
success
:
{
(
data
)
in
NotificationCenter
.
default
.
post
(
name
:
NSNotification
.
Name
(
rawValue
:
"HuolalaOrderChange"
),
object
:
nil
)
NotificationCenter
.
default
.
post
(
name
:
NSNotification
.
Name
(
rawValue
:
"HuolalaOrderChange"
),
object
:
nil
)
...
...
GeliBusinessPlatform/ViewController/货拉拉/运单详情/WaybillDetailViewController.swift
View file @
3800afc7
...
@@ -288,7 +288,7 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
...
@@ -288,7 +288,7 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
case
10
,
11
,
13
,
2
,
14
:
case
10
,
11
,
13
,
2
,
14
:
cell
.
statusLbl
.
text
=
"已完成"
cell
.
statusLbl
.
text
=
"已完成"
cell
.
statusImgV
.
image
=
UIImage
.
init
(
named
:
"货拉拉运单完成"
)
cell
.
statusImgV
.
image
=
UIImage
.
init
(
named
:
"货拉拉运单完成"
)
case
3
,
4
,
5
:
case
3
,
4
,
5
,
8
:
cell
.
statusLbl
.
text
=
"已取消"
cell
.
statusLbl
.
text
=
"已取消"
cell
.
statusImgV
.
image
=
UIImage
.
init
(
named
:
"货拉拉运单取消"
)
cell
.
statusImgV
.
image
=
UIImage
.
init
(
named
:
"货拉拉运单取消"
)
default
:
default
:
...
...
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