泛亚电竞模板喜报战报捷报贺报创意红色简约热烈祝贺喜报公司企业年度优秀业绩喜报宣传海报
红色创意喜庆简约大气2022冬奥会喜报ui手机宣传海报冬奥会冬奥会喜报手机宣传海报
Copyright © 2021-2023 魔力设 ·沪ICP备2021024862号ICP证书:沪B2-20220592
-1){ $(#pic).addClass(masonry).removeClass(flex-images); registerMasonry(#pic,.item); }else{ $(#pic).removeClass(masonry).addClass(flex-images); $(#pic).flexImages({rowHeight: rowHeight}); } $(.tag-list.mo-scroll-list).moScrollList(); $(.more-wonderful).hide(); if(category.includes(fonts)) { $(.search-menu).data(cate,4); }else if (category.includes(graphics) category.includes(photos) category.includes(illustrations) category.includes(vectors) category.includes(backgrounds) category.includes(text-fx)) { $(.search-menu).data(cate,2); } //推荐模板事件 // registerTemplateEvent(); //注册事件 registerImageEvent(); //气泡初始化 if($(#pic).hasClass(masonry)) { $(.pic-icon).popover({ container:body, placement:bottom }) } else { $(.pic-icon).popover({ container:body, placement:left }) } $(.header-logo).click(function() { window.location.href= /; }) //切换视图 $(.grid-btn.h).click(function() { $(#pic).removeClass(grid).addClass(flex-images); $(.grid-btn).removeClass(active); $(this).addClass(active); renderHorDom(imgList); }); $(.grid-btn.s).click(function() { $(#pic).removeClass(flex-images).addClass(grid); $(.grid-btn).removeClass(active); $(this).addClass(active); renderVerDom(imgList); }); //分页器事件 $(.page-prev).click(function() { if(pageIndex
= pageIndexMax){ return; } var pageCode = getLocalStorage(CODE_LIST)[]; pageCode[pageIndex]=; setLocalStorage(CODE_LIST,pageCode); setCookies(flag,); pageIndex++; $(.page-input).val(pageIndex); pagehref(pageIndex); }); $(.page-input).bind(keypress, function(e) { if(e.keyCode === 13){ pageIndex = $(.page-input).val(); pagehref(pageIndex); } }); function pagehref(page) { var orderBy = zhot var format = 0 var plateId = 0 var cate = 1 var templateType = var url = 图片懒加载 lazyLoadImage(400); // 签到运营活动埋点 var ActivitySignShow = getCookies(ActivitySignShow) if(!ActivitySignShow) { moRequest(post,/webApi/activity/statistics/showSign,{},function(){}) } }) //图片懒加载 function lazyLoadImage(h){ init(h); registerEvent(); //搜索框 $(.mo-search).searchInput({ onSearch:function(text){ var menuCate = $(.search-menu).data(cate); onSearch(text,menuCate cate) } }) //切换搜索条件 $(.search-item).off(click).on(click,function(){ var cate = $(this).data(cate); var text = $(this).find(a).html(); $(.search-menu).data(cate,cate); $(.search-cate-text).text(text); $(.search-item).removeClass(active); $(this).addClass(active); }) //初始化 function init(h) { viewImages(h); } //注册事件 function registerEvent(){ $(window).on(scroll,function(){ viewImages(h); }) } function viewImages(h){ var scrollTop = getWindowScrollY(); var images = $(img[prev-src]); for (var i = 0; i1){ prev_page = pageIndex - 1; } var next_page = pageIndex + 1; var url =