Commit 3906a153d9544c25f9a7720039b780feab53ed0c
1 parent
2332cba3
fix修复其他地方的th.data.sys_switch.is_skuroom_id等于undefined问题
Showing
1 changed file
with
2 additions
and
2 deletions
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -1248,7 +1248,7 @@ Page({ |
1248 | 1248 | |
1249 | 1249 | //让商品带上房间号 |
1250 | 1250 | //让商品带上房间号 |
1251 | - if (th.data.sys_switch.is_skuroom_id == 1) { | |
1251 | + if (!th.data.sys_switch.is_skuroom_id && th.data.sys_switch.is_skuroom_id == 1) { | |
1252 | 1252 | if (th.data.data.goods_id == getApp().globalData.room_goods_id) { |
1253 | 1253 | newd.room_id = getApp().globalData.room_id; |
1254 | 1254 | } |
... | ... | @@ -1354,7 +1354,7 @@ Page({ |
1354 | 1354 | |
1355 | 1355 | //让商品带上房间号 |
1356 | 1356 | //让商品带上房间号 |
1357 | - if (th.data.sys_switch.is_skuroom_id == 1) { | |
1357 | + if (!th.data.sys_switch.is_skuroom_id && th.data.sys_switch.is_skuroom_id == 1) { | |
1358 | 1358 | if (th.data.data.goods_id == getApp().globalData.room_goods_id) { |
1359 | 1359 | newd.room_id = getApp().globalData.room_id; |
1360 | 1360 | } | ... | ... |