Browse Source

修改秒杀拼团页面bug

master
xuwenbo 4 years ago
parent
commit
85bc5d7c21
  1. 10
      src/views/activity/combination/form.vue
  2. 6
      src/views/activity/seckill/form.vue

10
src/views/activity/combination/form.vue

@ -384,7 +384,6 @@ export default {
handler(val,oldVal){ handler(val,oldVal){
this.getInfoChooseGood (val.cform.id) this.getInfoChooseGood (val.cform.id)
}, },
deep:true//
}, },
}, },
mounted () { mounted () {
@ -419,7 +418,7 @@ export default {
}, },
// //
generate (data) { generate (data) {
isFormatAttrForActivity(data===null?this.formValidate.id:data, { attrs: this.attrs }).then(res => { isFormatAttrForActivity(data===null?this.formValidate.productId:data, { attrs: this.attrs }).then(res => {
this.manyFormValidate = res.value; this.manyFormValidate = res.value;
let headerdel = { let headerdel = {
title: '操作', title: '操作',
@ -506,13 +505,10 @@ export default {
getInfo(id).then(async res => { getInfo(id).then(async res => {
let data = res.productInfo; let data = res.productInfo;
if(data){ if(data){
let cate_id = parseInt(data.cate_id) || 0;
that.attrs = data.items || []; that.attrs = data.items || [];
that.formValidate = data; that.formValidate = data;
that.id = that.combinationId that.formValidate.id = 0;
that.formValidate.id = 0; that.formValidate.productId = id
that.formValidate.productId = data.id
that.formValidate.cate_id = cate_id;
that.formValidate.title = data.store_name that.formValidate.title = data.store_name
that.formValidate.info = data.store_info that.formValidate.info = data.store_info
that.formValidate.unitName = data.unit_name that.formValidate.unitName = data.unit_name

6
src/views/activity/seckill/form.vue

@ -385,7 +385,6 @@ export default {
handler(val,oldVal){ handler(val,oldVal){
this.getInfoChooseGood (val.cform.id) this.getInfoChooseGood (val.cform.id)
}, },
deep:true//
}, },
}, },
mounted () { mounted () {
@ -423,7 +422,7 @@ export default {
}, },
// //
generate (data) { generate (data) {
isFormatAttrForActivity(data===null?this.formValidate.id:data, { attrs: this.attrs }).then(res => { isFormatAttrForActivity(data===null?this.formValidate.productId:data, { attrs: this.attrs }).then(res => {
this.manyFormValidate = res.value; this.manyFormValidate = res.value;
let headerdel = { let headerdel = {
title: '操作', title: '操作',
@ -514,7 +513,8 @@ export default {
let cate_id = parseInt(data.cate_id) || 0; let cate_id = parseInt(data.cate_id) || 0;
that.attrs = data.items || []; that.attrs = data.items || [];
that.formValidate = data; that.formValidate = data;
that.formValidate.id = 0; that.formValidate.id = 0;
that.formValidate.productId = id
that.formValidate.productId = data.id that.formValidate.productId = data.id
that.formValidate.cate_id = cate_id; that.formValidate.cate_id = cate_id;
that.oneFormValidate = [data.attr]; that.oneFormValidate = [data.attr];

Loading…
Cancel
Save