This commit is contained in:
weipengfei 2023-08-30 15:13:12 +08:00
parent 555cba5b93
commit b1f7a48310

View File

@ -28,6 +28,8 @@
inactiveColor="#0122c7">
<u-steps-item v-for="(item, index) in list" :key="index" :title="item.update_time" :desc="item.remark">
</u-steps-item>
<u-loadmore :status="loadConfig.status" :loading-text="loadConfig.loadingText"
:loadmore-text="loadConfig.loadmoreText" :nomore-text="loadConfig.nomoreText" />
</u-steps>
</view>
<!-- <view class="card">
@ -82,7 +84,7 @@
lastpage: '',
loadingText: '努力加载中',
loadmoreText: '轻轻上拉',
nomoreText: '我也是有底线的~~',
nomoreText: '没有更多记录了~~',
status: 'loadmore'
},
};
@ -125,24 +127,30 @@
},
navToContract(contract_no) {
if (!contract_no) return Toast('暂无合同');
download_file({
applyNo: contract_no
}).then(res => {
if (res.code != 1) {
uni.hideLoading();
Toast(res.msg)
}
uni.showLoading({
title: '加载中',
mask: true
});
uni.navigateTo({
url: `/subpkg/pdfView/pdfView?url=${res.data.url}`,
return uni.navigateTo({
url: `/subpkg/pdfView/pdfView?url=${contract_no}`,
fail() {
uni.hideLoading();
}
})
})
// download_file({
// applyNo: contract_no
// }).then(res => {
// if (res.code != 1) {
// uni.hideLoading();
// Toast(res.msg)
// }
// uni.showLoading({
// title: '',
// mask: true
// });
// uni.navigateTo({
// url: `/subpkg/pdfView/pdfView?url=${res.data.url}`,
// fail() {
// uni.hideLoading();
// }
// })
// })
},
retreat() {
Toast('开发中')