From bc4abafd5573c6e54977155baea1b2d08f5cdf6a Mon Sep 17 00:00:00 2001 From: xuwenbo <717567226@qq.com> Date: Tue, 8 Sep 2020 10:22:27 +0800 Subject: [PATCH] =?UTF-8?q?bug=E7=A7=92=E6=9D=80=E6=8B=BC=E5=9B=A2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/activity/combination/form.vue | 207 +++++++++++------------- src/views/activity/seckill/form.vue | 177 ++++++++++---------- 2 files changed, 178 insertions(+), 206 deletions(-) diff --git a/src/views/activity/combination/form.vue b/src/views/activity/combination/form.vue index c19d569..0575792 100644 --- a/src/views/activity/combination/form.vue +++ b/src/views/activity/combination/form.vue @@ -187,91 +187,91 @@ - - - - - - - - - - - - - - 单独设置 - 默认设置 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 @@ -420,26 +420,7 @@ export default { } }, formValidate: { - // imageArr:[], - // sliderImageArr: [], - // store_name: '', - // cate_id: '', - // keyword: '', - // unit_name: '', - // store_info: '', - // image: '', slider_image: [], - // description: '', - // ficti: 0, - // give_integral: 0, - // sort: 0, - // is_show: 1, - // is_hot: 0, - // is_benefit: 0, - // is_best: 0, - // is_new: 0, - // is_good: 0, - // is_postage: 0, is_sub: 0, id: 0, combinationId: 0, @@ -582,7 +563,6 @@ export default { }, 'form1.good': { handler(val,oldVal){ - this.formValidate = val.cform this.getInfoChooseGood (val.cform.id) }, deep:true//对象内部的属性监听,也叫深度监听 @@ -640,10 +620,10 @@ export default { this.oneFormBatch[0].pic = this.formValidate.image; } }).catch(res => { - // this.$message({ - // message:res.msg, - // type: 'error' - // }); + this.$message({ + message:res.msg, + type: 'error' + }); }) }, // 取消 @@ -709,7 +689,6 @@ export default { let that = this; getInfo(id).then(async res => { let data = res.productInfo; - console.log('data:'+data) if(data){ let cate_id = parseInt(data.cate_id) || 0; that.attrs = data.items || []; @@ -841,10 +820,10 @@ export default { this.$router.push({ path: '/activity/combination' }); }, 500); }).catch(res => { - // this.$message({ - // message:res.message, - // type: 'error' - // }); + this.$message({ + message:res.message, + type: 'error' + }); }) } 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 00b095f..94fca95 100644 --- a/src/views/activity/seckill/form.vue +++ b/src/views/activity/seckill/form.vue @@ -193,91 +193,91 @@ - - - - - - - - - - - - - - 单独设置 - 默认设置 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 @@ -550,11 +550,6 @@ export default { } }, watch: { - // 'formValidate.imageArr': function(val) { - // if (val) { - // this.formValidate.image = val.join(',') - // } - // }, 'formValidate.slider_image': function(val) { if (val) { @@ -570,9 +565,7 @@ export default { }, mounted () { this.getInfo(), - console.log('9999'), initData('api/yxSystemGroupData',{ groupName: 'yshop_seckill_time' }).then(res => { - //console.log(res.content) this.myTimes = res.content }) },