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
c768492d
Commit
c768492d
authored
Dec 22, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.6.9,build3.7上架版本
parent
941e08eb
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
83 additions
and
43 deletions
+83
-43
GeliBusinessPlatform.xcodeproj/project.pbxproj
GeliBusinessPlatform.xcodeproj/project.pbxproj
+2
-2
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/AppDelegate.swift
GeliBusinessPlatform/AppDelegate.swift
+3
-3
GeliBusinessPlatform/Info.plist
GeliBusinessPlatform/Info.plist
+3
-3
GeliBusinessPlatform/Model/OrderManageModel/GetGoodsInfoModel.swift
...ssPlatform/Model/OrderManageModel/GetGoodsInfoModel.swift
+5
-1
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
+0
-1
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+11
-1
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
...iewController/代客下单(购物)/XuanZeShangPinViewController.swift
+6
-0
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.xib
...iewController/分销订单管理/RetailManageDetailViewController.xib
+2
-2
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageViewController.swift
...rm/ViewController/分销订单管理/RetailManageViewController.swift
+11
-4
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageViewController.xib
...form/ViewController/分销订单管理/RetailManageViewController.xib
+2
-2
GeliBusinessPlatform/ViewController/分销订单管理/View/RetailManageFooterView.xib
...orm/ViewController/分销订单管理/View/RetailManageFooterView.xib
+2
-2
GeliBusinessPlatform/ViewController/分销订单管理/View/RetailManageViewCell.xib
...tform/ViewController/分销订单管理/View/RetailManageViewCell.xib
+2
-2
GeliBusinessPlatform/ViewController/商品详情/EPViewController.xib
...BusinessPlatform/ViewController/商品详情/EPViewController.xib
+2
-2
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
...orm/ViewController/新增规格/CreatNewSpecsViewController.swift
+13
-5
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.swift
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.swift
+9
-1
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.xib
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.xib
+10
-12
No files found.
GeliBusinessPlatform.xcodeproj/project.pbxproj
View file @
c768492d
...
@@ -4188,7 +4188,7 @@
...
@@ -4188,7 +4188,7 @@
CLANG_ENABLE_MODULES
=
YES
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
GeliBusinessPlatform/GeliBusinessPlatform.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
GeliBusinessPlatform/GeliBusinessPlatform.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
3.
5
;
CURRENT_PROJECT_VERSION
=
3.
7
;
DEFINES_MODULE
=
NO
;
DEFINES_MODULE
=
NO
;
DEVELOPMENT_ASSET_PATHS
=
"\"GeliBusinessPlatform/Preview Content\""
;
DEVELOPMENT_ASSET_PATHS
=
"\"GeliBusinessPlatform/Preview Content\""
;
DEVELOPMENT_TEAM
=
K48346UACH
;
DEVELOPMENT_TEAM
=
K48346UACH
;
...
@@ -4319,7 +4319,7 @@
...
@@ -4319,7 +4319,7 @@
CLANG_ENABLE_MODULES
=
YES
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
GeliBusinessPlatform/GeliBusinessPlatform.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
GeliBusinessPlatform/GeliBusinessPlatform.entitlements
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
3.
5
;
CURRENT_PROJECT_VERSION
=
3.
7
;
DEFINES_MODULE
=
NO
;
DEFINES_MODULE
=
NO
;
DEVELOPMENT_ASSET_PATHS
=
"\"GeliBusinessPlatform/Preview Content\""
;
DEVELOPMENT_ASSET_PATHS
=
"\"GeliBusinessPlatform/Preview Content\""
;
DEVELOPMENT_TEAM
=
K48346UACH
;
DEVELOPMENT_TEAM
=
K48346UACH
;
...
...
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
c768492d
No preview for this file type
GeliBusinessPlatform/AppDelegate.swift
View file @
c768492d
...
@@ -14,11 +14,11 @@ notice@gelifood.com
...
@@ -14,11 +14,11 @@ notice@gelifood.com
极光密码
极光密码
GeliFood
GeliFood
81338860geLI
81338860geLI
高德地图
高德地图
18924107259
18924107259
81338860geli
81338860geli
微信开发平台
微信开发平台
GELIFOOD123@126.com
GELIFOOD123@126.com
81338860geli
81338860geli
...
@@ -30,7 +30,7 @@ wx26b371b279064098
...
@@ -30,7 +30,7 @@ wx26b371b279064098
测试账号&密码
测试账号&密码
Liangyuepf
Liangyuepf
zxcvbnm
zxcvbnm
*/
*/
import
UIKit
import
UIKit
import
ESTabBarController_swift
import
ESTabBarController_swift
...
...
GeliBusinessPlatform/Info.plist
View file @
c768492d
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<key>
NSBluetoothPeripheralUsageDescription
</key>
<key>
NSBluetoothPeripheralUsageDescription
</key>
<string>
我们需要通过您同意使用蓝牙,才能连接打印机
</string>
<string>
我们需要通过您同意使用蓝牙,才能连接打印机
</string>
<key>
NSCameraUsageDescription
</key>
<key>
NSCameraUsageDescription
</key>
<string>
我们需要通过您同意使用相机,才能
使用相机功能
</string>
<string>
我们需要通过您同意使用相机,才能
拍摄商品、发票图片
</string>
<key>
NSContactsUsageDescription
</key>
<key>
NSContactsUsageDescription
</key>
<string>
我们需要通过您同意使用通讯录,才能访问您的好友列表
</string>
<string>
我们需要通过您同意使用通讯录,才能访问您的好友列表
</string>
<key>
NSLocationAlwaysUsageDescription
</key>
<key>
NSLocationAlwaysUsageDescription
</key>
...
@@ -72,9 +72,9 @@
...
@@ -72,9 +72,9 @@
<key>
NSMicrophoneUsageDescription
</key>
<key>
NSMicrophoneUsageDescription
</key>
<string>
我们需要通过您同意使用麦克风,才能与你进行语音交流
</string>
<string>
我们需要通过您同意使用麦克风,才能与你进行语音交流
</string>
<key>
NSPhotoLibraryAddUsageDescription
</key>
<key>
NSPhotoLibraryAddUsageDescription
</key>
<string>
我们需要通过您同意使用相册,才能
使用您的相册数据
</string>
<string>
我们需要通过您同意使用相册,才能
上传相关商品、发票图片
</string>
<key>
NSPhotoLibraryUsageDescription
</key>
<key>
NSPhotoLibraryUsageDescription
</key>
<string>
我们需要通过您同意使用相册,才能
使用您的相册数据
</string>
<string>
我们需要通过您同意使用相册,才能
上传相关商品、发票图片
</string>
<key>
PHPhotoLibraryPreventAutomaticLimitedAccessAlert
</key>
<key>
PHPhotoLibraryPreventAutomaticLimitedAccessAlert
</key>
<true/>
<true/>
<key>
UIBackgroundModes
</key>
<key>
UIBackgroundModes
</key>
...
...
GeliBusinessPlatform/Model/OrderManageModel/GetGoodsInfoModel.swift
View file @
c768492d
...
@@ -27,7 +27,7 @@ class GetGoodsInfoModel: Mappable {
...
@@ -27,7 +27,7 @@ class GetGoodsInfoModel: Mappable {
class
GetGoodsInfoDataModel
:
Mappable
{
class
GetGoodsInfoDataModel
:
Mappable
{
var
sku_id
:
Int
?
//sku_id
var
sku_id
:
Int
?
//sku_id
var
goods_id
:
Int
?
//goods_id
var
goods_id
:
Int
?
//goods_id
var
goods_img
:
String
?
//商品缩略图
var
goods_img
:
String
?
//商品缩略图
var
goods_name
:
String
?
//商品名
var
goods_name
:
String
?
//商品名
var
origin_number
:
Int
?
//起订量
var
origin_number
:
Int
?
//起订量
...
@@ -42,6 +42,8 @@ class GetGoodsInfoDataModel: Mappable {
...
@@ -42,6 +42,8 @@ class GetGoodsInfoDataModel: Mappable {
var
price
:
String
?
//售价
var
price
:
String
?
//售价
var
tiered_pri
:
String
?
//阶梯价
var
tiered_pri
:
String
?
//阶梯价
var
adsale_tiered_pri
:
String
?
//预售阶梯价
var
adsale_tiered_pri
:
String
?
//预售阶梯价
var
adsale_pri
:
String
?
//预售价格
var
pct
:
Float
?
//定金比例(百分比) 例如填12即是定金比例为12%
var
target_Count
:
Int
?
//目标数量
var
target_Count
:
Int
?
//目标数量
var
target_Price
:
String
?
//目标价格
var
target_Price
:
String
?
//目标价格
...
@@ -68,6 +70,8 @@ class GetGoodsInfoDataModel: Mappable {
...
@@ -68,6 +70,8 @@ class GetGoodsInfoDataModel: Mappable {
price
<-
map
[
"price"
]
price
<-
map
[
"price"
]
tiered_pri
<-
map
[
"tiered_pri"
]
tiered_pri
<-
map
[
"tiered_pri"
]
adsale_tiered_pri
<-
map
[
"adsale_tiered_pri"
]
adsale_tiered_pri
<-
map
[
"adsale_tiered_pri"
]
adsale_pri
<-
map
[
"adsale_pri"
]
pct
<-
map
[
"pct"
]
target_Count
<-
map
[
"target_Count"
]
target_Count
<-
map
[
"target_Count"
]
target_Price
<-
map
[
"target_Price"
]
target_Price
<-
map
[
"target_Price"
]
pog_id
<-
map
[
"pog_id"
]
pog_id
<-
map
[
"pog_id"
]
...
...
GeliBusinessPlatform/View/Cell/XuanZeShangPinCell.swift
View file @
c768492d
...
@@ -48,7 +48,6 @@ class XuanZeShangPinCell: UITableViewCell{
...
@@ -48,7 +48,6 @@ class XuanZeShangPinCell: UITableViewCell{
let
maxStr
=
StringByInt
(
number
:
maxNum
!
)
let
maxStr
=
StringByInt
(
number
:
maxNum
!
)
HUD
.
flash
(
.
label
(
"不可超过最大数量"
+
maxStr
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"不可超过最大数量"
+
maxStr
),
delay
:
1.2
)
countTF
.
text
=
StringByInt
(
number
:
maxNum
!
)
countTF
.
text
=
StringByInt
(
number
:
maxNum
!
)
}
else
{
}
else
{
countTF
.
text
=
"
\(
str
.
integerValue
+
1
)
"
countTF
.
text
=
"
\(
str
.
integerValue
+
1
)
"
}
}
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
c768492d
...
@@ -554,7 +554,17 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -554,7 +554,17 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
func
XuanZeShangPinViewControllerYuShou
(
YuShouData
:
Array
<
GetGoodsInfoDataModel
>
)
{
func
XuanZeShangPinViewControllerYuShou
(
YuShouData
:
Array
<
GetGoodsInfoDataModel
>
)
{
cellDataArr
.
removeAll
()
cellDataArr
.
removeAll
()
cellDataArr
=
YuShouData
cellDataArr
=
YuShouData
print
(
cellDataArr
.
count
)
let
model
=
cellDataArr
.
first
let
price
=
Float
((
model
?
.
target_Price
)
!
)
let
count
=
Float
((
model
?
.
target_Count
)
!
)
var
percent
:
Float
=
20
if
model
?
.
pct
!=
nil
{
if
model
?
.
pct
!=
0
{
percent
=
Float
((
model
?
.
pct
)
!
)
}
}
djTFstr
=
String
(
format
:
"%.2f"
,
price
!
*
percent
/
100
*
count
)
wkTFstr
=
String
(
format
:
"%.2f"
,
price
!
*
(
100
-
percent
)
/
100
*
count
)
listView
.
reloadData
()
listView
.
reloadData
()
}
}
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
View file @
c768492d
...
@@ -42,6 +42,12 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -42,6 +42,12 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
}
else
{
}
else
{
if
isYuShou
{
if
isYuShou
{
if
selectArr
.
count
!=
0
{
if
selectArr
.
count
!=
0
{
let
model
=
selectArr
.
first
if
model
?
.
target_Count
==
0
{
HUD
.
flash
(
.
label
(
"请输入正确的数量"
),
delay
:
1.2
)
return
}
delegate
?
.
XuanZeShangPinViewControllerYuShou
(
YuShouData
:
selectArr
)
delegate
?
.
XuanZeShangPinViewControllerYuShou
(
YuShouData
:
selectArr
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
else
{
}
else
{
...
...
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.xib
View file @
c768492d
<?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=
"17
156
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
701
"
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>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
126
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
703
"
/>
<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=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
...
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageViewController.swift
View file @
c768492d
...
@@ -194,12 +194,19 @@ class RetailManageViewController: BaseViewController,UITableViewDelegate,UITable
...
@@ -194,12 +194,19 @@ class RetailManageViewController: BaseViewController,UITableViewDelegate,UITable
if
model
.
dbt_type
==
2
{
if
model
.
dbt_type
==
2
{
dbt_typeStr
=
"自动结算"
dbt_typeStr
=
"自动结算"
}
}
if
model
.
pay_status
==
2
{
switch
model
.
pay_status
{
case
2
:
contentV
.
stateLbl
.
text
=
"已付款/"
+
dbt_typeStr
contentV
.
stateLbl
.
text
=
"已付款/"
+
dbt_typeStr
break
}
else
{
case
10
:
contentV
.
stateLbl
.
text
=
"月结/"
+
dbt_typeStr
break
case
11
:
contentV
.
stateLbl
.
text
=
"已退款/"
+
dbt_typeStr
break
default
:
contentV
.
stateLbl
.
text
=
"未付款/"
+
dbt_typeStr
contentV
.
stateLbl
.
text
=
"未付款/"
+
dbt_typeStr
break
}
}
return
headerV
return
headerV
...
...
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageViewController.xib
View file @
c768492d
<?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=
"17
156
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
701
"
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>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
125
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
703
"
/>
<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=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
...
GeliBusinessPlatform/ViewController/分销订单管理/View/RetailManageFooterView.xib
View file @
c768492d
<?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=
"17
506
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
701
"
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>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
505
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
703
"
/>
<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=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
...
GeliBusinessPlatform/ViewController/分销订单管理/View/RetailManageViewCell.xib
View file @
c768492d
<?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=
"17
506
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
701
"
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>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
505
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
703
"
/>
<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=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.xib
View file @
c768492d
<?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=
"17
156
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"17
701
"
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>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
125
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17
703
"
/>
<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=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
...
...
GeliBusinessPlatform/ViewController/新增规格/CreatNewSpecsViewController.swift
View file @
c768492d
...
@@ -28,7 +28,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -28,7 +28,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
selectView
=
nil
selectView
=
nil
}
}
var
ysKuCun
:
String
=
""
//预售库存
var
ysKuCun
:
String
=
""
//预售库存
var
DJBiLi
:
String
=
""
//定金比例
var
DJBiLi
:
String
=
""
//定金比例
(最低1%,最高20%)
var
yuShouPrice
:
String
=
""
//预售价格
var
yuShouPrice
:
String
=
""
//预售价格
var
layout
=
UICollectionViewFlowLayout
()
var
layout
=
UICollectionViewFlowLayout
()
var
delegate
:
CreatNewSpecsViewControllerDelegate
?
var
delegate
:
CreatNewSpecsViewControllerDelegate
?
...
@@ -179,7 +179,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -179,7 +179,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
return
return
}
}
if
isPurnNumber
(
str
:
ysKuCun
)
==
false
{
if
isPurnNumber
(
str
:
ysKuCun
)
==
false
{
HUD
.
flash
(
.
label
(
"请输入正确的库存"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"请输入正确的
预售
库存"
),
delay
:
1.2
)
return
return
}
}
}
}
...
@@ -208,6 +208,16 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -208,6 +208,16 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
}
}
}
}
if
DJBiLi
.
count
==
0
{
HUD
.
flash
(
.
label
(
"默认定金范围(1~20%)"
),
delay
:
1.2
)
DJBiLi
=
"20"
let
idx
=
IndexPath
(
row
:
0
,
section
:
1
)
let
cell
=
listTbv
.
cellForRow
(
at
:
idx
)
as!
YuShouCell
cell
.
inputTF3
.
text
=
"20"
return
}
dataModel
.
originalPrice
=
originalPrice
dataModel
.
originalPrice
=
originalPrice
dataModel
.
originNumberSku
=
originNumberSku
dataModel
.
originNumberSku
=
originNumberSku
...
@@ -225,9 +235,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -225,9 +235,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
dataModel
.
tempSelect
=
tempSelect
dataModel
.
tempSelect
=
tempSelect
dataModel
.
isJieTiOpen
=
isJieTiOpen
dataModel
.
isJieTiOpen
=
isJieTiOpen
dataModel
.
isOpenYSSetting
=
isYuShouSetting
dataModel
.
isOpenYSSetting
=
isYuShouSetting
if
DJBiLi
.
count
==
0
{
DJBiLi
=
"0"
}
dataModel
.
DJBiLi
=
DJBiLi
dataModel
.
DJBiLi
=
DJBiLi
dataModel
.
ysKuCun
=
ysKuCun
dataModel
.
ysKuCun
=
ysKuCun
if
barTitle
?
.
contains
(
"编辑"
)
==
true
{
if
barTitle
?
.
contains
(
"编辑"
)
==
true
{
...
...
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.swift
View file @
c768492d
...
@@ -41,10 +41,18 @@ class YuShouCell: UITableViewCell,UITextFieldDelegate {
...
@@ -41,10 +41,18 @@ class YuShouCell: UITableViewCell,UITextFieldDelegate {
if
textField
==
inputTF3
{
if
textField
==
inputTF3
{
let
str
=
textField
.
text
as!
NSString
let
str
=
textField
.
text
as!
NSString
if
str
.
floatValue
>
20
{
if
str
.
floatValue
>
20
{
HUD
.
flash
(
.
label
(
"
预售定金比例不高于20%
"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"
默认定金范围(1~20%)
"
),
delay
:
1.2
)
inputTF3
.
text
=
"20"
inputTF3
.
text
=
"20"
}
}
if
str
.
floatValue
<
1
{
HUD
.
flash
(
.
label
(
"默认定金范围(1~20%)"
),
delay
:
1.2
)
inputTF3
.
text
=
"1"
}
}
}
// if inputTF3.text?.count == 0 {
// HUD.flash(.label("默认定金范围(1~20%)"), delay: 1.2)
// inputTF3.text = "20"
// }
delegate
?
.
YuShouCellTFContent
?(
Price
:
"
\(
inputTF1
.
text
!
)
_
\(
inputTF2
.
text
!
)
_
\(
inputTF3
.
text
!
)
"
as
NSString
)
delegate
?
.
YuShouCellTFContent
?(
Price
:
"
\(
inputTF1
.
text
!
)
_
\(
inputTF2
.
text
!
)
_
\(
inputTF3
.
text
!
)
"
as
NSString
)
}
}
...
...
GeliBusinessPlatform/ViewController/新增规格/YuShouCell.xib
View file @
c768492d
<?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
6097
"
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
7701
"
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=
"16087"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"17703"
/>
<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"
/>
...
@@ -67,7 +68,7 @@
...
@@ -67,7 +68,7 @@
</constraints>
</constraints>
</view>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"预售库存:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gt2-Bp-s7f"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"预售库存:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gt2-Bp-s7f"
>
<rect
key=
"frame"
x=
"1
5
"
y=
"96.5"
width=
"70"
height=
"18.5"
/>
<rect
key=
"frame"
x=
"1
6
"
y=
"96.5"
width=
"70"
height=
"18.5"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"70"
id=
"Bee-fq-cM2"
/>
<constraint
firstAttribute=
"width"
constant=
"70"
id=
"Bee-fq-cM2"
/>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"VoT-c2-rAv"
/>
<constraint
firstAttribute=
"height"
constant=
"18.5"
id=
"VoT-c2-rAv"
/>
...
@@ -77,7 +78,7 @@
...
@@ -77,7 +78,7 @@
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<textField
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入预售库存"
textAlignment=
"right"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Qb7-aM-usa"
>
<textField
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入预售库存"
textAlignment=
"right"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Qb7-aM-usa"
>
<rect
key=
"frame"
x=
"10
0"
y=
"89"
width=
"205
"
height=
"34"
/>
<rect
key=
"frame"
x=
"10
1"
y=
"89"
width=
"204
"
height=
"34"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"34"
id=
"JmO-9y-uwH"
/>
<constraint
firstAttribute=
"height"
constant=
"34"
id=
"JmO-9y-uwH"
/>
</constraints>
</constraints>
...
@@ -92,18 +93,18 @@
...
@@ -92,18 +93,18 @@
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"jGo-VL-q8Q"
/>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"jGo-VL-q8Q"
/>
</constraints>
</constraints>
</view>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"定金比例:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"65l-Cs-6yM"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"定金比例
(%)
:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"65l-Cs-6yM"
>
<rect
key=
"frame"
x=
"16"
y=
"149"
width=
"
67
"
height=
"16"
/>
<rect
key=
"frame"
x=
"16"
y=
"149"
width=
"
90
"
height=
"16"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"16"
id=
"nUL-ID-Cgd"
/>
<constraint
firstAttribute=
"height"
constant=
"16"
id=
"nUL-ID-Cgd"
/>
<constraint
firstAttribute=
"width"
constant=
"
67
"
id=
"x2l-e6-9vz"
/>
<constraint
firstAttribute=
"width"
constant=
"
90
"
id=
"x2l-e6-9vz"
/>
</constraints>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<color
key=
"textColor"
name=
"标题字颜色"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<textField
opaque=
"NO"
tag=
"2"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入预售定金比例"
textAlignment=
"right"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mht-f5-qwh"
>
<textField
opaque=
"NO"
tag=
"2"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"请输入预售定金比例"
textAlignment=
"right"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mht-f5-qwh"
>
<rect
key=
"frame"
x=
"
98"
y=
"140"
width=
"207
"
height=
"34"
/>
<rect
key=
"frame"
x=
"
121"
y=
"140"
width=
"184
"
height=
"34"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"34"
id=
"57U-zx-suF"
/>
<constraint
firstAttribute=
"height"
constant=
"34"
id=
"57U-zx-suF"
/>
</constraints>
</constraints>
...
@@ -132,11 +133,11 @@
...
@@ -132,11 +133,11 @@
<constraint
firstItem=
"gDh-Mx-qdQ"
firstAttribute=
"top"
secondItem=
"XRF-Gv-9pf"
secondAttribute=
"bottom"
constant=
"19"
id=
"d5y-FH-bLa"
/>
<constraint
firstItem=
"gDh-Mx-qdQ"
firstAttribute=
"top"
secondItem=
"XRF-Gv-9pf"
secondAttribute=
"bottom"
constant=
"19"
id=
"d5y-FH-bLa"
/>
<constraint
firstItem=
"gt2-Bp-s7f"
firstAttribute=
"top"
secondItem=
"7Ri-WT-Tkw"
secondAttribute=
"bottom"
constant=
"15.5"
id=
"fQi-BQ-7wO"
/>
<constraint
firstItem=
"gt2-Bp-s7f"
firstAttribute=
"top"
secondItem=
"7Ri-WT-Tkw"
secondAttribute=
"bottom"
constant=
"15.5"
id=
"fQi-BQ-7wO"
/>
<constraint
firstItem=
"mht-f5-qwh"
firstAttribute=
"centerY"
secondItem=
"65l-Cs-6yM"
secondAttribute=
"centerY"
id=
"ksq-Bc-vQ2"
/>
<constraint
firstItem=
"mht-f5-qwh"
firstAttribute=
"centerY"
secondItem=
"65l-Cs-6yM"
secondAttribute=
"centerY"
id=
"ksq-Bc-vQ2"
/>
<constraint
firstItem=
"gt2-Bp-s7f"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"lF6-cU-DsU"
/>
<constraint
firstItem=
"Qb7-aM-usa"
firstAttribute=
"leading"
secondItem=
"gt2-Bp-s7f"
secondAttribute=
"trailing"
constant=
"15"
id=
"m64-af-emt"
/>
<constraint
firstItem=
"Qb7-aM-usa"
firstAttribute=
"leading"
secondItem=
"gt2-Bp-s7f"
secondAttribute=
"trailing"
constant=
"15"
id=
"m64-af-emt"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"COH-zY-OUo"
secondAttribute=
"trailing"
constant=
"15"
id=
"qNF-VN-Dps"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"COH-zY-OUo"
secondAttribute=
"trailing"
constant=
"15"
id=
"qNF-VN-Dps"
/>
<constraint
firstItem=
"7Ri-WT-Tkw"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"r1R-iT-mAW"
/>
<constraint
firstItem=
"7Ri-WT-Tkw"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"r1R-iT-mAW"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"mht-f5-qwh"
secondAttribute=
"trailing"
constant=
"15"
id=
"un4-dj-TW4"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"mht-f5-qwh"
secondAttribute=
"trailing"
constant=
"15"
id=
"un4-dj-TW4"
/>
<constraint
firstItem=
"gt2-Bp-s7f"
firstAttribute=
"leading"
secondItem=
"gDh-Mx-qdQ"
secondAttribute=
"leading"
id=
"yHZ-m6-5nA"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"XRF-Gv-9pf"
secondAttribute=
"trailing"
id=
"yYn-Z0-kdm"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"XRF-Gv-9pf"
secondAttribute=
"trailing"
id=
"yYn-Z0-kdm"
/>
<constraint
firstItem=
"65l-Cs-6yM"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leadingMargin"
id=
"zjC-cY-SUm"
/>
<constraint
firstItem=
"65l-Cs-6yM"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leadingMargin"
id=
"zjC-cY-SUm"
/>
</constraints>
</constraints>
...
@@ -152,9 +153,6 @@
...
@@ -152,9 +153,6 @@
</tableViewCell>
</tableViewCell>
</objects>
</objects>
<resources>
<resources>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
...
...
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