This commit is contained in:
Gdpao 2020-08-15 19:09:02 +08:00
parent e759f15852
commit 8ff58e1a31

View File

@ -235,15 +235,23 @@ export default {
label_arr: this.selectarr
}).then(res => {
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
type: 'error'
});
// this.$refs.uToast.show({
// title: res.message,
// type: 'error'
// });
uni.showToast({
title: res.message,
icon: "none"
})
} else {
this.$refs.uToast.show({
title: res.message,
type: 'success'
});
// this.$refs.uToast.show({
// title: res.message,
// type: 'success'
// });
uni.showToast({
title: res.message,
icon: "none"
})
setTimeout(function() {
uni.navigateBack({
delta: 1
@ -282,18 +290,26 @@ export default {
spec_name: this.tagcontent
}).then(res => {
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
type: 'error'
});
// this.$refs.uToast.show({
// title: res.message,
// type: 'error',
// });
uni.showToast({
title: res.message,
icon: "none"
})
} else {
this.tagcontent = '';
this.show = false;
this.fileListes.push(res.data);
this.$refs.uToast.show({
title: res.message,
type: 'success'
});
// this.$refs.uToast.show({
// title: res.message,
// type: 'success'
// });
uni.showToast({
title: res.message,
icon: "none"
})
}
});
},
@ -302,10 +318,14 @@ export default {
let that = this;
this.$u.api.getLiveSpec({}).then(res => {
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
type: 'error'
});
// this.$refs.uToast.show({
// title: res.message,
// type: 'error'
// });
uni.showToast({
title: res.message,
icon: "none"
})
} else {
let arr = res.data;
for (let index in arr) {
@ -332,10 +352,14 @@ export default {
let me = this;
this.$u.post("Streaming/deltLabel", {label_id: id}).then(res => {
if (res.errCode == 0) {
this.$refs.uToast.show({
title: res.message,
type: 'success'
});
// this.$refs.uToast.show({
// title: res.message,
// type: 'success'
// });
uni.showToast({
title: res.message,
icon: "none"
})
this.fileListes.splice(index,1);
}
})