Commit 0e1ff987 authored by xieyishang's avatar xieyishang

11~

parent 7e5fa38a
......@@ -157,7 +157,7 @@
}
}).then( (response)=> {
//reverse 逆序
console.log(response,'response');
// console.log(response,'response');
let result = response.data;
let order_list = result['data']['order_list'];
order_list = order_list.reverse();//逆序
......@@ -166,20 +166,32 @@
this.totalcount = result['data']['totalCount'];
this.dayamount = result['data']['dayAmount'];
this.daycount = result['data']['dayCount'];
console.info('000000 oneload');
// console.info('000000 oneload',order_list);
if(order_id==0){
this.OrderList = order_list;
}else{
//后面的新数据
console.info("加载新数据条数",order_list.length);
this.OrderList = [...order_list,...this.OrderList];
// console.info("加载新数据条数",order_list.length);
// this.OrderList = [...order_list,...this.OrderList];
let OrderList = [...order_list,...this.OrderList];
// console.info('new data',OrderList);
if(OrderList.length>800){
// console.info("截取数据");
OrderList = OrderList.slice(0,800);
this.OrderList = OrderList;
}else{
this.OrderList = OrderList;
}
}
this.LonadHotData();
})
.catch( (error)=> {
this.ajax_zt = true;
this.LonadHotData();
console.log(error,'error');
// console.log(error,'error');
});
}
},
......
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