Merge pull request 'fixed bug adout publish shop' (#38) from cmx into master
Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/38
This commit is contained in:
commit
7bfce17816
@ -187,6 +187,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log(this.shoplist)
|
||||
},
|
||||
// 改变选中状态
|
||||
changeselect(num) {
|
||||
@ -278,10 +279,10 @@ export default {
|
||||
let that = this;
|
||||
let num =Number(e.name)
|
||||
if (e.value == true) {
|
||||
that.delarr(that.list[num].goods_id);
|
||||
that.pushes(that.list[num].goods_id);
|
||||
that.list[num].checked=true
|
||||
} else {
|
||||
that.pushes(that.list[num].goods_id);
|
||||
that.delarr(that.list[num].goods_id);
|
||||
that.list[num].checked=false
|
||||
}
|
||||
},
|
||||
@ -293,7 +294,7 @@ export default {
|
||||
} else {
|
||||
let index = that.arres_list.indexOf(id);
|
||||
that.arres_list.splice(index, 1);
|
||||
that.getshoplist(id);
|
||||
that.getshoplist();
|
||||
}
|
||||
},
|
||||
// 增加直播商品
|
||||
@ -303,7 +304,7 @@ export default {
|
||||
console.log('为空');
|
||||
} else {
|
||||
that.arres_list.push(id);
|
||||
that.getshoplist(id);
|
||||
that.getshoplist();
|
||||
}
|
||||
},
|
||||
tosign() {
|
||||
@ -315,7 +316,7 @@ export default {
|
||||
} else {
|
||||
let arr = res.data.list;
|
||||
for (let index in arr) {
|
||||
arr[index].checked = true;
|
||||
arr[index].checked = false;
|
||||
}
|
||||
this.list = arr;
|
||||
}
|
||||
|
@ -285,10 +285,10 @@ export default {
|
||||
let that = this;
|
||||
let num =Number(e.name)
|
||||
if (e.value == true) {
|
||||
that.delarr(that.list[num].goods_id);
|
||||
that.pushes(that.list[num].goods_id);
|
||||
that.list[num].checked=true
|
||||
} else {
|
||||
that.pushes(that.list[num].goods_id);
|
||||
that.delarr(that.list[num].goods_id);
|
||||
that.list[num].checked=false
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user