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
cfba0439
Commit
cfba0439
authored
5 years ago
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情预售点击补充
parent
e190d86e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
44 deletions
+48
-44
GeliBusinessPlatform.xcworkspace/contents.xcworkspacedata
GeliBusinessPlatform.xcworkspace/contents.xcworkspacedata
+0
-16
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
+1
-2
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+47
-26
No files found.
GeliBusinessPlatform.xcworkspace/contents.xcworkspacedata
View file @
cfba0439
...
...
@@ -4,22 +4,6 @@
<FileRef
location =
"group:GeliBusinessPlatform.xcodeproj"
>
</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
location =
"group:Pods/Pods.xcodeproj"
>
</FileRef>
...
...
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
cfba0439
No preview for this file type
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
View file @
cfba0439
...
...
@@ -203,11 +203,10 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
cell
.
selectBtn
.
isSelected
=
true
}
}
print
(
"deSelectArr.count"
,
deSelectArr
.
count
)
if
deSelectArr
.
count
>
0
{
for
i
in
deSelectArr
{
if
i
==
indexPath
.
row
{
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"
灰色字体颜色
"
)
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"
#999999
"
)
cell
.
selectBtn
.
isUserInteractionEnabled
=
false
}
}
...
...
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
cfba0439
...
...
@@ -53,7 +53,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
let
zhiFuStatus
=
[
"未付款"
,
"欠款"
,
"月结"
,
"已付款"
]
var
zhiFuStatusSelect
:
Int
?
//付款状态
// let wuLiuFSArr = ["京东冷链","顺丰冷运","达达速运"]
// let wuLiuFSArr = ["京东冷链","顺丰冷运","达达速运"]
var
wuLiuFSArr
:
Array
<
String
>
=
[]
var
wuLiuSelect
:
Int
?
//物流选择
...
...
@@ -63,7 +63,9 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
bottomBgView
:
UIView
!
//MARK: - 定金支付方式
var
dj_payWay
=
1
var
wk_payWay
=
1
//尾款支付方式
//MARK:--加载数据
var
dataMdoel
:
OrderDetailDataModel
?
=
nil
...
...
@@ -417,24 +419,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndTFCell"
)
as!
TitleAndTFCell
cell
.
textTF
.
isUserInteractionEnabled
=
false
cell
.
nameLbl
.
text
=
nonYuShouPart3Arr
[
indexPath
.
row
]
// if self.dataMdoel?.receiving == nil {
cell
.
textTF
.
text
=
"-"
// }else{
// switch indexPath.row {
// case 0:
// cell.textTF.text = (self.dataMdoel?.receiving?.consignee)!
// break
// case 1:
// cell.textTF.text = (self.dataMdoel?.receiving?.mobile)!
// break
// case 2:
// cell.textTF.text = (self.dataMdoel?.receiving?.addr_str)!
// break
// default:
// break
// }
// }
return
cell
case
4
:
//MARK:--订单信息cell
...
...
@@ -448,10 +433,8 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
cell
.
tag
=
indexPath
.
row
if
isYuShou
{
cell
.
nameLbl
.
text
=
isYuShouPart3Arr
[
indexPath
.
row
]
}
else
{
cell
.
nameLbl
.
text
=
YuShouPart3Arr
[
indexPath
.
row
]
}
switch
indexPath
.
row
{
...
...
@@ -483,7 +466,6 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
if
indexPath
.
row
==
4
||
indexPath
.
row
==
6
||
indexPath
.
row
==
7
||
indexPath
.
row
==
(
6
+
isYushoucount
)
||
indexPath
.
row
==
(
7
+
isYushoucount
){
if
isYuShou
{
cell
.
nameLbl
.
text
=
isYuShouPart3Arr
[
indexPath
.
row
]
}
else
{
cell
.
nameLbl
.
text
=
YuShouPart3Arr
[
indexPath
.
row
]
...
...
@@ -496,8 +478,8 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
break
case
6
:
if
isYuShou
{
cell
.
contentLbl
.
text
=
StringByInt
(
number
:
(
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
dj_pay_type
!
)
!
)
// dj_payWay = (self.dataMdoel?.order_res?.sale_res?.dj_pay_type!)!
cell
.
contentLbl
.
text
=
zhiFuFangShiArr
[
dj_payWay
]
}
else
{
cell
.
contentLbl
.
text
=
self
.
dataMdoel
?
.
order_res
?
.
pay_type_cn
...
...
@@ -514,7 +496,12 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
cell
.
arrowImg
.
isHidden
=
true
break
case
8
:
if
isYuShou
{
// wk_payWay = (self.dataMdoel?.order_res?.sale_res?.wk_pay_type!)!
cell
.
contentLbl
.
text
=
zhiFuFangShiArr
[
wk_payWay
]
}
else
{
cell
.
contentLbl
.
text
=
StringByInt
(
number
:
(
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_type
!
)
!
)
}
break
case
9
:
cell
.
contentLbl
.
text
=
StringByInt
(
number
:
(
self
.
dataMdoel
?
.
order_res
?
.
sale_res
?
.
wk_pay_status
!
)
!
)
...
...
@@ -668,11 +655,38 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
//无需处理:根据网络变更
break
case
"定金支付方式"
:
print
(
"定金支付方式"
)
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
tag
=
cell
.
tag
view
.
titleLbl
.
text
=
"请选择定金支付方式"
view
.
delegate
=
self
view
.
dataArr
=
zhiFuFangShiArr
view
.
selectNum
=
dj_payWay
if
dj_payWay
!=
0
{
view
.
deSelectArr
=
[
0
]
}
view
.
tempNum
=
view
.
selectNum
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
break
case
"尾款支付方式"
:
print
(
"尾款支付方式"
)
print
(
cell
.
tag
)
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
tag
=
cell
.
tag
view
.
titleLbl
.
text
=
"请选择定尾款支付方式"
view
.
delegate
=
self
view
.
dataArr
=
zhiFuFangShiArr
view
.
selectNum
=
wk_payWay
if
wk_payWay
!=
0
{
view
.
deSelectArr
=
[
0
]
}
view
.
tempNum
=
view
.
selectNum
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
break
default
:
...
...
@@ -680,6 +694,13 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
}
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
GLAlertSelectView
)
{
if
view
.
titleLbl
.
text
==
"请选择定金支付方式"
{
dj_payWay
=
selectNum
}
if
view
.
titleLbl
.
text
==
"请选择定尾款支付方式"
{
wk_payWay
=
selectNum
}
if
view
.
titleLbl
.
text
==
"请选择支付方式"
{
//MARK:--选择支付方式回调
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
...
...
This diff is collapsed.
Click to expand it.
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