From 16fb6fec5b171a67753ee5e020df076c845a7b34 Mon Sep 17 00:00:00 2001 From: xuwenbo <717567226@qq.com> Date: Tue, 8 Sep 2020 19:20:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A5=E5=8F=A3=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=A1=B5=E9=9D=A2=E6=89=93=E5=8D=B0msg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/activity/combination/form.vue | 109 +----------------------- src/views/activity/seckill/form.vue | 21 +---- 2 files changed, 8 insertions(+), 122 deletions(-) diff --git a/src/views/activity/combination/form.vue b/src/views/activity/combination/form.vue index 0575792..a132eb7 100644 --- a/src/views/activity/combination/form.vue +++ b/src/views/activity/combination/form.vue @@ -186,93 +186,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 保存 @@ -620,10 +533,7 @@ export default { this.oneFormBatch[0].pic = this.formValidate.image; } }).catch(res => { - this.$message({ - message:res.msg, - type: 'error' - }); + this.$message.error(res.msg); }) }, // 取消 @@ -733,11 +643,7 @@ export default { that.templateList = res.tempList; }).catch(res => { - console.log('err:'+res) - return this.$message({ - message:res.msg, - type: 'error' - }); + this.$message.error(res.msg); }) }, @@ -787,11 +693,7 @@ export default { that.templateList = res.tempList; }).catch(res => { - console.log('err:'+res) - return this.$message({ - message:res.msg, - type: 'error' - }); + this.$message.error(res.msg); }) }, @@ -820,10 +722,7 @@ export default { this.$router.push({ path: '/activity/combination' }); }, 500); }).catch(res => { - this.$message({ - message:res.message, - type: 'error' - }); + this.$message.error(res.msg); }) } else { if(!this.formValidate.store_name || !this.formValidate.cate_id || !this.formValidate.keyword diff --git a/src/views/activity/seckill/form.vue b/src/views/activity/seckill/form.vue index 94fca95..1bed860 100644 --- a/src/views/activity/seckill/form.vue +++ b/src/views/activity/seckill/form.vue @@ -618,10 +618,7 @@ export default { this.oneFormBatch[0].pic = this.formValidate.image; } }).catch(res => { - // this.$message({ - // message:res.msg, - // type: 'error' - // }); + this.$message.error(res.msg); }) }, // 取消 @@ -732,10 +729,7 @@ export default { that.templateList = res.tempList; }).catch(res => { console.log('err:'+res) - return this.$message({ - message:res.msg, - type: 'error' - }); + this.$message.error(res.msg); }) }, @@ -788,11 +782,7 @@ export default { that.templateList = res.tempList; }).catch(res => { - console.log('err:'+res) - return this.$message({ - message:res.msg, - type: 'error' - }); + this.$message.error(res.msg); }) }, // 提交 @@ -819,10 +809,7 @@ export default { this.$router.push({ path: '/activity/seckill' }); }, 500); }).catch(res => { - // this.$message({ - // message:res.message, - // type: 'error' - // }); + this.$message.error(res.msg); }) } else { if(!this.formValidate.store_name || !this.formValidate.cate_id || !this.formValidate.keyword