Authored by 李奇

已参加列表数据加载

@@ -312,6 +312,7 @@ Page(Object.assign({ @@ -312,6 +312,7 @@ Page(Object.assign({
312 let oldData = my_zero_list[type].data; 312 let oldData = my_zero_list[type].data;
313 let key = `my_zero_list[${type}].data`; 313 let key = `my_zero_list[${type}].data`;
314 let keyPage = `my_zero_list[${type}].page`; 314 let keyPage = `my_zero_list[${type}].page`;
  315 + page = page + 1;
315 this.service.getMyList({type, page}).then(res => { 316 this.service.getMyList({type, page}).then(res => {
316 let data = [] 317 let data = []
317 if (res && res.code === 200) { 318 if (res && res.code === 200) {
@@ -319,7 +320,7 @@ Page(Object.assign({ @@ -319,7 +320,7 @@ Page(Object.assign({
319 } 320 }
320 this.setData({ 321 this.setData({
321 [key]: oldData.concat(data), 322 [key]: oldData.concat(data),
322 - [keyPage]: ++page 323 + [keyPage]: page
323 }) 324 })
324 if (data.length === 0) { 325 if (data.length === 0) {
325 this.setData({ 326 this.setData({