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
d02a9258
Commit
d02a9258
authored
Apr 16, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阿斯顿换福卡蚝士大利福卡了;就
parent
f722afbf
Changes
34
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
117 additions
and
94 deletions
+117
-94
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Define/NetworkRequest.swift
GeliBusinessPlatform/Define/NetworkRequest.swift
+34
-9
GeliBusinessPlatform/Info.plist
GeliBusinessPlatform/Info.plist
+5
-5
GeliBusinessPlatform/View/Cell/AddImgCell.swift
GeliBusinessPlatform/View/Cell/AddImgCell.swift
+1
-1
GeliBusinessPlatform/View/Cell/LalamoveBillTableViewCell.swift
...usinessPlatform/View/Cell/LalamoveBillTableViewCell.swift
+10
-10
GeliBusinessPlatform/ViewController/1.1入库&出库/NewSelectItemVc.swift
...essPlatform/ViewController/1.1入库&出库/NewSelectItemVc.swift
+1
-1
GeliBusinessPlatform/ViewController/个人中心/PersonCenterViewController.swift
...form/ViewController/个人中心/PersonCenterViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+2
-2
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.xib
...m/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.xib
+15
-2
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
...iewController/代客下单(购物)/XuanZeShangPinViewController.swift
+2
-2
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_Product_VC.swift
...Platform/ViewController/供应商分销商品管理/GYS_FX_Product_VC.swift
+1
-1
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_SearchViewController.swift
...iewController/供应商分销商品管理/GYS_FX_SearchViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/供应商合作管理/GYS_HZ_Vc.swift
GeliBusinessPlatform/ViewController/供应商合作管理/GYS_HZ_Vc.swift
+2
-2
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.swift
...Platform/ViewController/供应商管理/GYSListViewController.swift
+1
-6
GeliBusinessPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.swift
...sPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.swift
+1
-1
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.swift
...wController/分销订单管理/RetailManageDetailViewController.swift
+2
-2
GeliBusinessPlatform/ViewController/商品库存/S_P_K_C_Detail_Vc.swift
...inessPlatform/ViewController/商品库存/S_P_K_C_Detail_Vc.swift
+1
-1
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
...inessPlatform/ViewController/商品管理/GoodsManageListVC.swift
+1
-1
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+6
-16
GeliBusinessPlatform/ViewController/商家信息/ShopInfoViewController.swift
...Platform/ViewController/商家信息/ShopInfoViewController.swift
+6
-6
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/工作中心/WorkItemTableViewCell.swift
...sPlatform/ViewController/工作中心/WorkItemTableViewCell.swift
+2
-2
GeliBusinessPlatform/ViewController/工作中心/编辑工作中心/EditWorkCViewController.swift
.../ViewController/工作中心/编辑工作中心/EditWorkCViewController.swift
+3
-3
GeliBusinessPlatform/ViewController/店长审核/DZSH_Detail_ViewController.swift
...form/ViewController/店长审核/DZSH_Detail_ViewController.swift
+5
-5
GeliBusinessPlatform/ViewController/店长管理/DZGL_VC.swift
GeliBusinessPlatform/ViewController/店长管理/DZGL_VC.swift
+1
-1
GeliBusinessPlatform/ViewController/新增、编辑品牌/XinZengPinPaiViewController.swift
.../ViewController/新增、编辑品牌/XinZengPinPaiViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/溯源/Add_Report_View.swift
GeliBusinessPlatform/ViewController/溯源/Add_Report_View.swift
+1
-1
GeliBusinessPlatform/ViewController/溯源/cell/S_Y_View_Cell.swift
...sinessPlatform/ViewController/溯源/cell/S_Y_View_Cell.swift
+1
-1
GeliBusinessPlatform/ViewController/登录/LoginViewController.swift
...inessPlatform/ViewController/登录/LoginViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
...orm/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
+1
-1
GeliBusinessPlatform/ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
.../ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/订单管理/预售价格修改/XiuGaiYuShouJiaViewController.swift
...ontroller/订单管理/预售价格修改/XiuGaiYuShouJiaViewController.swift
+2
-2
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
...ssPlatform/ViewController/订单详情/OrderDViewController.swift
+3
-3
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
d02a9258
No preview for this file type
GeliBusinessPlatform/Define/NetworkRequest.swift
View file @
d02a9258
...
@@ -70,6 +70,19 @@ class BaseModel: Mappable {
...
@@ -70,6 +70,19 @@ class BaseModel: Mappable {
class
NetworkRequest
{
class
NetworkRequest
{
class
var
sharedInstance
:
NetworkRequest
{
class
var
sharedInstance
:
NetworkRequest
{
let
serverTrustPolicies
:
[
String
:
ServerTrustPolicy
]
=
[
"z.gelifood.com"
:
.
disableEvaluation
,
"zx.gelifood.com"
:
.
disableEvaluation
]
// Create custom manager
if
manager
==
nil
{
let
configuration
=
URLSessionConfiguration
.
default
configuration
.
httpAdditionalHeaders
=
Alamofire
.
SessionManager
.
defaultHTTPHeaders
manager
=
Alamofire
.
SessionManager
(
configuration
:
URLSessionConfiguration
.
default
,
serverTrustPolicyManager
:
ServerTrustPolicyManager
(
policies
:
serverTrustPolicies
)
)
}
return
NetworkRequestShareInstance
return
NetworkRequestShareInstance
}
}
}
}
...
@@ -78,6 +91,17 @@ enum DogError : Error{
...
@@ -78,6 +91,17 @@ enum DogError : Error{
case
DataInvalidError
case
DataInvalidError
}
}
// For Swift 3 and Alamofire 4.0
public
class
MyServerTrustPolicyManager
:
ServerTrustPolicyManager
{
// Override this function in order to trust any self-signed https
public
override
func
serverTrustPolicy
(
forHost
host
:
String
)
->
ServerTrustPolicy
?
{
return
ServerTrustPolicy
.
disableEvaluation
}
}
var
manager
:
Alamofire
.
SessionManager
?
=
nil
extension
NetworkRequest
{
extension
NetworkRequest
{
//MARK: - GET 请求
//MARK: - GET 请求
// let tools : NetworkRequest.shareInstance!
// let tools : NetworkRequest.shareInstance!
...
@@ -104,15 +128,16 @@ extension NetworkRequest {
...
@@ -104,15 +128,16 @@ extension NetworkRequest {
let
ver
=
infoD
!
[
"CFBundleShortVersionString"
]
let
ver
=
infoD
!
[
"CFBundleShortVersionString"
]
request
.
addValue
(
"
\(
ver
!
)
"
,
forHTTPHeaderField
:
"CLIENT_VERSION"
)
request
.
addValue
(
"
\(
ver
!
)
"
,
forHTTPHeaderField
:
"CLIENT_VERSION"
)
request
.
timeoutInterval
=
15
request
.
timeoutInterval
=
15
request
.
httpBody
=
try!
JSONSerialization
.
data
(
withJSONObject
:
params
,
options
:
[])
request
.
httpBody
=
try!
JSONSerialization
.
data
(
withJSONObject
:
params
,
options
:
[])
Alamofire
.
request
(
request
)
.
responseJSON
{
(
response
)
in
manager
!.
request
(
request
)
.
responseJSON
{
(
response
)
in
switch
response
.
result
{
switch
response
.
result
{
case
.
success
(
let
value
):
case
.
success
(
let
value
):
let
json
=
JSON
(
value
)
let
json
=
JSON
(
value
)
print
(
json
)
print
(
json
)
if
json
[
"code"
]
.
intValue
==
1
{
if
json
[
"code"
]
.
intValue
==
1
{
success
(
Mapper
<
T
>
()
.
map
(
JSONObject
:
value
))
success
(
Mapper
<
T
>
()
.
map
(
JSONObject
:
value
))
}
else
if
json
[
"code"
]
.
intValue
==
2
{
}
else
if
json
[
"code"
]
.
intValue
==
2
{
...
@@ -127,7 +152,7 @@ extension NetworkRequest {
...
@@ -127,7 +152,7 @@ extension NetworkRequest {
failture
(
DogError
.
DataInvalidError
)
failture
(
DogError
.
DataInvalidError
)
delay
(
1.5
)
{
delay
(
1.5
)
{
UserDefaults
.
standard
.
removeObject
(
forKey
:
"WorkDataModel"
)
UserDefaults
.
standard
.
removeObject
(
forKey
:
"WorkDataModel"
)
UserDefaults
.
standard
.
removeObject
(
forKey
:
"user_token"
)
UserDefaults
.
standard
.
removeObject
(
forKey
:
"user_token"
)
UserDefaults
.
standard
.
removeObject
(
forKey
:
"userName"
)
UserDefaults
.
standard
.
removeObject
(
forKey
:
"userName"
)
NotificationCenter
.
default
.
post
(
name
:
Notification
.
Name
(
rawValue
:
"logout"
),
object
:
nil
)
NotificationCenter
.
default
.
post
(
name
:
Notification
.
Name
(
rawValue
:
"logout"
),
object
:
nil
)
...
@@ -158,7 +183,7 @@ extension NetworkRequest {
...
@@ -158,7 +183,7 @@ extension NetworkRequest {
let
dicstr
:
String
=
dic
?[
url
]
as!
String
let
dicstr
:
String
=
dic
?[
url
]
as!
String
Alamofire
.
upload
(
multipartFormData
:
{
(
multipartFormData
)
in
manager
!
.
upload
(
multipartFormData
:
{
(
multipartFormData
)
in
let
data
=
image
.
jpegData
(
compressionQuality
:
0.8
)
let
data
=
image
.
jpegData
(
compressionQuality
:
0.8
)
let
fileName
=
String
.
init
(
describing
:
NSDate
())
+
".png"
let
fileName
=
String
.
init
(
describing
:
NSDate
())
+
".png"
// withName:是根据文档决定传入的字符串
// withName:是根据文档决定传入的字符串
...
@@ -190,7 +215,7 @@ extension NetworkRequest {
...
@@ -190,7 +215,7 @@ extension NetworkRequest {
let
dicstr
:
String
=
dic
?[
url
]
as!
String
let
dicstr
:
String
=
dic
?[
url
]
as!
String
let
allUrl
=
SERVERCE_HOST
+
dicstr
let
allUrl
=
SERVERCE_HOST
+
dicstr
print
(
allUrl
)
print
(
allUrl
)
print
(
params
)
print
(
params
)
...
@@ -201,7 +226,7 @@ extension NetworkRequest {
...
@@ -201,7 +226,7 @@ extension NetworkRequest {
request
.
timeoutInterval
=
15
request
.
timeoutInterval
=
15
request
.
httpBody
=
try!
JSONSerialization
.
data
(
withJSONObject
:
params
,
options
:
[])
request
.
httpBody
=
try!
JSONSerialization
.
data
(
withJSONObject
:
params
,
options
:
[])
Alamofire
.
request
(
request
)
.
responseJSON
{
(
response
)
in
manager
!
.
request
(
request
)
.
responseJSON
{
(
response
)
in
switch
response
.
result
{
switch
response
.
result
{
case
.
success
(
let
value
):
case
.
success
(
let
value
):
...
@@ -227,10 +252,10 @@ extension NetworkRequest {
...
@@ -227,10 +252,10 @@ extension NetworkRequest {
failture
(
DogError
.
DataInvalidError
)
failture
(
DogError
.
DataInvalidError
)
}
else
{
}
else
{
failture
(
DogError
.
DataInvalidError
)
failture
(
DogError
.
DataInvalidError
)
}
}
case
.
failure
(
let
error
):
case
.
failure
(
let
error
):
failture
(
error
)
failture
(
error
)
}
}
}
}
...
...
GeliBusinessPlatform/Info.plist
View file @
d02a9258
...
@@ -2,6 +2,11 @@
...
@@ -2,6 +2,11 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<plist
version=
"1.0"
>
<dict>
<dict>
<key>
NSAppTransportSecurity
</key>
<dict>
<key>
NSAllowsArbitraryLoads
</key>
<true/>
</dict>
<key>
BGTaskSchedulerPermittedIdentifiers
</key>
<key>
BGTaskSchedulerPermittedIdentifiers
</key>
<array>
<array>
<string>
GeliBusinessPlatform.GeliBusinessPlatform
</string>
<string>
GeliBusinessPlatform.GeliBusinessPlatform
</string>
...
@@ -47,11 +52,6 @@
...
@@ -47,11 +52,6 @@
<string>
2ff67ee668728
</string>
<string>
2ff67ee668728
</string>
<key>
MOBAppSecret
</key>
<key>
MOBAppSecret
</key>
<string>
20e76534ce633b6488851fe9f67349e0
</string>
<string>
20e76534ce633b6488851fe9f67349e0
</string>
<key>
NSAppTransportSecurity
</key>
<dict>
<key>
NSAllowsArbitraryLoads
</key>
<true/>
</dict>
<key>
NSBluetoothAlwaysUsageDescription
</key>
<key>
NSBluetoothAlwaysUsageDescription
</key>
<string>
我们需要通过您同意使用蓝牙,才能连接打印机
</string>
<string>
我们需要通过您同意使用蓝牙,才能连接打印机
</string>
<key>
NSBluetoothPeripheralUsageDescription
</key>
<key>
NSBluetoothPeripheralUsageDescription
</key>
...
...
GeliBusinessPlatform/View/Cell/AddImgCell.swift
View file @
d02a9258
...
@@ -115,7 +115,7 @@ class AddImgCell: UITableViewCell {
...
@@ -115,7 +115,7 @@ class AddImgCell: UITableViewCell {
img
.
layer
.
masksToBounds
=
true
img
.
layer
.
masksToBounds
=
true
scrollView
!.
addSubview
(
img
)
scrollView
!.
addSubview
(
img
)
let
imgStr
=
arr
[
i
]
let
imgStr
=
arr
[
i
]
img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
imgStr
))
img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
imgStr
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
img
.
isUserInteractionEnabled
=
true
img
.
isUserInteractionEnabled
=
true
img
.
snp
.
makeConstraints
{
(
make
)
in
img
.
snp
.
makeConstraints
{
(
make
)
in
make
.
centerY
.
equalTo
(
scrollView
!.
snp_centerY
)
make
.
centerY
.
equalTo
(
scrollView
!.
snp_centerY
)
...
...
GeliBusinessPlatform/View/Cell/LalamoveBillTableViewCell.swift
View file @
d02a9258
...
@@ -22,7 +22,7 @@ class LalamoveBillTableViewCell: UITableViewCell {
...
@@ -22,7 +22,7 @@ class LalamoveBillTableViewCell: UITableViewCell {
url
=
URL
(
string
:
self
.
datasArr
!
[
context
.
index
])
url
=
URL
(
string
:
self
.
datasArr
!
[
context
.
index
])
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
// 用SDWebImage加载
// 用SDWebImage加载
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[]
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
setNeedsLayout
()
browserCell
?
.
setNeedsLayout
()
})
})
}
}
...
@@ -54,35 +54,35 @@ class LalamoveBillTableViewCell: UITableViewCell {
...
@@ -54,35 +54,35 @@ class LalamoveBillTableViewCell: UITableViewCell {
coverLbl
.
isHidden
=
true
coverLbl
.
isHidden
=
true
switch
datasArr
?
.
count
{
switch
datasArr
?
.
count
{
case
1
:
//SERVERCE_ImageHost +
case
1
:
//SERVERCE_ImageHost +
leftBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
0
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
leftBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
0
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
middleBtn
.
isHidden
=
true
middleBtn
.
isHidden
=
true
rightBtn
.
isHidden
=
true
rightBtn
.
isHidden
=
true
break
break
case
2
:
case
2
:
leftBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
0
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
leftBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
0
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
middleBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
1
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
middleBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
1
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
rightBtn
.
isHidden
=
true
rightBtn
.
isHidden
=
true
break
break
case
3
:
case
3
:
for
i
in
0
..<
datasArr
!.
count
{
for
i
in
0
..<
datasArr
!.
count
{
switch
i
{
switch
i
{
case
0
:
case
0
:
leftBtn
.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
i
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
leftBtn
.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
i
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
break
break
case
1
:
case
1
:
middleBtn
.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
i
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
middleBtn
.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
i
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
break
break
default
:
default
:
rightBtn
.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
i
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
rightBtn
.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
i
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
break
break
}
}
}
}
break
break
default
:
default
:
leftBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
0
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
leftBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
0
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
middleBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
1
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
middleBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
1
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
rightBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
2
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
rightBtn
!.
sd_setImage
(
with
:
URL
(
string
:
datasArr
!
[
2
]),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
coverLbl
.
isHidden
=
false
coverLbl
.
isHidden
=
false
coverLbl
.
text
=
"+
\(
datasArr
!.
count
-
3
)
"
coverLbl
.
text
=
"+
\(
datasArr
!.
count
-
3
)
"
break
break
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/NewSelectItemVc.swift
View file @
d02a9258
...
@@ -79,7 +79,7 @@ class NewSelectItemVc: BaseViewController,UITableViewDelegate,UITableViewDataSou
...
@@ -79,7 +79,7 @@ class NewSelectItemVc: BaseViewController,UITableViewDelegate,UITableViewDataSou
cell
.
selectBtn
.
isSelected
=
true
cell
.
selectBtn
.
isSelected
=
true
}
}
}
}
cell
.
iconImg
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
cellData
.
goods_thumb
!
))
cell
.
iconImg
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
cellData
.
goods_thumb
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
cell
.
nameLbl
.
text
=
cellData
.
goods_name
cell
.
nameLbl
.
text
=
cellData
.
goods_name
cell
.
detailLbl
.
text
=
cellData
.
spec_str
cell
.
detailLbl
.
text
=
cellData
.
spec_str
cell
.
detailLbl2
.
text
=
"库存数:
\(
cellData
.
inventory
!
)
"
cell
.
detailLbl2
.
text
=
"库存数:
\(
cellData
.
inventory
!
)
"
...
...
GeliBusinessPlatform/ViewController/个人中心/PersonCenterViewController.swift
View file @
d02a9258
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
import
UIKit
import
UIKit
import
Photos
import
Photos
import
Alamofire
import
SwiftDate
import
SwiftDate
class
PersonCenterViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
class
PersonCenterViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
@IBOutlet
weak
var
editBtn
:
UIButton
!
@IBOutlet
weak
var
editBtn
:
UIButton
!
...
...
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
d02a9258
...
@@ -21,7 +21,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -21,7 +21,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
paymentView
=
nil
paymentView
=
nil
}
}
@IBOutlet
weak
var
pph_btm_view_h
:
NSLayoutConstraint
!
func
PaymentViewPassInputFinish
(
fullpass
:
String
)
{
func
PaymentViewPassInputFinish
(
fullpass
:
String
)
{
HUD
.
flash
(
.
progress
)
HUD
.
flash
(
.
progress
)
pphPayment
([
"user_token"
:
UserToken
as
Any
,
"wb_no"
:
pph_wb_no
as
Any
,
"pwd"
:
fullpass
as
Any
])
{[
self
]
(
data
)
in
pphPayment
([
"user_token"
:
UserToken
as
Any
,
"wb_no"
:
pph_wb_no
as
Any
,
"pwd"
:
fullpass
as
Any
])
{[
self
]
(
data
)
in
...
@@ -1399,7 +1399,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -1399,7 +1399,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
//MARK: - 拼拼货
//MARK: - 拼拼货
pph_btm_view_h
.
constant
=
0
pph_listView
.
backgroundColor
=
UIColor
(
named
:
"app底色"
)
pph_listView
.
backgroundColor
=
UIColor
(
named
:
"app底色"
)
pph_listView
.
separatorStyle
=
.
none
pph_listView
.
separatorStyle
=
.
none
pph_listView
.
register
(
UINib
(
nibName
:
"HLLTopCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"HLLTopCell"
)
pph_listView
.
register
(
UINib
(
nibName
:
"HLLTopCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"HLLTopCell"
)
...
...
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.xib
View file @
d02a9258
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
<outlet
property=
"listView"
destination=
"Try-UC-8fP"
id=
"plR-El-hxN"
/>
<outlet
property=
"listView"
destination=
"Try-UC-8fP"
id=
"plR-El-hxN"
/>
<outlet
property=
"p_p_view"
destination=
"Vf0-aT-43t"
id=
"BMv-xY-6z5"
/>
<outlet
property=
"p_p_view"
destination=
"Vf0-aT-43t"
id=
"BMv-xY-6z5"
/>
<outlet
property=
"pin_pin_huo"
destination=
"hwI-gN-CwU"
id=
"xHH-Jp-k0u"
/>
<outlet
property=
"pin_pin_huo"
destination=
"hwI-gN-CwU"
id=
"xHH-Jp-k0u"
/>
<outlet
property=
"pph_btm_view_h"
destination=
"1J3-M4-BE8"
id=
"fFd-LW-syf"
/>
<outlet
property=
"pph_listView"
destination=
"lrw-DF-qzM"
id=
"QG0-fE-TaJ"
/>
<outlet
property=
"pph_listView"
destination=
"lrw-DF-qzM"
id=
"QG0-fE-TaJ"
/>
<outlet
property=
"pph_milelbl"
destination=
"zny-S9-xc7"
id=
"Bs1-uc-anD"
/>
<outlet
property=
"pph_milelbl"
destination=
"zny-S9-xc7"
id=
"Bs1-uc-anD"
/>
<outlet
property=
"pph_priceLbl"
destination=
"Ns2-Yz-QQW"
id=
"UJl-9o-Xgl"
/>
<outlet
property=
"pph_priceLbl"
destination=
"Ns2-Yz-QQW"
id=
"UJl-9o-Xgl"
/>
...
@@ -436,7 +435,7 @@
...
@@ -436,7 +435,7 @@
<constraint
firstItem=
"zny-S9-xc7"
firstAttribute=
"leading"
secondItem=
"Ns2-Yz-QQW"
secondAttribute=
"trailing"
constant=
"5"
id=
"fbk-iq-qKn"
/>
<constraint
firstItem=
"zny-S9-xc7"
firstAttribute=
"leading"
secondItem=
"Ns2-Yz-QQW"
secondAttribute=
"trailing"
constant=
"5"
id=
"fbk-iq-qKn"
/>
</constraints>
</constraints>
</view>
</view>
<view
hidden=
"YES"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ROc-Ae-TTC"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ROc-Ae-TTC"
>
<rect
key=
"frame"
x=
"0.0"
y=
"680"
width=
"414"
height=
"37"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"680"
width=
"414"
height=
"37"
/>
<subviews>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"0MA-Wj-rzD"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"0MA-Wj-rzD"
>
...
@@ -576,6 +575,20 @@
...
@@ -576,6 +575,20 @@
<point
key=
"canvasLocation"
x=
"175.36231884057972"
y=
"75.669642857142847"
/>
<point
key=
"canvasLocation"
x=
"175.36231884057972"
y=
"75.669642857142847"
/>
</view>
</view>
</objects>
</objects>
<designables>
<designable
name=
"00z-eF-Akb"
>
<size
key=
"intrinsicContentSize"
width=
"10"
height=
"10"
/>
</designable>
<designable
name=
"ZUK-IF-BZm"
>
<size
key=
"intrinsicContentSize"
width=
"10"
height=
"10"
/>
</designable>
<designable
name=
"h07-dY-afr"
>
<size
key=
"intrinsicContentSize"
width=
"10"
height=
"10"
/>
</designable>
<designable
name=
"qOG-da-TxK"
>
<size
key=
"intrinsicContentSize"
width=
"10"
height=
"10"
/>
</designable>
</designables>
<resources>
<resources>
<image
name=
"fff"
width=
"12"
height=
"12"
/>
<image
name=
"fff"
width=
"12"
height=
"12"
/>
<image
name=
"gttt"
width=
"13"
height=
"12"
/>
<image
name=
"gttt"
width=
"13"
height=
"12"
/>
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
d02a9258
...
@@ -187,7 +187,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
...
@@ -187,7 +187,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
cell
.
tag
=
indexPath
.
row
cell
.
tag
=
indexPath
.
row
cell
.
delegate
=
self
cell
.
delegate
=
self
let
cellData
=
cellDataArr
[
indexPath
.
row
]
let
cellData
=
cellDataArr
[
indexPath
.
row
]
cell
.
imgView
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
cellData
.
goods_img
!
))
cell
.
imgView
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
cellData
.
goods_img
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
cell
.
titleLbl
.
text
=
cellData
.
goods_name
cell
.
titleLbl
.
text
=
cellData
.
goods_name
cell
.
count_lbl
.
text
=
"数量:
\(
cellData
.
target_Count
!
)
件"
cell
.
count_lbl
.
text
=
"数量:
\(
cellData
.
target_Count
!
)
件"
cell
.
detailLbl
.
text
=
"
\(
cellData
.
spec_str
!
)
/
\(
cellData
.
unit
!
)
"
cell
.
detailLbl
.
text
=
"
\(
cellData
.
spec_str
!
)
/
\(
cellData
.
unit
!
)
"
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/XuanZeShangPinViewController.swift
View file @
d02a9258
...
@@ -323,7 +323,7 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -323,7 +323,7 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
cell
.
cellModel
=
model
cell
.
cellModel
=
model
cell
.
detailLbl
.
text
=
"
\(
model
.
spec_str
!
)
/
\(
model
.
unit
!
)
"
cell
.
detailLbl
.
text
=
"
\(
model
.
spec_str
!
)
/
\(
model
.
unit
!
)
"
cell
.
detailLbl2
.
text
=
"库存:
\(
model
.
inventory
!
)
"
cell
.
detailLbl2
.
text
=
"库存:
\(
model
.
inventory
!
)
"
cell
.
iconImg
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
goods_img
!
))
cell
.
iconImg
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
goods_img
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
cell
.
countTF
.
text
=
StringByInt
(
number
:
(
model
.
target_Count
!
))
cell
.
countTF
.
text
=
StringByInt
(
number
:
(
model
.
target_Count
!
))
cell
.
priceTF
.
text
=
model
.
target_Price
cell
.
priceTF
.
text
=
model
.
target_Price
cell
.
maxNum
=
model
.
inventory
cell
.
maxNum
=
model
.
inventory
...
@@ -344,7 +344,7 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
...
@@ -344,7 +344,7 @@ class XuanZeShangPinViewController: BaseViewController,UITableViewDelegate,UITab
}
}
cell
.
iconImg
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
goods_img
!
))
cell
.
iconImg
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
goods_img
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
cell
.
imgUrlPath
=
SERVERCE_ImageHost
+
model
.
goods_img
!
cell
.
imgUrlPath
=
SERVERCE_ImageHost
+
model
.
goods_img
!
cell
.
sku_id
=
model
.
sku_id
cell
.
sku_id
=
model
.
sku_id
cell
.
countTF
.
text
=
StringByInt
(
number
:
model
.
origin_number
!
)
cell
.
countTF
.
text
=
StringByInt
(
number
:
model
.
origin_number
!
)
...
...
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_Product_VC.swift
View file @
d02a9258
...
@@ -204,7 +204,7 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
...
@@ -204,7 +204,7 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
cell
.
new_price_Lbl
.
text
=
"¥"
+
model
.
dbt_price
!
cell
.
new_price_Lbl
.
text
=
"¥"
+
model
.
dbt_price
!
}
}
cell
.
old_price_Lbl
.
text
=
model
.
price
cell
.
old_price_Lbl
.
text
=
model
.
price
cell
.
item_Icon_Img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
goods_thumb
!
))
cell
.
item_Icon_Img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
goods_thumb
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
return
cell
return
cell
}
}
...
...
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_SearchViewController.swift
View file @
d02a9258
...
@@ -228,7 +228,7 @@ class GYS_FX_SearchViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -228,7 +228,7 @@ class GYS_FX_SearchViewController: BaseViewController,UITableViewDelegate,UITabl
cell
.
old_price_line
.
isHidden
=
true
cell
.
old_price_line
.
isHidden
=
true
cell
.
old_price_Lbl
.
isHidden
=
true
cell
.
old_price_Lbl
.
isHidden
=
true
}
}
cell
.
item_Icon_Img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
goods_thumb
!
))
cell
.
item_Icon_Img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
goods_thumb
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
return
cell
return
cell
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
...
...
GeliBusinessPlatform/ViewController/供应商合作管理/GYS_HZ_Vc.swift
View file @
d02a9258
...
@@ -263,7 +263,7 @@ class GYS_HZ_Vc: BaseViewController,UITableViewDelegate,UITableViewDataSource, U
...
@@ -263,7 +263,7 @@ class GYS_HZ_Vc: BaseViewController,UITableViewDelegate,UITableViewDataSource, U
if
dbt_datas
.
count
>
0
{
if
dbt_datas
.
count
>
0
{
let
model
=
dbt_datas
[
indexPath
.
row
]
let
model
=
dbt_datas
[
indexPath
.
row
]
if
model
.
shop_img_thumb
!=
nil
{
if
model
.
shop_img_thumb
!=
nil
{
cell
.
icon_Img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
shop_img_thumb
!
))
cell
.
icon_Img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
shop_img_thumb
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
}
cell
.
title_Lbl
.
text
=
"-"
cell
.
title_Lbl
.
text
=
"-"
if
model
.
create_time
!=
nil
{
if
model
.
create_time
!=
nil
{
...
@@ -279,7 +279,7 @@ class GYS_HZ_Vc: BaseViewController,UITableViewDelegate,UITableViewDataSource, U
...
@@ -279,7 +279,7 @@ class GYS_HZ_Vc: BaseViewController,UITableViewDelegate,UITableViewDataSource, U
if
gys_datas
.
count
>
0
{
if
gys_datas
.
count
>
0
{
let
model
=
gys_datas
[
indexPath
.
row
]
let
model
=
gys_datas
[
indexPath
.
row
]
if
model
.
shop_img_thumb
!=
nil
{
if
model
.
shop_img_thumb
!=
nil
{
cell
.
icon_Img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
shop_img_thumb
!
))
cell
.
icon_Img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
shop_img_thumb
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
}
cell
.
title_Lbl
.
text
=
"-"
cell
.
title_Lbl
.
text
=
"-"
if
model
.
create_time
!=
nil
{
if
model
.
create_time
!=
nil
{
...
...
GeliBusinessPlatform/ViewController/供应商管理/GYSListViewController.swift
View file @
d02a9258
...
@@ -202,12 +202,7 @@ class GYSListViewController: BaseViewController,UITableViewDataSource,UITableVie
...
@@ -202,12 +202,7 @@ class GYSListViewController: BaseViewController,UITableViewDataSource,UITableVie
vc
.
phoneNum
=
data
.
contacts_mobile
!
vc
.
phoneNum
=
data
.
contacts_mobile
!
vc
.
zhizhao
=
data
.
zhizhao
!
vc
.
zhizhao
=
data
.
zhizhao
!
vc
.
food_production_license
=
data
.
food_production_license
!
vc
.
food_production_license
=
data
.
food_production_license
!
// vc.img1.sd_setImage(with: URL(string: SERVERCE_ImageHost + data.zhizhao!), placeholderImage: UIImage(named: "dowPhone"))
//
//
// vc.img2.sd_setImage(with: URL(string: SERVERCE_ImageHost + data.food_production_license!), placeholderImage: UIImage(named: "dowPhone"))
self
.
navigationController
!.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
!.
pushViewController
(
vc
,
animated
:
true
)
}
else
{
}
else
{
selectTarget
=
datas
[
indexPath
.
row
]
selectTarget
=
datas
[
indexPath
.
row
]
...
...
GeliBusinessPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.swift
View file @
d02a9258
...
@@ -377,7 +377,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -377,7 +377,7 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
cell
.
store_lbl
.
text
=
"库存:"
+
StringByInt
(
number
:
model
.
inventory
!
)
cell
.
store_lbl
.
text
=
"库存:"
+
StringByInt
(
number
:
model
.
inventory
!
)
}
}
if
model
.
goods_thumb
!=
nil
{
if
model
.
goods_thumb
!=
nil
{
cell
.
item_Icon_Img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
goods_thumb
!
))
cell
.
item_Icon_Img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
goods_thumb
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
}
cell
.
color_lbl
.
isHidden
=
cell
.
FX_Percent_Lbl
.
isHidden
cell
.
color_lbl
.
isHidden
=
cell
.
FX_Percent_Lbl
.
isHidden
...
...
GeliBusinessPlatform/ViewController/分销订单管理/RetailManageDetailViewController.swift
View file @
d02a9258
...
@@ -23,7 +23,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
...
@@ -23,7 +23,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
browser
.
reloadCellAtIndex
=
{
context
in
browser
.
reloadCellAtIndex
=
{
context
in
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
url
=
URL
(
string
:
SERVERCE_ImageHost
+
(
data
.
report_picture
!
[
context
.
index
]))
let
url
=
URL
(
string
:
SERVERCE_ImageHost
+
(
data
.
report_picture
!
[
context
.
index
]))
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[]
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
setNeedsLayout
()
browserCell
?
.
setNeedsLayout
()
})
})
}
}
...
@@ -145,7 +145,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
...
@@ -145,7 +145,7 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
let
rowModel
=
self
.
dataMdoel
?
.
order_goods
!
[
indexPath
.
row
]
let
rowModel
=
self
.
dataMdoel
?
.
order_goods
!
[
indexPath
.
row
]
cell
.
titleLbl
.
text
=
rowModel
?
.
goods_name
cell
.
titleLbl
.
text
=
rowModel
?
.
goods_name
cell
.
imgView
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
rowModel
?
.
goods_thumb
)
!
))
cell
.
imgView
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
rowModel
?
.
goods_thumb
)
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
if
rowModel
?
.
goods_attr
!=
nil
{
if
rowModel
?
.
goods_attr
!=
nil
{
cell
.
detailLbl
.
text
=
"规格:"
+
(
rowModel
?
.
goods_attr
)
!
cell
.
detailLbl
.
text
=
"规格:"
+
(
rowModel
?
.
goods_attr
)
!
...
...
GeliBusinessPlatform/ViewController/商品库存/S_P_K_C_Detail_Vc.swift
View file @
d02a9258
...
@@ -116,7 +116,7 @@ class S_P_K_C_Detail_Vc: BaseViewController,UICollectionViewDelegate,UICollectio
...
@@ -116,7 +116,7 @@ class S_P_K_C_Detail_Vc: BaseViewController,UICollectionViewDelegate,UICollectio
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"S_P_K_C_Report_Cell"
)
as!
S_P_K_C_Report_Cell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"S_P_K_C_Report_Cell"
)
as!
S_P_K_C_Report_Cell
cell
.
nameLbl
.
text
=
titles
[
indexPath
.
row
]
cell
.
nameLbl
.
text
=
titles
[
indexPath
.
row
]
if
model
.
file_url
!=
nil
{
if
model
.
file_url
!=
nil
{
cell
.
img_view
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
file_url
!
))
cell
.
img_view
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
file_url
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
}
return
cell
return
cell
}
}
...
...
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
View file @
d02a9258
...
@@ -412,7 +412,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
...
@@ -412,7 +412,7 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
cell
.
speatrr
.
text
=
rowModel
.
spec_str
cell
.
speatrr
.
text
=
rowModel
.
spec_str
cell
.
priceLbl
.
text
=
"¥"
+
rowModel
.
price
!
cell
.
priceLbl
.
text
=
"¥"
+
rowModel
.
price
!
cell
.
goodsImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
goods_thumb
!
))
cell
.
goodsImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
goods_thumb
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
if
rowModel
.
is_show
==
1
{
if
rowModel
.
is_show
==
1
{
cell
.
leftBtn
.
setTitle
(
"下架"
,
for
:
.
normal
)
cell
.
leftBtn
.
setTitle
(
"下架"
,
for
:
.
normal
)
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
d02a9258
...
@@ -38,7 +38,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -38,7 +38,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
browser
.
reloadCellAtIndex
=
{
context
in
browser
.
reloadCellAtIndex
=
{
context
in
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
url
=
URL
(
string
:
SERVERCE_ImageHost
+
cell
.
imgs
[
context
.
index
])
let
url
=
URL
(
string
:
SERVERCE_ImageHost
+
cell
.
imgs
[
context
.
index
])
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[]
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
setNeedsLayout
()
browserCell
?
.
setNeedsLayout
()
})
})
...
@@ -205,6 +205,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -205,6 +205,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
}
}
var
gs_id
=
1
var
gs_id
=
1
if
self
.
shangPinStatusArr
!.
count
>
0
{
if
self
.
shangPinStatusArr
!.
count
>
0
{
let
model
=
self
.
shangPinStatusArr
!
[
shangPinStatus
!
]
let
model
=
self
.
shangPinStatusArr
!
[
shangPinStatus
!
]
gs_id
=
model
.
gs_id
!
gs_id
=
model
.
gs_id
!
...
@@ -387,15 +388,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -387,15 +388,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
HUD
.
flash
(
.
label
(
"请输入物流费用"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"请输入物流费用"
),
delay
:
1.2
)
return
return
}
}
// if countrySelect == nil {
// HUD.flash(.label("请选择国家"), delay: 1.2)
// return
// }
if
shangPinStatus
==
nil
{
HUD
.
flash
(
.
label
(
"请选择商品状态"
),
delay
:
1.2
)
return
}
if
yunShuType
==
nil
{
if
yunShuType
==
nil
{
HUD
.
flash
(
.
label
(
"请选择运输方式"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"请选择运输方式"
),
delay
:
1.2
)
return
return
...
@@ -665,13 +658,10 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
...
@@ -665,13 +658,10 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
self
.
keyWord
=
(
model
.
data
?
.
goods_res
!.
keywords
)
!
self
.
keyWord
=
(
model
.
data
?
.
goods_res
!.
keywords
)
!
//物流费用
//物流费用
self
.
wuLiuPrice
=
(
model
.
data
?
.
goods_res
!.
logistics
)
!
self
.
wuLiuPrice
=
(
model
.
data
?
.
goods_res
!.
logistics
)
!
//国家
//待完善
// self.countrySelect = (model.data?.goods_res!.coun_id)!-1
// self.tishixxArr1.insert(self.countryArr[self.countrySelect!], at: 2)
// self.tishixxArr1.remove(at: 3)
//商品状态
//商品状态
self
.
shangPinStatus
=
(
model
.
data
?
.
goods_res
?
.
gs_id
)
!-
1
self
.
shangPinStatus
=
(
model
.
data
?
.
goods_res
?
.
gs_id
)
!
if
model
.
data
?
.
goods_res
!.
gs_name
!=
nil
{
if
model
.
data
?
.
goods_res
!.
gs_name
!=
nil
{
self
.
tishixxArr1
.
insert
((
model
.
data
?
.
goods_res
!.
gs_name
)
!
,
at
:
3
)
self
.
tishixxArr1
.
insert
((
model
.
data
?
.
goods_res
!.
gs_name
)
!
,
at
:
3
)
self
.
tishixxArr1
.
remove
(
at
:
4
)
self
.
tishixxArr1
.
remove
(
at
:
4
)
...
...
GeliBusinessPlatform/ViewController/商家信息/ShopInfoViewController.swift
View file @
d02a9258
...
@@ -46,7 +46,7 @@ class ShopInfoViewController: BaseViewController {
...
@@ -46,7 +46,7 @@ class ShopInfoViewController: BaseViewController {
self
.
emailLbl
.
text
=
self
.
dataModel
?
.
data
?
.
shop_email
self
.
emailLbl
.
text
=
self
.
dataModel
?
.
data
?
.
shop_email
self
.
businessNumLbl
.
text
=
self
.
dataModel
?
.
data
?
.
business_licence_number
self
.
businessNumLbl
.
text
=
self
.
dataModel
?
.
data
?
.
business_licence_number
self
.
businessSphereLbl
.
text
=
self
.
dataModel
?
.
data
?
.
business_sphere
self
.
businessSphereLbl
.
text
=
self
.
dataModel
?
.
data
?
.
business_sphere
self
.
idCardImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
self
.
dataModel
?
.
data
?
.
identity_card_front
)
!
))
self
.
idCardImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
self
.
dataModel
?
.
data
?
.
identity_card_front
)
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
})
{
(
error
)
in
})
{
(
error
)
in
//缺省数据,隐藏滚动视图,展示错误视图
//缺省数据,隐藏滚动视图,展示错误视图
...
@@ -54,12 +54,12 @@ class ShopInfoViewController: BaseViewController {
...
@@ -54,12 +54,12 @@ class ShopInfoViewController: BaseViewController {
}
}
@IBAction
func
previousAction
(
_
sender
:
UIButton
)
{
@IBAction
func
previousAction
(
_
sender
:
UIButton
)
{
self
.
idCardImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
self
.
dataModel
?
.
data
?
.
identity_card_front
)
!
))
self
.
idCardImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
self
.
dataModel
?
.
data
?
.
identity_card_front
)
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
rightChangeImgBtn
.
setImage
(
UIImage
.
init
(
named
:
"idCard2"
),
for
:
.
normal
)
rightChangeImgBtn
.
setImage
(
UIImage
.
init
(
named
:
"idCard2"
),
for
:
.
normal
)
leftChangeImgBtn
.
setImage
(
UIImage
.
init
(
named
:
"idCard1"
),
for
:
.
normal
)
leftChangeImgBtn
.
setImage
(
UIImage
.
init
(
named
:
"idCard1"
),
for
:
.
normal
)
}
}
@IBAction
func
nextAction
(
_
sender
:
UIButton
)
{
@IBAction
func
nextAction
(
_
sender
:
UIButton
)
{
self
.
idCardImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
self
.
dataModel
?
.
data
?
.
identity_card_back
)
!
))
self
.
idCardImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
self
.
dataModel
?
.
data
?
.
identity_card_back
)
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
rightChangeImgBtn
.
setImage
(
UIImage
.
init
(
named
:
"idCard4"
),
for
:
.
normal
)
rightChangeImgBtn
.
setImage
(
UIImage
.
init
(
named
:
"idCard4"
),
for
:
.
normal
)
leftChangeImgBtn
.
setImage
(
UIImage
.
init
(
named
:
"idCard3"
),
for
:
.
normal
)
leftChangeImgBtn
.
setImage
(
UIImage
.
init
(
named
:
"idCard3"
),
for
:
.
normal
)
...
@@ -79,7 +79,7 @@ class ShopInfoViewController: BaseViewController {
...
@@ -79,7 +79,7 @@ class ShopInfoViewController: BaseViewController {
browser
.
reloadCellAtIndex
=
{
context
in
browser
.
reloadCellAtIndex
=
{
context
in
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
// 用SDWebImage加载
// 用SDWebImage加载
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[]
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
setNeedsLayout
()
browserCell
?
.
setNeedsLayout
()
})
})
...
@@ -91,7 +91,7 @@ class ShopInfoViewController: BaseViewController {
...
@@ -91,7 +91,7 @@ class ShopInfoViewController: BaseViewController {
browser
.
reloadCellAtIndex
=
{
context
in
browser
.
reloadCellAtIndex
=
{
context
in
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
// 用SDWebImage加载
// 用SDWebImage加载
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[]
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
setNeedsLayout
()
browserCell
?
.
setNeedsLayout
()
})
})
...
@@ -102,7 +102,7 @@ class ShopInfoViewController: BaseViewController {
...
@@ -102,7 +102,7 @@ class ShopInfoViewController: BaseViewController {
browser
.
reloadCellAtIndex
=
{
context
in
browser
.
reloadCellAtIndex
=
{
context
in
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
// 用SDWebImage加载
// 用SDWebImage加载
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[]
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
setNeedsLayout
()
browserCell
?
.
setNeedsLayout
()
})
})
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
d02a9258
...
@@ -67,7 +67,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
...
@@ -67,7 +67,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
browser
.
reloadCellAtIndex
=
{
context
in
browser
.
reloadCellAtIndex
=
{
context
in
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
// 用SDWebImage加载
// 用SDWebImage加载
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[]
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
setNeedsLayout
()
browserCell
?
.
setNeedsLayout
()
})
})
}
}
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkItemTableViewCell.swift
View file @
d02a9258
...
@@ -125,10 +125,10 @@ class WorkItemTableViewCell: UITableViewCell , UICollectionViewDelegate, UIColle
...
@@ -125,10 +125,10 @@ class WorkItemTableViewCell: UITableViewCell , UICollectionViewDelegate, UIColle
}
else
{
}
else
{
if
isOften
{
if
isOften
{
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon_bg
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon_bg
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
}
else
{
}
else
{
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
}
}
}
}
...
...
GeliBusinessPlatform/ViewController/工作中心/编辑工作中心/EditWorkCViewController.swift
View file @
d02a9258
...
@@ -165,7 +165,7 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC
...
@@ -165,7 +165,7 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC
cell
.
itemImgV
.
image
=
UIImage
.
init
(
named
:
"worktest1"
)
cell
.
itemImgV
.
image
=
UIImage
.
init
(
named
:
"worktest1"
)
}
else
{
}
else
{
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
}
}
...
@@ -193,9 +193,9 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC
...
@@ -193,9 +193,9 @@ class EditWorkCViewController: BaseViewController, UICollectionViewDelegate, UIC
cell
.
itemImgV
.
image
=
UIImage
.
init
(
named
:
"worktest1"
)
cell
.
itemImgV
.
image
=
UIImage
.
init
(
named
:
"worktest1"
)
}
else
{
}
else
{
// cell.itemImgV.sd_setImage(with: URL(string:SERVERCE_ImageHost + rowModel.app_icon_bg!), placeholderImage: UIImage.init(named: "worktest1"))
//带背景常用icon
//带背景常用icon
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
cell
.
itemImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
app_icon
!
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
),
options
:
.
allowInvalidSSLCertificates
)
}
}
cell
.
itemNameLbl
.
text
=
rowModel
.
auth_name
cell
.
itemNameLbl
.
text
=
rowModel
.
auth_name
cell
.
bgImV
.
image
=
UIImage
.
init
(
named
:
"workjian"
)
cell
.
bgImV
.
image
=
UIImage
.
init
(
named
:
"workjian"
)
...
...
GeliBusinessPlatform/ViewController/店长审核/DZSH_Detail_ViewController.swift
View file @
d02a9258
...
@@ -757,7 +757,7 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
...
@@ -757,7 +757,7 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
cell
.
bottom_lbl
.
isHidden
=
false
cell
.
bottom_lbl
.
isHidden
=
false
cell
.
img_view
.
isHidden
=
false
cell
.
img_view
.
isHidden
=
false
if
shop_img
.
count
>
0
{
if
shop_img
.
count
>
0
{
cell
.
img_view
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
shop_img
))
cell
.
img_view
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
shop_img
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
else
{
}
else
{
cell
.
img_view
.
image
=
UIImage
(
named
:
"shangchuantupian"
)
cell
.
img_view
.
image
=
UIImage
(
named
:
"shangchuantupian"
)
}
}
...
@@ -853,28 +853,28 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
...
@@ -853,28 +853,28 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
switch
indexPath
.
row
{
switch
indexPath
.
row
{
case
2
:
case
2
:
if
(
identity_card_front
.
count
>
0
)
{
if
(
identity_card_front
.
count
>
0
)
{
cell
.
img_view
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
identity_card_front
))
cell
.
img_view
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
identity_card_front
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
else
{
}
else
{
cell
.
img_view
.
image
=
UIImage
(
named
:
"upload_1"
)
cell
.
img_view
.
image
=
UIImage
(
named
:
"upload_1"
)
}
}
break
break
case
3
:
case
3
:
if
agreement
.
count
>
0
{
if
agreement
.
count
>
0
{
cell
.
img_view
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
agreement
))
cell
.
img_view
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
agreement
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
else
{
}
else
{
cell
.
img_view
.
image
=
UIImage
(
named
:
"upload_1"
)
cell
.
img_view
.
image
=
UIImage
(
named
:
"upload_1"
)
}
}
break
break
case
4
:
case
4
:
if
zhizhao
.
count
>
0
{
if
zhizhao
.
count
>
0
{
cell
.
img_view
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
zhizhao
))
cell
.
img_view
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
zhizhao
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
else
{
}
else
{
cell
.
img_view
.
image
=
UIImage
(
named
:
"upload_1"
)
cell
.
img_view
.
image
=
UIImage
(
named
:
"upload_1"
)
}
}
break
break
default
:
default
:
if
food_production_license
.
count
>
0
{
if
food_production_license
.
count
>
0
{
cell
.
img_view
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
food_production_license
))
cell
.
img_view
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
food_production_license
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
else
{
}
else
{
cell
.
img_view
.
image
=
UIImage
(
named
:
"upload_1"
)
cell
.
img_view
.
image
=
UIImage
(
named
:
"upload_1"
)
}
}
...
...
GeliBusinessPlatform/ViewController/店长管理/DZGL_VC.swift
View file @
d02a9258
...
@@ -124,7 +124,7 @@ class DZGL_VC: BaseViewController, UITableViewDelegate, UITableViewDataSource, U
...
@@ -124,7 +124,7 @@ class DZGL_VC: BaseViewController, UITableViewDelegate, UITableViewDataSource, U
let
model
=
dbt_datas
[
indexPath
.
row
]
let
model
=
dbt_datas
[
indexPath
.
row
]
cell
.
name_lbl
.
text
=
model
.
shop_name
cell
.
name_lbl
.
text
=
model
.
shop_name
if
model
.
shop_img_thumb
!=
nil
{
if
model
.
shop_img_thumb
!=
nil
{
cell
.
img_view
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
shop_img_thumb
!
))
cell
.
img_view
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
model
.
shop_img_thumb
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
}
cell
.
adr_lbl
.
text
=
model
.
address
cell
.
adr_lbl
.
text
=
model
.
address
cell
.
time_lbl
.
text
=
model
.
create_time
cell
.
time_lbl
.
text
=
model
.
create_time
...
...
GeliBusinessPlatform/ViewController/新增、编辑品牌/XinZengPinPaiViewController.swift
View file @
d02a9258
...
@@ -116,7 +116,7 @@ class XinZengPinPaiViewController: BaseViewController,UITableViewDataSource,UITa
...
@@ -116,7 +116,7 @@ class XinZengPinPaiViewController: BaseViewController,UITableViewDataSource,UITa
cell
.
contentLbl
.
text
=
"上传图片"
cell
.
contentLbl
.
text
=
"上传图片"
cell
.
delegate
=
self
cell
.
delegate
=
self
if
iconUrl
.
count
>
0
{
if
iconUrl
.
count
>
0
{
cell
.
imgView
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
iconUrl
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
))
cell
.
imgView
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
iconUrl
),
placeholderImage
:
UIImage
.
init
(
named
:
"worktest1"
)
,
options
:
.
allowInvalidSSLCertificates
)
cell
.
imgView
.
isHidden
=
false
cell
.
imgView
.
isHidden
=
false
cell
.
contentLbl
.
isHidden
=
true
cell
.
contentLbl
.
isHidden
=
true
}
}
...
...
GeliBusinessPlatform/ViewController/溯源/Add_Report_View.swift
View file @
d02a9258
...
@@ -37,7 +37,7 @@ class Add_Report_View: UIView {
...
@@ -37,7 +37,7 @@ class Add_Report_View: UIView {
let
imgview
=
UIImageView
(
frame
:
CGRect
(
x
:
0
,
y
:
7.5
,
width
:
93
,
height
:
93
))
let
imgview
=
UIImageView
(
frame
:
CGRect
(
x
:
0
,
y
:
7.5
,
width
:
93
,
height
:
93
))
view
.
addSubview
(
imgview
)
view
.
addSubview
(
imgview
)
imgview
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
imgs_datas
[
i
]))
imgview
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
imgs_datas
[
i
])
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
let
btn1
=
UIButton
(
frame
:
imgview
.
frame
)
let
btn1
=
UIButton
(
frame
:
imgview
.
frame
)
btn1
.
tag
=
i
btn1
.
tag
=
i
...
...
GeliBusinessPlatform/ViewController/溯源/cell/S_Y_View_Cell.swift
View file @
d02a9258
...
@@ -35,7 +35,7 @@ class S_Y_View_Cell: UITableViewCell {
...
@@ -35,7 +35,7 @@ class S_Y_View_Cell: UITableViewCell {
pi_ci_number_lbl
.
text
=
data
?
.
batch_sn
pi_ci_number_lbl
.
text
=
data
?
.
batch_sn
gys_name_lbl
.
text
=
data
?
.
ven_name
gys_name_lbl
.
text
=
data
?
.
ven_name
img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
((
data
?
.
report_picture
?
.
first
)
!
)
!
))
img
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
((
data
?
.
report_picture
?
.
first
)
!
)
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
}
}
}
...
...
GeliBusinessPlatform/ViewController/登录/LoginViewController.swift
View file @
d02a9258
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
//
//
import
UIKit
import
UIKit
import
Alamofire
import
CryptoSwift
import
CryptoSwift
import
LGButton
import
LGButton
...
...
GeliBusinessPlatform/ViewController/订单管理/普通商品修改价格/ChangeGoodsPriceVC.swift
View file @
d02a9258
...
@@ -171,7 +171,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
...
@@ -171,7 +171,7 @@ class ChangeGoodsPriceVC: BaseViewController , UITableViewDelegate, UITableView
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"ChangePriceNormalCell"
)
as!
ChangePriceNormalCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"ChangePriceNormalCell"
)
as!
ChangePriceNormalCell
let
rowModel
=
dataArr
!
[
indexPath
.
row
]
let
rowModel
=
dataArr
!
[
indexPath
.
row
]
cell
.
goodsImgVire
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
goods_thumb
!
))
cell
.
goodsImgVire
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
rowModel
.
goods_thumb
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
cell
.
goodsNameLbl
.
text
=
rowModel
.
goods_name
cell
.
goodsNameLbl
.
text
=
rowModel
.
goods_name
if
rowModel
.
goods_attr
!=
nil
{
if
rowModel
.
goods_attr
!=
nil
{
cell
.
attrrLbl
.
text
=
rowModel
.
goods_attr
cell
.
attrrLbl
.
text
=
rowModel
.
goods_attr
...
...
GeliBusinessPlatform/ViewController/订单管理/查看全部/ShowAlGoodsViewController.swift
View file @
d02a9258
...
@@ -57,7 +57,7 @@ class ShowAlGoodsViewController: BaseViewController , UITableViewDelegate, UITa
...
@@ -57,7 +57,7 @@ class ShowAlGoodsViewController: BaseViewController , UITableViewDelegate, UITa
cell
.
detailLbl
.
text
=
"规格:"
+
"-"
cell
.
detailLbl
.
text
=
"规格:"
+
"-"
}
}
cell
.
priceLbl
.
text
=
"¥"
+
(
rowModel
.
goods_price
!
)
cell
.
priceLbl
.
text
=
"¥"
+
(
rowModel
.
goods_price
!
)
cell
.
iconImg
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
rowModel
.
goods_thumb
)
!
))
cell
.
iconImg
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
rowModel
.
goods_thumb
)
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
cell
.
detailLbl2
.
text
=
"x"
+
StringByInt
(
number
:
rowModel
.
cart_number
!
)
cell
.
detailLbl2
.
text
=
"x"
+
StringByInt
(
number
:
rowModel
.
cart_number
!
)
return
cell
return
cell
...
...
GeliBusinessPlatform/ViewController/订单管理/预售价格修改/XiuGaiYuShouJiaViewController.swift
View file @
d02a9258
...
@@ -56,7 +56,7 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
...
@@ -56,7 +56,7 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
dingJinTF
.
text
=
dataModel
?
.
order_res
?
.
sale_res
?
.
dj_amount
dingJinTF
.
text
=
dataModel
?
.
order_res
?
.
sale_res
?
.
dj_amount
weiKuanTF
.
text
=
dataModel
?
.
order_res
?
.
sale_res
?
.
wk_amount
weiKuanTF
.
text
=
dataModel
?
.
order_res
?
.
sale_res
?
.
wk_amount
countLbl
.
text
=
"¥"
+
(
dataModel
?
.
order_res
?
.
goods_amount
)
!
countLbl
.
text
=
"¥"
+
(
dataModel
?
.
order_res
?
.
goods_amount
)
!
icomImg
.
sd_setImage
(
with
:
URL
(
string
:
imgUrlstr
))
icomImg
.
sd_setImage
(
with
:
URL
(
string
:
imgUrlstr
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
}
}
else
{
}
else
{
//MARK:--代客下单流程
//MARK:--代客下单流程
...
@@ -64,7 +64,7 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
...
@@ -64,7 +64,7 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
let
item
=
inputData
[
0
]
let
item
=
inputData
[
0
]
titleLbl
.
text
=
item
.
goods_name
titleLbl
.
text
=
item
.
goods_name
detailLbl
.
text
=
item
.
spec_str
detailLbl
.
text
=
item
.
spec_str
icomImg
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
item
.
goods_img
!
))
icomImg
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
item
.
goods_img
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
dingJinTF
.
text
=
djTFstr
dingJinTF
.
text
=
djTFstr
weiKuanTF
.
text
=
wkTFstr
weiKuanTF
.
text
=
wkTFstr
countLbl
.
text
=
"¥"
+
item
.
target_Price
!
+
"x
\(
item
.
target_Count
!
)
"
countLbl
.
text
=
"¥"
+
item
.
target_Price
!
+
"x
\(
item
.
target_Count
!
)
"
...
...
GeliBusinessPlatform/ViewController/订单详情/OrderDViewController.swift
View file @
d02a9258
...
@@ -76,7 +76,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -76,7 +76,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
browser
.
reloadCellAtIndex
=
{
context
in
browser
.
reloadCellAtIndex
=
{
context
in
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
browserCell
=
context
.
cell
as?
JXPhotoBrowserImageCell
let
url
=
URL
(
string
:
SERVERCE_ImageHost
+
(
data
.
report_picture
!
[
context
.
index
]))
let
url
=
URL
(
string
:
SERVERCE_ImageHost
+
(
data
.
report_picture
!
[
context
.
index
]))
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
[]
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
imageView
.
sd_setImage
(
with
:
url
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
,
completed
:
{
(
_
,
_
,
_
,
_
)
in
browserCell
?
.
setNeedsLayout
()
browserCell
?
.
setNeedsLayout
()
})
})
}
}
...
@@ -591,7 +591,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -591,7 +591,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
}
}
}
}
// cell.check_button.isHidden = false
// cell.check_button.isHidden = false
cell
.
imgView
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
rowModel
?
.
goods_thumb
)
!
))
cell
.
imgView
?
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
rowModel
?
.
goods_thumb
)
!
)
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
cell
.
content_tv
.
text
=
rowModel
?
.
remark
cell
.
content_tv
.
text
=
rowModel
?
.
remark
cell
.
titleLbl
.
text
=
rowModel
?
.
goods_name
cell
.
titleLbl
.
text
=
rowModel
?
.
goods_name
...
@@ -758,7 +758,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
...
@@ -758,7 +758,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
cell
.
upDataTLbl
.
isHidden
=
true
cell
.
upDataTLbl
.
isHidden
=
true
}
}
if
UpBillDataUploadImgiconUrl
.
count
>
0
{
if
UpBillDataUploadImgiconUrl
.
count
>
0
{
cell
.
updataBtn
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
UpBillDataUploadImgiconUrl
),
for
:
.
normal
,
completed
:
nil
)
cell
.
updataBtn
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
UpBillDataUploadImgiconUrl
),
for
:
.
normal
,
placeholderImage
:
nil
,
options
:
.
allowInvalidSSLCertificates
)
}
}
cell
.
selectSegmentV
.
selectedSegmentIndex
=
segmentIndex
cell
.
selectSegmentV
.
selectedSegmentIndex
=
segmentIndex
...
...
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