| | |
| | | data: JSON.stringify(payload), |
| | | headers: { 'Content-Type': 'application/json' } |
| | | }); |
| | | if (res.data && res.data.outMsg !== undefined) { |
| | | if (res.data && res.data.outSum === "0") { |
| | | uni.showToast({ |
| | | title: res.data.outMsg || '', |
| | | icon: 'error' |
| | | }); |
| | | if (res.data.outSum === "1") { |
| | | // 允许继续后续逻辑 |
| | | } else { |
| | | return; |
| | | } |
| | | } |
| | | else uni.showToast({ title: res.data.outMsg || '' }); |
| | | if (res.status === 0) { |
| | | await this.fetchFormData(); |
| | | } |
| | |
| | | data: JSON.stringify(payload), |
| | | headers: { 'Content-Type': 'application/json' } |
| | | }); |
| | | if (res.data && res.data.outMsg !== undefined) { |
| | | if (res.data && res.data.outSum === "0") { |
| | | uni.showToast({ |
| | | title: res.data.outMsg || '', |
| | | icon: 'error' |
| | | }); |
| | | if (res.data.outSum === "1") { |
| | | // 允许继续后续逻辑 |
| | | } else { |
| | | return; |
| | | } |
| | | } |
| | | else uni.showToast({ title: res.data.outMsg || '' }); |
| | | if (res.status === 0) { |
| | | await this.fetchFormData(); |
| | | } |