diff --git a/src/views/ebiz/sale/List.vue b/src/views/ebiz/sale/List.vue index c40d43168..ee462908a 100644 --- a/src/views/ebiz/sale/List.vue +++ b/src/views/ebiz/sale/List.vue @@ -275,34 +275,26 @@ export default { if (!this.sms.trim()) { return this.$toast('请输入验证码') } - let res = await autchCodeCheck({ + clearInterval(this.captchaTimer) + this.captchaTimer = null + let revokeResult = await revokeOrder({ + id: this.revokeOrderNo, smsId: this.smsId, code: this.sms }) - if (res.result === '0') { - clearInterval(this.captchaTimer) - this.captchaTimer = null - let revokeResult = await revokeOrder({ - id: this.revokeOrderNo, - smsId: this.smsId, - code: this.sms - }) - if (revokeResult.result == 0) { - this.saleList = [] - this.isSuccess = false - this.currentPage = 1 - ;[this.loading, this.finished] = [true, false] - let pageInfo = { - pageNum: this.currentPage, - pageSize: this.pageSize, - orderType: this.active - } - this.loadMore(pageInfo) - } else { - Toast.fail(res.resultMessage) + if (revokeResult.result == 0) { + this.saleList = [] + this.isSuccess = false + this.currentPage = 1 + ;[this.loading, this.finished] = [true, false] + let pageInfo = { + pageNum: this.currentPage, + pageSize: this.pageSize, + orderType: this.active } + this.loadMore(pageInfo) } else { - this.$toast(res.resultMessage) + Toast.fail(revokeResult.resultMessage) } this.sms = '' },