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
ff005a84
Commit
ff005a84
authored
May 21, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待处理编辑
parent
561d82d1
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
93 additions
and
50 deletions
+93
-50
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Model/GoodsManageMoel/GoodsDetailModel.swift
...nessPlatform/Model/GoodsManageMoel/GoodsDetailModel.swift
+1
-1
GeliBusinessPlatform/SceneDelegate.swift
GeliBusinessPlatform/SceneDelegate.swift
+3
-5
GeliBusinessPlatform/View/Cell/AddImgCell.swift
GeliBusinessPlatform/View/Cell/AddImgCell.swift
+10
-4
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+49
-6
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
...iewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
+3
-6
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
...inessPlatform/ViewController/商品管理/GoodsManageListVC.swift
+9
-9
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+18
-19
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
ff005a84
No preview for this file type
GeliBusinessPlatform/Model/GoodsManageMoel/GoodsDetailModel.swift
View file @
ff005a84
...
@@ -163,7 +163,7 @@ class GoodsDetailSkuResModel: Mappable {
...
@@ -163,7 +163,7 @@ class GoodsDetailSkuResModel: Mappable {
}
}
//副图信息
//副图信息
class
GoodsDetailBannerResModel
:
Mappable
{
class
GoodsDetailBannerResModel
:
Mappable
{
var
img_id
:
String
?
//副图ID
var
img_id
:
Int
?
//副图ID
var
img_original
:
String
?
//副图图片地址
var
img_original
:
String
?
//副图图片地址
required
init
?(
map
:
Map
)
{
required
init
?(
map
:
Map
)
{
...
...
GeliBusinessPlatform/SceneDelegate.swift
View file @
ff005a84
...
@@ -47,10 +47,8 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
...
@@ -47,10 +47,8 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
vc
.
delegate
=
self
vc
.
delegate
=
self
let
contentView
=
vc
let
contentView
=
vc
// let vc = DaiKeXiaDanGouWuViewController()
// let contentView = vc
if
let
windowScene
=
sceneC
as?
UIWindowScene
{
if
let
windowScene
=
sceneC
as?
UIWindowScene
{
if
isAgain
{
if
isAgain
{
...
@@ -96,7 +94,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
...
@@ -96,7 +94,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
// Create the SwiftUI view that provides the window contents.
// Create the SwiftUI view that provides the window contents.
tabBarController
.
viewControllers
=
[
v1
,
v2
,
v3
,
v4
,
v5
]
tabBarController
.
viewControllers
=
[
v1
,
v2
,
v3
,
v4
,
v5
]
//
tabBarController.selectedIndex = 1
tabBarController
.
selectedIndex
=
1
let
contentView
=
tabBarController
let
contentView
=
tabBarController
...
...
GeliBusinessPlatform/View/Cell/AddImgCell.swift
View file @
ff005a84
...
@@ -16,6 +16,7 @@ protocol AddImgCellDelegate {
...
@@ -16,6 +16,7 @@ protocol AddImgCellDelegate {
}
}
class
AddImgCell
:
UITableViewCell
{
class
AddImgCell
:
UITableViewCell
{
var
delegate
:
AddImgCellDelegate
?
var
delegate
:
AddImgCellDelegate
?
var
isAllEditing
=
true
var
isEdit
:
Bool
?{
var
isEdit
:
Bool
?{
willSet
{
willSet
{
isEdit
=
newValue
isEdit
=
newValue
...
@@ -23,7 +24,9 @@ class AddImgCell: UITableViewCell {
...
@@ -23,7 +24,9 @@ class AddImgCell: UITableViewCell {
}
}
}
}
@IBAction
func
btnClick
(
_
sender
:
Any
)
{
@IBAction
func
btnClick
(
_
sender
:
Any
)
{
delegate
?
.
AddImgCellBtnClick
(
cell
:
self
)
if
isAllEditing
{
delegate
?
.
AddImgCellBtnClick
(
cell
:
self
)
}
}
}
var
isSingle
:
Bool
?
var
isSingle
:
Bool
?
...
@@ -138,11 +141,14 @@ class AddImgCell: UITableViewCell {
...
@@ -138,11 +141,14 @@ class AddImgCell: UITableViewCell {
}
}
}
}
@objc
func
changeAction
(
sender
:
UIButton
){
@objc
func
changeAction
(
sender
:
UIButton
){
delegate
?
.
ChangeCellBtnClick
(
sender
:
sender
,
cell
:
self
)
if
isAllEditing
{
delegate
?
.
ChangeCellBtnClick
(
sender
:
sender
,
cell
:
self
)
}
}
}
@objc
func
delAction
(
sender
:
UIButton
){
@objc
func
delAction
(
sender
:
UIButton
){
if
isAllEditing
{
delegate
?
.
DelImgCellBtnClick
(
sender
:
sender
,
cell
:
self
)
delegate
?
.
DelImgCellBtnClick
(
sender
:
sender
,
cell
:
self
)
}
}
}
override
func
awakeFromNib
()
{
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
super
.
awakeFromNib
()
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
ff005a84
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
//
//
import
UIKit
import
UIKit
import
IQKeyboardManagerSwift
class
DaiKeXiaDanGouWuViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
DaiKeXiaDanFooterViewDelegate
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
DZGLViewControllerDelegate
,
XuanZeShangPinViewControllerDelegate
,
DaiKeXiaDanGouWuCellDelegate
{
class
DaiKeXiaDanGouWuViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
DaiKeXiaDanFooterViewDelegate
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
DZGLViewControllerDelegate
,
XuanZeShangPinViewControllerDelegate
,
DaiKeXiaDanGouWuCellDelegate
{
func
DaiKeXiaDanGouWuCellDelAction
(
cell
:
DaiKeXiaDanGouWuCell
)
{
func
DaiKeXiaDanGouWuCellDelAction
(
cell
:
DaiKeXiaDanGouWuCell
)
{
...
@@ -15,10 +16,10 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -15,10 +16,10 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
}
}
let
ddTypeArr
=
[
"普通订单"
,
"预售下单"
]
let
ddTypeArr
=
[
"普通订单"
,
"预售下单"
]
let
zfTypeArr
=
[
"未付款"
,
"欠款"
,
"月结"
,
"已付款"
]
let
zfTypeArr
=
[
"未付款"
,
"欠款"
,
"月结"
,
"已付款"
]
let
zfWayArr
=
[
"未支付"
,
"现金"
,
"转账(私)"
,
"转账(公)"
,
"转账(微信)"
,
"转账(支付宝)"
]
let
zfWayArr
=
[
"未支付"
,
"现金"
,
"转账(私)"
,
"转账(公)"
,
"转账(微信)"
,
"转账(支付宝)"
]
let
thArr
=
[
"自提"
,
"派送"
]
let
thArr
=
[
"自提"
,
"派送"
]
let
ckArr
=
[
"暂不出库"
,
"直接出库"
]
let
ckArr
=
[
"暂不出库"
,
"直接出库"
]
//MARK: - 商品选择(预售)
//MARK: - 商品选择(预售)
func
XuanZeShangPinViewControllerYuShou
(
YuShouData
:
String
)
{
func
XuanZeShangPinViewControllerYuShou
(
YuShouData
:
String
)
{
...
@@ -72,10 +73,15 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -72,10 +73,15 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
listView
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTFCell"
)
listView
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTFCell"
)
listView
.
register
(
UINib
(
nibName
:
"DaiKeXiaDanGouWuCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"DaiKeXiaDanGouWuCell"
)
listView
.
register
(
UINib
(
nibName
:
"DaiKeXiaDanGouWuCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"DaiKeXiaDanGouWuCell"
)
listView
.
register
(
UINib
(
nibName
:
"DKXDAdrCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"DKXDAdrCell"
)
listView
.
register
(
UINib
(
nibName
:
"DKXDAdrCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"DKXDAdrCell"
)
let
barView
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
fullScreenHeight
,
width
:
fullScreenWidth
,
height
:
30
))
barView
.
backgroundColor
=
UIColor
.
red
self
.
view
.
insertSubview
(
barView
,
at
:
self
.
view
.
subviews
.
count
)
barV
=
barView
//TitleAndBtnCell TitleAndTFCell
//TitleAndBtnCell TitleAndTFCell
// Do any additional setup after loading the view.
// Do any additional setup after loading the view.
registerNotification
()
}
}
var
barV
:
UIView
?
//MARK: - cell delegate
//MARK: - cell delegate
func
addAction
()
{
func
addAction
()
{
...
@@ -88,7 +94,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -88,7 +94,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
if
orderType
==
1
{
if
orderType
==
1
{
vc
.
isYuShou
=
true
vc
.
isYuShou
=
true
}
}
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
//footer
//footer
...
@@ -247,6 +253,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -247,6 +253,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
cell
.
textTF
.
placeholder
=
"请输入运费"
cell
.
textTF
.
placeholder
=
"请输入运费"
cell
.
textTF
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
.
textTF
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
if
indexPath
.
row
==
5
{
if
indexPath
.
row
==
5
{
IQKeyboardManager
.
shared
.
enableAutoToolbar
=
false
cell
.
textTF
.
placeholder
=
"请输入费用"
cell
.
textTF
.
placeholder
=
"请输入费用"
}
}
cell
.
textTF
.
textAlignment
=
.
center
cell
.
textTF
.
textAlignment
=
.
center
...
@@ -369,4 +376,40 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -369,4 +376,40 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
view
.
removeFromSuperview
()
view
.
removeFromSuperview
()
glSelectView
=
nil
glSelectView
=
nil
}
}
//键盘监听
deinit
{
NotificationCenter
.
default
.
removeObserver
(
self
)
}
func
registerNotification
(){
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
keyBoardWillShow(_ :)
)
,
name
:
UIResponder
.
keyboardWillShowNotification
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
keyBoardWillHide(_ :)
)
,
name
:
UIResponder
.
keyboardWillHideNotification
,
object
:
nil
)
}
//MARK:键盘通知相关操作
@objc
func
keyBoardWillShow
(
_
notification
:
Notification
){
DispatchQueue
.
main
.
async
{
let
user_info
=
notification
.
userInfo
let
keyValue
=
user_info
!
[
"UIKeyboardFrameEndUserInfoKey"
]
let
keyRect
=
(
keyValue
as
AnyObject
)
.
cgRectValue
let
y
=
keyRect
?
.
origin
.
y
let
animationTime
=
user_info
!
[
"UIKeyboardAnimationDurationUserInfoKey"
]
UIView
.
animate
(
withDuration
:
0.38
)
{
self
.
barV
?
.
frame
=
CGRect
(
x
:
0
,
y
:
y
!-
30
,
width
:
fullScreenWidth
,
height
:
30
)
}
}
}
@objc
func
keyBoardWillHide
(
_
notification
:
Notification
){
DispatchQueue
.
main
.
async
{
UIView
.
animate
(
withDuration
:
0.38
)
{
self
.
barV
?
.
frame
=
CGRect
(
x
:
0
,
y
:
fullScreenHeight
,
width
:
fullScreenWidth
,
height
:
30
)
}
}
}
}
}
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
View file @
ff005a84
...
@@ -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=
"DaiKeXiaDanGouWuViewController"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"DaiKeXiaDanGouWuViewController"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<connections>
<outlet
property=
"btmView"
destination=
"Tww-Di-Bao"
id=
"sc1-iw-raM"
/>
<outlet
property=
"btmView"
destination=
"Tww-Di-Bao"
id=
"sc1-iw-raM"
/>
<outlet
property=
"listView"
destination=
"7kx-vF-yfW"
id=
"ICi-ue-tem"
/>
<outlet
property=
"listView"
destination=
"7kx-vF-yfW"
id=
"ICi-ue-tem"
/>
...
@@ -52,9 +52,9 @@
...
@@ -52,9 +52,9 @@
</attributedString>
</attributedString>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"
plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"2
8"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7kx-vF-yfW"
>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"
grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"18"
sectionFooterHeight=
"1
8"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7kx-vF-yfW"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<color
key=
"backgroundColor"
name=
"app底色
"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor
"
/>
<connections>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"615-RE-zVt"
/>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"615-RE-zVt"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"wfr-0B-yUN"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"wfr-0B-yUN"
/>
...
@@ -80,9 +80,6 @@
...
@@ -80,9 +80,6 @@
</view>
</view>
</objects>
</objects>
<resources>
<resources>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色上"
>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
...
...
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
View file @
ff005a84
...
@@ -408,10 +408,10 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
...
@@ -408,10 +408,10 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
}
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
print
(
"选中===
\(
indexPath
)
"
)
print
(
"选中===
\(
indexPath
)
"
)
//
let vc = EPViewController()
let
vc
=
EPViewController
()
//
let data = items[indexPath.row]
let
data
=
items
[
indexPath
.
row
]
//
vc.goods_id = data.goods_id
vc
.
goods_id
=
data
.
goods_id
//
self.navigationController?.pushViewController(vc, animated: true)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
//MARK:---cell delegate 选中
//MARK:---cell delegate 选中
...
@@ -419,11 +419,11 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
...
@@ -419,11 +419,11 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
let
idx
=
IndexPath
(
item
:
index
,
section
:
0
)
let
idx
=
IndexPath
(
item
:
index
,
section
:
0
)
let
item
=
collection
?
.
cellForItem
(
at
:
idx
)
as!
GoodsCollectionViewCell
let
item
=
collection
?
.
cellForItem
(
at
:
idx
)
as!
GoodsCollectionViewCell
//
let vc = EPViewController()
let
vc
=
EPViewController
()
//
vc.titleStrArr = [item.leftBtn.titleLabel!.text!,item.rightBtn.titleLabel!.text!]
vc
.
titleStrArr
=
[
item
.
leftBtn
.
titleLabel
!.
text
!
,
item
.
rightBtn
.
titleLabel
!.
text
!
]
//
let data = items[index]
let
data
=
items
[
index
]
//
vc.goods_id = data.goods_id
vc
.
goods_id
=
data
.
goods_id
//
self.navigationController?.pushViewController(vc, animated: true)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
//MARK:-- cell delegate 上下架,入库
//MARK:-- cell delegate 上下架,入库
func
changeGoodsIsShow
(
isTrue
:
Bool
,
byIndex
:
Int
)
{
func
changeGoodsIsShow
(
isTrue
:
Bool
,
byIndex
:
Int
)
{
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
ff005a84
This source diff could not be displayed because it is too large. You can
view the blob
instead.
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
ff005a84
...
@@ -1125,28 +1125,27 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -1125,28 +1125,27 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
model
=
md
model
=
md
}
}
}
}
if
md
.
isJieTiOpen
{
}
is_adsale_tiered
=
1
if
md
.
isYsJieTiOpen
{
//每一个预售阶梯价
is_adsale_tiered
=
1
md
.
specalArr
.
forEach
{
(
obj
)
in
//每一个预售阶梯价
let
str
=
obj
as!
String
md
.
specalArr
.
forEach
{
(
obj
)
in
let
arr
=
str
.
components
(
separatedBy
:
"_"
)
let
str
=
obj
as!
String
let
priceStr
=
arr
[
0
]
let
arr
=
str
.
components
(
separatedBy
:
"_"
)
let
coutStr
=
arr
[
1
]
let
priceStr
=
arr
[
0
]
let
coutStr
=
arr
[
1
]
if
isPurnNumber
(
str
:
priceStr
)
{
if
isPurnNumber
(
str
:
priceStr
)
{
let
specaP
=
Float
(
priceStr
)
!
let
specaP
=
Float
(
priceStr
)
!
if
specaP
<
price
{
if
specaP
<
price
{
price
=
specaP
price
=
specaP
model
=
md
model
=
md
}
}
}
}
adsale_tiered_pri
.
updateValue
(
priceStr
,
forKey
:
coutStr
)
adsale_tiered_pri
.
updateValue
(
priceStr
,
forKey
:
coutStr
)
}
}
}
}
}
...
...
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