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
45c8e370
Commit
45c8e370
authored
May 27, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复显示规格bug
parent
d0231557
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/MsgCenterCell.swift
GeliBusinessPlatform/View/Cell/MsgCenterCell.swift
+1
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+1
-1
GeliBusinessPlatform/ViewController/消息中心/MsgCenterViewController.swift
...latform/ViewController/消息中心/MsgCenterViewController.swift
+13
-10
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
45c8e370
No preview for this file type
GeliBusinessPlatform/View/Cell/MsgCenterCell.swift
View file @
45c8e370
...
@@ -13,6 +13,7 @@ class MsgCenterCell: UITableViewCell {
...
@@ -13,6 +13,7 @@ class MsgCenterCell: UITableViewCell {
@IBOutlet
weak
var
dateLbl
:
UILabel
!
@IBOutlet
weak
var
dateLbl
:
UILabel
!
@IBOutlet
weak
var
contentLbl
:
UILabel
!
@IBOutlet
weak
var
contentLbl
:
UILabel
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
@IBOutlet
weak
var
titleLbl
:
UILabel
!
var
isShow
:
Bool
=
false
override
func
awakeFromNib
()
{
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
super
.
awakeFromNib
()
// Initialization code
// Initialization code
...
...
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
45c8e370
...
@@ -391,7 +391,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
...
@@ -391,7 +391,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
cell
.
tempLbl
.
text
=
"冷藏:
\(
dict
.
wenDu
)
℃"
cell
.
tempLbl
.
text
=
"冷藏:
\(
dict
.
wenDu
)
℃"
cell
.
weightLbl
.
text
=
"重量(kg):
\(
dict
.
weight
)
kg"
cell
.
weightLbl
.
text
=
"重量(kg):
\(
dict
.
weight
)
kg"
cell
.
guiGeLbl
.
text
=
"规格:
\(
dict
.
guiGe
)
kg/件
"
cell
.
guiGeLbl
.
text
=
"规格:
\(
dict
.
guiGe
)
"
cell
.
danWeiLbl
.
text
=
"单位:
\(
dict
.
danWei
)
"
cell
.
danWeiLbl
.
text
=
"单位:
\(
dict
.
danWei
)
"
cell
.
sellPriceLbl
.
text
=
"售价:¥
\(
dict
.
price
)
"
cell
.
sellPriceLbl
.
text
=
"售价:¥
\(
dict
.
price
)
"
...
...
GeliBusinessPlatform/ViewController/消息中心/MsgCenterViewController.swift
View file @
45c8e370
...
@@ -12,7 +12,7 @@ import ViewAnimator
...
@@ -12,7 +12,7 @@ import ViewAnimator
class
MsgCenterViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
class
MsgCenterViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
{
//MARK: -animateView
//MARK: -animateView
private
let
animations
=
AnimationType
.
from
(
direction
:
.
bottom
,
offset
:
150
)
private
let
animations
=
AnimationType
.
from
(
direction
:
.
bottom
,
offset
:
150
)
var
msgTbv
:
UITableView
?
var
msgTbv
:
UITableView
?
...
@@ -35,10 +35,10 @@ class MsgCenterViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -35,10 +35,10 @@ class MsgCenterViewController: BaseViewController,UITableViewDelegate,UITableVie
})
})
msgTbv
?
.
register
(
UINib
(
nibName
:
"MsgCenterCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"MsgCenterCell"
)
msgTbv
?
.
register
(
UINib
(
nibName
:
"MsgCenterCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"MsgCenterCell"
)
}
}
//MARK: -Cell delegate方法
//MARK: -Cell delegate方法
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
120
return
120
...
@@ -49,13 +49,16 @@ class MsgCenterViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -49,13 +49,16 @@ class MsgCenterViewController: BaseViewController,UITableViewDelegate,UITableVie
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"MsgCenterCell"
)
as!
MsgCenterCell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"MsgCenterCell"
)
as!
MsgCenterCell
cell
.
titleLbl
.
showSkeleton
(
transition
:
.
crossDissolve
(
0.25
))
if
cell
.
isShow
==
false
{
//未显示
cell
.
dateLbl
.
showSkeleton
(
transition
:
.
crossDissolve
(
0.25
))
cell
.
titleLbl
.
showSkeleton
(
transition
:
.
crossDissolve
(
0.25
))
cell
.
contentLbl
.
showSkeleton
(
transition
:
.
crossDissolve
(
0.25
))
cell
.
dateLbl
.
showSkeleton
(
transition
:
.
crossDissolve
(
0.25
))
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.33
)
{
cell
.
contentLbl
.
showSkeleton
(
transition
:
.
crossDissolve
(
0.25
))
cell
.
titleLbl
.
hideSkeleton
(
reloadDataAfter
:
true
,
transition
:
.
crossDissolve
(
0.25
))
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.33
)
{
cell
.
dateLbl
.
hideSkeleton
(
reloadDataAfter
:
true
,
transition
:
.
crossDissolve
(
0.25
))
cell
.
isShow
=
true
//已显示
cell
.
contentLbl
.
hideSkeleton
(
reloadDataAfter
:
true
,
transition
:
.
crossDissolve
(
0.25
))
cell
.
titleLbl
.
hideSkeleton
(
reloadDataAfter
:
true
,
transition
:
.
crossDissolve
(
0.25
))
cell
.
dateLbl
.
hideSkeleton
(
reloadDataAfter
:
true
,
transition
:
.
crossDissolve
(
0.25
))
cell
.
contentLbl
.
hideSkeleton
(
reloadDataAfter
:
true
,
transition
:
.
crossDissolve
(
0.25
))
}
}
}
return
cell
return
cell
...
...
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