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
8875f252
Commit
8875f252
authored
May 13, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待调试融云
parent
7522d8a9
Changes
23
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
205 additions
and
59 deletions
+205
-59
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+7
-1
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/AppDelegate.swift
GeliBusinessPlatform/AppDelegate.swift
+77
-10
GeliBusinessPlatform/GeliBusinessPlatform.entitlements
GeliBusinessPlatform/GeliBusinessPlatform.entitlements
+8
-0
GeliBusinessPlatform/Info.plist
GeliBusinessPlatform/Info.plist
+1
-0
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
+15
-15
GeliBusinessPlatform/View/Cell/AddGuiGeCell.xib
GeliBusinessPlatform/View/Cell/AddGuiGeCell.xib
+2
-2
GeliBusinessPlatform/View/Cell/ShangPinGguiGeCell.swift
GeliBusinessPlatform/View/Cell/ShangPinGguiGeCell.swift
+13
-2
GeliBusinessPlatform/View/Cell/ShangPinGguiGeCell.xib
GeliBusinessPlatform/View/Cell/ShangPinGguiGeCell.xib
+10
-0
GeliBusinessPlatform/View/Cell/TitleAndSwitchCell.swift
GeliBusinessPlatform/View/Cell/TitleAndSwitchCell.swift
+1
-0
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+15
-5
GeliBusinessPlatform/ViewController/商品详情/EditProductViewController.swift
...tform/ViewController/商品详情/EditProductViewController.swift
+4
-4
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
...orm/ViewController/新增规格/CreatNewSpecsViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.xib
...tform/ViewController/新增规格/CreatNewSpecsViewController.xib
+21
-6
GeliBusinessPlatform/ViewController/新增规格/DelGuiGeCell.swift
GeliBusinessPlatform/ViewController/新增规格/DelGuiGeCell.swift
+2
-0
GeliBusinessPlatform/ViewController/新增规格/PuTongJieTiCell.swift
...usinessPlatform/ViewController/新增规格/PuTongJieTiCell.swift
+12
-2
GeliBusinessPlatform/ViewController/新增规格/PuTongJieTiCell.xib
GeliBusinessPlatform/ViewController/新增规格/PuTongJieTiCell.xib
+1
-1
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.xib
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.xib
+4
-0
GeliBusinessPlatform/ViewController/新增规格/footer/NewCreateFooter.xib
...ssPlatform/ViewController/新增规格/footer/NewCreateFooter.xib
+3
-3
GeliBusinessPlatform/ViewController/新增规格/仅新增规格header/NewCreateHeader.xib
...tform/ViewController/新增规格/仅新增规格header/NewCreateHeader.xib
+2
-2
GeliBusinessPlatform/ViewController/新增规格/普通+预售header/TitleAndSwitchHeaderView.xib
...wController/新增规格/普通+预售header/TitleAndSwitchHeaderView.xib
+3
-3
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
...atform/ViewController/新增采购单/XinCaiGouViewController.swift
+4
-3
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
8875f252
...
...
@@ -512,6 +512,7 @@
E02DDD942450106C00ABB707
/* PuTongJieTiCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
PuTongJieTiCell.xib
;
sourceTree
=
"<group>"
;
};
E02DDD9724501A5B00ABB707
/* DelGuiGeCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
DelGuiGeCell.swift
;
sourceTree
=
"<group>"
;
};
E02DDD9824501A5B00ABB707
/* DelGuiGeCell.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
DelGuiGeCell.xib
;
sourceTree
=
"<group>"
;
};
E02F43C1246A91C1000ECFB1
/* GeliBusinessPlatform.entitlements */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.plist.entitlements
;
path
=
GeliBusinessPlatform.entitlements
;
sourceTree
=
"<group>"
;
};
E02FD9EA2455627300E10E27
/* ChuKuViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ChuKuViewController.swift
;
sourceTree
=
"<group>"
;
};
E02FD9EB2455627300E10E27
/* ChuKuViewController.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
ChuKuViewController.xib
;
sourceTree
=
"<group>"
;
};
E02FD9EF2455705F00E10E27
/* ChuRuKuJiLuCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ChuRuKuJiLuCell.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -1086,6 +1087,7 @@
E00D85DD244561FD00F5F816
/* GeliBusinessPlatform */
=
{
isa
=
PBXGroup
;
children
=
(
E02F43C1246A91C1000ECFB1
/* GeliBusinessPlatform.entitlements */
,
E088CC882446FFA1000DAA8A
/* Other */
,
E01C26B32446AEF800ADCC70
/* DEMO */
,
E09B03B32445B19400211A51
/* Interface */
,
...
...
@@ -1765,9 +1767,9 @@
E0F97B062451620B001BD600
/* ProductDetailViewController.swift */
,
E0F97B072451620B001BD600
/* ProductDetailViewController.xib */
,
E0647ABF2468E30B008C5A34
/* EditProductViewController.swift */
,
E0647AC02468E30B008C5A34
/* EditProductViewController.xib */
,
E0F1BE4A24692F07003015B2
/* EditProductImgCell.swift */
,
E0F1BE4B24692F07003015B2
/* EditProductImgCell.xib */
,
E0647AC02468E30B008C5A34
/* EditProductViewController.xib */
,
E0F1BE4624692379003015B2
/* ItemCell.swift */
,
E0F1BE4724692379003015B2
/* ItemCell.xib */
,
);
...
...
@@ -3002,6 +3004,7 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
GeliBusinessPlatform/GeliBusinessPlatform.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_ASSET_PATHS
=
"\"GeliBusinessPlatform/Preview Content\""
;
DEVELOPMENT_TEAM
=
K48346UACH
;
...
...
@@ -3022,6 +3025,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER
=
GeliBusinessPlatform.GeliBusinessPlatform
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
"SWIFT_OBJC_BRIDGING_HEADER[arch=*]"
=
"$(SRCROOT)/GeliBusinessPlatform/Define/Bridge_Header.h"
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Onone"
;
SWIFT_VERSION
=
5.0
;
...
...
@@ -3035,6 +3039,7 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
GeliBusinessPlatform/GeliBusinessPlatform.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_ASSET_PATHS
=
"\"GeliBusinessPlatform/Preview Content\""
;
DEVELOPMENT_TEAM
=
K48346UACH
;
...
...
@@ -3055,6 +3060,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER
=
GeliBusinessPlatform.GeliBusinessPlatform
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
SWIFT_VERSION
=
5.0
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
};
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
8875f252
No preview for this file type
GeliBusinessPlatform/AppDelegate.swift
View file @
8875f252
...
...
@@ -7,16 +7,63 @@
//
import
UIKit
import
RongIMKit
@UIApplicationMain
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
@UIApplicationMain
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
,
RCConnectionStatusChangeDelegate
,
RCIMClientReceiveMessageDelegate
,
UNUserNotificationCenterDelegate
{
func
onReceived
(
_
message
:
RCMessage
!
,
left
nLeft
:
Int32
,
object
:
Any
!
)
{
print
(
"message == "
,
message
.
content
)
}
func
onConnectionStatusChanged
(
_
status
:
RCConnectionStatus
)
{
print
(
"changed == "
,
status
.
rawValue
)
}
func
onReceived
(
_
message
:
RCMessage
!
,
left
nLeft
:
Int32
,
object
:
Any
!
,
offline
:
Bool
,
hasPackage
:
Bool
)
{
print
(
"onReceived == "
,
message
.
content
)
}
var
RY_App_Key
=
"3argexb63sxae"
func
application
(
_
application
:
UIApplication
,
didFinishLaunchingWithOptions
launchOptions
:
[
UIApplication
.
LaunchOptionsKey
:
Any
]?)
->
Bool
{
// Override point for customization after application launch.
RCIM
.
shared
()?
.
initWithAppKey
(
RY_App_Key
)
registerNotification
(
application
)
RCIMClient
.
shared
()?
.
connect
(
withToken
:
"SMJo9B9AUTIHHcHCuZq8soPnFqzfPZJIh7xoVOlRtu8=@ta3m.cn.rongnav.com;ta3m.cn.rongcfg.com"
,
success
:
{
(
userId
)
in
print
(
"userid =
\(
userId
)
"
)
},
error
:
{
(
status
)
in
print
(
"status =
\(
status
)
"
)
},
tokenIncorrect
:
{
print
(
"错误"
)
})
RCIMClient
.
shared
()?
.
setRCConnectionStatusChangeDelegate
(
self
)
RCIMClient
.
shared
()?
.
setReceiveMessageDelegate
(
self
,
object
:
nil
)
return
true
}
func
application
(
_
application
:
UIApplication
,
didRegister
notificationSettings
:
UIUserNotificationSettings
)
{
application
.
registerForRemoteNotifications
()
}
func
application
(
_
application
:
UIApplication
,
didRegisterForRemoteNotificationsWithDeviceToken
deviceToken
:
Data
)
{
let
nsdataStr
=
NSData
(
data
:
deviceToken
)
let
datastr
=
nsdataStr
.
description
.
replacingOccurrences
(
of
:
"<"
,
with
:
""
)
.
replacingOccurrences
(
of
:
">"
,
with
:
""
)
.
replacingOccurrences
(
of
:
" "
,
with
:
""
)
print
(
"deviceToken:
\(
datastr
)
"
)
RCIMClient
.
shared
()?
.
setDeviceToken
(
datastr
)
}
func
application
(
_
application
:
UIApplication
,
didFailToRegisterForRemoteNotificationsWithError
error
:
Error
)
{
//TODO: 注册失败后的结果, 可以在这里记录失败结果, 以后再伺机弹框给用户打开通知
print
(
"错误=== "
,
error
)
}
// MARK: UISceneSession Lifecycle
...
...
@@ -26,12 +73,32 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
return
UISceneConfiguration
(
name
:
"Default Configuration"
,
sessionRole
:
connectingSceneSession
.
role
)
}
func
application
(
_
application
:
UIApplication
,
didDiscardSceneSessions
sceneSessions
:
Set
<
UISceneSession
>
)
{
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
}
extension
AppDelegate
{
func
registerNotification
(
_
application
:
UIApplication
)
{
if
#available(iOS 10.0, *)
{
let
center
=
UNUserNotificationCenter
.
current
()
center
.
delegate
=
self
center
.
requestAuthorization
(
options
:
[
.
alert
,
.
sound
,
.
badge
])
{
(
granted
:
Bool
,
error
:
Error
?)
in
DispatchQueue
.
main
.
async
{
if
granted
{
application
.
registerForRemoteNotifications
()
}
}
}
}
else
{
let
settings
=
UIUserNotificationSettings
(
types
:
[
.
alert
,
.
sound
,
.
badge
],
categories
:
nil
)
application
.
registerForRemoteNotifications
()
application
.
registerUserNotificationSettings
(
settings
)
}
}
}
GeliBusinessPlatform/GeliBusinessPlatform.entitlements
0 → 100644
View file @
8875f252
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
aps-environment
</key>
<string>
development
</string>
</dict>
</plist>
GeliBusinessPlatform/Info.plist
View file @
8875f252
...
...
@@ -61,6 +61,7 @@
<key>
UIBackgroundModes
</key>
<array>
<string>
location
</string>
<string>
remote-notification
</string>
</array>
<key>
UILaunchStoryboardName
</key>
<string>
LaunchScreen
</string>
...
...
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
View file @
8875f252
...
...
@@ -10,7 +10,7 @@ import UIKit
import
IQKeyboardManagerSwift
@objc
protocol
GLAlertSelectViewDelegate
{
@objc
optional
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
UIView
)
@objc
optional
func
GLAlertSelectViewClick
(
selectNum
:
NSString
,
view
:
UIView
)
@objc
optional
func
GLAlertMoreSelectViewClick
(
sender
:
NSArray
,
view
:
UIView
)
@objc
optional
func
GLAlertSelectViewClose
(
sender
:
UIButton
)
...
...
@@ -23,17 +23,10 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
var
contentView
:
UIView
!
var
delegate
:
GLAlertSelectViewDelegate
?
var
inputTextTF
:
UITextField
?
var
isMultipleSelect
:
Bool
?
var
selectArray
:
NSMutableArray
?
var
selectNum
:
Int
=
99
var
selectNum
:
String
?
=
""
var
dataArr
=
Array
<
String
>
(){
didSet
{
if
isMultipleSelect
==
true
{
selectArray
=
NSMutableArray
(
capacity
:
10
)
for
_
in
0
..<
dataArr
.
count
{
selectArray
?
.
add
(
"99"
)
}
}
var
tbvH
=
CGFloat
(
dataArr
.
count
*
49
)
if
tbvH
>
fullScreenHeight
*
0.6
{
tbvH
=
fullScreenHeight
*
0.6
...
...
@@ -142,21 +135,30 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
cell
.
nameLbl
.
text
=
dataArr
[
indexPath
.
row
]
return
cell
}
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"selectTbvCell"
)
as!
TitleAndSelectCell
cell
.
titleLbl
.
text
=
dataArr
[
indexPath
.
row
]
cell
.
delegate
=
self
cell
.
tag
=
indexPath
.
row
for
item
in
selectArray
!
{
let
row
=
"
\(
item
)
"
as!
NSString
if
row
.
integerValue
==
indexPath
.
row
{
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
.
selectBtn
.
isSelected
=
true
}
}
return
cell
}
@IBAction
func
submitClick
(
_
sender
:
Any
)
{
if
(
titleLbl
.
text
?
.
contains
(
"库位"
))
!
{
}
else
{
if
isMultipleSelect
==
false
{
delegate
?
.
GLAlertSelectViewClick
?(
selectNum
:
selectNum
,
view
:
self
)
if
selectNum
!.
count
>
0
{
delegate
?
.
GLAlertSelectViewClick
?(
selectNum
:
selectNum
as!
NSString
,
view
:
self
)
}
else
{
delegate
?
.
GLAlertMoreSelectViewClick
?(
sender
:
selectArray
!
,
view
:
self
)
}
}
...
...
@@ -164,17 +166,16 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
//MARK: - 自定义CELL DELEGATE
//普通
func
TitleAndSelectCellClick
(
content
:
UIButton
,
cell
:
TitleAndSelectCell
)
{
if
isMultipleSelect
==
false
{
if
selectNum
!.
count
>
0
{
for
item
in
selectTbv
.
visibleCells
{
let
cel
=
item
as!
TitleAndSelectCell
cel
.
selectBtn
.
isSelected
=
false
if
cell
==
cel
{
cell
.
selectBtn
.
isSelected
=
true
selectNum
=
cell
.
tag
selectNum
=
"
\(
cell
.
tag
)
"
}
}
}
else
{
cell
.
titleLbl
.
textColor
=
UIColor
(
named
:
""
)
if
cell
.
selectBtn
.
isSelected
==
true
{
cell
.
selectBtn
.
isSelected
=
false
...
...
@@ -185,7 +186,6 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
cell
.
selectBtn
.
isSelected
=
true
selectArray
!.
replaceObject
(
at
:
cell
.
tag
,
with
:
cell
.
tag
)
}
// delegate?.GLAlertMoreSelectViewClick?(sender: selectArray!, cell: cell)
}
}
//库位
...
...
GeliBusinessPlatform/View/Cell/AddGuiGeCell.xib
View file @
8875f252
...
...
@@ -22,7 +22,7 @@
<constraint
firstAttribute=
"height"
constant=
"52"
id=
"jMA-bb-CP8"
/>
<constraint
firstAttribute=
"width"
constant=
"78"
id=
"zxB-d3-CDh"
/>
</constraints>
<state
key=
"normal"
image=
"xinzeng
"
/>
<state
key=
"normal"
image=
"xinzeng"
/>
<connections>
<action
selector=
"btnClick:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"f2z-zc-fd6"
/>
</connections>
...
...
@@ -41,6 +41,6 @@
</tableViewCell>
</objects>
<resources>
<image
name=
"xinzeng
"
width=
"78"
height=
"51.5"
/>
<image
name=
"xinzeng"
width=
"78"
height=
"51.5"
/>
</resources>
</document>
GeliBusinessPlatform/View/Cell/ShangPinGguiGeCell.swift
View file @
8875f252
...
...
@@ -7,9 +7,20 @@
//
import
UIKit
@objc
protocol
ShangPinGguiGeCellDelegate
{
@objc
optional
func
ShangPinGguiGeCellEditAction
(
cell
:
ShangPinGguiGeCell
)
}
class
ShangPinGguiGeCell
:
UITableViewCell
{
var
delegate
:
ShangPinGguiGeCellDelegate
?
@IBAction
func
editAction
(
_
sender
:
Any
)
{
delegate
?
.
ShangPinGguiGeCellEditAction
?(
cell
:
self
)
}
// var itemIdx:Int?
@IBOutlet
weak
var
tempLbl
:
UILabel
!
@IBOutlet
weak
var
weightLbl
:
UILabel
!
@IBOutlet
weak
var
guiGeLbl
:
UILabel
!
@IBOutlet
weak
var
danWeiLbl
:
UILabel
!
@IBOutlet
weak
var
sellPriceLbl
:
UILabel
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
selectionStyle
=
.
none
...
...
GeliBusinessPlatform/View/Cell/ShangPinGguiGeCell.xib
View file @
8875f252
...
...
@@ -85,6 +85,9 @@
<state
key=
"normal"
title=
"编辑规格"
>
<color
key=
"titleColor"
name=
"蓝色字体颜色"
/>
</state>
<connections>
<action
selector=
"editAction:"
destination=
"KGk-i7-Jjw"
eventType=
"touchUpInside"
id=
"NUZ-aA-T5Q"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"K2a-dA-ghw"
>
<rect
key=
"frame"
x=
"187"
y=
"14.5"
width=
"1"
height=
"20"
/>
...
...
@@ -145,6 +148,13 @@
</constraints>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"danWeiLbl"
destination=
"oOy-dE-JIB"
id=
"Dw6-Zt-80o"
/>
<outlet
property=
"guiGeLbl"
destination=
"GPm-DS-HCD"
id=
"ePF-lx-scy"
/>
<outlet
property=
"sellPriceLbl"
destination=
"Mw0-dB-6KQ"
id=
"ofk-s2-w0v"
/>
<outlet
property=
"tempLbl"
destination=
"bIm-PK-kvk"
id=
"QrY-UP-WZk"
/>
<outlet
property=
"weightLbl"
destination=
"EeX-7S-sb3"
id=
"bkH-WA-6Wt"
/>
</connections>
<point
key=
"canvasLocation"
x=
"131.15942028985509"
y=
"121.875"
/>
</tableViewCell>
</objects>
...
...
GeliBusinessPlatform/View/Cell/TitleAndSwitchCell.swift
View file @
8875f252
...
...
@@ -9,6 +9,7 @@
import
UIKit
@objc
protocol
TitleAndSwitchCellDelegate
{
@objc
optional
func
switchClick
(
content
:
UISwitch
,
cell
:
TitleAndSwitchCell
)
}
class
TitleAndSwitchCell
:
UITableViewCell
{
var
delegate
:
TitleAndSwitchCellDelegate
?
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
8875f252
...
...
@@ -10,6 +10,8 @@ import UIKit
class
DaiKeXiaDanGouWuViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
DaiKeXiaDanFooterViewDelegate
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
{
var
orderType
=
"99"
//订单类型
var
glSelectView
:
GLAlertSelectView
?
=
nil
var
holderArr
=
[
"未支付"
,
"未付款"
,
"自提"
,
"暂不出库"
,
"0"
,
"0"
]
let
p3Arr
=
[
"支付状态"
,
"支付方式"
,
"提货方式"
,
"出货状态"
,
"运费"
,
"其他费用"
]
...
...
@@ -114,6 +116,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
}
return
49
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
switch
indexPath
.
section
{
case
0
:
...
...
@@ -123,7 +126,8 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
}
else
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
isMultipleSelect
=
false
//是否多选
// view.isMultipleSelect = false//是否多选
view
.
selectNum
=
orderType
view
.
delegate
=
self
view
.
titleLbl
.
text
=
"请选择订单类型"
view
.
dataArr
=
[
"普通订单"
,
"预售下单"
]
...
...
@@ -138,27 +142,33 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
break
}
}
var
zhiFuType
=
"99"
var
zhiFuWay
=
"99"
var
tiHuoWay
=
"99"
var
chuHuoWay
=
"99"
func
btnClick
(
content
:
String
,
cell
:
TitleAndBtnCell
)
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
isMultipleSelect
=
false
//是否多选
//
view.isMultipleSelect = false//是否多选
view
.
delegate
=
self
switch
cell
.
tag
{
case
0
:
//支付状态
view
.
selectNum
=
zhiFuType
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
cell
.
tag
]
)
"
view
.
dataArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
break
case
1
:
//支付方式
view
.
selectNum
=
zhiFuWay
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
cell
.
tag
]
)
"
view
.
dataArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
break
case
2
:
//提货方式
view
.
selectNum
=
tiHuoWay
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
cell
.
tag
]
)
"
view
.
dataArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
break
default
:
//出货状态
view
.
selectNum
=
chuHuoWay
view
.
titleLbl
.
text
=
"请选择
\(
p3Arr
[
cell
.
tag
]
)
"
view
.
dataArr
=
[
"预售"
,
"普通"
,
"期货"
,
"团购"
]
break
...
...
@@ -168,7 +178,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
glSelectView
=
view
}
}
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
UIView
)
{
func
GLAlertSelectViewClick
(
selectNum
:
NSString
,
view
:
UIView
)
{
print
(
"单选"
,
selectNum
)
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
...
...
GeliBusinessPlatform/ViewController/商品详情/EditProductViewController.swift
View file @
8875f252
...
...
@@ -11,10 +11,10 @@ import UIKit
class
EditProductViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
UICollectionViewDelegate
,
UICollectionViewDataSource
,
UICollectionViewDelegateFlowLayout
{
var
layout
=
UICollectionViewFlowLayout
()
var
isEdit
:
Bool
=
false
var
selectIdx
:
IndexPath
=
IndexPath
(
item
:
0
,
section
:
0
)
var
layout
=
UICollectionViewFlowLayout
()
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
btmView
:
UIView
!
override
func
viewDidLoad
()
{
...
...
@@ -136,7 +136,7 @@ class EditProductViewController: BaseViewController,UITableViewDelegate,UITableV
}
let
collectionView
=
UICollectionView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
0
,
height
:
0
),
collectionViewLayout
:
layout
)
collectionView
.
backgroundColor
=
UIColor
.
red
collectionView
.
backgroundColor
=
UIColor
.
white
collectionView
.
delegate
=
self
collectionView
.
dataSource
=
self
view
.
addSubview
(
collectionView
)
...
...
@@ -174,7 +174,7 @@ class EditProductViewController: BaseViewController,UITableViewDelegate,UITableV
return
0
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
numberOfItemsInSection
section
:
Int
)
->
Int
{
return
4
return
3
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
...
...
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
8875f252
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
View file @
8875f252
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.xib
View file @
8875f252
...
...
@@ -12,6 +12,8 @@
<connections>
<outlet
property=
"bottomBtn"
destination=
"dGJ-ea-Bx5"
id=
"VIT-dc-ndT"
/>
<outlet
property=
"listTbv"
destination=
"bSh-mx-Kzg"
id=
"xwd-1s-qv3"
/>
<outlet
property=
"topBarView"
destination=
"58G-5f-0zb"
id=
"HDH-SB-fbX"
/>
<outlet
property=
"topBarViewH"
destination=
"Ye0-LU-7fR"
id=
"twP-bS-cfD"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
...
...
@@ -64,32 +66,45 @@
</userDefinedRuntimeAttributes>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"grouped"
separatorStyle=
"none"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"18"
sectionFooterHeight=
"18"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bSh-mx-Kzg"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
44"
width=
"414"
height=
"769
"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
85"
width=
"414"
height=
"728
"
/>
<color
key=
"backgroundColor"
name=
"app底色
"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"Qbd-QF-oNN"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"Ogi-cZ-Pq2"
/>
</connections>
</tableView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"58G-5f-0zb"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"41"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"41"
id=
"Ye0-LU-7fR"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"bSh-mx-Kzg"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"0fJ-Bh-Hih"
/>
<constraint
firstItem=
"bSh-mx-Kzg"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"1sc-Tr-aDe"
/>
<constraint
firstItem=
"bSh-mx-Kzg"
firstAttribute=
"top"
secondItem=
"58G-5f-0zb"
secondAttribute=
"bottom"
id=
"0nZ-9Z-pB5"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"8JZ-TM-4Gj"
secondAttribute=
"trailing"
id=
"5nJ-hq-GzC"
/>
<constraint
firstItem=
"
dGJ-ea-Bx5"
firstAttribute=
"top"
secondItem=
"bSh-mx-Kzg"
secondAttribute=
"bottom"
id=
"Ijr-6F-Wc6
"
/>
<constraint
firstItem=
"
58G-5f-0zb"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"Ugd-D3-SaD
"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"dGJ-ea-Bx5"
secondAttribute=
"trailing"
id=
"UjZ-PD-0IP"
/>
<constraint
firstItem=
"8JZ-TM-4Gj"
firstAttribute=
"top"
secondItem=
"dGJ-ea-Bx5"
secondAttribute=
"bottom"
id=
"Wcn-RI-W8x"
/>
<constraint
firstItem=
"bSh-mx-Kzg"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"cMo-sP-4qP"
/>
<constraint
firstItem=
"58G-5f-0zb"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"gRq-Fw-2ah"
/>
<constraint
firstItem=
"dGJ-ea-Bx5"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"jYa-O4-JEm"
/>
<constraint
firstItem=
"dGJ-ea-Bx5"
firstAttribute=
"top"
secondItem=
"bSh-mx-Kzg"
secondAttribute=
"bottom"
id=
"mTs-nP-5KO"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"58G-5f-0zb"
secondAttribute=
"trailing"
id=
"mzN-8N-ZCY"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"dGJ-ea-Bx5"
secondAttribute=
"bottom"
id=
"oYF-GV-YdD"
/>
<constraint
firstItem=
"8JZ-TM-4Gj"
firstAttribute=
"leading"
secondItem=
"i5M-Pr-FkT"
secondAttribute=
"leading"
id=
"vF1-xh-KYL"
/>
<constraint
firstItem=
"
fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"bSh-mx-Kzg"
secondAttribute=
"trailing"
id=
"zb7-xi-DTh
"
/>
<constraint
firstItem=
"
bSh-mx-Kzg"
firstAttribute=
"trailing"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"trailing"
id=
"zF5-sH-eFq
"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"131.8840579710145"
y=
"129.91071428571428"
/>
</view>
</objects>
<resources>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
...
...
GeliBusinessPlatform/ViewController/新增规格/DelGuiGeCell.swift
View file @
8875f252
...
...
@@ -12,6 +12,8 @@ class DelGuiGeCell: UITableViewCell {
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
// Initialization code
}
...
...
GeliBusinessPlatform/ViewController/新增规格/PuTongJieTiCell.swift
View file @
8875f252
...
...
@@ -9,22 +9,32 @@
import
UIKit
@objc
protocol
PuTongJieTiCellDelegate
{
@objc
optional
func
PuTongJieTiDelAction
(
sender
:
UIButton
)
@objc
optional
func
PuTongJieTiContent
(
price
:
String
,
count
:
String
,
cell
:
PuTongJieTiCell
)
}
class
PuTongJieTiCell
:
UITableViewCell
{
var
delegate
:
PuTongJieTiCellDelegate
?
@IBAction
func
delAction
(
_
sender
:
UIButton
)
{
delegate
?
.
PuTongJieTiDelAction
?(
sender
:
sender
)
}
@IBOutlet
weak
var
priceTF
:
NSLayoutConstraint
!
@IBOutlet
weak
var
priceTF
:
UITextField
!
@IBOutlet
weak
var
countTF
:
UITextField
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
selectionStyle
=
.
none
priceTF
.
addTarget
(
self
,
action
:
#selector(
textChange(textF:)
)
,
for
:
.
editingChanged
)
countTF
.
addTarget
(
self
,
action
:
#selector(
textChange(textF:)
)
,
for
:
.
editingChanged
)
priceTF
.
tag
=
0
countTF
.
tag
=
1
// Initialization code
}
@objc
func
textChange
(
textF
:
UITextField
){
delegate
?
.
PuTongJieTiContent
?(
price
:
priceTF
.
text
!
,
count
:
countTF
.
text
!
,
cell
:
self
)
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
...
...
GeliBusinessPlatform/ViewController/新增规格/PuTongJieTiCell.xib
View file @
8875f252
...
...
@@ -118,7 +118,7 @@
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<connections>
<outlet
property=
"countTF"
destination=
"DMW-oR-f6E"
id=
"SSR-pc-LuB"
/>
<outlet
property=
"priceTF"
destination=
"
jiQ-Wh-UYo"
id=
"mL5-Wd-vuG
"
/>
<outlet
property=
"priceTF"
destination=
"
GZ7-X2-hIF"
id=
"oZI-xp-ed5
"
/>
<outlet
property=
"titleLbl"
destination=
"dEb-Pr-hmY"
id=
"B1t-aG-1n8"
/>
</connections>
<point
key=
"canvasLocation"
x=
"131.15942028985509"
y=
"112.5"
/>
...
...
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.xib
View file @
8875f252
...
...
@@ -38,6 +38,7 @@
<constraint
firstAttribute=
"width"
constant=
"47"
id=
"XbV-B6-6sH"
/>
<constraint
firstAttribute=
"height"
constant=
"31"
id=
"xe0-nb-ftK"
/>
</constraints>
<color
key=
"onTintColor"
name=
"蓝色字体颜色"
/>
</switch>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"预售价:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gDh-Mx-qdQ"
>
<rect
key=
"frame"
x=
"16"
y=
"55"
width=
"54"
height=
"16"
/>
...
...
@@ -160,5 +161,8 @@
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27799999713897705"
green=
"0.56099998950958252"
blue=
"0.88999998569488525"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/新增规格/footer/NewCreateFooter.xib
View file @
8875f252
...
...
@@ -23,7 +23,7 @@
<color
key=
"textColor"
name=
"蓝色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"
编组
"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Iq6-om-UWg"
>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"
jiahaoXG
"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Iq6-om-UWg"
>
<rect
key=
"frame"
x=
"139"
y=
"19.5"
width=
"10"
height=
"10"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"10"
id=
"AuL-mP-jHY"
/>
...
...
@@ -53,9 +53,9 @@
</view>
</objects>
<resources>
<image
name=
"
编组"
width=
"10"
height=
"10
.5"
/>
<image
name=
"
jiahaoXG"
width=
"12.5"
height=
"12
.5"
/>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27
843137254901962"
green=
"0.5607843137254902"
blue=
"0.89019607843137
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.27
799999713897705"
green=
"0.56099998950958252"
blue=
"0.889999985694885
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/新增规格/仅新增规格header/NewCreateHeader.xib
View file @
8875f252
...
...
@@ -72,13 +72,13 @@
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.180
3921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.180
00000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27
843137254901962"
green=
"0.5607843137254902"
blue=
"0.89019607843137
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.27
799999713897705"
green=
"0.56099998950958252"
blue=
"0.889999985694885
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/新增规格/普通+预售header/TitleAndSwitchHeaderView.xib
View file @
8875f252
...
...
@@ -108,16 +108,16 @@
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色下,字体颜色"
>
<color
red=
"0.27
450980392156865"
green=
"0.5607843137254902"
blue=
"0.88627450980392153
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.27
843137254901962"
green=
"0.5607843137254902"
blue=
"0.8901960784313725
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.1803921568627451"
green=
"0.1803921568627451"
blue=
"0.1803921568627451"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色字体颜色"
>
<color
red=
"0.
59999999999999998"
green=
"0.59999999999999998"
blue=
"0.59999999999999998
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.
40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27
843137254901962"
green=
"0.5607843137254902"
blue=
"0.89019607843137
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.27
799999713897705"
green=
"0.56099998950958252"
blue=
"0.889999985694885
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
View file @
8875f252
...
...
@@ -22,7 +22,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
var
isEdit
:
Bool
?
//测试数据
var
data
:
NSDictionary
?
=
nil
var
gouWuType
=
"99"
//购物类型
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -194,7 +194,8 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
if
indexPath
.
row
==
5
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
isMultipleSelect
=
false
//是否多选
// view.isMultipleSelect = false//是否多选
view
.
selectNum
=
gouWuType
view
.
delegate
=
self
view
.
titleLbl
.
text
=
"请选择购物类型"
view
.
dataArr
=
[
"普通订单"
,
"预售下单"
]
...
...
@@ -250,7 +251,7 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
print
(
"AddGuiGeCellClick"
)
}
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
UIView
)
{
func
GLAlertSelectViewClick
(
selectNum
:
NSString
,
view
:
UIView
)
{
print
(
"单选"
,
selectNum
)
glSelectView
?
.
removeFromSuperview
()
glSelectView
=
nil
...
...
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