|
|
@ -11,8 +11,7 @@ |
|
|
<view class="swipe-action__content__right__text">欠款总金额:</view> |
|
|
<view class="swipe-action__content__right__text">欠款总金额:</view> |
|
|
<view class="swipe-action__content__right__money">{{ item.noPay == null ?'暂无':item.noPay }}</view> |
|
|
<view class="swipe-action__content__right__money">{{ item.noPay == null ?'暂无':item.noPay }}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<u-loadmore :status="status" /> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -36,10 +35,7 @@ |
|
|
}], |
|
|
}], |
|
|
popupShow: false, |
|
|
popupShow: false, |
|
|
shopName: '', |
|
|
shopName: '', |
|
|
list: [], |
|
|
list: [] |
|
|
pages: 1, |
|
|
|
|
|
pageNum:1, |
|
|
|
|
|
status: 'loadmore' |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onShow(){ |
|
|
onShow(){ |
|
|
@ -47,26 +43,12 @@ |
|
|
}, |
|
|
}, |
|
|
onLoad() { |
|
|
onLoad() { |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
onReachBottom() { |
|
|
|
|
|
if (this.pageNum >= this.pages) return; |
|
|
|
|
|
this.status = 'loading'; |
|
|
|
|
|
this.pageNum += 1; |
|
|
|
|
|
this.getList(); |
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
getList() { |
|
|
getList() { |
|
|
this.tui.request("/app/purchase/debt", "get", { |
|
|
this.tui.request("/app/purchase/debt", "get", {}, false, true).then((res) => { |
|
|
pageNum:this.pageNum, |
|
|
if (res.code == 200) { |
|
|
pageSize:10 |
|
|
this.list = res.result |
|
|
}, false, true).then((res) => { |
|
|
|
|
|
if (res.code == 200) { |
|
|
|
|
|
this.pages = res.result.pages |
|
|
|
|
|
if (this.pages == 1) { |
|
|
|
|
|
this.list = res.result.records |
|
|
|
|
|
} else { |
|
|
|
|
|
this.list = [...this.list, ...res.result.records] |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.tui.toast(res.message) |
|
|
this.tui.toast(res.message) |
|
|
} |
|
|
} |
|
|
|