Authored by yyq

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

@@ -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>
@@ -18,6 +18,7 @@ Page({ @@ -18,6 +18,7 @@ Page({
18 limit: 20, 18 limit: 20,
19 totalPage: 1, 19 totalPage: 1,
20 allLoaded: false, 20 allLoaded: false,
  21 + showLoading: false,
21 productList: [], 22 productList: [],
22 totalZero: false, 23 totalZero: false,
23 windowHeight 24 windowHeight