diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 53d48e0..ad9c6b5 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -1248,7 +1248,7 @@ Page({ //让商品带上房间号 //让商品带上房间号 - if (th.data.sys_switch.is_skuroom_id == 1) { + if (!th.data.sys_switch.is_skuroom_id && th.data.sys_switch.is_skuroom_id == 1) { if (th.data.data.goods_id == getApp().globalData.room_goods_id) { newd.room_id = getApp().globalData.room_id; } @@ -1354,7 +1354,7 @@ Page({ //让商品带上房间号 //让商品带上房间号 - if (th.data.sys_switch.is_skuroom_id == 1) { + if (!th.data.sys_switch.is_skuroom_id && th.data.sys_switch.is_skuroom_id == 1) { if (th.data.data.goods_id == getApp().globalData.room_goods_id) { newd.room_id = getApp().globalData.room_id; }