bug
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
|
|
||||||
<u-form-item label="活动详情" prop="content" :border-bottom="false" label-position="top" class="contents">
|
<u-form-item label="活动详情" prop="content" required :border-bottom="false" label-position="top" class="contents">
|
||||||
<u-input v-model="forms.content" placeholder="请输入详细描述信息" type="textarea" auto-height height="100" maxlength="500" />
|
<u-input v-model="forms.content" placeholder="请输入详细描述信息" type="textarea" auto-height height="100" maxlength="500" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
|
||||||
@@ -102,6 +102,9 @@ export default {
|
|||||||
if (!this.forms.phone) {
|
if (!this.forms.phone) {
|
||||||
return this.$u.toast('请输入联系电话')
|
return this.$u.toast('请输入联系电话')
|
||||||
}
|
}
|
||||||
|
if (!this.forms.content) {
|
||||||
|
return this.$u.toast('请输入活动详情')
|
||||||
|
}
|
||||||
|
|
||||||
const imgs = []
|
const imgs = []
|
||||||
if (this.forms.files) {
|
if (this.forms.files) {
|
||||||
@@ -135,8 +138,12 @@ export default {
|
|||||||
}, 600)
|
}, 600)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
.catch(() => {
|
||||||
this.$u.toast('失败')
|
this.$u.toast('发布失败')
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.flag = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -181,8 +181,12 @@ export default {
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
||||||
this.pages = res.data.pages
|
this.pages = res.data.pages
|
||||||
|
this.$forceUpdate()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.$forceUpdate()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getEchart() {
|
getEchart() {
|
||||||
|
|||||||
Reference in New Issue
Block a user