|
@@ -94,6 +94,10 @@ export default {
|
|
|
'previousUrl',
|
|
|
'/pages/parkingFee/parkingReceipt/parkingReceipt.vue'
|
|
|
);
|
|
|
+ window.addEventListener('scroll', this.choice_card_scroll)
|
|
|
+ },
|
|
|
+ destroyed() {
|
|
|
+ window.removeEventListener('scroll', this.choice_card_scroll)
|
|
|
},
|
|
|
mounted() {
|
|
|
// const member = uni.getStorageSync('member')
|
|
@@ -222,6 +226,15 @@ export default {
|
|
|
this.getInvoiceList();
|
|
|
}
|
|
|
},
|
|
|
+ choice_card_scroll(e) {
|
|
|
+ const scrollable = e.srcElement.scrollingElement;
|
|
|
+ const isAtBottom = scrollable.scrollHeight - scrollable.scrollTop <= scrollable.clientHeight;
|
|
|
+ if (isAtBottom) {
|
|
|
+ // 已经滑动到底部
|
|
|
+ // console.log('滑动到底部');
|
|
|
+ this.scrollLower()
|
|
|
+ }
|
|
|
+ },
|
|
|
getInvoiceList: async function (){
|
|
|
const self = this;
|
|
|
// const openId = MemberCacheTool.getOpenId(app)
|