Commit e0c4b5db by zhangzhen

细节优化

parent 8cc97f20
......@@ -121,9 +121,13 @@
methods: {
onLoading(){
getCouponList(this.queryParams).then(res=>{
console.log(res,909090909)
if(res.data.code === 200 ){
this.list = res.data.rows
if(this.queryParams.pageNum == 1){
this.list = res.data.rows
} else{
this.list = [...this.list,...res.data.rows]
}
this.total = res.data.total
if (this.list.length < this.total) {
this.status = 'loadmore';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment