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
765ad267
Commit
765ad267
authored
Jul 16, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善状态逻辑
parent
25461567
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
9 deletions
+30
-9
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Model/OrderManageModel/OrderDetailModel.swift
...essPlatform/Model/OrderManageModel/OrderDetailModel.swift
+15
-5
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
+8
-3
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+7
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
765ad267
No preview for this file type
GeliBusinessPlatform/Model/OrderManageModel/OrderDetailModel.swift
View file @
765ad267
...
@@ -126,14 +126,19 @@ func orderStatusStrByInt(statusNumber:Int,status_d:Int,isBfPay:Int,LmIdx:Int) ->
...
@@ -126,14 +126,19 @@ func orderStatusStrByInt(statusNumber:Int,status_d:Int,isBfPay:Int,LmIdx:Int) ->
break
break
case
6
:
case
6
:
str
=
"待发货"
str
=
"待发货"
if
LmIdx
==
1
{
//
if LmIdx == 1 {
if
isBfPay
==
1
{
//
if isBfPay == 1 {
str
=
"待付款"
//
str = "待付款"
}
//
}
}
//
}
break
break
case
7
:
case
7
:
str
=
"待收货"
str
=
"待收货"
// if LmIdx == 1 {
// if isBfPay == 1 {
// str = "待付款"
// }
// }
break
break
//订单完成
//订单完成
case
5
:
case
5
:
...
@@ -156,6 +161,11 @@ func orderStatusStrByInt(statusNumber:Int,status_d:Int,isBfPay:Int,LmIdx:Int) ->
...
@@ -156,6 +161,11 @@ func orderStatusStrByInt(statusNumber:Int,status_d:Int,isBfPay:Int,LmIdx:Int) ->
break
break
case
10
:
case
10
:
str
=
"已收货"
str
=
"已收货"
// if LmIdx == 1 {
// if isBfPay == 1 {
// str = "待付款"
// }
// }
break
break
case
11
:
case
11
:
switch
status_d
{
switch
status_d
{
...
...
GeliBusinessPlatform/ViewController/订单列表/OrderListVC.swift
View file @
765ad267
...
@@ -235,9 +235,8 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
...
@@ -235,9 +235,8 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
if
rowModel
.
shipping_status
==
1
&&
rowModel
.
pay_status
==
0
{
if
rowModel
.
shipping_status
==
1
&&
rowModel
.
pay_status
==
0
{
btnStr
=
[
"退货"
]
btnStr
=
[
"退货"
]
}
}
// if rowModel.shipping_status == 0 && rowModel.pay_status == 12 {
// btnStr = ["退定金"]
// }
break
break
case
5
:
//交易完成
case
5
:
//交易完成
btnStr
=
[
"查看订单"
]
btnStr
=
[
"查看订单"
]
...
@@ -266,6 +265,9 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
...
@@ -266,6 +265,9 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
btnStr
.
append
(
"确认收款"
)
btnStr
.
append
(
"确认收款"
)
}
}
}
}
if
rowModel
.
goods_before_pay
==
1
&&
orderStatus
==
1
{
btnStr
=
[
"付款码"
,
"取消订单"
]
}
if
rowModel
.
apply_cancel
==
1
{
if
rowModel
.
apply_cancel
==
1
{
btnStr
=
[
"拒绝取消订单"
,
"同意取消订单"
]
btnStr
=
[
"拒绝取消订单"
,
"同意取消订单"
]
}
}
...
@@ -277,6 +279,9 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
...
@@ -277,6 +279,9 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
btnStr
=
[
"确认收款"
]
btnStr
=
[
"确认收款"
]
}
}
}
}
if
rowModel
.
goods_before_pay
==
1
&&
orderStatus
==
1
{
btnStr
=
[
"付款码"
]
}
break
break
case
9
:
case
9
:
btnStr
=
[
"查看订单"
]
btnStr
=
[
"查看订单"
]
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
765ad267
...
@@ -1173,6 +1173,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -1173,6 +1173,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
if
self
.
dataMdoel
!.
order_res
?
.
shipping_status
==
1
&&
self
.
dataMdoel
!.
order_res
?
.
pay_status
==
0
{
if
self
.
dataMdoel
!.
order_res
?
.
shipping_status
==
1
&&
self
.
dataMdoel
!.
order_res
?
.
pay_status
==
0
{
titleArr
=
[
"修改价格"
,
"付款码"
,
"退货"
]
titleArr
=
[
"修改价格"
,
"付款码"
,
"退货"
]
}
}
// if self.dataMdoel?.order_res.
// if self.dataMdoel!.order_res?.shipping_status == 0 && self.dataMdoel!.order_res?.pay_status == 12 {
// if self.dataMdoel!.order_res?.shipping_status == 0 && self.dataMdoel!.order_res?.pay_status == 12 {
// titleArr = ["修改价格","付款码","退定金"]
// titleArr = ["修改价格","付款码","退定金"]
// }
// }
...
@@ -1201,6 +1202,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -1201,6 +1202,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
if
self
.
dataMdoel
?
.
order_res
?
.
from
==
3
||
self
.
dataMdoel
?
.
order_res
?
.
from
==
5
{
if
self
.
dataMdoel
?
.
order_res
?
.
from
==
3
||
self
.
dataMdoel
?
.
order_res
?
.
from
==
5
{
titleArr
.
append
(
"确认收款"
)
titleArr
.
append
(
"确认收款"
)
}
}
if
self
.
dataMdoel
!.
order_res
?
.
goods_before_pay
==
1
&&
lmIdx
==
1
{
titleArr
=
[
"付款码"
,
"取消订单"
]
}
}
}
if
self
.
dataMdoel
?
.
order_res
?
.
apply_cancel
==
1
{
if
self
.
dataMdoel
?
.
order_res
?
.
apply_cancel
==
1
{
titleArr
=
[
"拒绝取消订单"
,
"同意取消订单"
]
titleArr
=
[
"拒绝取消订单"
,
"同意取消订单"
]
...
@@ -1246,7 +1250,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -1246,7 +1250,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
break
break
case
10
:
case
10
:
// str = "订单关闭"str = "已取消" //用户取消(预售
// str = "订单关闭"str = "已取消" //用户取消(预售
// titleArr = ["查看订单"]
if
self
.
dataMdoel
!.
order_res
?
.
goods_before_pay
==
1
&&
lmIdx
==
1
{
titleArr
=
[
"付款码"
]
}
// if self.dataMdoel!.order_res?.pay_status == 0 {
// if self.dataMdoel!.order_res?.pay_status == 0 {
// if self.dataMdoel?.order_res?.from == 3 || self.dataMdoel?.order_res?.from == 5 {
// if self.dataMdoel?.order_res?.from == 3 || self.dataMdoel?.order_res?.from == 5 {
// titleArr = ["确认收款"]
// 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