This commit is contained in:
花有清香月有阴
2021-12-23 18:27:09 +08:00
parent ef8dcd3977
commit a71d703836
2 changed files with 4 additions and 2 deletions

View File

@@ -84,6 +84,7 @@ export default {
onLoad() { onLoad() {
console.log(this.user.id) console.log(this.user.id)
this.$dict.load('marriageType', 'modeType') this.$dict.load('marriageType', 'modeType')
this.forms.areaId = this.user.areaId
}, },
mounted() {}, mounted() {},
@@ -94,7 +95,7 @@ export default {
this.$refs.uForm.validate((valid) => { this.$refs.uForm.validate((valid) => {
if (valid) { if (valid) {
if (!this.forms.type) { if (!this.forms.type) {
return this.$u.toast('请选择') return this.$u.toast('请选择类型')
} }
if (!this.forms.name) { if (!this.forms.name) {
return this.$u.toast('请输入事主姓名') return this.$u.toast('请输入事主姓名')
@@ -102,7 +103,7 @@ export default {
if (!this.forms.phone) { if (!this.forms.phone) {
return this.$u.toast('请输入联系电话') return this.$u.toast('请输入联系电话')
} }
if (!this.forms.address) { if (!this.forms.areaId) {
return this.$u.toast('请输入地址') return this.$u.toast('请输入地址')
} }
if (!this.forms.content) { if (!this.forms.content) {

View File

@@ -296,6 +296,7 @@ uni-page-body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-right: 20px; margin-right: 20px;
width: 64%;
.titles { .titles {
font-size: 30px; font-size: 30px;
font-weight: 500; font-weight: 500;