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
0d143122
Commit
0d143122
authored
Jul 23, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单列表和订单详情里面 的付款码显示
parent
79b8a74b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
37 deletions
+16
-37
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
+5
-1
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+11
-36
No files found.
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
View file @
0d143122
...
@@ -325,9 +325,13 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
...
@@ -325,9 +325,13 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
btnStr
=
[
"查看订单"
]
btnStr
=
[
"查看订单"
]
break
break
}
}
if
rowModel
.
order_status
!
==
1
{
if
rowModel
.
pay_status
!
!=
2
{
if
rowModel
.
order_status
==
1
||
rowModel
.
order_status
==
6
||
rowModel
.
order_status
==
7
||
rowModel
.
order_status
==
10
{
if
!
btnStr
.
contains
(
"付款码"
)
&&
btnStr
.
count
<
4
{
btnStr
.
append
(
"付款码"
)
btnStr
.
append
(
"付款码"
)
}
}
}
}
cell
.
delegate
=
self
cell
.
delegate
=
self
cell
.
setBtnView
(
arr
:
btnStr
,
index
:
indexPath
.
row
)
cell
.
setBtnView
(
arr
:
btnStr
,
index
:
indexPath
.
row
)
cell
.
dataArr
=
rowModel
.
order_goods
cell
.
dataArr
=
rowModel
.
order_goods
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
0d143122
...
@@ -1219,10 +1219,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -1219,10 +1219,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
if
self
.
dataMdoel
!.
order_res
?
.
shipping_status
==
1
&&
self
.
dataMdoel
!.
order_res
?
.
pay_status
!=
2
{
if
self
.
dataMdoel
!.
order_res
?
.
shipping_status
==
1
&&
self
.
dataMdoel
!.
order_res
?
.
pay_status
!=
2
{
titleArr
=
[
"修改价格"
,
"付款码"
,
"退货"
]
titleArr
=
[
"修改价格"
,
"付款码"
,
"退货"
]
}
}
// if self.dataMdoel?.order_res.
// if self.dataMdoel!.order_res?.shipping_status == 0 && self.dataMdoel!.order_res?.pay_status == 12 {
// titleArr = ["修改价格","付款码","退定金"]
// }
break
break
case
6
:
case
6
:
// str = "待发货"
// str = "待发货"
...
@@ -1267,27 +1264,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -1267,27 +1264,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
break
break
//订单完成
//订单完成
case
5
:
case
5
:
// str = "订单完成"
titleArr
=
[]
// titleArr = ["删除订单"]
// if status_d == 53 {
// if self.dataMdoel?.order_res?.shipping_status == 1 || self.dataMdoel?.order_res?.shipping_status == 2 {
// titleArr = ["退货","打印","退款"]
//
// }else{
// titleArr = ["打印","退款"]
// }
// }else if status_d == 52{
// titleArr = ["打印","退款"]
// }else if status_d == 51 {
// if self.dataMdoel?.order_res?.shipping_status == 1 || self.dataMdoel?.order_res?.shipping_status == 2 {
// titleArr = ["退货","打印"]
//
// }else{
// titleArr = []
// }
// }
break
break
case
9
:
case
9
:
// 退款中
// 退款中
...
@@ -1300,11 +1277,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -1300,11 +1277,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
break
break
//订单关闭
//订单关闭
case
8
,
2
:
case
8
,
2
:
// str = "订单关闭"str = "已取消" //用户取消(预售
titleArr
=
[]
titleArr
=
[]
break
break
case
10
:
case
10
:
// str = "订单关闭"str = "已取消" //用户取消(预售
titleArr
=
[
"退款退货"
]
titleArr
=
[
"退款退货"
]
if
self
.
dataMdoel
!.
order_res
?
.
pay_status
!=
2
{
if
self
.
dataMdoel
!.
order_res
?
.
pay_status
!=
2
{
...
@@ -1317,14 +1292,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -1317,14 +1292,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
titleArr
.
insert
(
"付款码"
,
at
:
0
)
titleArr
.
insert
(
"付款码"
,
at
:
0
)
}
}
// if self.dataMdoel!.order_res?.goods_before_pay == 1 && lmIdx == 1{
// titleArr = ["付款码"]
// }
// if self.dataMdoel!.order_res?.pay_status != 2 {
// if self.dataMdoel?.order_res?.from == 3 || self.dataMdoel?.order_res?.from == 5 {
// titleArr = ["确认收款"]
// }
// }
break
break
case
11
:
case
11
:
titleArr
=
[
"查看订单"
]
titleArr
=
[
"查看订单"
]
...
@@ -1339,10 +1307,17 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -1339,10 +1307,17 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
}
break
break
default
:
default
:
titleArr
=
[
"查看订单"
]
titleArr
=
[]
break
break
}
}
if
self
.
dataMdoel
!.
order_res
?
.
pay_status
!
!=
2
{
if
status
==
1
||
status
==
6
||
status
==
7
||
status
==
10
{
if
!
titleArr
.
contains
(
"付款码"
)
&&
titleArr
.
count
<
4
{
titleArr
.
append
(
"付款码"
)
}
}
}
return
titleArr
return
titleArr
}
}
...
...
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