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
e190d86e
Commit
e190d86e
authored
May 22, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代客下单逻辑补充
parent
20e6b0bd
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
38 additions
and
9 deletions
+38
-9
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
+13
-1
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
...iewController/代客下单(购物)/XuanZeShangPinViewController.swift
+18
-1
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.xib
.../ViewController/代客下单(购物)/XuanZeShangPinViewController.xib
+1
-1
GeliBusinessPlatform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.xib
...tform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.xib
+3
-3
GeliBusinessPlatform/ViewController/订单管理/预售价格修改/XiuGaiYuShouJiaViewController.xib
...wController/订单管理/预售价格修改/XiuGaiYuShouJiaViewController.xib
+3
-3
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
e190d86e
No preview for this file type
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
View file @
e190d86e
...
@@ -25,6 +25,9 @@ import IQKeyboardManagerSwift
...
@@ -25,6 +25,9 @@ import IQKeyboardManagerSwift
}
}
class
GLAlertSelectView
:
UIView
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndSelectCellDelegate
,
KuWeiCellCellDelegate
,
UITextFieldDelegate
{
class
GLAlertSelectView
:
UIView
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndSelectCellDelegate
,
KuWeiCellCellDelegate
,
UITextFieldDelegate
{
var
deSelectArr
:
Array
<
Int
>
=
[]
var
isMultipleS
:
Bool
=
false
var
isMultipleS
:
Bool
=
false
var
contentView
:
UIView
!
var
contentView
:
UIView
!
var
delegate
:
GLAlertSelectViewDelegate
?
var
delegate
:
GLAlertSelectViewDelegate
?
...
@@ -175,12 +178,12 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
...
@@ -175,12 +178,12 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
cell
.
delegate
=
self
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
cell
.
tag
=
indexPath
.
row
let
model
=
kuWeiArr
[
indexPath
.
row
]
as!
ShopWarehouseDetailDataPositionModel
let
model
=
kuWeiArr
[
indexPath
.
row
]
as!
ShopWarehouseDetailDataPositionModel
print
(
"3"
,
model
.
p_name
)
cell
.
nameTF
.
text
=
model
.
p_name
cell
.
nameTF
.
text
=
model
.
p_name
cell
.
nameTF
.
delegate
=
self
cell
.
nameTF
.
delegate
=
self
cell
.
nameTF
.
isUserInteractionEnabled
=
false
cell
.
nameTF
.
isUserInteractionEnabled
=
false
return
cell
return
cell
}
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"selectTbvCell"
)
as!
TitleAndSelectCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"selectTbvCell"
)
as!
TitleAndSelectCell
cell
.
titleLbl
.
text
=
dataArr
[
indexPath
.
row
]
as!
String
cell
.
titleLbl
.
text
=
dataArr
[
indexPath
.
row
]
as!
String
cell
.
delegate
=
self
cell
.
delegate
=
self
...
@@ -200,6 +203,15 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
...
@@ -200,6 +203,15 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
cell
.
selectBtn
.
isSelected
=
true
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
.
selectBtn
.
isUserInteractionEnabled
=
false
}
}
}
return
cell
return
cell
}
}
@IBAction
func
submitClick
(
_
sender
:
Any
)
{
@IBAction
func
submitClick
(
_
sender
:
Any
)
{
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
e190d86e
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
View file @
e190d86e
...
@@ -11,6 +11,8 @@ import UIKit
...
@@ -11,6 +11,8 @@ import UIKit
protocol
XuanZeShangPinViewControllerDelegate
{
protocol
XuanZeShangPinViewControllerDelegate
{
func
XuanZeShangPinViewControllerSubmitAction
(
datas
:
Array
<
Any
>
)
func
XuanZeShangPinViewControllerSubmitAction
(
datas
:
Array
<
Any
>
)
func
XuanZeShangPinViewControllerYuShou
(
YuShouData
:
String
)
func
XuanZeShangPinViewControllerYuShou
(
YuShouData
:
String
)
func
XuanZeShangPinViewControllerEdit
(
datas
:
Array
<
Any
>
)
}
}
class
XuanZeShangPinViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
XuanZeShangPinCellDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
{
class
XuanZeShangPinViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
XuanZeShangPinCellDelegate
,
UISearchBarDelegate
,
SearchBarViewDelegate
{
...
@@ -21,14 +23,20 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -21,14 +23,20 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
//XuanZeShangPinCell
//XuanZeShangPinCell
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
print
(
"submit"
)
print
(
"submit"
)
if
barTitle
==
"修改价格"
{
delegate
?
.
XuanZeShangPinViewControllerEdit
(
datas
:[
"返回"
,
"数据"
])
}
else
{
if
isYuShou
{
if
isYuShou
{
delegate
?
.
XuanZeShangPinViewControllerYuShou
(
YuShouData
:
"abc"
)
delegate
?
.
XuanZeShangPinViewControllerYuShou
(
YuShouData
:
"abc"
)
}
else
{
}
else
{
delegate
?
.
XuanZeShangPinViewControllerSubmitAction
(
datas
:
selectIdxArr
)
delegate
?
.
XuanZeShangPinViewControllerSubmitAction
(
datas
:
selectIdxArr
)
}
}
}
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
var
barTitle
:
String
?
//
@IBOutlet
weak
var
btmLbl
:
UILabel
!
@IBOutlet
weak
var
btmLbl
:
UILabel
!
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
topView
:
UIView
!
@IBOutlet
weak
var
topView
:
UIView
!
...
@@ -40,7 +48,7 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -40,7 +48,7 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
navbar
.
title
=
"选择商品"
navbar
.
title
=
barTitle
self
.
view
.
addSubview
(
navbar
)
self
.
view
.
addSubview
(
navbar
)
listView
.
separatorStyle
=
.
none
listView
.
separatorStyle
=
.
none
...
@@ -80,6 +88,11 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -80,6 +88,11 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"XuanZeShangPinCell"
)
as!
XuanZeShangPinCell
cell
.
delegate
=
self
cell
.
delegate
=
self
cell
.
idx
=
indexPath
cell
.
idx
=
indexPath
if
barTitle
==
"修改价格"
{
cell
.
selectBtn
.
isHidden
=
true
cell
.
btmView
.
isHidden
=
false
cell
.
btmViewHeight
.
constant
=
89
}
else
{
if
isYuShou
{
//预售
if
isYuShou
{
//预售
if
idx
==
indexPath
{
if
idx
==
indexPath
{
cell
.
selectBtn
.
isSelected
=
true
cell
.
selectBtn
.
isSelected
=
true
...
@@ -102,9 +115,13 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -102,9 +115,13 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
}
}
}
}
}
}
}
return
cell
return
cell
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
barTitle
==
"修改价格"
{
return
210
}
if
idx
!=
nil
{
if
idx
!=
nil
{
if
indexPath
==
idx
{
if
indexPath
==
idx
{
return
210
return
210
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.xib
View file @
e190d86e
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"XuanZeShangPinViewController"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"XuanZeShangPinViewController"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<connections>
<outlet
property=
"btmLbl"
destination=
"5Kt-Ig-zbb"
id=
"fUx-No-8SV"
/>
<outlet
property=
"btmLbl"
destination=
"5Kt-Ig-zbb"
id=
"fUx-No-8SV"
/>
<outlet
property=
"listView"
destination=
"YuT-X7-ecw"
id=
"wKf-Ej-i9r"
/>
<outlet
property=
"listView"
destination=
"YuT-X7-ecw"
id=
"wKf-Ej-i9r"
/>
...
...
GeliBusinessPlatform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.xib
View file @
e190d86e
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6096
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
5702
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
5704
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"ChangeGoodsPriceVC"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"ChangeGoodsPriceVC"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<connections>
<outlet
property=
"sureBtn"
destination=
"u6y-CU-3oP"
id=
"jeI-hQ-epr"
/>
<outlet
property=
"sureBtn"
destination=
"u6y-CU-3oP"
id=
"jeI-hQ-epr"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
...
...
GeliBusinessPlatform/ViewController/订单管理/预售价格修改/XiuGaiYuShouJiaViewController.xib
View file @
e190d86e
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6096
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
5702
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
6087
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"1
5704
"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"XiuGaiYuShouJiaViewController"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"XiuGaiYuShouJiaViewController"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<connections>
<outlet
property=
"color"
destination=
"af6-Wa-4Sy"
id=
"gC1-9R-E1C"
/>
<outlet
property=
"color"
destination=
"af6-Wa-4Sy"
id=
"gC1-9R-E1C"
/>
<outlet
property=
"countLbl"
destination=
"nUd-42-xVV"
id=
"HNp-gi-Qb7"
/>
<outlet
property=
"countLbl"
destination=
"nUd-42-xVV"
id=
"HNp-gi-Qb7"
/>
...
...
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