Authored by htoooth

增加判断

@@ -32,7 +32,7 @@ var thumbsLoaded = {}; @@ -32,7 +32,7 @@ var thumbsLoaded = {};
32 32
33 var $main = $('.main'), 33 var $main = $('.main'),
34 id = $main.data('id'), 34 id = $main.data('id'),
35 - isTicket = $('input[name="isTicket"]').length > 0 && $('input[name="isTicket"]').val() === true; 35 + isTicket = $('input[name="isTicket"]').length > 0 && $('input[name="isTicket"]').val() === 'true';
36 36
37 var maxStock = -1; // 记录当前选中的颜色-尺码的库存量,若为-1,代表未选择尺码 37 var maxStock = -1; // 记录当前选中的颜色-尺码的库存量,若为-1,代表未选择尺码
38 38