mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-19 18:26:44 +08:00
添加注释, 优化代码
This commit is contained in:
@@ -65,7 +65,6 @@ export default {
|
|||||||
`
|
`
|
||||||
},
|
},
|
||||||
sendTime(nv) {
|
sendTime(nv) {
|
||||||
console.log('time change ... ', this.sendTime)
|
|
||||||
if (nv === 0) {
|
if (nv === 0) {
|
||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
this.timer = null
|
this.timer = null
|
||||||
@@ -103,7 +102,6 @@ export default {
|
|||||||
smsId: this.sid,
|
smsId: this.sid,
|
||||||
code: this.code
|
code: this.code
|
||||||
})
|
})
|
||||||
console.log(res)
|
|
||||||
if (res.result === '0') {
|
if (res.result === '0') {
|
||||||
this.$emit('getMessage', {
|
this.$emit('getMessage', {
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
@@ -182,11 +180,9 @@ export default {
|
|||||||
padding: 0 10px 15px;
|
padding: 0 10px 15px;
|
||||||
p {
|
p {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
padding: 10px 0 15px 0;
|
padding: 10px 0;
|
||||||
}
|
}
|
||||||
.enter {
|
.enter {
|
||||||
border-bottom: 1px solid #eee;
|
|
||||||
padding: 0 10px 5px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
input,
|
input,
|
||||||
|
|||||||
@@ -395,17 +395,21 @@ export default {
|
|||||||
async submit() {
|
async submit() {
|
||||||
// 校验回复内容
|
// 校验回复内容
|
||||||
if (this.issueType === 'TB89') {
|
if (this.issueType === 'TB89') {
|
||||||
if (this.newContract.feedback.trim() === '') return this.$toast('请填写具体回复信息')
|
let reply = this.newContract.feedback.trim()
|
||||||
if (this.newContract.feedback.trim().length < 4 || this.newContract.feedback.trim().length > 400) return this.$toast('请输入4-400个字符')
|
if (reply === '') return this.$toast('请填写具体回复信息')
|
||||||
|
if (reply.length < 4 || reply.length > 400) return this.$toast('请输入4-400个字符')
|
||||||
}
|
}
|
||||||
// 校验补充资料
|
// 校验补充资料
|
||||||
if (this.issueType === '828601') {
|
if (this.issueType === '828601') {
|
||||||
if (!this.checkSupplementData()) return this.$toast('请上传补充资料')
|
if (!this.checkSupplementData()) return this.$toast('请上传补充资料')
|
||||||
if (!this.checked) {
|
|
||||||
return this.$toast('请先阅读并勾选协议')
|
|
||||||
}
|
|
||||||
this.$toast.loading()
|
this.$toast.loading()
|
||||||
this.imageResultList.splice(0)
|
this.imageResultList.splice(0)
|
||||||
|
/**
|
||||||
|
* 上传补充资料
|
||||||
|
* 微信端特殊处理:
|
||||||
|
* 因为微信端签名会跳转页面, 为了签名回跳回显用户填过的信息, 用户填写过的信息都会被保存在localstorage中
|
||||||
|
* 补充资料图片是以base64格式存储, 所以需要转换为file之后再上传
|
||||||
|
*/
|
||||||
if (this.isWeixin) {
|
if (this.isWeixin) {
|
||||||
for (let image of this.imageList) {
|
for (let image of this.imageList) {
|
||||||
let file = this.dataURLtoFile(image.content, '.png')
|
let file = this.dataURLtoFile(image.content, '.png')
|
||||||
@@ -621,6 +625,7 @@ export default {
|
|||||||
async created() {
|
async created() {
|
||||||
// 问题件类型
|
// 问题件类型
|
||||||
this.issueType = this.$route.params.type
|
this.issueType = this.$route.params.type
|
||||||
|
// 根据问题件类型修改标题
|
||||||
if (this.issueType === 'TB89') {
|
if (this.issueType === 'TB89') {
|
||||||
document.title = '新契约基本问题件通知书'
|
document.title = '新契约基本问题件通知书'
|
||||||
} else if (this.issueType === '818901') {
|
} else if (this.issueType === '818901') {
|
||||||
|
|||||||
Reference in New Issue
Block a user