|
@@ -426,6 +426,13 @@ export default {
|
|
|
author_id:Number(this.$store.state.user.userInfo.user_id),
|
|
|
author:this.$store.state.user.userInfo.real_name
|
|
|
}
|
|
|
+ wx.showLoading({
|
|
|
+ title: '发布中...',
|
|
|
+ mask: true,
|
|
|
+ success: (result) => {},
|
|
|
+ fail: () => {},
|
|
|
+ complete: () => {}
|
|
|
+ });
|
|
|
uni.uploadFile({
|
|
|
url: baseApiUrl + "/voice/broadcast/add",
|
|
|
filePath: this.temAudio.url,
|
|
@@ -438,6 +445,7 @@ export default {
|
|
|
const { envVersion } = uni.getAccountInfoSync().miniProgram
|
|
|
const res = envVersion === 'release' ? JSON.parse(CryptoJS.Des3Decrypt(result.data)) : JSON.parse(result.data);
|
|
|
console.log(res);
|
|
|
+ wx.hideLoading();
|
|
|
if(res.code===200){
|
|
|
if(onlyPublished){
|
|
|
uni.showToast({
|
|
@@ -467,7 +475,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
complete: () => {
|
|
|
-
|
|
|
+ wx.hideLoading();
|
|
|
}
|
|
|
});
|
|
|
},
|