@liujitcn/kratos-uni-app-system 0.0.80 → 0.0.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -230,7 +230,6 @@ var systemPages = {
230
230
  "pages/my/my": {
231
231
  style: {
232
232
  navigationStyle: "custom",
233
- navigationBarTextStyle: "white",
234
233
  navigationBarTitleText: ""
235
234
  }
236
235
  },
@@ -246,7 +245,6 @@ var systemPages = {
246
245
  "pagesMember/profile/profile": {
247
246
  style: {
248
247
  navigationStyle: "custom",
249
- navigationBarTextStyle: "white",
250
248
  navigationBarTitleText: ""
251
249
  }
252
250
  },
@@ -362,10 +360,13 @@ var zh_CN_default = {
362
360
  "system.settings.ai_description": "\u5E2E\u4F60\u6574\u7406\u4FE1\u606F\u3001\u56DE\u7B54\u95EE\u9898\u5E76\u5904\u7406\u65E5\u5E38\u4EFB\u52A1",
363
361
  "system.settings.ai_title": "\u667A\u80FD\u52A9\u624B",
364
362
  "system.settings.go_ask": "\u53BB\u63D0\u95EE",
365
- "system.notification.title": "\u6D88\u606F\u4E2D\u5FC3",
363
+ "system.notification.title": "\u6D88\u606F",
366
364
  "system.notification.sender.system": "\u7CFB\u7EDF",
367
365
  "system.notification.description": "\u67E5\u770B\u7CFB\u7EDF\u901A\u77E5\u548C\u4E1A\u52A1\u6D88\u606F",
368
366
  "system.notification.empty": "\u6682\u65E0\u6D88\u606F",
367
+ "system.notification.empty_inbox_hint": "\u65B0\u6D88\u606F\u5C06\u5728\u6B64\u663E\u793A",
368
+ "system.notification.empty_unread_hint": "\u5168\u90E8\u6D88\u606F\u5747\u5DF2\u8BFB\u5B8C",
369
+ "system.notification.empty_archived_hint": "\u5F52\u6863\u7684\u6D88\u606F\u5C06\u5728\u6B64\u663E\u793A",
369
370
  "system.notification.action.view_all": "\u67E5\u770B\u5168\u90E8",
370
371
  "system.notification.view.inbox": "\u5168\u90E8",
371
372
  "system.notification.view.unread": "\u672A\u8BFB",
@@ -489,10 +490,13 @@ var en_US_default = {
489
490
  "system.settings.ai_description": "Organize information, answer questions, and handle everyday tasks",
490
491
  "system.settings.ai_title": "AI Assistant",
491
492
  "system.settings.go_ask": "Ask now",
492
- "system.notification.title": "Message Center",
493
+ "system.notification.title": "Messages",
493
494
  "system.notification.sender.system": "System",
494
495
  "system.notification.description": "View system notifications and business messages",
495
496
  "system.notification.empty": "No messages",
497
+ "system.notification.empty_inbox_hint": "New messages will appear here",
498
+ "system.notification.empty_unread_hint": "You're all caught up",
499
+ "system.notification.empty_archived_hint": "Archived messages will appear here",
496
500
  "system.notification.action.view_all": "View all",
497
501
  "system.notification.view.inbox": "All",
498
502
  "system.notification.view.unread": "Unread",
@@ -616,10 +620,13 @@ var ja_JP_default = {
616
620
  "system.settings.ai_description": "\u306F\u3001\u60C5\u5831\u3092\u6574\u7406\u3057\u3001\u8CEA\u554F\u306B\u7B54\u3048\u3001\u65E5\u5E38\u696D\u52D9\u3092\u51E6\u7406\u3059\u308B\u306E\u306B\u5F79\u7ACB\u3061\u307E\u3059",
617
621
  "system.settings.ai_title": "\u30A4\u30F3\u30C6\u30EA\u30B8\u30A7\u30F3\u30C8 \u30A2\u30B7\u30B9\u30BF\u30F3\u30C8",
618
622
  "system.settings.go_ask": "\u8CEA\u554F\u3057\u3066\u307F\u3088\u3046",
619
- "system.notification.title": "\u30E1\u30C3\u30BB\u30FC\u30B8\u30BB\u30F3\u30BF\u30FC",
623
+ "system.notification.title": "\u30E1\u30C3\u30BB\u30FC\u30B8",
620
624
  "system.notification.sender.system": "\u30B7\u30B9\u30C6\u30E0",
621
625
  "system.notification.description": "\u30B7\u30B9\u30C6\u30E0\u901A\u77E5\u3068\u696D\u52D9\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u78BA\u8A8D",
622
626
  "system.notification.empty": "\u30E1\u30C3\u30BB\u30FC\u30B8\u306F\u3042\u308A\u307E\u305B\u3093",
627
+ "system.notification.empty_inbox_hint": "\u65B0\u3057\u3044\u30E1\u30C3\u30BB\u30FC\u30B8\u306F\u3053\u3053\u306B\u8868\u793A\u3055\u308C\u307E\u3059",
628
+ "system.notification.empty_unread_hint": "\u3059\u3079\u3066\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u65E2\u8AAD\u306B\u3057\u307E\u3057\u305F",
629
+ "system.notification.empty_archived_hint": "\u30A2\u30FC\u30AB\u30A4\u30D6\u6E08\u307F\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u306F\u3053\u3053\u306B\u8868\u793A\u3055\u308C\u307E\u3059",
623
630
  "system.notification.action.view_all": "\u3059\u3079\u3066\u8868\u793A",
624
631
  "system.notification.view.inbox": "\u3059\u3079\u3066",
625
632
  "system.notification.view.unread": "\u672A\u8AAD",
@@ -743,10 +750,13 @@ var zh_TW_default = {
743
750
  "system.settings.ai_description": "\u5E6B\u4F60\u6574\u7406\u8CC7\u8A0A\u3001\u56DE\u7B54\u554F\u984C\u4E26\u8655\u7406\u65E5\u5E38\u4EFB\u52D9",
744
751
  "system.settings.ai_title": "\u667A\u6167\u52A9\u624B",
745
752
  "system.settings.go_ask": "\u53BB\u63D0\u554F",
746
- "system.notification.title": "\u6D88\u606F\u4E2D\u5FC3",
753
+ "system.notification.title": "\u6D88\u606F",
747
754
  "system.notification.sender.system": "\u7CFB\u7D71",
748
755
  "system.notification.description": "\u67E5\u770B\u7CFB\u7D71\u901A\u77E5\u548C\u696D\u52D9\u6D88\u606F",
749
756
  "system.notification.empty": "\u66AB\u7121\u6D88\u606F",
757
+ "system.notification.empty_inbox_hint": "\u65B0\u8A0A\u606F\u5C07\u5728\u6B64\u986F\u793A",
758
+ "system.notification.empty_unread_hint": "\u5168\u90E8\u8A0A\u606F\u5747\u5DF2\u8B80\u5B8C",
759
+ "system.notification.empty_archived_hint": "\u5C01\u5B58\u7684\u8A0A\u606F\u5C07\u5728\u6B64\u986F\u793A",
750
760
  "system.notification.action.view_all": "\u67E5\u770B\u5168\u90E8",
751
761
  "system.notification.view.inbox": "\u5168\u90E8",
752
762
  "system.notification.view.unread": "\u672A\u8B80",
package/dist/module.mjs CHANGED
@@ -6,7 +6,6 @@ var systemPages = {
6
6
  "pages/my/my": {
7
7
  style: {
8
8
  navigationStyle: "custom",
9
- navigationBarTextStyle: "white",
10
9
  navigationBarTitleText: ""
11
10
  }
12
11
  },
@@ -22,7 +21,6 @@ var systemPages = {
22
21
  "pagesMember/profile/profile": {
23
22
  style: {
24
23
  navigationStyle: "custom",
25
- navigationBarTextStyle: "white",
26
24
  navigationBarTitleText: ""
27
25
  }
28
26
  },
@@ -138,10 +136,13 @@ var zh_CN_default = {
138
136
  "system.settings.ai_description": "\u5E2E\u4F60\u6574\u7406\u4FE1\u606F\u3001\u56DE\u7B54\u95EE\u9898\u5E76\u5904\u7406\u65E5\u5E38\u4EFB\u52A1",
139
137
  "system.settings.ai_title": "\u667A\u80FD\u52A9\u624B",
140
138
  "system.settings.go_ask": "\u53BB\u63D0\u95EE",
141
- "system.notification.title": "\u6D88\u606F\u4E2D\u5FC3",
139
+ "system.notification.title": "\u6D88\u606F",
142
140
  "system.notification.sender.system": "\u7CFB\u7EDF",
143
141
  "system.notification.description": "\u67E5\u770B\u7CFB\u7EDF\u901A\u77E5\u548C\u4E1A\u52A1\u6D88\u606F",
144
142
  "system.notification.empty": "\u6682\u65E0\u6D88\u606F",
143
+ "system.notification.empty_inbox_hint": "\u65B0\u6D88\u606F\u5C06\u5728\u6B64\u663E\u793A",
144
+ "system.notification.empty_unread_hint": "\u5168\u90E8\u6D88\u606F\u5747\u5DF2\u8BFB\u5B8C",
145
+ "system.notification.empty_archived_hint": "\u5F52\u6863\u7684\u6D88\u606F\u5C06\u5728\u6B64\u663E\u793A",
145
146
  "system.notification.action.view_all": "\u67E5\u770B\u5168\u90E8",
146
147
  "system.notification.view.inbox": "\u5168\u90E8",
147
148
  "system.notification.view.unread": "\u672A\u8BFB",
@@ -265,10 +266,13 @@ var en_US_default = {
265
266
  "system.settings.ai_description": "Organize information, answer questions, and handle everyday tasks",
266
267
  "system.settings.ai_title": "AI Assistant",
267
268
  "system.settings.go_ask": "Ask now",
268
- "system.notification.title": "Message Center",
269
+ "system.notification.title": "Messages",
269
270
  "system.notification.sender.system": "System",
270
271
  "system.notification.description": "View system notifications and business messages",
271
272
  "system.notification.empty": "No messages",
273
+ "system.notification.empty_inbox_hint": "New messages will appear here",
274
+ "system.notification.empty_unread_hint": "You're all caught up",
275
+ "system.notification.empty_archived_hint": "Archived messages will appear here",
272
276
  "system.notification.action.view_all": "View all",
273
277
  "system.notification.view.inbox": "All",
274
278
  "system.notification.view.unread": "Unread",
@@ -392,10 +396,13 @@ var ja_JP_default = {
392
396
  "system.settings.ai_description": "\u306F\u3001\u60C5\u5831\u3092\u6574\u7406\u3057\u3001\u8CEA\u554F\u306B\u7B54\u3048\u3001\u65E5\u5E38\u696D\u52D9\u3092\u51E6\u7406\u3059\u308B\u306E\u306B\u5F79\u7ACB\u3061\u307E\u3059",
393
397
  "system.settings.ai_title": "\u30A4\u30F3\u30C6\u30EA\u30B8\u30A7\u30F3\u30C8 \u30A2\u30B7\u30B9\u30BF\u30F3\u30C8",
394
398
  "system.settings.go_ask": "\u8CEA\u554F\u3057\u3066\u307F\u3088\u3046",
395
- "system.notification.title": "\u30E1\u30C3\u30BB\u30FC\u30B8\u30BB\u30F3\u30BF\u30FC",
399
+ "system.notification.title": "\u30E1\u30C3\u30BB\u30FC\u30B8",
396
400
  "system.notification.sender.system": "\u30B7\u30B9\u30C6\u30E0",
397
401
  "system.notification.description": "\u30B7\u30B9\u30C6\u30E0\u901A\u77E5\u3068\u696D\u52D9\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u78BA\u8A8D",
398
402
  "system.notification.empty": "\u30E1\u30C3\u30BB\u30FC\u30B8\u306F\u3042\u308A\u307E\u305B\u3093",
403
+ "system.notification.empty_inbox_hint": "\u65B0\u3057\u3044\u30E1\u30C3\u30BB\u30FC\u30B8\u306F\u3053\u3053\u306B\u8868\u793A\u3055\u308C\u307E\u3059",
404
+ "system.notification.empty_unread_hint": "\u3059\u3079\u3066\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u65E2\u8AAD\u306B\u3057\u307E\u3057\u305F",
405
+ "system.notification.empty_archived_hint": "\u30A2\u30FC\u30AB\u30A4\u30D6\u6E08\u307F\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u306F\u3053\u3053\u306B\u8868\u793A\u3055\u308C\u307E\u3059",
399
406
  "system.notification.action.view_all": "\u3059\u3079\u3066\u8868\u793A",
400
407
  "system.notification.view.inbox": "\u3059\u3079\u3066",
401
408
  "system.notification.view.unread": "\u672A\u8AAD",
@@ -519,10 +526,13 @@ var zh_TW_default = {
519
526
  "system.settings.ai_description": "\u5E6B\u4F60\u6574\u7406\u8CC7\u8A0A\u3001\u56DE\u7B54\u554F\u984C\u4E26\u8655\u7406\u65E5\u5E38\u4EFB\u52D9",
520
527
  "system.settings.ai_title": "\u667A\u6167\u52A9\u624B",
521
528
  "system.settings.go_ask": "\u53BB\u63D0\u554F",
522
- "system.notification.title": "\u6D88\u606F\u4E2D\u5FC3",
529
+ "system.notification.title": "\u6D88\u606F",
523
530
  "system.notification.sender.system": "\u7CFB\u7D71",
524
531
  "system.notification.description": "\u67E5\u770B\u7CFB\u7D71\u901A\u77E5\u548C\u696D\u52D9\u6D88\u606F",
525
532
  "system.notification.empty": "\u66AB\u7121\u6D88\u606F",
533
+ "system.notification.empty_inbox_hint": "\u65B0\u8A0A\u606F\u5C07\u5728\u6B64\u986F\u793A",
534
+ "system.notification.empty_unread_hint": "\u5168\u90E8\u8A0A\u606F\u5747\u5DF2\u8B80\u5B8C",
535
+ "system.notification.empty_archived_hint": "\u5C01\u5B58\u7684\u8A0A\u606F\u5C07\u5728\u6B64\u986F\u793A",
526
536
  "system.notification.action.view_all": "\u67E5\u770B\u5168\u90E8",
527
537
  "system.notification.view.inbox": "\u5168\u90E8",
528
538
  "system.notification.view.unread": "\u672A\u8B80",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "type": "git",
8
8
  "url": "git@github.com:liujitcn/kratos-admin.git"
9
9
  },
10
- "version": "0.0.80",
10
+ "version": "0.0.82",
11
11
  "type": "module",
12
12
  "files": [
13
13
  "dist",
@@ -35,7 +35,7 @@
35
35
  "@dcloudio/uni-app": "3.0.0-5010520260709002",
36
36
  "@dcloudio/uni-ui": "^1.4.28",
37
37
  "vue": "^3.4.21",
38
- "@liujitcn/kratos-uni-app-core": "^0.0.80"
38
+ "@liujitcn/kratos-uni-app-core": "^0.0.82"
39
39
  },
40
40
  "devDependencies": {
41
41
  "esbuild": "^0.20.2",
@@ -98,10 +98,13 @@
98
98
  "system.settings.ai_description": "Organize information, answer questions, and handle everyday tasks",
99
99
  "system.settings.ai_title": "AI Assistant",
100
100
  "system.settings.go_ask": "Ask now",
101
- "system.notification.title": "Message Center",
101
+ "system.notification.title": "Messages",
102
102
  "system.notification.sender.system": "System",
103
103
  "system.notification.description": "View system notifications and business messages",
104
104
  "system.notification.empty": "No messages",
105
+ "system.notification.empty_inbox_hint": "New messages will appear here",
106
+ "system.notification.empty_unread_hint": "You're all caught up",
107
+ "system.notification.empty_archived_hint": "Archived messages will appear here",
105
108
  "system.notification.action.view_all": "View all",
106
109
  "system.notification.view.inbox": "All",
107
110
  "system.notification.view.unread": "Unread",
@@ -98,10 +98,13 @@
98
98
  "system.settings.ai_description": "は、情報を整理し、質問に答え、日常業務を処理するのに役立ちます",
99
99
  "system.settings.ai_title": "インテリジェント アシスタント",
100
100
  "system.settings.go_ask": "質問してみよう",
101
- "system.notification.title": "メッセージセンター",
101
+ "system.notification.title": "メッセージ",
102
102
  "system.notification.sender.system": "システム",
103
103
  "system.notification.description": "システム通知と業務メッセージを確認",
104
104
  "system.notification.empty": "メッセージはありません",
105
+ "system.notification.empty_inbox_hint": "新しいメッセージはここに表示されます",
106
+ "system.notification.empty_unread_hint": "すべてのメッセージを既読にしました",
107
+ "system.notification.empty_archived_hint": "アーカイブ済みのメッセージはここに表示されます",
105
108
  "system.notification.action.view_all": "すべて表示",
106
109
  "system.notification.view.inbox": "すべて",
107
110
  "system.notification.view.unread": "未読",
@@ -98,10 +98,13 @@
98
98
  "system.settings.ai_description": "帮你整理信息、回答问题并处理日常任务",
99
99
  "system.settings.ai_title": "智能助手",
100
100
  "system.settings.go_ask": "去提问",
101
- "system.notification.title": "消息中心",
101
+ "system.notification.title": "消息",
102
102
  "system.notification.sender.system": "系统",
103
103
  "system.notification.description": "查看系统通知和业务消息",
104
104
  "system.notification.empty": "暂无消息",
105
+ "system.notification.empty_inbox_hint": "新消息将在此显示",
106
+ "system.notification.empty_unread_hint": "全部消息均已读完",
107
+ "system.notification.empty_archived_hint": "归档的消息将在此显示",
105
108
  "system.notification.action.view_all": "查看全部",
106
109
  "system.notification.view.inbox": "全部",
107
110
  "system.notification.view.unread": "未读",
@@ -98,10 +98,13 @@
98
98
  "system.settings.ai_description": "幫你整理資訊、回答問題並處理日常任務",
99
99
  "system.settings.ai_title": "智慧助手",
100
100
  "system.settings.go_ask": "去提問",
101
- "system.notification.title": "消息中心",
101
+ "system.notification.title": "消息",
102
102
  "system.notification.sender.system": "系統",
103
103
  "system.notification.description": "查看系統通知和業務消息",
104
104
  "system.notification.empty": "暫無消息",
105
+ "system.notification.empty_inbox_hint": "新訊息將在此顯示",
106
+ "system.notification.empty_unread_hint": "全部訊息均已讀完",
107
+ "system.notification.empty_archived_hint": "封存的訊息將在此顯示",
105
108
  "system.notification.action.view_all": "查看全部",
106
109
  "system.notification.view.inbox": "全部",
107
110
  "system.notification.view.unread": "未讀",
package/src/pages.ts CHANGED
@@ -5,7 +5,6 @@ export const systemPages: Record<string, KratosAppPageConfig> = {
5
5
  'pages/my/my': {
6
6
  style: {
7
7
  navigationStyle: 'custom',
8
- navigationBarTextStyle: 'white',
9
8
  navigationBarTitleText: '',
10
9
  },
11
10
  },
@@ -21,7 +20,6 @@ export const systemPages: Record<string, KratosAppPageConfig> = {
21
20
  'pagesMember/profile/profile': {
22
21
  style: {
23
22
  navigationStyle: 'custom',
24
- navigationBarTextStyle: 'white',
25
23
  navigationBarTitleText: '',
26
24
  },
27
25
  },
@@ -24,7 +24,7 @@ const avatarText = computed(() => (profile.value?.nick_name || 'U').slice(0, 1))
24
24
  /** 设计稿齿轮线稿,随主题取色的 data URI,替代 CSS 手绘图标。 */
25
25
  const gearIcon = computed(() => {
26
26
  const color = themeStore.theme === 'light' ? '#102232' : '#e9f4f6'
27
- const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="${color}" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.6 1.6 0 0 0 .3 1.8 2 2 0 1 1-2.8 2.8 1.6 1.6 0 0 0-2.7 1.1 2 2 0 1 1-4 0 1.6 1.6 0 0 0-2.6-1.1 2 2 0 1 1-2.8-2.8A1.6 1.6 0 0 0 3 13.9a2 2 0 1 1 0-4 1.6 1.6 0 0 0 1.5-2.7 2 2 0 1 1 2.8-2.8A1.6 1.6 0 0 0 10 4.6a2 2 0 1 1 4 0 1.6 1.6 0 0 0 2.7.6 2 2 0 1 1 2.8 2.8 1.6 1.6 0 0 0-.1 2.6"/></svg>`
27
+ const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="${color}" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.6 1.6 0 0 0 .3 1.8 2 2 0 1 1-2.8 2.8 1.6 1.6 0 0 0-2.7 1.1 2 2 0 1 1-4 0 1.6 1.6 0 0 0-2.6-1.1 2 2 0 1 1-2.8-2.8A1.6 1.6 0 0 0 3 13.9a2 2 0 1 1 0-4 1.6 1.6 0 0 0 1.5-2.7 2 2 0 1 1 2.8-2.8A1.6 1.6 0 0 0 10 4.6a2 2 0 1 1 4 0 1.6 1.6 0 0 0 2.7.6 2 2 0 1 1 2.8 2.8 1.6 1.6 0 0 0-.1 2.6a2.2 2.2 0 1 1 0 4.4Z"/></svg>`
28
28
  return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`
29
29
  })
30
30
 
@@ -72,8 +72,6 @@ const navigateToProfile = () => navigateAppRoute('app/profile')
72
72
  <view class="my-stack">
73
73
  <!-- 个人资料 -->
74
74
  <view class="k-glass k-glass--lit k-pfx my-profile" @tap="navigateToProfile">
75
- <view class="k-cnr k-cnr--tr" aria-hidden="true"></view>
76
- <view class="k-cnr k-cnr--bl" aria-hidden="true"></view>
77
75
  <view class="my-pfx-main">
78
76
  <image
79
77
  v-if="isLoggedIn && profile"
@@ -118,7 +116,8 @@ const navigateToProfile = () => navigateAppRoute('app/profile')
118
116
  padding: calc(env(safe-area-inset-top) + 24rpx) 32rpx calc(40rpx + env(safe-area-inset-bottom));
119
117
 
120
118
  /* #ifdef MP-WEIXIN */
121
- padding-top: calc(44px + 24rpx);
119
+ /* k-top 在小程序端自带 44px 状态栏高度的导航带,页面不再额外让出顶部空间 */
120
+ padding-top: 0;
122
121
  /* #endif */
123
122
  }
124
123
 
@@ -124,11 +124,12 @@ function onBack() {
124
124
  }
125
125
  .detail-meta {
126
126
  display: flex;
127
- flex-wrap: wrap;
127
+ align-items: center;
128
+ justify-content: space-between;
128
129
  gap: 18rpx;
129
130
  margin: 24rpx 0 36rpx;
130
131
  padding-bottom: 28rpx;
131
- border-bottom: 1rpx solid var(--kratos-color-border);
132
+ border-bottom: 1px solid var(--kratos-color-border);
132
133
  color: var(--kratos-color-text-muted);
133
134
  font-size: 22rpx;
134
135
  font-family: var(--kratos-font-mono);
@@ -136,6 +137,10 @@ function onBack() {
136
137
  .detail-category {
137
138
  display: inline-flex;
138
139
  align-items: center;
140
+ min-width: 0;
141
+ overflow: hidden;
142
+ text-overflow: ellipsis;
143
+ white-space: nowrap;
139
144
  }
140
145
  .detail-category__icon {
141
146
  margin-right: 8rpx;
@@ -143,7 +148,7 @@ function onBack() {
143
148
  .detail-content {
144
149
  display: block;
145
150
  padding: 28rpx;
146
- border: 1rpx solid var(--kratos-color-border);
151
+ border: 1px solid var(--kratos-color-border);
147
152
  border-radius: 20rpx;
148
153
  background: var(--kratos-color-surface);
149
154
  color: var(--kratos-color-text);
@@ -165,7 +170,7 @@ function onBack() {
165
170
  }
166
171
  .detail-action {
167
172
  margin-top: 36rpx;
168
- border: 1rpx solid var(--kratos-color-border-accent);
173
+ border: 1px solid var(--kratos-color-border-accent);
169
174
  border-radius: 20rpx;
170
175
  background: var(--kratos-color-primary-soft);
171
176
  color: var(--kratos-color-primary);
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { onShow } from '@dcloudio/uni-app'
3
- import { ref } from 'vue'
4
- import { navigateAppView, t } from '@liujitcn/kratos-uni-app-core'
3
+ import { computed, ref } from 'vue'
4
+ import { KratosEmpty, navigateAppView, t } from '@liujitcn/kratos-uni-app-core'
5
5
  import { useThemeStore } from '@liujitcn/kratos-uni-app-core/stores'
6
6
  import { getMpCapsuleRightGap } from '@liujitcn/kratos-uni-app-core/utils/index'
7
7
  import { defNotificationService } from '../../../api/base/v1/notification'
@@ -115,13 +115,22 @@ async function openDetail(item: Notification) {
115
115
  if (!item.read_at) await defNotificationService.MarkNotificationRead({ ids: [item.id] })
116
116
  navigateAppView('MESSAGE_DETAIL', { id: String(item.id) })
117
117
  }
118
+
119
+ /** 空态提示语随当前视图切换。 */
120
+ const emptyHintKey = computed(() => {
121
+ if (selectedView.value === NotificationView.NOTIFICATION_VIEW_UNREAD)
122
+ return 'system.notification.empty_unread_hint'
123
+ if (selectedView.value === NotificationView.NOTIFICATION_VIEW_ARCHIVED)
124
+ return 'system.notification.empty_archived_hint'
125
+ return 'system.notification.empty_inbox_hint'
126
+ })
118
127
  </script>
119
128
 
120
129
  <template>
121
130
  <view class="message-page" :class="themeStore.themeClass">
122
131
  <view class="k-top message-header" :style="{ '--mp-capsule-gap': `${capsuleGap}px` }">
123
132
  <view class="message-header__title">
124
- <text class="k-top__t2">{{ t('system.notification.title') }}</text>
133
+ <text class="message-header__text">{{ t('system.notification.title') }}</text>
125
134
  <view v-if="notificationUnreadTotal > 0" class="message-unread-dot" aria-hidden="true" />
126
135
  </view>
127
136
  <view
@@ -185,9 +194,11 @@ async function openDetail(item: Notification) {
185
194
  </view>
186
195
  <view class="message-item__body">
187
196
  <text class="k-msg-item__title">{{ item.title }}</text>
188
- <text class="k-msg-item__meta">{{ item.category_name }}</text>
197
+ <view class="k-msg-item__foot">
198
+ <text class="k-msg-item__meta">{{ item.category_name }}</text>
199
+ <text class="k-msg-item__time">{{ item.received_at }}</text>
200
+ </view>
189
201
  </view>
190
- <text class="k-msg-item__time">{{ item.received_at }}</text>
191
202
  </view>
192
203
  <view
193
204
  v-if="
@@ -222,9 +233,12 @@ async function openDetail(item: Notification) {
222
233
  <button v-if="!finished" class="load-more" :loading="loading" @tap="loadMore">
223
234
  {{ t('common.action.load_more') }}
224
235
  </button>
225
- <view v-if="finished && items.length === 0" class="empty">{{
226
- t('system.notification.empty')
227
- }}</view>
236
+ <KratosEmpty
237
+ v-if="finished && items.length === 0"
238
+ icon="notification-filled"
239
+ :title="t('system.notification.empty')"
240
+ :description="t(emptyHintKey)"
241
+ />
228
242
  </view>
229
243
  </template>
230
244
 
@@ -239,18 +253,37 @@ async function openDetail(item: Notification) {
239
253
  }
240
254
  /* #ifdef MP-WEIXIN */
241
255
  .message-page {
242
- padding-top: calc(44px + 16rpx);
256
+ /* k-top 在小程序端自带 44px 状态栏高度的导航带,页面不再额外让出顶部空间 */
257
+ padding-top: 0;
243
258
  }
244
259
  /* #endif */
245
260
  .message-header {
261
+ /* 标题绝对居中后头部不再依赖流内内容撑高,保证标题行与筛选行留出间距 */
262
+ min-height: 76rpx;
246
263
  padding: 20rpx 4rpx 24rpx;
247
264
  }
265
+ /* 标题排版与 k-page-nav__title/k-top__title 同规格,绝对居中后文字与红点同行排布 */
248
266
  .message-header__title {
267
+ position: absolute;
268
+ left: 50%;
249
269
  display: flex;
250
270
  align-items: center;
251
271
  min-width: 0;
272
+ max-width: calc(100% - 190rpx);
273
+ overflow: hidden;
274
+ font-size: 32rpx;
275
+ font-weight: 700;
276
+ color: var(--kratos-color-text);
277
+ transform: translateX(-50%);
278
+ white-space: nowrap;
279
+ }
280
+ .message-header__text {
281
+ min-width: 0;
282
+ overflow: hidden;
283
+ text-overflow: ellipsis;
252
284
  }
253
285
  .message-unread-dot {
286
+ flex-shrink: 0;
254
287
  width: 12rpx;
255
288
  height: 12rpx;
256
289
  margin-left: 12rpx;
@@ -275,7 +308,7 @@ async function openDetail(item: Notification) {
275
308
  height: 76rpx;
276
309
  margin-top: 24rpx;
277
310
  padding: 0 24rpx;
278
- border: 1rpx solid var(--kratos-color-border);
311
+ border: 1px solid var(--kratos-color-border);
279
312
  border-radius: 16rpx;
280
313
  background: var(--kratos-color-surface-2);
281
314
  color: var(--kratos-color-text);
@@ -285,10 +318,4 @@ async function openDetail(item: Notification) {
285
318
  .load-more::after {
286
319
  border: 0;
287
320
  }
288
- .empty {
289
- padding: 120rpx 0;
290
- color: var(--kratos-color-text-dim);
291
- font-family: var(--kratos-font-mono);
292
- text-align: center;
293
- }
294
321
  </style>
@@ -259,8 +259,6 @@ const onSubmit = async () => {
259
259
 
260
260
  <!-- 头像卡:点击更换头像 -->
261
261
  <view class="k-glass k-glass--lit k-pfx profile-id" @tap="onAvatarChange">
262
- <view class="k-cnr k-cnr--tl" aria-hidden="true"></view>
263
- <view class="k-cnr k-cnr--br" aria-hidden="true"></view>
264
262
  <view class="profile-id__main">
265
263
  <view class="k-pfx__av">
266
264
  <image