mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 06:26:44 +08:00
回复内容字符数限制
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<div class="enter" v-if="type === 'confirm'">
|
<div class="enter" v-if="type === 'confirm'">
|
||||||
<input type="text" v-model="code" placeholder="请输入短信验证码" maxlength="6" />
|
<input type="text" v-model="code" placeholder="请输入短信验证码" maxlength="6" />
|
||||||
<button type="button" @click="getMessage" v-no-more-click="3000">
|
<button type="button" @click="getMessage" v-no-more-click="3000">
|
||||||
{{ sendTime === 0 ? '获取验证码' : sendTime + 's' }}
|
{{ sendTime === 0 ? '获取验证码' : sendTime + 's后重新获取' }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -109,7 +109,7 @@ export default {
|
|||||||
this.timer = null
|
this.timer = null
|
||||||
this.$emit('update:sendTime', 0)
|
this.$emit('update:sendTime', 0)
|
||||||
} else {
|
} else {
|
||||||
this.$toast('验证失败, 请重新获取验证码')
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
this.code = ''
|
this.code = ''
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -362,6 +362,8 @@ export default {
|
|||||||
if (this.issueType === 'TB89') {
|
if (this.issueType === 'TB89') {
|
||||||
if (!this.newContract.feedback.trim()) {
|
if (!this.newContract.feedback.trim()) {
|
||||||
return this.$toast('请填写具体回复信息')
|
return this.$toast('请填写具体回复信息')
|
||||||
|
} else if (this.newContract.feedback.trim().length < 4 || this.newContract.feedback.trim().length > 400) {
|
||||||
|
return this.$toast('请输入4-400个字符')
|
||||||
} else {
|
} else {
|
||||||
localStorage.setItem('problemReplay', this.newContract.feedback.trim())
|
localStorage.setItem('problemReplay', this.newContract.feedback.trim())
|
||||||
}
|
}
|
||||||
@@ -381,6 +383,9 @@ export default {
|
|||||||
return this.$toast('请选择开户银行')
|
return this.$toast('请选择开户银行')
|
||||||
}
|
}
|
||||||
// 银行卡号校验
|
// 银行卡号校验
|
||||||
|
if (this.transfer.card.trim() === '') {
|
||||||
|
return this.$toast('请填写银行卡信息')
|
||||||
|
}
|
||||||
let regx = /^(\d{16}|\d{18}|\d{19})$/
|
let regx = /^(\d{16}|\d{18}|\d{19})$/
|
||||||
if (!regx.test(this.transfer.card)) {
|
if (!regx.test(this.transfer.card)) {
|
||||||
return this.$toast('银行卡号不符合规则')
|
return this.$toast('银行卡号不符合规则')
|
||||||
@@ -504,6 +509,8 @@ export default {
|
|||||||
submit() {
|
submit() {
|
||||||
// 校验回复内容
|
// 校验回复内容
|
||||||
if (this.issueType === 'TB89' && this.newContract.feedback.trim() === '') return this.$toast('请填写具体回复信息')
|
if (this.issueType === 'TB89' && this.newContract.feedback.trim() === '') return this.$toast('请填写具体回复信息')
|
||||||
|
if (this.issueType === 'TB89' && (this.newContract.feedback.trim().length < 4 || this.newContract.feedback.trim().length > 400))
|
||||||
|
return this.$toast('请输入4-400个字符')
|
||||||
// 校验补充资料
|
// 校验补充资料
|
||||||
if (this.issueType === '828601') {
|
if (this.issueType === '828601') {
|
||||||
if (!this.checkInsurantUpload()) return this.$toast('请上传被保人补充资料')
|
if (!this.checkInsurantUpload()) return this.$toast('请上传被保人补充资料')
|
||||||
@@ -522,6 +529,9 @@ export default {
|
|||||||
return this.$toast('请选择开户银行')
|
return this.$toast('请选择开户银行')
|
||||||
}
|
}
|
||||||
// 银行卡号校验
|
// 银行卡号校验
|
||||||
|
if (this.transfer.card.trim() === '') {
|
||||||
|
return this.$toast('请填写银行卡信息')
|
||||||
|
}
|
||||||
let regx = /^(\d{16}|\d{18}|\d{19})$/
|
let regx = /^(\d{16}|\d{18}|\d{19})$/
|
||||||
if (!regx.test(this.transfer.card)) {
|
if (!regx.test(this.transfer.card)) {
|
||||||
return this.$toast('银行卡号不符合规则')
|
return this.$toast('银行卡号不符合规则')
|
||||||
|
|||||||
Reference in New Issue
Block a user