This commit is contained in:
parent
8bb249a2b5
commit
df9a67f164
|
@ -773,7 +773,7 @@
|
|||
refundMark: false,
|
||||
where: {
|
||||
page: 1,
|
||||
limit: 3,
|
||||
limit: 10,
|
||||
status: 9
|
||||
},
|
||||
where1: {
|
||||
|
@ -859,9 +859,9 @@
|
|||
|
||||
onShow() {
|
||||
if (this.loadEndFlag) {
|
||||
this.getUserInfo();
|
||||
this.codelist();
|
||||
}
|
||||
this.getUserInfo();
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
|
@ -1630,6 +1630,7 @@
|
|||
|
||||
//获取订单列表
|
||||
getGoods: async function(isPage) {
|
||||
console.log(3123123123);
|
||||
let that = this;
|
||||
if (that.loadend) return;
|
||||
if (that.loading) return;
|
||||
|
@ -1642,17 +1643,16 @@
|
|||
that.loading = true;
|
||||
that.loadTitle = '';
|
||||
await getOrderList(that.where, this.userInfoData.service.mer_id).then(res => {
|
||||
console.log(res);
|
||||
let list = res.data.list;
|
||||
let productList = that.$util.SplitArray(list, that.productList);
|
||||
let loadend = list.length < that.where.limit;
|
||||
that.loadend = loadend;
|
||||
that.loading = false;
|
||||
that.loadTitle = loadend ? '已全部加载' : '加载更多';
|
||||
setTimeout(() => {
|
||||
// setTimeout(() => {
|
||||
that.$set(that, 'productList', productList);
|
||||
}, 500)
|
||||
|
||||
// console.log(that.productList)
|
||||
// }, 500)
|
||||
that.$set(that.where, 'page', that.where.page + 1);
|
||||
if (that.where.page == 1 && res.data.list.length <= 0) that.emptyShow = true
|
||||
}).catch(err => {
|
||||
|
|
Loading…
Reference in New Issue