mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-25 07:12:53 +08:00
提示框逻辑修改
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="sale-list-container pb50">
|
||||
<div class="sale-list-container">
|
||||
<van-list v-model="loading" :immediate-check="false" :finished="finished" :finished-text="finishedText" @load="loadMore">
|
||||
<div v-if="isSuccess">
|
||||
<div v-if="approveList.length > 0">
|
||||
@@ -55,6 +55,7 @@
|
||||
import { List, Tag, Tab, Sticky, Tabs, Dialog, Field } from 'vant'
|
||||
import { agentAddApproval, revoke } from '@/api/ebiz/agentEenter/agentEenter.js'
|
||||
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||
import idNoCheck from '@/assets/js/utils/idNoCheck.js'
|
||||
|
||||
export default {
|
||||
name: 'approveList',
|
||||
@@ -187,9 +188,9 @@ export default {
|
||||
},
|
||||
async checkData(action, done) {
|
||||
if (action === 'confirm') {
|
||||
if (!this.idNo.trim()) {
|
||||
this.$toast('请输入代理人身份证号')
|
||||
if (!idNoCheck.isIdno(this.idNo)) {
|
||||
done(false)
|
||||
return this.$toast('身份证号不正确')
|
||||
} else {
|
||||
//调后端撤销申请接口
|
||||
const data = {
|
||||
@@ -201,7 +202,7 @@ export default {
|
||||
}
|
||||
const res = await revoke(data)
|
||||
if (res.result == 0) {
|
||||
this.$toast('撤销成功')
|
||||
done()
|
||||
this.idNo = ''
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
@@ -214,6 +215,7 @@ export default {
|
||||
})
|
||||
} else {
|
||||
this.idNo = ''
|
||||
done()
|
||||
return this.$toast(res.resultMessage)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user