进行了一些小修复

This commit is contained in:
kate522 committed 2026-08-26 12:35:20 +08:00
1 parent dc14c29878
commit 065a5bc99c
16 files changed
+3655 -2508

No files matched your search

-3
View File
@@ -61,7 +61,6 @@ tbquire.config({
'enlighterjs' : 'enlighter/enlighterjs.min',
'imgbox' : 'imgbox.min',
'section-navs' : 'section-navs.min',
'main' : 'main.min',
'poster-share' : 'poster-share.min',
'slidercaptcha' : 'slidercaptcha.min',
'comment' : 'comment.min',
@@ -83,5 +82,3 @@ tbquire.config({
'shop—main' : _win.uri+'/inc/functions/shop/assets/js/main.min',
}
})
tbquire(['main']);
+18 -9
View File
@@ -1885,6 +1885,7 @@ _win.bd.on('click', '[remote-box]', function () {
jQuery.post(remote, null, function (data) {
_this.html(data).removeAttr('remote-box');
auto_fun();
_this.trigger('aksrt:remote-loaded');
});
}
});
@@ -3580,9 +3581,19 @@ _win.bd.on('submit', '.main-search form', function () {
//搜索功能
_win.bd.on('click', '.main-search-btn', function () {
var _this = jQuery(this);
var _search_form = jQuery('.main-search form');
jQuery('.main-search').addClass('show');
var _remote_search = jQuery('.main-search [remote-box]').first();
if (_remote_search.length) {
_remote_search.one('aksrt:remote-loaded', function () {
_this.trigger('click');
});
_remote_search.trigger('click');
return;
}
var _search_form = jQuery('.main-search form');
if (_search_form.length) {
var attr_ = 'search-';
var obj = {
@@ -4470,6 +4481,11 @@ function tilt_cases_init() {
return;
}
var cases = jQuery('.vanilla-tilt:not(.is-initialized)');
if (!cases.length) {
return;
}
function setTranslate3d(imgs, translate3d) {
//先获取原有的transform
var transform = imgs[0].style.transform;
@@ -4483,7 +4499,7 @@ function tilt_cases_init() {
}
tbquire(['tilt'], function () {
jQuery('.vanilla-tilt:not(.is-initialized)').each(function () {
cases.each(function () {
var _this = jQuery(this);
var imgs = _this.find('img');
@@ -4584,13 +4600,6 @@ jQuery(document).ready(function () {
});
}
setTimeout(function () {
//获取登录用户数据,延迟2秒执行
jQuery.post(_win.ajax_url, {
action: 'get_current_user',
});
}, 1000);
//内容高度限制
posts_limit_height();
+1 -1
View File
@@ -1 +1 @@
jQuery.cookie=function(t,e,a){if(e===void 0){var i=null;if(document.cookie&&document.cookie!="")for(var n=document.cookie.split(";"),r=0;r<n.length;r++){var o=jQuery.trim(n[r]);if(o.substring(0,t.length+1)==t+"="){i=decodeURIComponent(o.substring(t.length+1));break}}return i}a=a||{},e===null&&(e="",a.expires=-1);var s="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){var d;typeof a.expires=="number"?(d=new Date,d.setTime(d.getTime()+24*a.expires*60*60*1e3)):d=a.expires,s="; expires="+d.toUTCString()}var c=a.path?"; path="+a.path:"",u=a.domain?"; domain="+a.domain:"",l=a.secure?"; secure":"";document.cookie=[t,"=",encodeURIComponent(e),s,c,u,l].join("")};var lcs={get:function(t){return window.localStorage?localStorage.getItem(t):jQuery.cookie(t)},set:function(t,e){window.localStorage?localStorage[t]=e:jQuery.cookie(t,e)},remove:function(t){window.localStorage?localStorage.removeItem(t):jQuery.cookie(t,"")}};function aksrt__(t){var e=window._win&&window._win.i18n;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t}function aksrt_is_fatal_error_response(t){return t&&(t.indexOf("Fatal error")>-1||t.indexOf("\u81F4\u547D\u9519\u8BEF")>-1)}function aksrt_sprintf(t){var e=Array.prototype.slice.call(arguments,1),a=aksrt__(t),i=0;return a.replace(/%(\d+\$)?s/g,function(n,r){var o=r?parseInt(r,10)-1:i++;return e[o]!==void 0&&e[o]!==null?e[o]:n})}(function(t,e){var a=e(t,t.document,Date);t.lazySizes=a,typeof module=="object"&&module.exports&&(module.exports=a)})(typeof window<"u"?window:{},function(e,a,i){"use strict";var n,r;if((function(){var w,g={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",loadafterClass:"lazyloadafter",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};r=e.lazySizesConfig||e.lazysizesConfig||{};for(w in g)w in r||(r[w]=g[w])})(),!a||!a.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var o=a.documentElement,s=e.HTMLPictureElement,d="addEventListener",c="getAttribute",u=e[d].bind(e),l=e.setTimeout,f=e.requestAnimationFrame||l,h=e.requestIdleCallback,p=/^picture$/i,_=["load","error","lazyincluded","_lazyloaded"],v={},y=Array.prototype.forEach,b=function(w,g){return v[g]||(v[g]=new RegExp("(\\s|^)"+g+"(\\s|$)")),v[g].test(w[c]("class")||"")&&v[g]},C=function(w,g){b(w,g)||w.setAttribute("class",(w[c]("class")||"").trim()+" "+g)},k=function(w,g){var j;(j=b(w,g))&&w.setAttribute("class",(w[c]("class")||"").replace(j," "))},z=function(w,g,j){var L=j?d:"removeEventListener";j&&z(w,g),_.forEach(function(O){w[L](O,g)})},S=function(w,g,j,L,O){var T=a.createEvent("Event");return j||(j={}),j.instance=n,T.initEvent(g,!L,!O),T.detail=j,w.dispatchEvent(T),T},W=function(w,g){var j;!s&&(j=e.picturefill||r.pf)?(g&&g.src&&!w[c]("srcset")&&w.setAttribute("srcset",g.src),j({reevaluate:!0,elements:[w]})):g&&g.src&&(w.src=g.src)},G=function(w,g){return(getComputedStyle(w,null)||{})[g]},tt=function(w,g,j){for(j=j||w.offsetWidth;j<r.minSize&&g&&!w._lazysizesWidth;)j=g.offsetWidth,g=g.parentNode;return j},J=(function(){var w,g,j=[],L=[],O=j,T=function(){var E=O;for(O=j.length?L:j,w=!0,g=!1;E.length;)E.shift()();w=!1},M=function(E,q){w&&!q?E.apply(this,arguments):(O.push(E),g||(g=!0,(a.hidden?l:f)(T)))};return M._lsFlush=T,M})(),Q=function(w,g){return g?function(){J(w)}:function(){var j=this,L=arguments;J(function(){w.apply(j,L)})}},mt=function(w){var g,j=0,L=r.throttleDelay,O=r.ricTimeout,T=function(){g=!1,j=i.now(),w()},M=h&&O>49?function(){h(T,{timeout:O}),O!==r.ricTimeout&&(O=r.ricTimeout)}:Q(function(){l(T)},!0);return function(E){var q;(E=E===!0)&&(O=33),!g&&(g=!0,q=L-(i.now()-j),q<0&&(q=0),E||q<9?M():l(M,q))}},lt=function(w){var g,j,L=99,O=function(){g=null,w()},T=function(){var M=i.now()-j;M<L?l(T,L-M):(h||O)(O)};return function(){j=i.now(),g||(g=l(T,L))}},dt=(function(){var w,g,j,L,O,T,M,E,q,P,D,K,gt=/^img$/i,_t=/^iframe$/i,wt="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),bt=0,it=0,B=0,at=-1,ct=function(m){B--,(!m||B<0||!m.target)&&(B=0)},ut=function(m){return K==null&&(K=G(a.body,"visibility")=="hidden"),K||!(G(m.parentNode,"visibility")=="hidden"&&G(m,"visibility")=="hidden")},yt=function(m,x){var A,H=m,I=ut(m);for(E-=x,D+=x,q-=x,P+=x;I&&(H=H.offsetParent)&&H!=a.body&&H!=o;)I=(G(H,"opacity")||1)>0,I&&G(H,"overflow")!="visible"&&(A=H.getBoundingClientRect(),I=P>A.left&&q<A.right&&D>A.top-1&&E<A.bottom+1);return I},ft=function(){var m,x,A,H,I,F,U,V,Y,X,Z,et,R=n.elements;if((L=r.loadMode)&&B<8&&(m=R.length)){for(x=0,at++;x<m;x++)if(!(!R[x]||R[x]._lazyRace)){if(!wt||n.prematureUnveil&&n.prematureUnveil(R[x])){rt(R[x]);continue}if((!(V=R[x][c]("data-expand"))||!(F=V*1))&&(F=it),X||(X=!r.expand||r.expand<1?o.clientHeight>500&&o.clientWidth>500?500:370:r.expand,n._defEx=X,Z=X*r.expFactor,et=r.hFac,K=null,it<Z&&B<1&&at>2&&L>2&&!aLine truncated
jQuery.cookie=function(e,o,t){if(o===void 0){var i=null;if(document.cookie&&document.cookie!="")for(var r=document.cookie.split(";"),n=0;n<r.length;n++){var c=jQuery.trim(r[n]);if(c.substring(0,e.length+1)==e+"="){i=decodeURIComponent(c.substring(e.length+1));break}}return i}t=t||{},o===null&&(o="",t.expires=-1);var a="";if(t.expires&&(typeof t.expires=="number"||t.expires.toUTCString)){var l2;typeof t.expires=="number"?(l2=new Date,l2.setTime(l2.getTime()+24*t.expires*60*60*1e3)):l2=t.expires,a="; expires="+l2.toUTCString()}var u=t.path?"; path="+t.path:"",s=t.domain?"; domain="+t.domain:"",m=t.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(o),a,u,s,m].join("")};var lcs={get:function(e){return window.localStorage?localStorage.getItem(e):jQuery.cookie(e)},set:function(e,o){window.localStorage?localStorage[e]=o:jQuery.cookie(e,o)},remove:function(e){window.localStorage?localStorage.removeItem(e):jQuery.cookie(e,"")}};function aksrt__(key){var map=window._win&&window._win.i18n;return map&&Object.prototype.hasOwnProperty.call(map,key)?map[key]:key}function aksrt_is_fatal_error_response(text){return text&&(text.indexOf("Fatal error")>-1||text.indexOf("致命错误")>-1)}function aksrt_sprintf(key){var args=Array.prototype.slice.call(arguments,1),str=aksrt__(key),autoIndex=0;return str.replace(/%(\d+\$)?s/g,function(match,num){var idx=num?parseInt(num,10)-1:autoIndex++;return args[idx]!==void 0&&args[idx]!==null?args[idx]:match})}(function(window2,factory){var lazySizes=factory(window2,window2.document,Date);window2.lazySizes=lazySizes,typeof module=="object"&&module.exports&&(module.exports=lazySizes)})(typeof window!="undefined"?window:{},function(window2,document2,Date2){"use strict";var lazysizes,lazySizesCfg;if((function(){var prop,lazySizesDefaults={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",loadafterClass:"lazyloadafter",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};lazySizesCfg=window2.lazySizesConfig||window2.lazysizesConfig||{};for(prop in lazySizesDefaults)prop in lazySizesCfg||(lazySizesCfg[prop]=lazySizesDefaults[prop])})(),!document2||!document2.getElementsByClassName)return{init:function(){},cfg:lazySizesCfg,noSupport:!0};var docElem=document2.documentElement,supportPicture=window2.HTMLPictureElement,_addEventListener="addEventListener",_getAttribute="getAttribute",addEventListener=window2[_addEventListener].bind(window2),setTimeout2=window2.setTimeout,requestAnimationFrame2=window2.requestAnimationFrame||setTimeout2,requestIdleCallback=window2.requestIdleCallback,regPicture=/^picture$/i,loadEvents=["load","error","lazyincluded","_lazyloaded"],regClassCache={},forEach=Array.prototype.forEach,hasClass=function(ele,cls){return regClassCache[cls]||(regClassCache[cls]=new RegExp("(\\s|^)"+cls+"(\\s|$)")),regClassCache[cls].test(ele[_getAttribute]("class")||"")&&regClassCache[cls]},addClass=function(ele,cls){hasClass(ele,cls)||ele.setAttribute("class",(ele[_getAttribute]("class")||"").trim()+" "+cls)},removeClass=function(ele,cls){var reg2;(reg2=hasClass(ele,cls))&&ele.setAttribute("class",(ele[_getAttribute]("class")||"").replace(reg2," "))},addRemoveLoadEvents=function(dom,fn,add){var action=add?_addEventListener:"removeEventListener";add&&addRemoveLoadEvents(dom,fn),loadEvents.forEach(function(evt){dom[action](evt,fn)})},triggerEvent=function(elem,name,detail,noBubbles,noCancelable){var event=document2.createEvent("Event");return detail||(detail={}),detail.instance=lazysizes,event.initEvent(name,!noBubbles,!noCancelable),event.detail=detail,elem.dispatchEvent(event),event},updatePolyfill=function(el,full){var polyfill;!supportPicture&&(polyfill=window2.picturefill||lazySizesCfg.pf)?(full&&full.src&&!el[_getAttribute]("srcset")&&el.setAttribute("srcset",full.src),polyfill({reevaluate:!0,elements:[el]})):full&&full.src&&(el.src=full.src)},getCSS=function(elem,style){return(getComputedStyle(elem,null)||{})[style]},getWidth=function(elem,parent,width){for(width=width||elem.offsetWidth;width<lazySizesCfg.minSize&&parent&&!elem._lazysizesWidth;)width=parent.offsetWidth,parent=parent.parentNode;return width},rAF=(function(){var running,waiting,firstFns=[],secondFns=[],fns=firstFns,run=function(){var runFns=fns;for(fns=firstFns.length?secondFns:firstFns,running=!0,waiting=!1;runFns.length;)runFns.shift()();running=!1},rafBatch=function(fn,queue){running&&!queue?fn.apply(this,arguments):(fns.push(fn),waiting||(waiting=!0,(document2.hidden?setTimeout2:requestAnimationFrame2)(run)))};return rafBatch._lsFlush=run,rafBatch})(),rAFIt=function(fn,simple){return simple?function(){rAF(fn)}:function(){var that=this,args=arguments;rAF(function(){fn.apply(that,args)})}},throttle2=function(fn){var running,lastTime=0,gDelay=lazySizesCfg.throttleDelay,rICTimeout=laLine truncated