撤单接口增加验证码参数

This commit is contained in:
mengxiaolong
2020-09-17 09:04:59 +08:00
parent 97bcb6b022
commit 2c41a87ccc

View File

@@ -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 = ''
},