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
2df952b6
Commit
2df952b6
authored
Aug 07, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复titleandLblCell连线bug
parent
517a57b3
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
209 additions
and
36 deletions
+209
-36
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Assets.xcassets/货拉拉/redLoc.imageset/Contents.json
...latform/Assets.xcassets/货拉拉/redLoc.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/货拉拉/redLoc.imageset/redLoc.png
...ssPlatform/Assets.xcassets/货拉拉/redLoc.imageset/redLoc.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/货拉拉/redLoc.imageset/redLoc@2x.png
...latform/Assets.xcassets/货拉拉/redLoc.imageset/redLoc@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/货拉拉/redLoc.imageset/redLoc@3x.png
...latform/Assets.xcassets/货拉拉/redLoc.imageset/redLoc@3x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/货拉拉/矩形.imageset/Contents.json
...essPlatform/Assets.xcassets/货拉拉/矩形.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/货拉拉/矩形.imageset/矩形.png
GeliBusinessPlatform/Assets.xcassets/货拉拉/矩形.imageset/矩形.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/货拉拉/矩形.imageset/矩形@2x.png
...usinessPlatform/Assets.xcassets/货拉拉/矩形.imageset/矩形@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/货拉拉/矩形.imageset/矩形@3x.png
...usinessPlatform/Assets.xcassets/货拉拉/矩形.imageset/矩形@3x.png
+0
-0
GeliBusinessPlatform/Interface/Interface_Z.plist
GeliBusinessPlatform/Interface/Interface_Z.plist
+1
-1
GeliBusinessPlatform/Model/LalamoveInterface/LalamoveModel.swift
...inessPlatform/Model/LalamoveInterface/LalamoveModel.swift
+26
-0
GeliBusinessPlatform/View/Cell/TitleAndLblCell.xib
GeliBusinessPlatform/View/Cell/TitleAndLblCell.xib
+14
-8
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
...BusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
+14
-13
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.xib
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.xib
+2
-2
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
...atform/ViewController/新增采购单/XinCaiGouViewController.swift
+4
-3
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.xib
...Platform/ViewController/新增采购单/XinCaiGouViewController.xib
+2
-2
GeliBusinessPlatform/ViewController/订单详情/TitleAndLblView.xib
GeliBusinessPlatform/ViewController/订单详情/TitleAndLblView.xib
+5
-4
GeliBusinessPlatform/ViewController/货拉拉/收发货地址/ToAndFormSelectViewController.swift
...wController/货拉拉/收发货地址/ToAndFormSelectViewController.swift
+95
-3
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
2df952b6
No preview for this file type
GeliBusinessPlatform/Assets.xcassets/货拉拉/redLoc.imageset/Contents.json
0 → 100644
View file @
2df952b6
{
"images"
:
[
{
"filename"
:
"redLoc.png"
,
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"redLoc@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"redLoc@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
GeliBusinessPlatform/Assets.xcassets/货拉拉/redLoc.imageset/redLoc.png
0 → 100644
View file @
2df952b6
696 Bytes
GeliBusinessPlatform/Assets.xcassets/货拉拉/redLoc.imageset/redLoc@2x.png
0 → 100644
View file @
2df952b6
1.4 KB
GeliBusinessPlatform/Assets.xcassets/货拉拉/redLoc.imageset/redLoc@3x.png
0 → 100644
View file @
2df952b6
2.61 KB
GeliBusinessPlatform/Assets.xcassets/货拉拉/矩形.imageset/Contents.json
0 → 100644
View file @
2df952b6
{
"images"
:
[
{
"filename"
:
"矩形.png"
,
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"矩形@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"矩形@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
GeliBusinessPlatform/Assets.xcassets/货拉拉/矩形.imageset/矩形.png
0 → 100644
View file @
2df952b6
219 Bytes
GeliBusinessPlatform/Assets.xcassets/货拉拉/矩形.imageset/矩形@2x.png
0 → 100644
View file @
2df952b6
369 Bytes
GeliBusinessPlatform/Assets.xcassets/货拉拉/矩形.imageset/矩形@3x.png
0 → 100644
View file @
2df952b6
601 Bytes
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
2df952b6
...
@@ -240,7 +240,7 @@
...
@@ -240,7 +240,7 @@
<string>
Lalamove/citySearch
</string>
<string>
Lalamove/citySearch
</string>
<key>
货拉拉下单
</key>
<key>
货拉拉下单
</key>
<string>
Lalamove/submitOrder
</string>
<string>
Lalamove/submitOrder
</string>
<key>
选定地址收发货历史
</key>
<key>
选定地址
添加
收发货历史
</key>
<string>
Lalamove/setSearchLog
</string>
<string>
Lalamove/setSearchLog
</string>
<key>
查看收发货历史
</key>
<key>
查看收发货历史
</key>
<string>
Lalamove/getSearchLogList
</string>
<string>
Lalamove/getSearchLogList
</string>
...
...
GeliBusinessPlatform/Model/LalamoveInterface/LalamoveModel.swift
View file @
2df952b6
...
@@ -766,6 +766,32 @@ class orderDetailItemAddrInfoArrDataModel: Mappable { //订单地址信息
...
@@ -766,6 +766,32 @@ class orderDetailItemAddrInfoArrDataModel: Mappable { //订单地址信息
}
}
}
}
class
poiDataModel
:
Mappable
{
var
district
:
String
?
var
location
:
citySearchDataPoiLocationModel
?
var
city_id
:
Int
?
var
city
:
String
?
var
address
:
String
?
var
wgs84_location
:
citySearchDataPoiLocationModel
?
var
name
:
String
?
required
init
?(
map
:
Map
)
{
}
// Mappable
func
mapping
(
map
:
Map
)
{
name
<-
map
[
"name"
]
district
<-
map
[
"district"
]
wgs84_location
<-
map
[
"wgs84_location"
]
address
<-
map
[
"address"
]
city
<-
map
[
"city"
]
district
<-
map
[
"district"
]
location
<-
map
[
"location"
]
}
}
class
orderDetailItemOrderPriceArrDataModel
:
Mappable
{
//订单计价明细数组
class
orderDetailItemOrderPriceArrDataModel
:
Mappable
{
//订单计价明细数组
var
type
:
Int
?
//
var
type
:
Int
?
//
...
...
GeliBusinessPlatform/View/Cell/TitleAndLblCell.xib
View file @
2df952b6
...
@@ -26,14 +26,14 @@
...
@@ -26,14 +26,14 @@
</constraints>
</constraints>
</view>
</view>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"delS"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"pmc-vU-Uf4"
>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"delS"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"pmc-vU-Uf4"
>
<rect
key=
"frame"
x=
"318"
y=
"7
1
"
width=
"0.0"
height=
"15"
/>
<rect
key=
"frame"
x=
"318"
y=
"7
0.5
"
width=
"0.0"
height=
"15"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"width"
id=
"HMa-Pi-Faw"
/>
<constraint
firstAttribute=
"width"
id=
"HMa-Pi-Faw"
/>
<constraint
firstAttribute=
"height"
constant=
"15"
id=
"veV-Pg-H0Y"
/>
<constraint
firstAttribute=
"height"
constant=
"15"
id=
"veV-Pg-H0Y"
/>
</constraints>
</constraints>
</imageView>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"zee-Po-sID"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
usesAttributedText=
"YES"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"zee-Po-sID"
>
<rect
key=
"frame"
x=
"
57"
y=
"61.5"
width=
"246"
height=
"34.5
"
/>
<rect
key=
"frame"
x=
"
90"
y=
"15"
width=
"213"
height=
"126
"
/>
<attributedString
key=
"attributedText"
>
<attributedString
key=
"attributedText"
>
<fragment
content=
"View.tishiLbl.text = ""View.tishiLbl.text = ""View.tishiLbl.text = """
>
<fragment
content=
"View.tishiLbl.text = ""View.tishiLbl.text = ""View.tishiLbl.text = """
>
<attributes>
<attributes>
...
@@ -46,23 +46,28 @@
...
@@ -46,23 +46,28 @@
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"252"
verticalHuggingPriority=
"251"
text=
"标题"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"yit-1Y-dYH"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"252"
verticalHuggingPriority=
"251"
text=
"标题"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"yit-1Y-dYH"
>
<rect
key=
"frame"
x=
"15"
y=
"70.5"
width=
"27"
height=
"16"
/>
<rect
key=
"frame"
x=
"15"
y=
"15"
width=
"60"
height=
"16"
/>
<constraints>
<constraint
firstAttribute=
"width"
relation=
"greaterThanOrEqual"
constant=
"60"
id=
"0Aj-nY-BpH"
/>
</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>
</subviews>
</subviews>
<constraints>
<constraints>
<constraint
firstItem=
"pmc-vU-Uf4"
firstAttribute=
"centerY"
secondItem=
"zee-Po-sID"
secondAttribute=
"centerY"
id=
"0lk-di-OEG"
/>
<constraint
firstItem=
"zee-Po-sID"
firstAttribute=
"leading"
secondItem=
"yit-1Y-dYH"
secondAttribute=
"trailing"
constant=
"15"
id=
"7BH-7f-jsc"
/>
<constraint
firstItem=
"yit-1Y-dYH"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"GFJ-Cd-oJ8"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"FhC-zl-Pqx"
secondAttribute=
"trailing"
id=
"If6-Gs-gZd"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"FhC-zl-Pqx"
secondAttribute=
"trailing"
id=
"If6-Gs-gZd"
/>
<constraint
firstItem=
"pmc-vU-Uf4"
firstAttribute=
"leading"
secondItem=
"zee-Po-sID"
secondAttribute=
"trailing"
constant=
"15"
id=
"JnM-Iz-OpH"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"FhC-zl-Pqx"
secondAttribute=
"bottom"
id=
"LYe-vI-oas"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"FhC-zl-Pqx"
secondAttribute=
"bottom"
id=
"LYe-vI-oas"
/>
<constraint
firstItem=
"yit-1Y-dYH"
firstAttribute=
"
centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"OJc-GC-Jrq
"
/>
<constraint
firstItem=
"yit-1Y-dYH"
firstAttribute=
"
leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"PWu-Se-f3g
"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"pmc-vU-Uf4"
secondAttribute=
"trailing"
constant=
"15"
id=
"Qok-R2-hO0"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"pmc-vU-Uf4"
secondAttribute=
"trailing"
constant=
"15"
id=
"Qok-R2-hO0"
/>
<constraint
firstItem=
"
pmc-vU-Uf4"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"VxE-7o-zqj
"
/>
<constraint
firstItem=
"
zee-Po-sID"
firstAttribute=
"top"
secondItem=
"yit-1Y-dYH"
secondAttribute=
"top"
id=
"XtI-x2-NDG
"
/>
<constraint
firstItem=
"yit-1Y-dYH"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"YOe-m8-0fd"
/>
<constraint
firstItem=
"yit-1Y-dYH"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"YOe-m8-0fd"
/>
<constraint
firstItem=
"
zee-Po-sID"
firstAttribute=
"centerY"
secondItem=
"yit-1Y-dYH"
secondAttribute=
"centerY"
id=
"f9d-5w-jXw
"
/>
<constraint
firstItem=
"
pmc-vU-Uf4"
firstAttribute=
"leading"
secondItem=
"zee-Po-sID"
secondAttribute=
"trailing"
constant=
"15"
id=
"ioZ-OU-UDz
"
/>
<constraint
firstItem=
"FhC-zl-Pqx"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"jug-3M-ccD"
/>
<constraint
firstItem=
"FhC-zl-Pqx"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"jug-3M-ccD"
/>
<constraint
firstItem=
"
zee-Po-sID"
firstAttribute=
"leading"
relation=
"greaterThanOrEqual"
secondItem=
"yit-1Y-dYH"
secondAttribute=
"trailing"
constant=
"15"
id=
"pbP-fH-zAa
"
/>
<constraint
firstItem=
"
FhC-zl-Pqx"
firstAttribute=
"top"
secondItem=
"zee-Po-sID"
secondAttribute=
"bottom"
constant=
"15"
id=
"lG2-t0-yF3
"
/>
</constraints>
</constraints>
</tableViewCellContentView>
</tableViewCellContentView>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"njF-e1-oar"
/>
...
@@ -70,6 +75,7 @@
...
@@ -70,6 +75,7 @@
<outlet
property=
"btmLine"
destination=
"FhC-zl-Pqx"
id=
"q0E-2a-h3I"
/>
<outlet
property=
"btmLine"
destination=
"FhC-zl-Pqx"
id=
"q0E-2a-h3I"
/>
<outlet
property=
"btmW"
destination=
"HMa-Pi-Faw"
id=
"htd-Lp-MF8"
/>
<outlet
property=
"btmW"
destination=
"HMa-Pi-Faw"
id=
"htd-Lp-MF8"
/>
<outlet
property=
"contentLbl"
destination=
"zee-Po-sID"
id=
"GmM-kp-g5c"
/>
<outlet
property=
"contentLbl"
destination=
"zee-Po-sID"
id=
"GmM-kp-g5c"
/>
<outlet
property=
"contentRight"
destination=
"ioZ-OU-UDz"
id=
"Hsc-5Q-4ue"
/>
<outlet
property=
"imgRight"
destination=
"Qok-R2-hO0"
id=
"aeV-7Q-HFP"
/>
<outlet
property=
"imgRight"
destination=
"Qok-R2-hO0"
id=
"aeV-7Q-HFP"
/>
<outlet
property=
"nameLbl"
destination=
"yit-1Y-dYH"
id=
"S4K-8f-ncw"
/>
<outlet
property=
"nameLbl"
destination=
"yit-1Y-dYH"
id=
"S4K-8f-ncw"
/>
</connections>
</connections>
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.swift
View file @
2df952b6
...
@@ -593,16 +593,16 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
...
@@ -593,16 +593,16 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
vc
.
rkSelectArr
=
rkSelectArr
vc
.
rkSelectArr
=
rkSelectArr
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
func
getStrHeight
(
str
:
String
)
->
CGFloat
{
//
func getStrHeight(str:String) -> CGFloat{
let
lbl
=
UILabel
()
//
let lbl = UILabel()
lbl
.
text
=
titleArr
.
last
//
lbl.text = titleArr.last
lbl
.
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
//
lbl.font = UIFont.systemFont(ofSize: 13)
lbl
.
sizeToFit
()
//
lbl.sizeToFit()
let
margin
=
lbl
.
bounds
.
size
.
width
+
77
//
let margin = lbl.bounds.size.width + 77
let
viewSize
=
CGSize
(
width
:
fullScreenWidth
-
margin
,
height
:
CGFloat
(
MAXFLOAT
))
//
let viewSize = CGSize(width:fullScreenWidth - margin , height: CGFloat(MAXFLOAT))
let
font
=
UIFont
.
systemFont
(
ofSize
:
13
)
//
let font = UIFont.systemFont(ofSize: 13)
return
(
str
as
NSString
)
.
boundingRect
(
with
:
viewSize
,
options
:
[
.
usesLineFragmentOrigin
],
attributes
:
[
NSAttributedString
.
Key
.
font
:
font
],
context
:
nil
)
.
height
//
return (str as NSString).boundingRect(with: viewSize, options: [.usesLineFragmentOrigin], attributes: [NSAttributedString.Key.font:font], context: nil).height
}
//
}
//MARK: - cell delegate
//MARK: - cell delegate
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
==
0
{
if
indexPath
.
section
==
0
{
...
@@ -612,9 +612,10 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
...
@@ -612,9 +612,10 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
}
}
}
}
if
indexPath
.
row
==
4
{
if
indexPath
.
row
==
4
{
if
getStrHeight
(
str
:
remark
)
+
30
>
49
{
return
UITableView
.
automaticDimension
return
getStrHeight
(
str
:
remark
)
+
30
// if getStrHeight(str: remark)+30 > 49 {
}
// return getStrHeight(str: remark)+30
// }
}
}
return
49
return
49
}
}
...
...
GeliBusinessPlatform/ViewController/1.1入库&出库/入库/NewRKVc.xib
View file @
2df952b6
<?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=
"16097"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097
.2
"
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"
/>
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<constraint
firstItem=
"oHy-P4-Poe"
firstAttribute=
"top"
secondItem=
"DkD-m0-Phd"
secondAttribute=
"bottom"
id=
"z06-Y0-qev"
/>
<constraint
firstItem=
"oHy-P4-Poe"
firstAttribute=
"top"
secondItem=
"DkD-m0-Phd"
secondAttribute=
"bottom"
id=
"z06-Y0-qev"
/>
</constraints>
</constraints>
</view>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"
18"
sectionFooterHeight=
"18
"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XJ1-MD-tGD"
>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"
-1"
estimatedSectionHeaderHeight=
"-1"
sectionFooterHeight=
"-1"
estimatedSectionFooterHeight=
"-1
"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XJ1-MD-tGD"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<connections>
...
...
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
View file @
2df952b6
...
@@ -494,9 +494,10 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -494,9 +494,10 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
}
}
}
}
if
indexPath
.
row
==
5
{
if
indexPath
.
row
==
5
{
if
getStrHeight
(
str
:
contentStr
)
+
30
>
49
{
return
UITableView
.
automaticDimension
return
getStrHeight
(
str
:
contentStr
)
+
30
// if getStrHeight(str: contentStr)+30 > 49 {
}
// return getStrHeight(str: contentStr)+30
// }
}
}
}
}
return
49
return
49
...
...
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.xib
View file @
2df952b6
<?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=
"16097"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097
.2
"
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"
/>
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"fK5-AP-LGO"
/>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"fK5-AP-LGO"
/>
</constraints>
</constraints>
</view>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"
18"
sectionFooterHeight=
"18
"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Cs6-iU-pYN"
>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"
-1"
estimatedSectionHeaderHeight=
"-1"
sectionFooterHeight=
"-1"
estimatedSectionFooterHeight=
"-1
"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Cs6-iU-pYN"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"768"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"768"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<connections>
<connections>
...
...
GeliBusinessPlatform/ViewController/订单详情/TitleAndLblView.xib
View file @
2df952b6
<?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
570
2"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"1
6097.
2"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"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=
"15704"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"16087"
/>
<capability
name=
"Named colors"
minToolsVersion=
"9.0"
/>
<capability
name=
"Named colors"
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"
/>
</dependencies>
</dependencies>
<objects>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"TitleAndLblView"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"TitleAndLblView"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<connections>
<outlet
property=
"contentLbl"
destination=
"3w0-Kw-4SZ"
id=
"By3-e9-dBy"
/>
<outlet
property=
"contentLbl"
destination=
"3w0-Kw-4SZ"
id=
"By3-e9-dBy"
/>
<outlet
property=
"nameLbl"
destination=
"1sO-Ny-zDO"
id=
"yti-qp-uz3"
/>
<outlet
property=
"nameLbl"
destination=
"1sO-Ny-zDO"
id=
"yti-qp-uz3"
/>
...
@@ -64,7 +65,7 @@
...
@@ -64,7 +65,7 @@
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
<namedColor
name=
"蓝色字体颜色"
>
<namedColor
name=
"蓝色字体颜色"
>
<color
red=
"0.27
799999713897705"
green=
"0.56099998950958252"
blue=
"0.889999985694885
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
red=
"0.27
843137254901962"
green=
"0.5607843137254902"
blue=
"0.89019607843137
25"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</namedColor>
</resources>
</resources>
</document>
</document>
GeliBusinessPlatform/ViewController/货拉拉/收发货地址/ToAndFormSelectViewController.swift
View file @
2df952b6
...
@@ -14,6 +14,7 @@ import MAMapKit
...
@@ -14,6 +14,7 @@ import MAMapKit
import
AMapSearchKit
import
AMapSearchKit
import
IQKeyboardManagerSwift
import
IQKeyboardManagerSwift
protocol
ToAndFormSelectViewControllerDelegate
{
protocol
ToAndFormSelectViewControllerDelegate
{
func
ToAndFormSelectViewControllerSelectAdr
(
dict
:
Dictionary
<
String
,
Any
>
,
idx
:
Int
)
func
ToAndFormSelectViewControllerSelectAdr
(
dict
:
Dictionary
<
String
,
Any
>
,
idx
:
Int
)
}
}
...
@@ -55,7 +56,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -55,7 +56,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
if
tableView
==
searchList
{
if
tableView
==
searchList
{
return
searchAdrDatas
.
count
return
searchAdrDatas
.
count
}
}
return
5
return
historyArr
.
count
}
}
var
delegate
:
ToAndFormSelectViewControllerDelegate
?
var
delegate
:
ToAndFormSelectViewControllerDelegate
?
var
dict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
var
dict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
...
@@ -104,6 +105,17 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -104,6 +105,17 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
cell
.
marginValue
.
constant
=
0
cell
.
marginValue
.
constant
=
0
cell
.
btnViewH
.
constant
=
0
cell
.
btnViewH
.
constant
=
0
cell
.
btmH
.
constant
=
12
cell
.
btmH
.
constant
=
12
let
data
=
historyArr
[
indexPath
.
row
]
let
dict
=
getDicFromJSONString
(
jsonString
:
data
.
poi
!
)
let
poiData
=
poiDataModel
(
JSON
:
dict
)
cell
.
nameLbl
.
text
=
poiData
?
.
name
cell
.
contentLbl
.
text
=
(
poiData
?
.
city
)
!
as
String
+
(
poiData
?
.
district
)
!
as
String
+
(
poiData
?
.
address
)
!
as
String
if
data
.
contact_name
!.
count
>
0
||
data
.
contact_phone_no
!.
count
>
0
||
data
.
house_number
!.
count
>
0
{
let
str
=
cell
.
contentLbl
.
text
!
+
"
\n
"
+
data
.
contact_name
!
+
data
.
contact_phone_no
!
+
data
.
house_number
!
cell
.
contentLbl
.
text
=
str
}
}
}
return
cell
return
cell
...
@@ -273,9 +285,14 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -273,9 +285,14 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
}
}
var
adrData
:
cityListDataModel
?
var
adrData
:
cityListDataModel
?
var
cityName
:
NSString
=
""
var
cityName
:
NSString
=
""
var
city
=
""
var
ad
=
""
var
districet
=
""
@IBAction
func
sureSelectAddressAction
(
_
sender
:
LGButton
)
{
@IBAction
func
sureSelectAddressAction
(
_
sender
:
LGButton
)
{
print
(
"sureSelectAddressAction"
)
print
(
"sureSelectAddressAction"
)
if
adrDatas
!.
count
>
0
{
if
adrDatas
!.
count
>
0
{
for
item
in
adrDatas
!
{
for
item
in
adrDatas
!
{
if
cityName
.
contains
(
item
.
name
!
)
{
if
cityName
.
contains
(
item
.
name
!
)
{
...
@@ -289,10 +306,48 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -289,10 +306,48 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
dict
[
"adr"
]
=
adrData
dict
[
"adr"
]
=
adrData
if
locName
.
count
>
0
{
if
locName
.
count
>
0
{
dict
[
"locName"
]
=
titleLbl
!.
text
dict
[
"locName"
]
=
titleLbl
!.
text
delegate
?
.
ToAndFormSelectViewControllerSelectAdr
(
dict
:
dict
,
idx
:
idx
!
)
var
sr_type
=
1
if
idx
!=
0
{
sr_type
=
2
}
let
ll
=
[
"lat"
:
adrData
?
.
lat_lon
!.
lat
as
Any
,
"lon"
:
adrData
?
.
lat_lon
?
.
lon
as
Any
]
let
lldata
=
dictChangeString
(
sender
:
ll
)
if
adrName
.
count
>
0
{
moveAdrName
=
adrName
}
let
poiData
=
[
"city"
:
city
as
Any
,
"address"
:
ad
as
Any
,
"district"
:
districet
as
Any
,
"city_id"
:
adrData
?
.
city_id
as
Any
,
"location"
:
lldata
as
Any
,
"wgs84_location"
:
lldata
as
Any
,
"name"
:
moveAdrName
as
Any
]
let
poiStr
=
dictChangeString
(
sender
:
poiData
)
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"poi"
:
poiStr
as
Any
,
"house_number"
:
addressDetailTF
.
text
as
Any
,
"contact_name"
:
nameTF
.
text
as
Any
,
"contact_phone_no"
:
phoneTF
.
text
as
Any
,
"sr_type"
:
sr_type
as
Any
]
print
(
"dic == "
,
dict
)
setSearchLog
(
dic
,
success
:
{
(
data
)
in
self
.
delegate
?
.
ToAndFormSelectViewControllerSelectAdr
(
dict
:
self
.
dict
,
idx
:
self
.
idx
!
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
})
{
(
err
)
in
}
}
}
}
}
}
}
//MARK: - 高德地图delegate
//MARK: - 高德地图delegate
var
introView
:
UIView
?
var
introView
:
UIView
?
...
@@ -303,6 +358,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -303,6 +358,7 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
var
locName
=
""
var
locName
=
""
var
adrName
:
String
=
""
var
adrName
:
String
=
""
var
detailAdr
:
String
=
""
var
detailAdr
:
String
=
""
var
moveAdrName
=
""
var
isMove
=
false
var
isMove
=
false
func
onPOISearchDone
(
_
request
:
AMapPOISearchBaseRequest
!
,
response
:
AMapPOISearchResponse
!
)
{
func
onPOISearchDone
(
_
request
:
AMapPOISearchBaseRequest
!
,
response
:
AMapPOISearchResponse
!
)
{
...
@@ -349,12 +405,19 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -349,12 +405,19 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
var
str
=
"
\(
String
(
describing
:
response
.
pois
.
first
!.
province
!
)
)\(
String
(
describing
:
response
.
pois
.
first
!.
city
!
)
)\(
String
(
describing
:
response
.
pois
.
first
!.
district
!
)
)\(
String
(
describing
:
response
.
pois
.
first
!.
address
!
)
)
"
var
str
=
"
\(
String
(
describing
:
response
.
pois
.
first
!.
province
!
)
)\(
String
(
describing
:
response
.
pois
.
first
!.
city
!
)
)\(
String
(
describing
:
response
.
pois
.
first
!.
district
!
)
)\(
String
(
describing
:
response
.
pois
.
first
!.
address
!
)
)
"
city
=
response
.
pois
.
first
!.
city
ad
=
response
.
pois
.
first
?
.
address
as!
String
districet
=
response
.
pois
.
first
?
.
district
as!
String
moveAdrName
=
response
.
pois
.
first
?
.
name
as!
String
if
adrName
.
count
>
0
{
if
adrName
.
count
>
0
{
isMove
=
true
isMove
=
true
titleLbl
!.
text
=
adrName
titleLbl
!.
text
=
adrName
str
=
detailAdr
str
=
detailAdr
}
}
let
attributes
=
[
NSAttributedString
.
Key
.
font
:
UIFont
.
systemFont
(
ofSize
:
11
),
let
attributes
=
[
NSAttributedString
.
Key
.
font
:
UIFont
.
systemFont
(
ofSize
:
11
),
NSAttributedString
.
Key
.
paragraphStyle
:
paraph
]
NSAttributedString
.
Key
.
paragraphStyle
:
paraph
]
contentLbl
!.
attributedText
=
NSAttributedString
(
string
:
str
,
attributes
:
attributes
)
contentLbl
!.
attributedText
=
NSAttributedString
(
string
:
str
,
attributes
:
attributes
)
...
@@ -404,6 +467,15 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -404,6 +467,15 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
make
.
height
.
equalTo
(
h
+
20
)
make
.
height
.
equalTo
(
h
+
20
)
})
})
let
img
=
UIImageView
()
img
.
image
=
UIImage
(
named
:
"矩形"
)
MapBgView
.
addSubview
(
img
)
img
.
snp
.
makeConstraints
{
(
make
)
in
make
.
centerX
.
equalTo
(
introView
!.
snp
.
centerX
)
make
.
top
.
equalTo
(
introView
!.
snp
.
bottom
)
make
.
height
.
equalTo
(
7.25
)
make
.
width
.
equalTo
(
13.68
)
}
}
}
func
getStrHeight
(
str
:
String
,
fontSize
:
CGFloat
)
->
CGFloat
{
func
getStrHeight
(
str
:
String
,
fontSize
:
CGFloat
)
->
CGFloat
{
...
@@ -466,7 +538,11 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -466,7 +538,11 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
annotationView
=
MAAnnotationView
(
annotation
:
annotation
,
reuseIdentifier
:
pointReuseIndetifier
)
annotationView
=
MAAnnotationView
(
annotation
:
annotation
,
reuseIdentifier
:
pointReuseIndetifier
)
}
}
if
idx
!=
0
{
annotationView
!.
image
=
UIImage
(
named
:
"redLoc"
)
}
else
{
annotationView
!.
image
=
UIImage
(
named
:
"dingzhen"
)
annotationView
!.
image
=
UIImage
(
named
:
"dingzhen"
)
}
//设置中心点偏移,使得标注底部中间点成为经纬度对应点
//设置中心点偏移,使得标注底部中间点成为经纬度对应点
annotationView
!.
centerOffset
=
CGPoint
(
x
:
0
,
y
:
-
15
);
annotationView
!.
centerOffset
=
CGPoint
(
x
:
0
,
y
:
-
15
);
...
@@ -531,11 +607,27 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
...
@@ -531,11 +607,27 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
}
}
}
}
var
historyArr
:
Array
<
getSearchLogListDataModel
>
=
[]
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
print
(
"调起搜索后添加个蒙版本"
)
print
(
"调起搜索后添加个蒙版本"
)
closeBtn
.
isHidden
=
false
closeBtn
.
isHidden
=
false
listViewBG
.
isHidden
=
false
listViewBG
.
isHidden
=
false
var
type
=
1
if
idx
!=
0
{
type
=
2
}
historyArr
.
removeAll
()
getSearchLogList
([
"user_token"
:
UserToken
as
Any
,
"sr_type"
:
type
as
Any
],
success
:
{
(
data
)
in
let
model
=
data
as!
getSearchLogListModel
for
item
in
model
.
data
!
{
self
.
historyArr
.
append
(
item
)
}
self
.
selectListV
.
reloadData
()
})
{
(
err
)
in
}
return
true
return
true
}
}
...
...
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