你好,按照你的方法出现这个代码
- // });
- // $(".closex").click(function(){
- // $(".top-tips").remove();
- // });
- //公告
- function gonggao(){
- layer.open({
- type: 1
- ,area: '610px'
- ,title: '堡塔数据维护公告'
- ,shade: 0.6
- ,content: '<div style="padding:20px 30px;font-size:14px;line-height:24px;">\
- <p style="margin-bottom:5px">尊敬的用户:</p>\
- <p style="text-indent:2em;margin-bottom:5px;line-height:24px">您好,宝塔云端数据定于2021年12月19日(周日) 00:00 ~ 09:00 期间进行数据迁移。<span style="color:red">数据维护期间,暂停宝塔所有业务:</span></p>\
- <p>1、暂停宝塔官网登录注册,论坛临时关闭;</p>\
- <p>2、暂停专业版、企业版、付费插件、SSL证书等在线付费产品的购买以及续费;</p>\
- <p>3、暂停一键部署源码;</p>\
- <p style="margin-top:5px;line-height:24px">以上业务在数据迁移完成后恢复正常,如有疑问,联系电话:0769-23030556。 <br/>由此带来的不便,敬请谅解。</p></div>'
- });
- }
- //gonggao();
- $(".top-tips a").click(function(){
- //gonggao();
- })
- var tips = -1
- $('.contact-service').hover(function () {
- var that = $(this)
- index = layer.tips('<div class="contact-qrcode"></div>', that, {
- time: 0,
- area: 'auto',
- tips: [2, '#fff'],
- success: function ($layer) {
- var top = parseFloat($layer.css('top'))
- top -= 50;
- $layer.css('top', top + 'px')
- $layer.find('.layui-layer-TipsG').hide()
- $layer.find('.layui-layer-content').css('padding', '0')
- }
- })
- }, function () {
- if (index != -1) layer.close(index)
- })
- })();
- </script>
- </html>[root@instance-gs1rjsm8 ~]#
复制代码 |