From c1d1be8e273eec54fd1331f253a642f1b8f0d7fb Mon Sep 17 00:00:00 2001 From: "hangyu.tao" Date: Wed, 28 Jan 2026 20:48:50 +0800 Subject: [PATCH] feat_data --- frontend/css/style.css | 45 ++++ frontend/index.html | 61 ++++- frontend/js/main.js | 226 +++++++++++++----- frontend/js/trial-periods-page.js | 135 ++++++++++- frontend/js/trial-periods.js | 25 +- internal/handlers/trial_period_handler.go | 13 +- .../storage/mysql_trial_period_storage.go | 29 ++- models/trial_period.go | 37 +-- tools/add_intended_product_column.go | 74 ++++++ 9 files changed, 537 insertions(+), 108 deletions(-) create mode 100644 tools/add_intended_product_column.go diff --git a/frontend/css/style.css b/frontend/css/style.css index 1ac27ec..4f5399e 100644 --- a/frontend/css/style.css +++ b/frontend/css/style.css @@ -615,6 +615,51 @@ body { margin-top: 20px; } +/* Checkbox Group Styles */ +.checkbox-group { + display: flex; + flex-wrap: wrap; + gap: 12px; + padding: 10px 0; +} + +.checkbox-label { + display: flex; + align-items: center; + gap: 8px; + cursor: pointer; + padding: 8px 14px; + border: 1px solid var(--border-color); + border-radius: 6px; + transition: all 0.2s ease; + background-color: var(--white); + font-size: 0.9rem; +} + +.checkbox-label:hover { + border-color: var(--primary-orange); + background-color: rgba(255, 107, 53, 0.05); +} + +.checkbox-label input[type="checkbox"] { + width: 16px; + height: 16px; + margin: 0; + accent-color: var(--primary-orange); + cursor: pointer; +} + +.checkbox-label input[type="checkbox"]:checked+span { + color: var(--primary-orange); + font-weight: 500; +} + +.checkbox-label:has(input[type="checkbox"]:checked) { + border-color: var(--primary-orange); + background-color: rgba(255, 107, 53, 0.1); +} + + /* File Upload */ .file-upload { position: relative; diff --git a/frontend/index.html b/frontend/index.html index e76bf65..e263026 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -298,7 +298,7 @@
@@ -328,6 +328,7 @@ 客户名称 来源 + 意向产品 状态 开始时间 结束时间 @@ -438,8 +439,6 @@ -
@@ -455,8 +454,6 @@ -
@@ -681,7 +678,10 @@ + +
@@ -792,7 +792,10 @@ + +
@@ -825,7 +828,7 @@