Commit 75b43306 by lixiaomin

修改优惠券商品范围显示

parent 8881f6b0
...@@ -557,7 +557,7 @@ export default { ...@@ -557,7 +557,7 @@ export default {
this.form.sendMsgTag=2 this.form.sendMsgTag=2
} }
//适用范围分品类 //适用范围分品类
if(response.data.categoryIds.length>0){ if(response.data.categoryIds!=null){
if(response.data.categoryIds[0]=='0'){ if(response.data.categoryIds[0]=='0'){
this.shopRange=[0]; this.shopRange=[0];
}else{ }else{
...@@ -569,10 +569,10 @@ export default { ...@@ -569,10 +569,10 @@ export default {
} }
} }
//适用范围商品 //适用范围商品
if(response.data.shopIds!=null){ if(response.data.goodsIds!=null){
let sh_ary = new Array(); let sh_ary = new Array();
for(let i=0;i<response.data.shopIds.length;i++){ for(let i=0;i<response.data.goodsIds.length;i++){
sh_ary.push([1,response.data.shopIds[i]]) sh_ary.push([2,response.data.goodsIds[i]])
} }
this.shopRange=sh_ary; this.shopRange=sh_ary;
} }
......
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