gdpao #58

Merged
gyh merged 1 commits from gyh into master 2020-08-15 11:11:25 +00:00

View File

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