开票失败
This commit is contained in:
@@ -71,10 +71,25 @@ async function request(options) {
|
||||
// #endif
|
||||
if (res.code != 1) {
|
||||
if (options.toast) {
|
||||
try {
|
||||
if (res.msg.length > 10 || res.message.length > 10) {
|
||||
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 => {
|
||||
uni.hideLoading()
|
||||
}, 1000)
|
||||
|
||||
@@ -93,6 +93,10 @@
|
||||
<text>发票状态</text>
|
||||
<text>{{details.status}}</text>
|
||||
</view>
|
||||
<view class="detailsclassboxitem" v-if="details.status == '开票失败'">
|
||||
<text>失败原因</text>
|
||||
<text style="color:red;padding:0 20rpx;">{{details.status_note}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="detailsclassboxtext" v-if="details.status =='开票成功'">
|
||||
发票信息
|
||||
|
||||
Reference in New Issue
Block a user