天猫商城') } if(item.jd){ $('.depa_shop').append('京东商城') } var slideHtml = ''; if(item.pic_info != undefined){ $.each(item.pic_info,function (i,n) { slideHtml += '
  • '; slideHtml += '
  • '; }); } $('.part_box .swiper-container.depa_ban .swiper-wrapper').append(slideHtml); var mySwiper = new Swiper ('.depa_ban', { loop: true, autoplayDisableOnInteraction : false, pagination: '.part_ban', paginationClickable :true, nextButton: '.part_next', prevButton: '.part_prev' }); item = item.info; $('.depa_info .depa_tit p:first').text(item.productname); $('.depa_info .depa_tit p:last').text(""); //$('.depa_info .depa_tit p:last').text(item.p_range); //$('.depa_info .depa_suit').text(item.SUBTITLE); var html = '
  • 产品型号
    '; html += '
    ' + item.p_model + '
  • '; html += '
  • 原装型号
    '; html += '
    ' + item.original_model + '
  • '; html += '
  • 适用机型
    '; if(item.adaptive_model){ html += '
    ' + item.adaptive_model.replace(/,/g,'/')+ '
  • '; }else{ html += '
    '; } $('.depa_info .depa_list > ul').append(html); if(item.brand!== undefined && item.brand!==null && item.brand!==''){ var brank = '
  • 适用品牌
    '; brank += '
    ' + item.brand + '
  • '; $('.depa_info .depa_list > ul').append(brank); } if(item.p_colour!== undefined && item.p_colour!==null && item.p_colour!==''){ var color = '
  • 颜色
    '; color += '
    ' + item.p_colour + '
  • ' $('.depa_info .depa_list > ul').append(color); } if(item.p_yield!== undefined && item.p_yield!==null && item.p_yield!==''){ var count = '
  • 页产量
    '; count += '
    ' + item.p_yield + '
  • ' $('.depa_info .depa_list > ul').append(count); } if(item.scope!== undefined && item.scope!==null && item.scope!==''){ var apply = '
  • 适用范围
    '; apply += '
    ' + item.scope + '
  • ' $('.depa_info .depa_list > ul').append(apply); } if(item.p_type!== undefined && item.p_type!==null && item.p_type!==''){ var type = '
  • 产品类型
    '; type += '
    ' + item.p_type + '
  • ' $('.depa_info .depa_list > ul').append(type); } /* if(item.apply_model!== undefined){ var apply_model = '
  • 适用机型
    '; apply_model += '
    ' + item.apply_model + '
  • ' $('.depa_info .depa_list > ul').append(apply_model); } */ if(item.p_weight!== undefined && item.p_weight!==null && item.p_weight!==''){ var weight = '
  • 重量(g)碳粉的灌粉
    '; weight += '
    ' + item.p_weight + '
  • ' $('.depa_info .depa_list > ul').append(weight); } if(item.capacity!== undefined && item.capacity!==null && item.capacity!==''){ var capacity = '
  • 容量(ml)
    '; capacity += '
    ' + item.capacity + '
  • ' $('.depa_info .depa_list > ul').append(capacity); } if(item.interface!== undefined && item.interface!==null && item.interface!==''){ var interface = '
  • 接口方式
    '; interface += '
    ' + item.interface + '
  • ' $('.depa_info .depa_list > ul').append(interface); } if(item.life!== undefined && item.life!==null && item.life!==''){ var life = '
  • 寿命(字符)
    '; life += '
    ' + item.life + '
  • ' $('.depa_info .depa_list > ul').append(life); } if(item.core_spec!== undefined && item.core_spec!==null && item.core_spec!==''){ var core = '
  • 带芯规格(mm x mm)
    '; core += '
    ' + item.core_spec + '
  • ' $('.depa_info .depa_list > ul').append(core); } if(item.replace_core!== undefined && item.replace_core!==null && item.replace_core!==''){ var way = '
  • 替换带芯接口方式
    '; way += '
    ' + item.replace_core + '
  • ' $('.depa_info .depa_list > ul').append(way); } if(item.price!== undefined && item.price!==null && item.price!==''){ var price = '
  • 指导价
    '; price += '
    ' + item.price + '
  • ' $('.depa_info .depa_list > ul').append(price); } } }) }); $('.depa_list > ul').niceScroll({ cursorcolor: "#999999", cursoropacitymin: 0, cursoropacitymax: 0.8, cursorwidth: "5px", cursorborderradius: "2px", }); $("body,.de_close").click(function(){ $(".part_box").fadeOut(); }) })