撤单优化成功提示

This commit is contained in:
mengxiaolong
2020-09-17 11:30:32 +08:00
parent 2c41a87ccc
commit 0aae973fc3

View File

@@ -184,7 +184,7 @@ import { Search, Tabs, Tab, List, Tag, Sticky, Toast, Dialog, Field } from 'vant
import { orderList, deleteOrderInfo, revokeOrder } from '@/api/ebiz/sale/sale'
import { formatRiskList } from '@/assets/js/utils/formatRiskList.js'
import dataDictionary from '@/assets/js/utils/data-dictionary' //根据数据字典找到用户等级
import { getAuthCode, autchCodeCheck } from '@/api/ebiz/sale/sale'
import { getAuthCode } from '@/api/ebiz/sale/sale'
export default {
name: 'saleList',
@@ -283,19 +283,23 @@ export default {
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)
Toast.success('操作成功')
setTimeout(() => {
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)
}, 1000)
} else {
Toast.fail(revokeResult.resultMessage)
}
this.cancelCaptchaCode()
this.sms = ''
},
cancelCaptchaCode() {
@@ -305,6 +309,7 @@ export default {
this.captchaTimer = null
this.getCaptcha = false
this.captchaMaped = false
this.captchaReceiver = ''
},
appCallBack(data) {
if (data.trigger == 'left_button_click') {