diff --git a/route/static/app/site.js b/route/static/app/site.js index ff72dd34d..9a3bacabe 100755 --- a/route/static/app/site.js +++ b/route/static/app/site.js @@ -1021,7 +1021,7 @@ function webEdit(id,website,endTime,addtime){ layer.open({ type: 1, - area: '640px', + area: '700px', title: '站点修改['+website+'] -- 添加时间['+addtime+']', closeBtn: 1, shift: 0, @@ -1041,18 +1041,19 @@ function webEdit(id,website,endTime,addtime){ $(this).hide(); $('#newdomain').focus(); }); + $('#newdomain').focus(function() { $(".placeholder").hide(); }); $('#newdomain').blur(function() { - if($(this).val().length==0){ + if($(this).val().length == 0){ $(".placeholder").show(); } }); + //切换 - var $p = $(".bt-w-menu p"); - $p.click(function(){ + $(".bt-w-menu p").click(function(){ $(this).addClass("bgw").siblings().removeClass("bgw"); }); } @@ -1067,7 +1068,7 @@ function getSiteLogs(siteName){ logs.msg = ''; } if (logs.msg == '') logs.msg = '当前没有日志.'; - var phpCon = ''; + var phpCon = ''; $("#webedit-con").html(phpCon); var ob = document.getElementById('error_log'); ob.scrollTop = ob.scrollHeight; @@ -1084,7 +1085,7 @@ function getSiteErrorLogs(siteName){ logs.msg = ''; } if (logs.msg == '') logs.msg = '当前没有日志.'; - var phpCon = ''; + var phpCon = ''; $("#webedit-con").html(phpCon); var ob = document.getElementById('error_log'); ob.scrollTop = ob.scrollHeight; @@ -1870,22 +1871,23 @@ function setCertSsl(certName,siteName){ //ssl function setSSL(id,siteName){ - var mBody = '
\ - Let\'s Encrypt\ - 其他证书\ - 关闭\ + var sslHtml = '

温馨提示:当前站点未开启SSL证书访问,站点访问可能存在风险。

\ +
\ + 当前证书 - [未部署SSL]\ + Let\'s Encrypt\ + ACME\ 证书夹' + '
\ - 强制HTTPS\ + \
' - + '
' - - $("#webedit-con").html(mBody); - opSSL('lets',id,siteName); + + '
'; + // 关闭\ + $("#webedit-con").html(sslHtml); + opSSL('now',id,siteName); $(".tab-nav span").click(function(){ $(this).addClass("on").siblings().removeClass("on"); }); @@ -1973,6 +1975,7 @@ function httpToHttps(siteName){ //SSL function opSSL(type,id,siteName){ + var lets = '
' + '
验证方式
\
' @@ -1987,6 +1990,13 @@ function opSSL(type,id,siteName){ + '
'; var other = '
密钥(KEY)
' + + '
证书(PEM格式)
' + + '
' + + ''; + + var now = '
密钥(KEY)
' + '
证书(PEM格式)
' + '
' + '