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
4c9b4728
Commit
4c9b4728
authored
May 22, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理订单详情ing
parent
6ed9edd9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
22 deletions
+74
-22
GeliBusinessPlatform.xcworkspace/contents.xcworkspacedata
GeliBusinessPlatform.xcworkspace/contents.xcworkspacedata
+16
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Model/OrderManageModel/OrderDetailModel.swift
...essPlatform/Model/OrderManageModel/OrderDetailModel.swift
+8
-1
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+50
-21
No files found.
GeliBusinessPlatform.xcworkspace/contents.xcworkspacedata
View file @
4c9b4728
...
@@ -4,6 +4,22 @@
...
@@ -4,6 +4,22 @@
<FileRef
<FileRef
location =
"group:GeliBusinessPlatform.xcodeproj"
>
location =
"group:GeliBusinessPlatform.xcodeproj"
>
</FileRef>
</FileRef>
<Group
location =
"group:GeliBusinessPlatform/Model/../.."
name =
"Products"
>
<FileRef
location =
"build:GeliBusinessPlatform.app"
assignedFileDataType =
"com.apple.application-bundle"
>
</FileRef>
<FileRef
location =
"build:GeliBusinessPlatformTests.xctest"
assignedFileDataType =
"com.apple.xcode.cfbundle"
>
</FileRef>
<FileRef
location =
"build:GeliBusinessPlatformUITests.xctest"
assignedFileDataType =
"com.apple.xcode.cfbundle"
>
</FileRef>
</Group>
<FileRef
<FileRef
location =
"group:Pods/Pods.xcodeproj"
>
location =
"group:Pods/Pods.xcodeproj"
>
</FileRef>
</FileRef>
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
4c9b4728
No preview for this file type
GeliBusinessPlatform/Model/OrderManageModel/OrderDetailModel.swift
View file @
4c9b4728
...
@@ -160,6 +160,12 @@ class OrderDetailSaleResModel: Mappable {
...
@@ -160,6 +160,12 @@ class OrderDetailSaleResModel: Mappable {
var
wk_amount
:
String
?
//尾款金额
var
wk_amount
:
String
?
//尾款金额
var
wk_pay_type
:
Int
?
var
wk_pay_type
:
Int
?
var
wk_pay_status
:
Int
?
//尾款支付状态:0未付款; 1已付款 2退款
var
wk_pay_status
:
Int
?
//尾款支付状态:0未付款; 1已付款 2退款
var
dj_pay_status_cn
:
String
?
//定金支付状态(中文)
var
wk_pay_status_cn
:
String
?
//尾款支付状态(中文)
// var wk_amount : String? //尾款金额
// var wk_amount : String? //尾款金额
required
init
?(
map
:
Map
)
{
required
init
?(
map
:
Map
)
{
...
@@ -181,7 +187,8 @@ class OrderDetailSaleResModel: Mappable {
...
@@ -181,7 +187,8 @@ class OrderDetailSaleResModel: Mappable {
wk_amount
<-
map
[
"wk_amount"
]
wk_amount
<-
map
[
"wk_amount"
]
wk_pay_type
<-
map
[
"wk_pay_type"
]
wk_pay_type
<-
map
[
"wk_pay_type"
]
wk_pay_status
<-
map
[
"wk_pay_status"
]
wk_pay_status
<-
map
[
"wk_pay_status"
]
dj_pay_status_cn
<-
map
[
"dj_pay_status_cn"
]
wk_pay_status_cn
<-
map
[
"wk_pay_status_cn"
]
}
}
}
}
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
4c9b4728
...
@@ -487,7 +487,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -487,7 +487,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
break
break
case
7
:
case
7
:
if
isYuShou
{
if
isYuShou
{
cell
.
contentLbl
.
text
=
StringByInt
(
number
:
(
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_status
!
)
!
)
cell
.
contentLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_status_cn
}
else
{
}
else
{
cell
.
contentLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
pay_status_cn
cell
.
contentLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
pay_status_cn
...
@@ -504,7 +504,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -504,7 +504,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
}
break
break
case
9
:
case
9
:
cell
.
contentLbl
.
text
=
StringByInt
(
number
:
(
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_status
!
)
!
)
cell
.
contentLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_status_cn
cell
.
arrowImg
.
isHidden
=
true
cell
.
arrowImg
.
isHidden
=
true
break
break
default
:
default
:
...
@@ -695,42 +695,71 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -695,42 +695,71 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
}
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
GLAlertSelectView
)
{
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
GLAlertSelectView
)
{
if
view
.
titleLbl
.
text
==
"请选择定金支付方式"
{
if
view
.
titleLbl
.
text
==
"请选择定金支付方式"
{
dj_payWay
=
selectNum
var
pay_type
=
0
if
selectNum
==
1
{
pay_type
=
7
}
else
if
selectNum
>
1
{
pay_type
=
selectNum
+
7
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
editPayType
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderId
as
Any
,
"is_adsale"
:
1
as
Any
,
"amount_type"
:
1
as
Any
,
"pay_type"
:
pay_type
],
success
:
{
(
data
)
in
let
dataM
=
data
as!
UpDataModel
if
dataM
.
code
==
1
{
self
.
dj_payWay
=
selectNum
// self.dataMdoel?.order_res?.pay_type_cn = self.zhiFuFangShiArr[selectNum]
self
.
listView
.
reloadData
()
}
})
{
(
error
)
in
}
}
}
if
view
.
titleLbl
.
text
==
"请选择定尾款支付方式"
{
if
view
.
titleLbl
.
text
==
"请选择定尾款支付方式"
{
wk_payWay
=
selectNum
}
var
pay_type
=
0
if
view
.
titleLbl
.
text
==
"请选择支付方式"
{
if
selectNum
==
1
{
//MARK:--选择支付方式回调
pay_type
=
7
}
else
if
selectNum
>
1
{
pay_type
=
selectNum
+
7
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
var
is_adsale
=
0
editPayType
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderId
as
Any
,
"is_adsale"
:
1
as
Any
,
"amount_type"
:
2
as
Any
,
"pay_type"
:
pay_type
],
success
:
{
(
data
)
in
var
amount_type
=
0
let
dataM
=
data
as!
UpDataModel
if
isYuShou
{
if
dataM
.
code
==
1
{
is_adsale
=
1
self
.
wk_payWay
=
selectNum
if
self
.
dataMdoel
?
.
order_res
?
.
sale_res
!=
nil
{
// self.dataMdoel?.order_res?.pay_type_cn = self.zhiFuFangShiArr[selectNum]
if
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_status
==
0
{
self
.
listView
.
reloadData
()
amount_type
=
1
}
else
if
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_status
==
0
{
amount_type
=
2
}
}
}
})
{
(
error
)
in
}
}
}
if
view
.
titleLbl
.
text
==
"请选择支付方式"
{
//MARK:--选择支付方式回调
var
pay_type
=
0
var
pay_type
=
0
if
selectNum
==
1
{
if
selectNum
==
1
{
pay_type
=
7
pay_type
=
7
}
else
if
selectNum
>
1
{
}
else
if
selectNum
>
1
{
pay_type
=
selectNum
+
7
pay_type
=
selectNum
+
7
}
}
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
editPayType
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderId
as
Any
,
"is_adsale"
:
is_adsale
as
Any
,
"amount_type"
:
amount_type
,
"pay_type"
:
pay_type
],
success
:
{
(
data
)
in
editPayType
([
"user_token"
:
UserToken
as
Any
,
"order_id"
:
orderId
as
Any
,
"is_adsale"
:
0
as
Any
,
"amount_type"
:
0
as
Any
,
"pay_type"
:
pay_type
],
success
:
{
(
data
)
in
let
dataM
=
data
as!
UpDataModel
let
dataM
=
data
as!
UpDataModel
if
dataM
.
code
==
1
{
if
dataM
.
code
==
1
{
self
.
zhiFuSelect
=
selectNum
self
.
zhiFuSelect
=
selectNum
self
.
dataMdoel
?
.
order_res
?
.
pay_type_cn
=
self
.
zhiFuFangShiArr
[
selectNum
]
self
.
dataMdoel
?
.
order_res
?
.
pay_type_cn
=
self
.
zhiFuFangShiArr
[
selectNum
]
if
selectNum
==
0
{
self
.
dataMdoel
?
.
order_res
?
.
pay_status_cn
=
"未支付"
}
else
{
self
.
dataMdoel
?
.
order_res
?
.
pay_status_cn
=
"已支付"
}
self
.
listView
.
reloadData
()
self
.
listView
.
reloadData
()
}
}
...
...
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