开票的时候,点击开票先跳转到开票列表,从接口成功后跳转改成直接跳转,由后端控制状态显示,防止特殊情况下存在接口无返回导致页面卡死的问题后用户重复点击导致多开发票的问题,以及pdf右上角默认展示菜单

This commit is contained in:
2025-06-06 17:08:06 +08:00
parent 10a0fd7c19
commit 7772b3de1a
7 changed files with 22 additions and 9 deletions

View File

@@ -43,6 +43,15 @@ Component({
page: page + 1,
})
},
refresh() {
const that = this;
that.setData({
page: 1,
list: []
}, () => {
loadingFunc(() => that.getList())
})
},
onRefresh() {
loadingFunc(() => this.getList())
},

View File

@@ -2,6 +2,9 @@
<scroll-view wx:if="{{list.length}}" scroll-y lower-threshold="100px" bindscrolltolower="scrollToLower" style="height: 80vh;" scroll-top="{{topHeight}}px" class="scrView">
<view style="margin: 18rpx 30rpx;">
<van-button type="info" size="small" icon="replay" bind:click="refresh"> 刷新 </van-button>
</view>
<view class="card" wx:for="{{list}}">
<view class="left">
<view class="title">