天猫商城' ) } if (item.jd) { $('.depa_shop').append('京东商城' ) } var slideHtml = ''; if (item.list_img != undefined) { $.each(item.list_img, 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' }); $('.depa_info .depa_tit p:first').text('格之格 ' + item.type + ' ' + item.color + ' ' + item.TITLE); $('.depa_info .depa_tit p:last').text(item.series); $('.depa_info .depa_suit').text(item.SUBTITLE); var html = '
  • 产品型号
    '; html += '
    ' + item.TITLE + '
  • '; html += '
  • 原装型号
    '; html += '
    ' + item.o_model + '
  • '; html += '
  • 适用机型
    '; html += '
    ' + item.apply_model.replace(/,/g, '/') + '
  • '; $('.depa_info .depa_list > ul').append(html); if (item.brank !== undefined) { var brank = '
  • 适用品牌
    '; brank += '
    ' + item.brank + '
  • '; $('.depa_info .depa_list > ul').append(brank); } if (item.color !== undefined) { var color = '
  • 颜色
    '; color += '
    ' + item.color + '
  • ' $('.depa_info .depa_list > ul').append(color); } if (item.count !== undefined) { var count = '
  • 页产量
    '; count += '
    ' + item.count + '
  • ' $('.depa_info .depa_list > ul').append(count); } if (item.apply !== undefined) { var apply = '
  • 适用范围
    '; apply += '
    ' + item.apply + '
  • ' $('.depa_info .depa_list > ul').append(apply); } if (item.type !== undefined) { var type = '
  • 产品类型
    '; type += '
    ' + item.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.weight !== undefined) { var weight = '
  • 重量(g)碳粉的灌粉
    '; weight += '
    ' + item.weight + '
  • ' $('.depa_info .depa_list > ul').append(weight); } if (item.capacity !== undefined) { var capacity = '
  • 容量(ml)
    '; capacity += '
    ' + item.capacity + '
  • ' $('.depa_info .depa_list > ul').append(capacity); } if (item.interface !== undefined) { var interface = '
  • 接口方式
    '; interface += '
    ' + item.interface + '
  • ' $('.depa_info .depa_list > ul').append(interface); } if (item.life !== undefined) { var life = '
  • 寿命(字符)
    '; life += '
    ' + item.life + '
  • ' $('.depa_info .depa_list > ul').append(life); } if (item.core !== undefined) { var core = '
  • 带芯规格(mm x mm)
    '; core += '
    ' + item.core + '
  • ' $('.depa_info .depa_list > ul').append(core); } if (item.way !== undefined) { var way = '
  • 替换带芯接口方式
    '; way += '
    ' + item.way + '
  • ' $('.depa_info .depa_list > ul').append(way); } if (item.price !== undefined) { 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(); }) })