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
Email Patches
Plain Diff
Browse Files
Authored by
李奇
7 years ago
Commit
c7cb2e3f66ab0f28b8e93d02172e7f654f5d7252
1 parent
ee4b2560
商品列表修改
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 @
c7cb2e3
...
...
@@ -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 @
c7cb2e3
...
...
@@ -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 @
c7cb2e3
...
...
@@ -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 @
c7cb2e3
...
...
@@ -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 @
c7cb2e3
...
...
@@ -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