Commit ca43cb1e authored by 石家欣's avatar 石家欣

sjx

parent 595101bb
...@@ -401,7 +401,7 @@ ...@@ -401,7 +401,7 @@
//coupons 商户发放卡券 提交发放卡券的方法 submit //coupons 商户发放卡券 提交发放卡券的方法 submit
async coupons(){ async coupons(){
let can = this.parameter; let can = this.parameter;
can.goods_id = can.goods_id.join(";"); can.goods_id = can.goods_id.join(",");
let res = await addEditCoupons(can); let res = await addEditCoupons(can);
if(res.code==0){ if(res.code==0){
...@@ -559,7 +559,8 @@ ...@@ -559,7 +559,8 @@
console.log(e); console.log(e);
this.parameter.goods_id = e.detail.value; this.parameter.goods_id = e.detail.value;
console.log(this.parameter.goods_id);
console.log(this.shoplist);
this.shoplist = this.shoplist.map((item1,index)=>{//参与的商品默认选中的 this.shoplist = this.shoplist.map((item1,index)=>{//参与的商品默认选中的
if(this.parameter.goods_id.indexOf(item1.product_id)!=-1){ if(this.parameter.goods_id.indexOf(item1.product_id)!=-1){
item1.checked = true; item1.checked = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment