Discuz.Web/javascript/template_goodsadmin.js
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/****************************************商品类型层显示**************************************/
function boxShow(e)
{ //显示
if($(e)==null){return;}
boxLayout(e);
window.onresize = function(){boxLayout(e);} //改变窗体重新调整位置
window.onscroll = function(){boxLayout(e);} //滚动窗体重新调整位置
}
function boxRemove(e)
{ //移除
window.onscroll = null;
window.onresize = null;
document.getElementById('BOX_overlay').style.display="none";
document.getElementById(e).style.display="none";
}
function boxLayout(e)
{ //调整位置
var a = $(e);
if ($('BOX_overlay')==null){ //判断是否新建遮掩层
var overlay = $("div");
overlay.setAttribute('id','BOX_overlay');
overlay.onclick=function(){BOX_remove(e);};
a.parentNode.appendChild(overlay);
}
//取客户端左上坐标,宽,高
var scrollLeft = (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
var scrollTop = (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
var clientWidth = document.documentElement.clientWidth;
var clientHeight = document.documentElement.clientHeight;
var bo = $('BOX_overlay');
bo.style.left = scrollLeft+'px';
bo.style.top = scrollTop+'px';
bo.style.width = clientWidth+'px';
bo.style.height = clientHeight+'px';
bo.style.display="";
//Popup窗口定位
a.style.position = 'absolute';
a.style.zIndex=101;
a.style.display="";
a.style.left = scrollLeft+((clientWidth-a.offsetWidth)/2)+'px';
a.style.top = scrollTop+((clientHeight-a.offsetHeight)/2)+'px';
}
/********************************************商品类型绑定*****************************************/
//所有的类目,结构说明:
// id:商品类型id,
// pid:父ID(关联categoryid),
// layer:级别,
// pidlist:父ID串,
// name:商品类型名称,
// child:有无子结点]
//详情见javascript/goodscategories.js
//临时商品类型值
var tempgoodstypeinfo = "";
后面还有 191 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
