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) {
|
changeselect(num) {
|
||||||
@ -278,10 +279,10 @@ export default {
|
|||||||
let that = this;
|
let that = this;
|
||||||
let num =Number(e.name)
|
let num =Number(e.name)
|
||||||
if (e.value == true) {
|
if (e.value == true) {
|
||||||
that.delarr(that.list[num].goods_id);
|
that.pushes(that.list[num].goods_id);
|
||||||
that.list[num].checked=true
|
that.list[num].checked=true
|
||||||
} else {
|
} else {
|
||||||
that.pushes(that.list[num].goods_id);
|
that.delarr(that.list[num].goods_id);
|
||||||
that.list[num].checked=false
|
that.list[num].checked=false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -293,7 +294,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
let index = that.arres_list.indexOf(id);
|
let index = that.arres_list.indexOf(id);
|
||||||
that.arres_list.splice(index, 1);
|
that.arres_list.splice(index, 1);
|
||||||
that.getshoplist(id);
|
that.getshoplist();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 增加直播商品
|
// 增加直播商品
|
||||||
@ -303,7 +304,7 @@ export default {
|
|||||||
console.log('为空');
|
console.log('为空');
|
||||||
} else {
|
} else {
|
||||||
that.arres_list.push(id);
|
that.arres_list.push(id);
|
||||||
that.getshoplist(id);
|
that.getshoplist();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tosign() {
|
tosign() {
|
||||||
@ -315,7 +316,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
let arr = res.data.list;
|
let arr = res.data.list;
|
||||||
for (let index in arr) {
|
for (let index in arr) {
|
||||||
arr[index].checked = true;
|
arr[index].checked = false;
|
||||||
}
|
}
|
||||||
this.list = arr;
|
this.list = arr;
|
||||||
}
|
}
|
||||||
|
@ -285,10 +285,10 @@ export default {
|
|||||||
let that = this;
|
let that = this;
|
||||||
let num =Number(e.name)
|
let num =Number(e.name)
|
||||||
if (e.value == true) {
|
if (e.value == true) {
|
||||||
that.delarr(that.list[num].goods_id);
|
that.pushes(that.list[num].goods_id);
|
||||||
that.list[num].checked=true
|
that.list[num].checked=true
|
||||||
} else {
|
} else {
|
||||||
that.pushes(that.list[num].goods_id);
|
that.delarr(that.list[num].goods_id);
|
||||||
that.list[num].checked=false
|
that.list[num].checked=false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user