Authored by yyq

尺码默认选中

... ... @@ -62,7 +62,8 @@ function changeThumb($dom) {
function chooseDefaultSize() {
var $item = $sizeList.not('.hide').children();
if ($item && $item.length === 1) {
if ($colorItem && $colorItem.length === 1 &&
$item && $item.length === 1) {
$item.trigger('click');
}
}
... ...