
            $('.use_type_2').show();
        }
    }

     //选择分类
     function selectCategory()
     {
         var selected = $('#goods_cid').find("option:selected");
         var cid = parseInt(selected.val());
         console.log(cid)
         if(isNaN(cid)||cid<1){
             _alert('请选择分类');return false;
         }
         var text = selected.data('text');
         var children = selected.data('children');
         var childrenArr =children.toString().split(',').map(Number);
   