From 94405ed24bdbe9ea4b1da6c93bdc04037943fb56 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期二, 22 七月 2025 09:24:46 +0800
Subject: [PATCH] 新增倒计时弹窗
---
src/main/webapp/views/index.html | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 4938a61..f29622c 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -169,9 +169,18 @@
let days = res.data
if (days <= 30) {
// 寮瑰嚭涓�涓畝鍗曠殑鎻愮ず妗�
- layer.alert('璁稿彲璇佹湁鏁堟湡涓猴細'+days, function(){
- // 鐐瑰嚮纭鍚庢墽琛岀殑鍥炶皟鍑芥暟
- layer.msg('璇疯仈绯荤珛搴撳叕鍙稿晢鍔$画绾�');
+ 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)
--
Gitblit v1.9.1