Click On The Picture To Enlarge
Cover
Catalog
1-2
3-4
5-6
7-8
9-10
11-12
13-14
15-16
17-18
19-20
21-22
23-24
25-26
27-28
LOAD MORE
Online message
If you are interested in our products, please leave a message or contact the online customer.
");
var console = window.console || { log: function () {} };
var $images = $('.honor-list');
var $toggles = $('.docs-toggles');
var $buttons = $('.docs-buttons');
var handler = function (e) {
console.log(e.type);
};
var options = {
// inline: true,
url: 'data-original',
build: handler,
built: handler,
show: handler,
shown: handler,
hide: handler,
hidden: handler,
rotatable: false,
scalable: false,
title: false
};
function toggleButtons(mode) {
if (/modal|inline|none/.test(mode)) {
$buttons.
find('button[data-enable]').
prop('disabled', true).
filter('[data-enable*="' + mode + '"]').
prop('disabled', false);
}
}
//AJAX请求
if($(".elec-img").size()<17)
$(".loadmore").hide();
var page =2;
init();
$(".loadmore").click(function(){
$.ajax({
cache: false,
type:"get",
url:"/fyjz/electroniccataloglist/16/index_"+page+".html",
beforeSend:function(){$(".loadmore").html("").removeClass("loadmore").addClass('load')},
statusCode: {404: function() {
$(".load").hide();
},500: function() {
$(".load").hide();
}
},
success:function(result){
if($.trim(result)==""){
$(".load").hide();
return;
}
$(".honor-list").append(result);
if((($(".elec-img").size()-1)%16)!=0)
$(".load").hide();
else
$(".load").html("LOAD MORE").removeClass("load").addClass('loadmore');
page++;
$images.viewer("destroy"); init()
}
});
});
function init() {
function toggleButtons(mode) {
if (/modal|inline|none/.test(mode)) {
$buttons.
find('button[data-enable]').
prop('disabled', true).
filter('[data-enable*="' + mode + '"]').
prop('disabled', false);
}
}
$images.on({
'build.viewer': handler,
'built.viewer': handler,
'show.viewer': handler,
'shown.viewer': handler,
'hide.viewer': handler,
'hidden.viewer': handler
}).viewer(options);
toggleButtons(options.inline ? 'inline' : 'modal');
}