开票失败

This commit is contained in:
wwz
2025-04-12 16:12:09 +08:00
parent d7eabb34d9
commit 2fb7c3683e
2 changed files with 23 additions and 4 deletions

View File

@@ -71,10 +71,25 @@ async function request(options) {
// #endif // #endif
if (res.code != 1) { if (res.code != 1) {
if (options.toast) { if (options.toast) {
uni.showToast({ try {
title: res.message || res.msg, if (res.msg.length > 10 || res.message.length > 10) {
icon: "none", uni.showModal({
}) title: '提示', //标题
content: res.message || res.msg,
showCancel: false //不显示取消按钮
})
} else {
uni.showToast({
title: res.message || res.msg,
icon: "none",
})
}
} catch (error) {
uni.showToast({
title: res.message || res.msg,
icon: "none",
})
}
setTimeout(res => { setTimeout(res => {
uni.hideLoading() uni.hideLoading()
}, 1000) }, 1000)

View File

@@ -93,6 +93,10 @@
<text>发票状态</text> <text>发票状态</text>
<text>{{details.status}}</text> <text>{{details.status}}</text>
</view> </view>
<view class="detailsclassboxitem" v-if="details.status == '开票失败'">
<text>失败原因</text>
<text style="color:red;padding:0 20rpx;">{{details.status_note}}</text>
</view>
</view> </view>
<view class="detailsclassboxtext" v-if="details.status =='开票成功'"> <view class="detailsclassboxtext" v-if="details.status =='开票成功'">
发票信息 发票信息