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
6ec6ee83
Commit
6ec6ee83
authored
Jan 30, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化界面
parent
cd36d28b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
43 deletions
+14
-43
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/商品库存/S_P_K_C_Detail_Vc.swift
...inessPlatform/ViewController/商品库存/S_P_K_C_Detail_Vc.swift
+5
-0
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+7
-22
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+2
-20
GeliBusinessPlatform/ViewController/溯源/Print_Gprinter_View.swift
...inessPlatform/ViewController/溯源/Print_Gprinter_View.swift
+0
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
6ec6ee83
No preview for this file type
GeliBusinessPlatform/ViewController/商品库存/S_P_K_C_Detail_Vc.swift
View file @
6ec6ee83
...
...
@@ -96,6 +96,11 @@ class S_P_K_C_Detail_Vc: BaseViewController,UICollectionViewDelegate,UICollectio
}
//MARK: - TABLEVIEWDELEGATE
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
indexPath
.
row
==
9
{
print
(
"查看图片"
)
}
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
10
}
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
6ec6ee83
...
...
@@ -1493,6 +1493,8 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
//刷新cell
collectionView
.
reloadData
()
listTbv
.
reloadRows
(
at
:
[
IndexPath
(
row
:
0
,
section
:
2
)],
with
:
.
none
)
let
item
=
collectionView
.
cellForItem
(
at
:
indexPath
)
collectionView
.
scrollRectToVisible
(
item
!.
frame
,
animated
:
true
)
}
//MARK: - switchClick
func
switchClick
(
content
:
UISwitch
,
cell
:
TitleAndSwitchCell
)
{
...
...
@@ -1607,7 +1609,11 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
}
collectionView
.
showsHorizontalScrollIndicator
=
false
collectionView
.
isPagingEnabled
=
true
layout
.
itemSize
=
CGSize
(
width
:
fullScreenWidth
*
0.5
,
height
:
41
)
if
guiGeArr
.
count
<
5
{
layout
.
itemSize
=
CGSize
(
width
:
Int
(
fullScreenWidth
)
/
guiGeArr
.
count
,
height
:
41
)
}
else
{
layout
.
itemSize
=
CGSize
(
width
:
fullScreenWidth
/
4.5
,
height
:
41
)
}
layout
.
scrollDirection
=
.
horizontal
collectionView
.
collectionViewLayout
=
layout
collectionView
.
register
(
UINib
(
nibName
:
"ItemCell"
,
bundle
:
nil
),
forCellWithReuseIdentifier
:
"ItemCell"
)
...
...
@@ -1615,27 +1621,6 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
collectionView
.
layoutIfNeeded
()
collectionView
.
scrollToItem
(
at
:
selectIdx
!
,
at
:
.
top
,
animated
:
false
)
}
if
guiGeArr
.
count
>
2
{
let
leftImg
=
UIImageView
()
view
.
addSubview
(
leftImg
)
leftImg
.
image
=
UIImage
(
named
:
"wangyue"
)
leftImg
.
snp
.
makeConstraints
{
(
make
)
in
make
.
centerY
.
equalTo
(
collectionView
.
snp_centerY
)
make
.
left
.
equalTo
(
10
)
make
.
width
.
equalTo
(
5
)
make
.
height
.
equalTo
(
15
)
}
let
rightImg
=
UIImageView
()
view
.
addSubview
(
rightImg
)
rightImg
.
image
=
UIImage
(
named
:
"xiageyue"
)
rightImg
.
snp
.
makeConstraints
{
(
make
)
in
make
.
centerY
.
equalTo
(
collectionView
.
snp_centerY
)
make
.
right
.
equalTo
(
-
10
)
make
.
width
.
equalTo
(
5
)
make
.
height
.
equalTo
(
15
)
}
}
}
}
return
view
...
...
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
6ec6ee83
...
...
@@ -1027,6 +1027,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
//刷新cell
collectionView
.
reloadData
()
listTbv
.
reloadRows
(
at
:
[
IndexPath
(
row
:
0
,
section
:
2
)],
with
:
.
none
)
let
item
=
collectionView
.
cellForItem
(
at
:
indexPath
)
collectionView
.
scrollRectToVisible
(
item
!.
frame
,
animated
:
true
)
}
//MARK: - switchClick
func
switchClick
(
content
:
UISwitch
,
cell
:
TitleAndSwitchCell
)
{
...
...
@@ -1161,27 +1163,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
collectionView
.
layoutIfNeeded
()
collectionView
.
scrollToItem
(
at
:
selectIdx
!
,
at
:
.
top
,
animated
:
false
)
}
if
guiGeArr
.
count
>
2
{
let
leftImg
=
UIImageView
()
view
.
addSubview
(
leftImg
)
leftImg
.
image
=
UIImage
(
named
:
"wangyue"
)
leftImg
.
snp
.
makeConstraints
{
(
make
)
in
make
.
centerY
.
equalTo
(
collectionView
.
snp_centerY
)
make
.
left
.
equalTo
(
10
)
make
.
width
.
equalTo
(
5
)
make
.
height
.
equalTo
(
15
)
}
let
rightImg
=
UIImageView
()
view
.
addSubview
(
rightImg
)
rightImg
.
image
=
UIImage
(
named
:
"xiageyue"
)
rightImg
.
snp
.
makeConstraints
{
(
make
)
in
make
.
centerY
.
equalTo
(
collectionView
.
snp_centerY
)
make
.
right
.
equalTo
(
-
10
)
make
.
width
.
equalTo
(
5
)
make
.
height
.
equalTo
(
15
)
}
}
}
}
return
view
...
...
GeliBusinessPlatform/ViewController/溯源/Print_Gprinter_View.swift
View file @
6ec6ee83
...
...
@@ -107,7 +107,6 @@ class Print_Gprinter_View: UIView,UITableViewDelegate,UITableViewDataSource, GPr
}
//连接打印机
delegate
?
.
Print_Gprinter_View_Print
(
data
:
print_data
)
}
@IBAction
func
close_action
(
_
sender
:
UIButton
)
{
self
.
removeFromSuperview
()
...
...
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