|
@@ -8,7 +8,7 @@ export default {
|
|
|
page:{
|
|
|
classifyId:0,
|
|
|
pageIndex:1,
|
|
|
- pageSize:3,
|
|
|
+ pageSize:10,
|
|
|
|
|
|
},
|
|
|
result:[],
|
|
@@ -18,10 +18,15 @@ export default {
|
|
|
components: {
|
|
|
|
|
|
},
|
|
|
- onPullDownRefresh() {
|
|
|
- if(this.result.length<this.recordsTotal){
|
|
|
- this.myLoadmore();
|
|
|
- }
|
|
|
+ // onPullDownRefresh() {
|
|
|
+ // if(this.result.length<this.recordsTotal){
|
|
|
+ // this.myLoadmore();
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ onReachBottom() {
|
|
|
+ if(this.result.length<this.recordsTotal){
|
|
|
+ this.myLoadmore();
|
|
|
+ }
|
|
|
},
|
|
|
onLoad(op){
|
|
|
this.page.classifyId=op.id;
|
|
@@ -37,8 +42,9 @@ export default {
|
|
|
})
|
|
|
API.messageList(this.page).then((response) => {
|
|
|
this.result=[
|
|
|
+
|
|
|
+ ...this.result,
|
|
|
...response.data.data,
|
|
|
- ...this.result,
|
|
|
|
|
|
];
|
|
|
this.recordsTotal=response.data.recordsTotal
|