|
@@ -169,6 +169,7 @@ export default {
|
|
|
mainActiveIndex:0,
|
|
|
activeId:0,//选择的板块id
|
|
|
|
|
|
+ isPublished:false,//是否正在发布,方式快速点击发布多条
|
|
|
}
|
|
|
},
|
|
|
onLoad(){
|
|
@@ -392,6 +393,7 @@ export default {
|
|
|
|
|
|
// 发布
|
|
|
handlePublish(){
|
|
|
+ if(this.isPublished) return
|
|
|
if(!this.form.title||!this.form.variety_id){
|
|
|
uni.showToast({
|
|
|
title:'请将内容填写完整',
|
|
@@ -409,6 +411,10 @@ export default {
|
|
|
author_id:Number(this.$store.state.user.userInfo.user_id),
|
|
|
author:this.$store.state.user.userInfo.real_name
|
|
|
}
|
|
|
+ this.isPublished=true
|
|
|
+ uni.showLoading({
|
|
|
+ title:'发布中...'
|
|
|
+ })
|
|
|
uni.uploadFile({
|
|
|
url: baseApiUrl + "/voice/broadcast/add",
|
|
|
filePath: this.temAudio.url,
|
|
@@ -446,6 +452,8 @@ export default {
|
|
|
},
|
|
|
complete: () => {
|
|
|
console.log('con');
|
|
|
+ uni.hideLoading()
|
|
|
+ this.isPublished=false
|
|
|
}
|
|
|
});
|
|
|
|