From 56c2616d20a5d1de2120f6efe991fb0637704969 Mon Sep 17 00:00:00 2001 From: lichaojun Date: Tue, 27 Jan 2026 20:28:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8B=96=E6=8B=BD=E5=B8=83=E5=B1=80-?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demoHtml/flex/css/index.css | 8 ++++++++ demoHtml/flex/css/list.css | 10 ++++++++++ demoHtml/flex/js/i18n.js | 2 ++ demoHtml/flex/js/index.js | 6 +++++- demoHtml/flex/js/list.js | 1 + 5 files changed, 26 insertions(+), 1 deletion(-) diff --git a/demoHtml/flex/css/index.css b/demoHtml/flex/css/index.css index bc46784..86b3617 100644 --- a/demoHtml/flex/css/index.css +++ b/demoHtml/flex/css/index.css @@ -192,6 +192,14 @@ html { box-shadow: unset; } +#go-back .tab-button.active { + background: #fff !important; + color: #000 !important; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); + font-weight: bold; + font-size: 18px; +} + .tab-button { padding: 8px 15px; border: none; diff --git a/demoHtml/flex/css/list.css b/demoHtml/flex/css/list.css index 948ce78..dd119a6 100644 --- a/demoHtml/flex/css/list.css +++ b/demoHtml/flex/css/list.css @@ -82,6 +82,16 @@ padding: 0 15px 10px; /* 调整子项内容间距 */ font-size: 12px; color: #999; + display: flex; + justify-content: space-between; + align-items: center; +} + +.list-item-date > span:nth-child(2) { + background: #667eea; + color: #fff; + padding: 2px 5px; + border-radius: 5px; } .add-btn { diff --git a/demoHtml/flex/js/i18n.js b/demoHtml/flex/js/i18n.js index 0e21d9e..28d1bb7 100644 --- a/demoHtml/flex/js/i18n.js +++ b/demoHtml/flex/js/i18n.js @@ -59,6 +59,7 @@ var userLangConfig = { edit: '编辑', apply: '应用', add: '新建模版', + apply_text: '使用中', }, }, en_US: { @@ -125,6 +126,7 @@ var userLangConfig = { edit: 'edit', apply: 'apply', add: 'add template', + apply_text: 'using', }, }, }; diff --git a/demoHtml/flex/js/index.js b/demoHtml/flex/js/index.js index c26f1fb..ace7f38 100644 --- a/demoHtml/flex/js/index.js +++ b/demoHtml/flex/js/index.js @@ -582,7 +582,11 @@ }); $('#go-back .tab-button').on('click', function () { - window.history.back(); + const { confirm_del, tips } = userLangConfig[locale].base; + layer.confirm(confirm_del, { icon: 3, title: tips }, function (index) { + layer.close(index); + window.history.back(); + }); }); }; diff --git a/demoHtml/flex/js/list.js b/demoHtml/flex/js/list.js index bfbc87e..b018c9a 100644 --- a/demoHtml/flex/js/list.js +++ b/demoHtml/flex/js/list.js @@ -36,6 +36,7 @@
${userLangConfig[locale].list.update_time}:${item.createTime} + ${item.type == 1 ? '' + userLangConfig[locale].list.apply_text + '' : ''}
`;