Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ios1x
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
ios1x
Commits
ca57cf3c
Commit
ca57cf3c
authored
Jan 19, 2018
by
houweibin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1,moncler商品滑动至底会出现无数据ui的问题。
2,首页商品列表出现重复的问题
parent
b1906ed2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
KWMBrandCaramelVC.m
iCemarose/Class/UI/Brand/KWMBrandCaramelVC.m
+6
-3
KWMNewHomeVC.m
iCemarose/Class/UI/NewHome/KWMNewHomeVC.m
+4
-0
No files found.
iCemarose/Class/UI/Brand/KWMBrandCaramelVC.m
View file @
ca57cf3c
...
...
@@ -424,10 +424,13 @@ static NSString *idStr = @"KWMBrandCaramelCell";
}
[
KWMPPCacheUtil
saveDataToCache
:
parameters
urlKey
:
CACHE_KEY_SDK_getProductsPage
products
:
result
];
if
(
!
result
||
result
.
count
==
0
){
weakSelf
.
vNoneGoods
.
hidden
=
NO
;
[
weakSelf
.
dataList
removeAllObjects
];
[
self
.
tbvBrandCaramel
reloadData
];
if
(
tagetPage
==
1
){
weakSelf
.
vNoneGoods
.
hidden
=
NO
;
[
weakSelf
.
dataList
removeAllObjects
];
[
self
.
tbvBrandCaramel
reloadData
];
}
weakSelf
.
hasNextPage
=
NO
;
[
weakSelf
appendDataList
:[
NSArray
array
]
setPage
:
tagetPage
];
}
else
{
if
(
tagetPage
==
1
){
[
weakSelf
.
dataList
removeAllObjects
];
...
...
iCemarose/Class/UI/NewHome/KWMNewHomeVC.m
View file @
ca57cf3c
...
...
@@ -350,6 +350,10 @@ typedef enum{
[
self
.
client
getProductsPage
:
cpage
inCollection
:
collection
.
identifier
withTags
:
tags
sortOrder
:
BUYCollectionSortCollectionDefault
completion
:^
(
NSArray
<
BUYProduct
*>
*
_Nullable
products
,
NSUInteger
page
,
BOOL
reachedEnd
,
NSError
*
_Nullable
error
)
{
if
(
!
error
)
{
[
KWMPPCacheUtil
saveDataToCache
:
parameters
urlKey
:
CACHE_KEY_SDK_getCollectionByHandle_getProductsPage
products
:
products
];
if
(
isHome
&&
cpage
==
1
){
//清除预先显示的缓存商品
self
.
productArray
.
removeAllObjects
;
}
[
self
setValue
:
products
forKeyPath
:
valueKeyPath
];
[
self
.
cvHome
reloadData
];
}
else
{
...
...
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