Merge branch 'feature/import' of git.yoho.cn:fe/yoho-miniapp-eshop into feature/import
Showing
4 changed files
with
6 additions
and
6 deletions
@@ -18,7 +18,6 @@ Page({ | @@ -18,7 +18,6 @@ Page({ | ||
18 | limit: 20, | 18 | limit: 20, |
19 | totalPage: 1, | 19 | totalPage: 1, |
20 | allLoaded: false, | 20 | allLoaded: false, |
21 | - showNoMore: false, | ||
22 | productList: [], | 21 | productList: [], |
23 | totalZero: false, | 22 | totalZero: false, |
24 | windowHeight | 23 | windowHeight |
@@ -83,7 +82,7 @@ Page({ | @@ -83,7 +82,7 @@ Page({ | ||
83 | } | 82 | } |
84 | 83 | ||
85 | this.setData({ | 84 | this.setData({ |
86 | - showLoading: true | 85 | + loading: true |
87 | }); | 86 | }); |
88 | 87 | ||
89 | Object.assign(params, this.data.orgOps, { | 88 | Object.assign(params, this.data.orgOps, { |
@@ -121,7 +120,7 @@ Page({ | @@ -121,7 +120,7 @@ Page({ | ||
121 | this.data.totalPage = res.data && res.data.page_total || 1; | 120 | this.data.totalPage = res.data && res.data.page_total || 1; |
122 | 121 | ||
123 | this.setData({ | 122 | this.setData({ |
124 | - showLoading: false, | 123 | + loading: false, |
125 | allLoaded: this.data.page > this.data.totalPage, | 124 | allLoaded: this.data.page > this.data.totalPage, |
126 | productList: this.data.productList.concat(list), | 125 | productList: this.data.productList.concat(list), |
127 | totalZero: this.data.productList.concat(list).length | 126 | totalZero: this.data.productList.concat(list).length |
1 | { | 1 | { |
2 | "navigationBarTitleText": "", | 2 | "navigationBarTitleText": "", |
3 | "usingComponents": { | 3 | "usingComponents": { |
4 | - "copyright": "/components/layout/copyright/copyright", | ||
5 | "product-list": "/components/product/list", | 4 | "product-list": "/components/product/list", |
5 | + "copyright": "/components/layout/copyright/copyright", | ||
6 | "product-list-filter": "/components/product/list-filter", | 6 | "product-list-filter": "/components/product/list-filter", |
7 | "quick-navigation": "/components/layout/quick-navigation/quick-navigation" | 7 | "quick-navigation": "/components/layout/quick-navigation/quick-navigation" |
8 | } | 8 | } |
@@ -9,8 +9,8 @@ | @@ -9,8 +9,8 @@ | ||
9 | </view> | 9 | </view> |
10 | <view wx:if="{{productList.length}}"> | 10 | <view wx:if="{{productList.length}}"> |
11 | <product-list list="{{productList}}" | 11 | <product-list list="{{productList}}" |
12 | - show-loading="{{showLoading}}" | ||
13 | - show-no-more="{{showNoMore}}"></product-list> | 12 | + show-loading="{{loading}}" |
13 | + show-no-more="{{allLoaded}}"></product-list> | ||
14 | </view> | 14 | </view> |
15 | </view> | 15 | </view> |
16 | <copyright class="copy-right"></copyright> | 16 | <copyright class="copy-right"></copyright> |
-
Please register or login to post a comment