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