修改小程序bug

This commit is contained in:
邓洁
2023-05-07 23:08:10 +08:00
parent 5d4ffc01c7
commit 210afd8c84
3 changed files with 26 additions and 19 deletions

View File

@@ -205,7 +205,6 @@
}
})
this.needsPublishForm = publishFormList
console.log('this.needsPublishForm', this.needsPublishForm);
} catch (error) {
this.$toast.warn(error)
}
@@ -384,7 +383,8 @@
if (this.needsPublishForm.mobile && !/^1[3456789]\d{9}$/.test(this.needsPublishForm.mobile)) {
this.$toast.warn('请输入正确的手机号')
return false
} else if (this.needsPublishForm.email && !/^([0-9a-zA-Z_\.\-\])+\@([0-9a-zA-Z_\.\-\])+\.([a-zA-Z]+)$/.test(this.needsPublishForm.email)) {
} else if (this.needsPublishForm.email && !/^([0-9a-zA-Z_\.\-\])+\@([0-9a-zA-Z_\.\-\])+\.([a-zA-Z]+)$/
.test(this.needsPublishForm.email)) {
this.$toast.warn('请输入正确的邮箱地址')
return false
}
@@ -417,7 +417,7 @@
}
apiService.submitIdeasAndNeeds(data).then(res => {
if (res.data.code === 1) {
this.$toast.success('提交成功')
this.$toast.success('提交成功')
// if (this.needsPublishForm.id) {
uni.navigateTo({
url: '../../packageMy/myRelease/myRelease?index=' + (this.tabCurrent + 1)
@@ -426,7 +426,7 @@
this.tabCurrent = 0
this.fileList1 = []
this.needsPublishForm = {}
} else{
} else {
this.$toast.warn(res.data.msg)
}
// this.$toast.success(res.data.msg)
@@ -449,6 +449,10 @@
background-color: #ffffff !important;
}
/deep/.u-input {
background-color: #ffffff !important;
}
.content {
background-color: #F8F8F8;