Commit e0ff3e4f by 李伟康

fix(equity): 提单成功后延迟显示合同预览弹窗并增加loading提示

在提单成功后,为提升用户体验,增加 loading 提示,并将合同预览弹窗的展示延迟 1.5 秒,
以确保接口请求和数据处理完成后再进行页面跳转与弹窗显示。
1 parent 15785f69
...@@ -591,6 +591,10 @@ export default { ...@@ -591,6 +591,10 @@ export default {
this.$emit('jump', 'EquityManagement') this.$emit('jump', 'EquityManagement')
}, 1500) }, 1500)
} else { } else {
uni.showLoading({
mask: true
})
setTimeout(async () => {
// 从URL获取文件名 // 从URL获取文件名
const getFileNameFromUrl = (url) => { const getFileNameFromUrl = (url) => {
return url.split('/').pop().split('?')[0] || '未知文件' return url.split('/').pop().split('?')[0] || '未知文件'
...@@ -623,6 +627,8 @@ export default { ...@@ -623,6 +627,8 @@ export default {
uni.hideLoading() uni.hideLoading()
this.$refs.reportNotice.open() this.$refs.reportNotice.open()
}, 100) }, 100)
}, 1500)
} }
} else throw message } else throw message
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!