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
d62a8206
Commit
d62a8206
authored
May 26, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加提示框
parent
b8404593
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+20
-1
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
...orm/ViewController/新增规格/CreatNewSpecsViewController.swift
+4
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
d62a8206
No preview for this file type
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
d62a8206
...
...
@@ -13,7 +13,9 @@ import IQKeyboardManagerSwift
import
Dollar
class
EPViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
GoodsClassViewControllerDelegate
,
PinPaiListViewControllerDelegate
,
AddImgCellDelegate
,
AddGuiGeCellDelegate
,
CreatNewSpecsViewControllerDelegate
,
ShangPinGguiGeCellDelegate
,
UICollectionViewDelegate
,
UICollectionViewDataSource
,
UICollectionViewDelegateFlowLayout
,
TitleAndSwitchCellDelegate
,
TitleAndTFCellDelegate
,
YuShouWeiKuanFaHuoCellDelegate
,
UITextFieldDelegate
,
ShowTimeSelectViewDelegate
,
LMNoteViewControllerDelegate
{
class
EPViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
GoodsClassViewControllerDelegate
,
PinPaiListViewControllerDelegate
,
AddImgCellDelegate
,
AddGuiGeCellDelegate
,
CreatNewSpecsViewControllerDelegate
,
ShangPinGguiGeCellDelegate
,
UICollectionViewDelegate
,
UICollectionViewDataSource
,
UICollectionViewDelegateFlowLayout
,
TitleAndSwitchCellDelegate
,
TitleAndTFCellDelegate
,
YuShouWeiKuanFaHuoCellDelegate
,
UITextFieldDelegate
,
ShowTimeSelectViewDelegate
,
LMNoteViewControllerDelegate
,
GeliAlertViewDelegate
{
@IBOutlet
weak
var
btmBtnViewH
:
NSLayoutConstraint
!
...
...
@@ -94,9 +96,20 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
var
isAllEditing
=
false
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
{
}
@objc
func
btmBtnClick
(
sender
:
UIButton
){
switch
sender
.
titleLabel
!.
text
{
case
"编辑"
:
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
delegate
=
self
alertView
.
tishiLbl
.
text
=
""
alertView
.
titileLbl
.
text
=
"是否确认编辑订单?"
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"确认"
),
for
:
.
normal
)
self
.
view
.
window
?
.
addSubview
(
alertView
)
///XXXXX
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
GeneralInfo
([
"user_token"
:
UserToken
as
Any
],
success
:
{
(
data
)
in
HUD
.
hide
(
animated
:
true
)
...
...
@@ -638,6 +651,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"AddImg"
)
as!
AddImgCell
cell
.
addBtn
.
isUserInteractionEnabled
=
isAllEditing
cell
.
isAllEditing
=
isAllEditing
cell
.
addBtn
.
isHidden
=
!
isAllEditing
cell
.
nameLbl
.
text
=
sptpArr
[
indexPath
.
row
]
if
indexPath
.
row
==
0
{
cell
.
isSingle
=
true
...
...
@@ -745,6 +759,11 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
cell
.
tag
=
indexPath
.
row
cell
.
btn
.
isUserInteractionEnabled
=
isAllEditing
cell
.
contentLbl
.
text
=
tishixxArr1
[
indexPath
.
row
]
as!
String
if
isAllEditing
{
cell
.
contentRight
.
constant
=
32
}
else
{
cell
.
contentRight
.
constant
=
15
}
cell
.
delegate
=
self
return
cell
}
...
...
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
View file @
d62a8206
...
...
@@ -343,6 +343,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndSwitch"
)
as!
TitleAndSwitchCell
cell
.
delegate
=
self
cell
.
namelbl
.
font
=
UIFont
.
boldSystemFont
(
ofSize
:
15
)
cell
.
infoSw
.
isUserInteractionEnabled
=
isAllEditing
if
indexPath
.
section
==
1
{
cell
.
namelbl
.
text
=
"预售设置"
if
isYuShouSetting
==
false
{
...
...
@@ -364,6 +365,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
cell
.
inputTF2
.
keyboardType
=
.
numberPad
cell
.
inputTF3
.
isUserInteractionEnabled
=
isAllEditing
cell
.
tag
=
indexPath
.
row
cell
.
infoSw
.
isUserInteractionEnabled
=
isAllEditing
cell
.
infoSw
.
isOn
=
isOpenYSSetting
cell
.
delegate
=
self
cell
.
inputTF1
.
text
=
yuShouPrice
...
...
@@ -450,6 +452,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
if
section
==
2
{
//阶梯价设置
if
isYuShouSetting
{
//预售阶梯价
let
view
=
TitleAndSwitchHeaderView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
90
))
view
.
infoSW
.
isUserInteractionEnabled
=
isAllEditing
view
.
delegate
=
self
print
(
"selectYuShou == "
,
selectYuShou
)
view
.
selectYuShou
=
selectYuShou
...
...
@@ -459,6 +462,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
}
else
{
//普通
let
view
=
NewCreateHeader
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
49
))
view
.
delegate
=
self
view
.
infoSw
.
isUserInteractionEnabled
=
isAllEditing
view
.
infoSw
.
isOn
=
isJieTiOpen
if
isJieTiOpen
==
false
{
return
view
...
...
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