Authored by yyq

Merge branch 'feature/import' of git.yoho.cn:fe/yoho-miniapp-eshop into feature/import

... ... @@ -18,7 +18,6 @@ Page({
limit: 20,
totalPage: 1,
allLoaded: false,
showNoMore: false,
productList: [],
totalZero: false,
windowHeight
... ... @@ -83,7 +82,7 @@ Page({
}
this.setData({
showLoading: true
loading: true
});
Object.assign(params, this.data.orgOps, {
... ... @@ -121,7 +120,7 @@ Page({
this.data.totalPage = res.data && res.data.page_total || 1;
this.setData({
showLoading: false,
loading: false,
allLoaded: this.data.page > this.data.totalPage,
productList: this.data.productList.concat(list),
totalZero: this.data.productList.concat(list).length
... ...
{
"navigationBarTitleText": "",
"usingComponents": {
"copyright": "/components/layout/copyright/copyright",
"product-list": "/components/product/list",
"copyright": "/components/layout/copyright/copyright",
"product-list-filter": "/components/product/list-filter",
"quick-navigation": "/components/layout/quick-navigation/quick-navigation"
}
... ...
... ... @@ -9,8 +9,8 @@
</view>
<view wx:if="{{productList.length}}">
<product-list list="{{productList}}"
show-loading="{{showLoading}}"
show-no-more="{{showNoMore}}"></product-list>
show-loading="{{loading}}"
show-no-more="{{allLoaded}}"></product-list>
</view>
</view>
<copyright class="copy-right"></copyright>
... ...
... ... @@ -18,6 +18,7 @@ Page({
limit: 20,
totalPage: 1,
allLoaded: false,
showLoading: false,
productList: [],
totalZero: false,
windowHeight
... ...