src/main/webapp/views/index.html
@@ -168,6 +168,20 @@ if (res.code == 200) { let days = res.data if (days <= 30) { // 弹出一个简单的提示框 layer.alert(` <div style="font-size: 100px; text-align: center; line-height: 1.8; color: red"> 许可证有效期为:${days} </div> `, { area: ['1000px', '800px'], btn: '确定', btnAlign: 'c', // 按钮居中(默认是右对齐) yes: function(index) { layer.msg('请联系立库公司商务续约'); layer.close(index); } }); $("#licenseShow").show() $("#licenseDays").html(days) }