|
@@ -128,9 +128,20 @@ const delCookie = function(name){
|
|
|
document.cookie= name + "="+cval+";expires="+exp.toGMTString();
|
|
|
};
|
|
|
|
|
|
+//弹窗关闭事件
|
|
|
$(".modal .close").click(function(){
|
|
|
$(".modal").hide();
|
|
|
});
|
|
|
+//计算容器高度
|
|
|
+function setBoxHeight(){
|
|
|
+ const ht=window.innerHeight;
|
|
|
+ $(".main-part").height((ht-50)+'px');
|
|
|
+ $(".content-ht").height((ht-116)+"px");
|
|
|
+}
|
|
|
+setBoxHeight();
|
|
|
+$(window).resize(function(){
|
|
|
+ setBoxHeight();
|
|
|
+});
|
|
|
|
|
|
module.exports = {
|
|
|
pageMap,
|