diff --git a/backend/src/main/java/com/example/demo/notice/NoticeStatusConverter.java b/backend/src/main/java/com/example/demo/notice/NoticeStatusConverter.java index cfcdf07..e968d4c 100644 --- a/backend/src/main/java/com/example/demo/notice/NoticeStatusConverter.java +++ b/backend/src/main/java/com/example/demo/notice/NoticeStatusConverter.java @@ -8,22 +8,31 @@ public class NoticeStatusConverter implements AttributeConverter "draft"; - case PUBLISHED -> "published"; - case OFFLINE -> "offline"; - }; + switch (attribute) { + case DRAFT: + return "draft"; + case PUBLISHED: + return "published"; + case OFFLINE: + return "offline"; + default: + return "published"; + } } @Override public NoticeStatus convertToEntityAttribute(String dbData) { if (dbData == null) return null; - return switch (dbData) { - case "draft" -> NoticeStatus.DRAFT; - case "published" -> NoticeStatus.PUBLISHED; - case "offline" -> NoticeStatus.OFFLINE; - default -> NoticeStatus.PUBLISHED; - }; + switch (dbData) { + case "draft": + return NoticeStatus.DRAFT; + case "published": + return NoticeStatus.PUBLISHED; + case "offline": + return NoticeStatus.OFFLINE; + default: + return NoticeStatus.PUBLISHED; + } } } diff --git a/frontend/App.vue b/frontend/App.vue index 8c2b732..ae1bbb1 100644 --- a/frontend/App.vue +++ b/frontend/App.vue @@ -12,6 +12,50 @@ } - diff --git a/frontend/pages.json b/frontend/pages.json index 3a49faa..c61628a 100644 --- a/frontend/pages.json +++ b/frontend/pages.json @@ -124,13 +124,14 @@ "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "五金配件管家", - "navigationBarBackgroundColor": "#F8F8F8", - "backgroundColor": "#F8F8F8" + "navigationBarBackgroundColor": "#FFFFFF", + "backgroundColor": "#FFFFFF", + "backgroundTextStyle": "dark" }, "tabBar": { - "color": "#8a7535", - "selectedColor": "#B4880F", - "backgroundColor": "#ffffff", + "color": "#444444", + "selectedColor": "#4C8DFF", + "backgroundColor": "#FFFFFF", "borderStyle": "black", "list": [ { "pagePath": "pages/index/index", "text": "首页", "iconPath": "static/logo.png", "selectedIconPath": "static/logo.png" }, diff --git a/frontend/pages/account/form.vue b/frontend/pages/account/form.vue index ff50443..12ef58c 100644 --- a/frontend/pages/account/form.vue +++ b/frontend/pages/account/form.vue @@ -57,18 +57,18 @@ export default { } - diff --git a/frontend/pages/account/ledger.vue b/frontend/pages/account/ledger.vue index 8ea461f..fdf0c37 100644 --- a/frontend/pages/account/ledger.vue +++ b/frontend/pages/account/ledger.vue @@ -64,24 +64,24 @@ export default { } - diff --git a/frontend/pages/account/select.vue b/frontend/pages/account/select.vue index d7363e8..a86f2b8 100644 --- a/frontend/pages/account/select.vue +++ b/frontend/pages/account/select.vue @@ -41,13 +41,13 @@ } - diff --git a/frontend/pages/customer/detail.vue b/frontend/pages/customer/detail.vue index 02595bc..3e6076d 100644 --- a/frontend/pages/customer/detail.vue +++ b/frontend/pages/customer/detail.vue @@ -69,18 +69,18 @@ export default { } - diff --git a/frontend/pages/customer/form.vue b/frontend/pages/customer/form.vue index b1a7a6a..11d949c 100644 --- a/frontend/pages/customer/form.vue +++ b/frontend/pages/customer/form.vue @@ -47,14 +47,14 @@ export default { } - diff --git a/frontend/pages/customer/select.vue b/frontend/pages/customer/select.vue index a014e1f..9c28e06 100644 --- a/frontend/pages/customer/select.vue +++ b/frontend/pages/customer/select.vue @@ -51,16 +51,16 @@ } - diff --git a/frontend/pages/detail/index.vue b/frontend/pages/detail/index.vue index 65f4241..f80ee68 100644 --- a/frontend/pages/detail/index.vue +++ b/frontend/pages/detail/index.vue @@ -132,31 +132,31 @@ export default { } - diff --git a/frontend/pages/index/index.vue b/frontend/pages/index/index.vue index 9491658..68bd073 100644 --- a/frontend/pages/index/index.vue +++ b/frontend/pages/index/index.vue @@ -1,6 +1,5 @@