From 8ff58e1a3164806636d7d8a4b04cb81115dbef1e Mon Sep 17 00:00:00 2001 From: Gdpao <1341331954@qq.com> Date: Sat, 15 Aug 2020 19:09:02 +0800 Subject: [PATCH] gdpao --- pages/release/video.vue | 72 +++++++++++++++++++++++++++-------------- 1 file changed, 48 insertions(+), 24 deletions(-) diff --git a/pages/release/video.vue b/pages/release/video.vue index 253e1b8..e20494c 100644 --- a/pages/release/video.vue +++ b/pages/release/video.vue @@ -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); } })