|
@@ -76,7 +76,7 @@
|
|
|
class="order-list-wrap"
|
|
|
scroll-y="true"
|
|
|
:scroll-top="50"
|
|
|
- @scrolltoupper="loadPresList"
|
|
|
+ @scrolltoupper="loadPreList"
|
|
|
@scrolltolower="loadMoreList"
|
|
|
>
|
|
|
<template v-for="(v,i) in orderList" :key="i">
|
|
@@ -425,12 +425,15 @@ const loadMoreList =async()=>{
|
|
|
})
|
|
|
}
|
|
|
const {data:res} = await receiveOrderList(params)
|
|
|
+ console.log('orderList.value before',orderList.value)
|
|
|
if (res.code === 200) {
|
|
|
total.value = res.total
|
|
|
- orderList.value = orderList.value.push(res.rows)
|
|
|
- // if (total.value<page.value*pageSize.value){
|
|
|
- // isBottom.value= true
|
|
|
- // }
|
|
|
+ console.log('res.rows after',res.rows)
|
|
|
+ res.rows.forEach(item=>{
|
|
|
+ orderList.value.push(item)
|
|
|
+ })
|
|
|
+
|
|
|
+ console.log('orderList.value after',orderList.value)
|
|
|
}
|
|
|
}
|
|
|
|