Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-miniapp-eshop
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
yyq
2018-07-02 19:16:11 +0800
Commit
621cd682fd24bcbf6e650a8b458bb917115ba8a5
2 parents
b1fbe5e3
c7cb2e3f
Merge branch 'feature/import' of git.yoho.cn:fe/yoho-miniapp-eshop into feature/import
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
6 deletions
app/pages/goodsList/brandStore.js
app/pages/goodsList/goodsList.js
app/pages/goodsList/productPool.js
app/pages/goodsList/productPool.wxml
app/pages/shop/list/list.js
app/pages/goodsList/brandStore.js
View file @
621cd68
...
...
@@ -171,7 +171,9 @@ Page(Object.assign({
page
:
1
,
limit
:
20
};
this
.
data
.
productList
=
[];
this
.
setData
({
productList
:
[]
});
params
.
resetScroll
=
true
;
this
.
productList
(
params
);
},
...
...
app/pages/goodsList/goodsList.js
View file @
621cd68
...
...
@@ -64,7 +64,9 @@ Page({
this
.
data
.
addFilter
=
true
;
this
.
_resetPage
();
this
.
data
.
productList
=
[];
this
.
setData
({
productList
:
[]
});
this
.
_productList
();
},
...
...
app/pages/goodsList/productPool.js
View file @
621cd68
...
...
@@ -63,7 +63,7 @@ Page({
this
.
data
.
addFilter
=
true
;
this
.
_resetPage
();
this
.
data
.
productList
=
[]
;
this
.
setData
({
productList
:
[]
})
;
this
.
_productList
();
},
...
...
@@ -117,6 +117,7 @@ Page({
this
.
data
.
page
+=
1
;
this
.
data
.
totalPage
=
res
.
data
&&
res
.
data
.
page_total
||
1
;
this
.
setData
({
showLoading
:
false
,
noResult
:
this
.
data
.
totalPage
===
0
,
...
...
app/pages/goodsList/productPool.wxml
View file @
621cd68
...
...
@@ -9,8 +9,9 @@
</view>
<view wx:if="{{productList.length}}">
<product-list list="{{productList}}"
show-loading="{{showLoading}}"
show-no-more="{{allLoaded}}"></product-list>
show-loading="{{showLoading}}"
show-no-more="{{allLoaded}}">
</product-list>
</view>
</view>
<copyright class="copy-right"></copyright>
...
...
app/pages/shop/list/list.js
View file @
621cd68
...
...
@@ -61,7 +61,9 @@ Page({
this
.
data
.
gender
=
gender
;
this
.
_resetPage
();
this
.
data
.
productList
=
[];
this
.
setData
({
productList
:
[]
});
this
.
_productList
();
},
...
...
Please
register
or
login
to post a comment