diff --git a/generate-menu-excel.js b/generate-menu-excel.js
index 1e97c56..8c92029 100644
--- a/generate-menu-excel.js
+++ b/generate-menu-excel.js
@@ -688,6 +688,51 @@ const menuData = [
hideInMenu: false,
parentRoute: '/system',
},
+
+ // 一级菜单 - 知识库
+ {
+ level: 1,
+ name: '知识库',
+ permissionCode: 'Knowledge',
+ route: '/kb',
+ component: null,
+ icon: 'icon-book',
+ order: 8,
+ hideInMenu: false,
+ },
+ {
+ level: 2,
+ name: '培训手册',
+ permissionCode: 'Knowledge.Training',
+ route: '/kb/training',
+ component: 'views/kb/training/index',
+ icon: 'icon-book',
+ order: 0,
+ hideInMenu: false,
+ parentRoute: '/kb',
+ },
+ {
+ level: 2,
+ name: '分类管理',
+ permissionCode: 'Knowledge.Category',
+ route: '/kb/category',
+ component: 'views/kb/category/index',
+ icon: null,
+ order: 1,
+ hideInMenu: false,
+ parentRoute: '/kb',
+ },
+ {
+ level: 2,
+ name: '文章管理',
+ permissionCode: 'Knowledge.Article',
+ route: '/kb/article',
+ component: 'views/kb/article/index',
+ icon: null,
+ order: 2,
+ hideInMenu: false,
+ parentRoute: '/kb',
+ },
];
// 生成 CSV 内容(UTF-8 BOM 以便 Excel 正确识别中文)
diff --git a/index.html b/index.html
index 3f1593d..430eeb1 100644
--- a/index.html
+++ b/index.html
@@ -55,6 +55,8 @@
}
var isH5 = isH5Path;
+ var isAdminH5 =
+ path === '/h5/admin' || path.indexOf('/h5/admin/') === 0;
var isEn = false;
var pageBg = '#f0f3f4';
try {
@@ -75,11 +77,16 @@
root.style.setProperty('--ai-bg', pageBg);
root.style.setProperty('--ai-canvas', pageBg);
try {
- document.title = isH5
+ /* 运营端 /h5/admin 勿复用客户中心标题,避免浏览器顶栏串文案 */
+ document.title = isAdminH5
? isEn
- ? 'IDE Customer Center'
- : 'IDE客户中心'
- : 'IDE I Faster & Simpler';
+ ? 'IDE Ops Center'
+ : 'IDE运营中心'
+ : isH5
+ ? isEn
+ ? 'IDE Customer Center'
+ : 'IDE客户中心'
+ : 'IDE I Faster & Simpler';
} catch (e2) {}
if (path === '/login') {
var plane = document.createElement('link');
diff --git a/package.json b/package.json
index 236349f..49ebd27 100644
--- a/package.json
+++ b/package.json
@@ -48,11 +48,10 @@
"@codemirror/state": "^6.5.4",
"@codemirror/theme-one-dark": "^6.1.3",
"@codemirror/view": "^6.39.17",
- "@fontsource/zcool-qingke-huangyou": "^5.3.0",
- "@glass-sdk/liquid-glass": "~0.0.2",
"@handsontable/vue3": "^16.2.0",
"@types/lodash-es": "^4.17.12",
"@vueuse/core": "^9.3.0",
+ "@zxing/browser": "^0.2.1",
"axios": "^0.24.0",
"codemirror": "^6.0.2",
"dayjs": "^1.11.5",
@@ -68,7 +67,6 @@
"mermaid": "^11.16.0",
"mitt": "^3.0.0",
"nprogress": "^0.2.0",
- "ogl": "^1.0.11",
"pinia": "^2.0.23",
"qrcode": "^1.5.4",
"query-string": "^8.0.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8ca5495..9130bea 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -36,12 +36,6 @@ importers:
'@codemirror/view':
specifier: ^6.39.17
version: 6.39.17
- '@fontsource/zcool-qingke-huangyou':
- specifier: ^5.3.0
- version: 5.3.0
- '@glass-sdk/liquid-glass':
- specifier: ~0.0.2
- version: 0.0.2(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
'@handsontable/vue3':
specifier: ^16.2.0
version: 16.2.0(handsontable@16.2.0)(vue@3.5.18(typescript@4.9.5))
@@ -51,6 +45,9 @@ importers:
'@vueuse/core':
specifier: ^9.3.0
version: 9.13.0(vue@3.5.18(typescript@4.9.5))
+ '@zxing/browser':
+ specifier: ^0.2.1
+ version: 0.2.1(@zxing/library@0.23.0)
axios:
specifier: ^0.24.0
version: 0.24.0
@@ -96,9 +93,6 @@ importers:
nprogress:
specifier: ^0.2.0
version: 0.2.0
- ogl:
- specifier: ^1.0.11
- version: 1.0.11
pinia:
specifier: ^2.0.23
version: 2.3.1(typescript@4.9.5)(vue@3.5.18(typescript@4.9.5))
@@ -446,9 +440,6 @@ packages:
resolution: {integrity: sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==}
engines: {node: '>=6.9.0'}
- '@babel/runtime@8.1.0':
- resolution: {integrity: sha512-MQye/pU7gzXerMzlhScFNH1u4Je6rR8cqJWSgAfD+rIwbbtwG8tVDegoI7sWfcXkfVRW09G7vk2vjxGIuKFfwg==}
-
'@babel/template@7.27.2':
resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==}
engines: {node: '>=6.9.0'}
@@ -461,33 +452,6 @@ packages:
resolution: {integrity: sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==}
engines: {node: '>=6.9.0'}
- '@base-ui/react@1.9.0':
- resolution: {integrity: sha512-S8CSYosASBKtpL8SWUfS78rFElfLijiCgA7oHOK22jCJ95FULsYyKwBNFOgudt0RA+/7yNc7F81bOvQnRgbBiQ==}
- engines: {node: '>=14.0.0'}
- peerDependencies:
- '@date-fns/tz': ^1.2.0
- '@types/react': ^17 || ^18 || ^19
- date-fns: ^4.0.0
- react: ^17 || ^18 || ^19
- react-dom: ^17 || ^18 || ^19
- peerDependenciesMeta:
- '@date-fns/tz':
- optional: true
- '@types/react':
- optional: true
- date-fns:
- optional: true
-
- '@base-ui/utils@0.5.0':
- resolution: {integrity: sha512-dYGGcEttjkYiMoa5nHm8vLaJ2UcuTWxo3BFAwOYXeRg/q7UVVvA6cacEIXEs3FgBfK1CGtW1ptElqs7wsx+t9A==}
- peerDependencies:
- '@types/react': ^17 || ^18 || ^19
- react: ^17 || ^18 || ^19
- react-dom: ^17 || ^18 || ^19
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
'@braintree/sanitize-url@7.1.2':
resolution: {integrity: sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==}
@@ -962,36 +926,12 @@ packages:
'@floating-ui/core@1.7.4':
resolution: {integrity: sha512-C3HlIdsBxszvm5McXlB8PeOEWfBhcGBTZGkGlWc2U0KFY5IwG5OQEuQ8rq52DZmcHDlPLd+YFBK+cZcytwIFWg==}
- '@floating-ui/core@1.8.0':
- resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==}
-
'@floating-ui/dom@1.7.5':
resolution: {integrity: sha512-N0bD2kIPInNHUHehXhMke1rBGs1dwqvC9O9KYMyyjK7iXt7GAhnro7UlcuYcGdS/yYOlq0MAVgrow8IbWJwyqg==}
- '@floating-ui/dom@1.8.0':
- resolution: {integrity: sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==}
-
- '@floating-ui/react-dom@2.1.9':
- resolution: {integrity: sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==}
- peerDependencies:
- react: '>=16.8.0'
- react-dom: '>=16.8.0'
-
'@floating-ui/utils@0.2.10':
resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==}
- '@floating-ui/utils@0.2.12':
- resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==}
-
- '@fontsource/zcool-qingke-huangyou@5.3.0':
- resolution: {integrity: sha512-6/ld8x/knq1NjDQxLSyg9pDnBPOmtWDb30ZTFk+n8OxfkBoUvPAxh3aV/6+UFGmA5CekJfcgpUwd2/x/weLvSQ==}
-
- '@glass-sdk/liquid-glass@0.0.2':
- resolution: {integrity: sha512-bDVDBXj6Cw++U0k9fcrSPEexnVnj/S4BjxF1t7NVQqW8La1gSVtxzPl9dG2VQxKs7Ik9kWR8Zi32JzyggI5Seg==}
- peerDependencies:
- react: '>=19.0.0'
- react-dom: '>=19.0.0'
-
'@handsontable/pikaday@1.0.0':
resolution: {integrity: sha512-1VN6N38t5/DcjJ7y7XUYrDx1LuzvvzlrFdBdMG90Qo1xc8+LXHqbWbsTEm5Ec5gXTEbDEO53vUT35R+2COmOyg==}
@@ -1081,24 +1021,12 @@ packages:
'@lezer/xml@1.0.6':
resolution: {integrity: sha512-CdDwirL0OEaStFue/66ZmFSeppuL6Dwjlk8qk153mSQwiSH/Dlri4GNymrNWnUmPl2Um7QfV1FO9KFUyX3Twww==}
- '@lisse/core@0.7.3':
- resolution: {integrity: sha512-WJWGskrOInlIs+DqK1CfAHNIjWBJ8t4AtM1cPn5RZfu2OmQumBdNGAhFuaIg+tgpibqP17GSwEiMq/fT+NCoIw==}
- engines: {node: '>=18'}
-
'@marijn/find-cluster-break@1.0.2':
resolution: {integrity: sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==}
'@mermaid-js/parser@1.2.0':
resolution: {integrity: sha512-oYPyv8A4As1yH5Bx+04iQEQxXuIQDe0GKCNSRgao6z8AM9jixXIfP0vsppRLvGf+nKIOb9/LdpWA4YuJiVvESA==}
- '@modelcontextprotocol/core@2.0.0':
- resolution: {integrity: sha512-pJCEwGG7Lfr/+PQp9ZTwKXNeO5wzbfKL7H3MYpCorM4oFBoQrdjnBgEoqG+RjhsvS1FKrDbKux+M1HhlnGWqcA==}
- engines: {node: '>=20'}
-
- '@modelcontextprotocol/server@2.0.0':
- resolution: {integrity: sha512-YhHWdHfpFMQfd0prsEnxKeS3Qz3ytIGmsS0sth4KDjnacIT7hxk6hXHkJ9KysxlkvTM+WZAtQbbcUhdoP4Hvtw==}
- engines: {node: '>=20'}
-
'@mrmlnc/readdir-enhanced@2.2.1':
resolution: {integrity: sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g==}
engines: {node: '>=4'}
@@ -1907,26 +1835,6 @@ packages:
'@upsetjs/venn.js@2.0.0':
resolution: {integrity: sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==}
- '@vgpu/adapter-mock@0.5.0':
- resolution: {integrity: sha512-YtgXOFn1qI+8oTJenG2wWbQPA28V0CfE5UJs5Xqbt6qyR/xaZ5LHH2XWTwFcjnqn2b1xQCyTatJCMyyOdweUnw==}
-
- '@vgpu/adapter-node@0.5.0':
- resolution: {integrity: sha512-lgzqFcLDejwRgwlaNStzkwLNU9b4aN2OoPpWqT1UyPmK521BSw2OIQKzAuDIkzNlREla6KNC12G6bthhOzZKzw==}
-
- '@vgpu/core@0.5.0':
- resolution: {integrity: sha512-z80DHRHViv6+FKKkPzggEtT1ZZs/WCKRQbzJuwYdA135DZaSbCMoRK4anhM+I/nOHuDpf7H3xjkwE6rfolWZUw==}
-
- '@vgpu/wgsl-std@0.5.0':
- resolution: {integrity: sha512-NjMyJxwy4evFNCSqFQy4EqAbZ7iU+NUyJYyG9tLUhbdDLzBmfZlk1S3PyRZ9olBFFfEiVW2JNVw10maPKLEs1A==}
-
- '@vgpu/wgsl@0.5.0':
- resolution: {integrity: sha512-PDlDJem7J28C9bk+vPy2kYZEoW8+nYIx2oN4nu7/WF2V7ETx32BtmWcawwMbhiu/CVsobFafML0h0eqLRBNa3Q==}
- peerDependencies:
- '@vgpu/adapter-node': '>=0.1.6 <1.0.0 || ^0.5.0-rc.0'
- peerDependenciesMeta:
- '@vgpu/adapter-node':
- optional: true
-
'@vitejs/plugin-vue-jsx@2.1.1':
resolution: {integrity: sha512-JgDhxstQlwnHBvZ1BSnU5mbmyQ14/t5JhREc6YH5kWyu2QdAAOsLF6xgHoIWarj8tddaiwFrNzLbWJPudpXKYA==}
engines: {node: ^14.18.0 || >=16.0.0}
@@ -2033,9 +1941,6 @@ packages:
'@vueuse/shared@9.13.0':
resolution: {integrity: sha512-UrnhU+Cnufu4S6JLCPZnkWh0WwZGUp72ktOF2DFptMlOs3TOdVv8xJN53zhHGARmVOsz5KqOls09+J1NR6sBKw==}
- '@webgpu/types@0.1.74':
- resolution: {integrity: sha512-lgiI4hbuLcI9unnm2cL/tvCaQU45dp0xcLWJh5uB/9MBGvIA4F8XIk7nSiBeg+K4xWGYwgZKn80LmERI5CxoTA==}
-
'@wtto00/html2canvas@1.4.3':
resolution: {integrity: sha512-jwsb+xL8N+gjrSNABSaFdxmWtE4c7RNFjP20lo1G7gs63Qqo1phhxVBTzxc/apDVh6LgXsU2l5bwKtXd9uz65w==}
engines: {node: '>=8.0.0'}
@@ -2043,6 +1948,18 @@ packages:
'@zumer/snapdom@2.0.2':
resolution: {integrity: sha512-W6quT4lMcPu8Q9O/Q6witSfc6/+xuY8C8yDoHug/+o7zYKCNE/e0I3//XsWDkyq9C0mDE0TAWF/8bwCR7x3gHQ==}
+ '@zxing/browser@0.2.1':
+ resolution: {integrity: sha512-92pVfVDUXbc15xu9vIEmhNyqIEASMEkDF92CwT6T+7sg2EHXJRktH9CQKoQSXe51UtbNsj+Fm09H/JBWHMs/Sw==}
+ peerDependencies:
+ '@zxing/library': ^0.23.0
+
+ '@zxing/library@0.23.0':
+ resolution: {integrity: sha512-6fkkoFwP8CHxl6ugnPsj74PLJgX2iRv5zczGAyt5OBzQgxFhuhF0NCEc4t4OvSr8xAv2MRLlI0Iu9ZGDZQ2urA==}
+ engines: {node: '>= 24.0.0'}
+
+ '@zxing/text-encoding@0.9.0':
+ resolution: {integrity: sha512-U/4aVJ2mxI0aDNI8Uq0wEhMgY+u4CNtEb0om3+y3+niDAsoTCOB33UF0sxpzqzdqXLqmvc+vZyAt4O8pPdfkwA==}
+
JSONStream@1.3.5:
resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==}
hasBin: true
@@ -5277,9 +5194,6 @@ packages:
ofetch@1.4.1:
resolution: {integrity: sha512-QZj2DfGplQAr2oj9KzceK9Hwz6Whxazmn85yYeVuS3u9XTMOGMRx0kO95MQ+vLsj/S/NwBDMMLU5hpxvI6Tklw==}
- ogl@1.0.11:
- resolution: {integrity: sha512-kUpC154AFfxi16pmZUK4jk3J+8zxwTWGPo03EoYA8QPbzikHoaC82n6pNTbd+oEaJonaE8aPWBlX7ad9zrqLsA==}
-
once@1.4.0:
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
@@ -5558,10 +5472,6 @@ packages:
resolution: {integrity: sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==}
engines: {node: '>=0.10.0'}
- pixelmatch@7.2.0:
- resolution: {integrity: sha512-xhcb4yHu9sM/G7foGzoLtXYcC0zHEaOXXjRKhGup0fw78Nf2Tkiapv4EQyMzrbcmQPsllAI7DbFY2UT7PlI9Pg==}
- hasBin: true
-
pkg-types@1.3.1:
resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}
@@ -5572,10 +5482,6 @@ packages:
resolution: {integrity: sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==}
engines: {node: '>=10.13.0'}
- pngjs@7.0.0:
- resolution: {integrity: sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==}
- engines: {node: '>=14.19.0'}
-
pngquant-bin@6.0.1:
resolution: {integrity: sha512-Q3PUyolfktf+hYio6wsg3SanQzEU/v8aICg/WpzxXcuCMRb7H2Q81okfpcEztbMvw25ILjd3a87doj2N9kvbpQ==}
engines: {node: '>=10'}
@@ -5776,15 +5682,6 @@ packages:
raf@3.4.1:
resolution: {integrity: sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==}
- react-dom@19.3.1:
- resolution: {integrity: sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==}
- peerDependencies:
- react: ^19.3.1
-
- react@19.3.1:
- resolution: {integrity: sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==}
- engines: {node: '>=0.10.0'}
-
read-pkg-up@1.0.1:
resolution: {integrity: sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==}
engines: {node: '>=0.10.0'}
@@ -5897,9 +5794,6 @@ packages:
require-main-filename@2.0.0:
resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==}
- reselect@5.3.0:
- resolution: {integrity: sha512-XGoLeRAVzUTcJ1qkxPQhDJyIZ5d6zzZD9nT7AEZOaaU9UbWclhycElmhO+VD5bFeLuzhPBaOV2oXC8uG35ZSpg==}
-
reserved-words@0.1.2:
resolution: {integrity: sha512-0S5SrIUJ9LfpbVl4Yzij6VipUdafHrOTzvmfazSw/jeZrZtQK303OPZW+obtkaw7jQlTQppy0UvZWm9872PbRw==}
@@ -6153,9 +6047,6 @@ packages:
sax@1.4.1:
resolution: {integrity: sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==}
- scheduler@0.28.0:
- resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==}
-
screenfull@5.2.0:
resolution: {integrity: sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==}
engines: {node: '>=0.10.0'}
@@ -6800,6 +6691,10 @@ packages:
trough@1.0.5:
resolution: {integrity: sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==}
+ ts-custom-error@3.3.1:
+ resolution: {integrity: sha512-5OX1tzOjxWEgsr/YEUWSuPrQ00deKLh6D7OTWcvNHm12/7QPyRh8SYpyWvA4IZv8H/+GQWQEh/kwo95Q9OVW1A==}
+ engines: {node: '>=14.0.0'}
+
ts-dedent@2.3.0:
resolution: {integrity: sha512-JfJeIHke7y2egdGGgRAvpCwYFUsHlM2gPcrVOxFkznt/4uzQ7HFmvE63iFHVLBJNDuyDOQgijDK/tXH/f6Msjg==}
engines: {node: '>=6.10'}
@@ -7031,11 +6926,6 @@ packages:
resolution: {integrity: sha512-0kQLIzG4fdk/G5NONku64rSH/x32NOA39LVQqlK8Le6lvTF6GGRJpqaQFGgU+CLwySIqBSMdwYM0sYcW9f6P4A==}
engines: {node: '>= 4'}
- use-sync-external-store@1.7.0:
- resolution: {integrity: sha512-6L+EeigHMQhdaIPNIFUKwfWJSwWFQ8gJbJ2DLOs5sDIegTwR9fRxvnM3uciHKjIZhFz+KAv2emhWMRvDmMcY8A==}
- peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
-
use@3.1.1:
resolution: {integrity: sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==}
engines: {node: '>=0.10.0'}
@@ -7083,15 +6973,6 @@ packages:
resolution: {integrity: sha512-KoJRp8V2EsmeW2pg33CVEOEfGDTmcVLL0wk0fOQJjgXfAunciPylOueKovuzlbWSrTQap1UzgNn8xr5zbBsnPA==}
engines: {node: '>=18.18.0'}
- vgpu@0.5.0:
- resolution: {integrity: sha512-isQfMHRTysYFfT8UWTzqQI/ROw2L7lVkj7xoUJlvIF6FjYxBNS/YNG7qp3tZ7ZvZZ3uwYjso+geQv/bEq5Hl3w==}
- hasBin: true
- peerDependencies:
- three: '>=0.180.0 <0.200.0'
- peerDependenciesMeta:
- three:
- optional: true
-
vite-plugin-compression@0.5.1:
resolution: {integrity: sha512-5QJKBDc+gNYVqL/skgFAP81Yuzo9R+EAf19d+EtsMF/i8kFUpNi3J/H01QD3Oo8zBQn+NzoCIFkpPLynoOzaJg==}
peerDependencies:
@@ -7278,18 +7159,12 @@ packages:
w3c-keyname@2.2.8:
resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==}
- webgpu@0.4.0:
- resolution: {integrity: sha512-F5pimn3Aoi0zWjuRdiVs5TnrUwSzD2lESBohsIUsqyitWkGRQlXU2fhV6ycXlQTa1bvAf3sjqiUpBEpmSQ5ptA==}
-
webidl-conversions@3.0.1:
resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}
webpack-virtual-modules@0.6.2:
resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==}
- wgpu-matrix@3.4.2:
- resolution: {integrity: sha512-IfZFbG7olEYBD76VCZy2TzqM57GKy3LT++AZh37tMHPPByO6R2h61zXGBZFNPi2IzxNivNi8y5dvze5PjaczjA==}
-
whatwg-url@5.0.0:
resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==}
@@ -7457,9 +7332,6 @@ packages:
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
engines: {node: '>=10'}
- zod@4.6.7:
- resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==}
-
zrender@5.6.1:
resolution: {integrity: sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag==}
@@ -7652,8 +7524,6 @@ snapshots:
'@babel/runtime@7.28.6': {}
- '@babel/runtime@8.1.0': {}
-
'@babel/template@7.27.2':
dependencies:
'@babel/code-frame': 7.27.1
@@ -7677,25 +7547,6 @@ snapshots:
'@babel/helper-string-parser': 7.27.1
'@babel/helper-validator-identifier': 7.27.1
- '@base-ui/react@1.9.0(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
- dependencies:
- '@babel/runtime': 8.1.0
- '@base-ui/utils': 0.5.0(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
- '@floating-ui/react-dom': 2.1.9(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
- '@floating-ui/utils': 0.2.12
- react: 19.3.1
- react-dom: 19.3.1(react@19.3.1)
- use-sync-external-store: 1.7.0(react@19.3.1)
-
- '@base-ui/utils@0.5.0(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
- dependencies:
- '@babel/runtime': 8.1.0
- '@floating-ui/utils': 0.2.12
- react: 19.3.1
- react-dom: 19.3.1(react@19.3.1)
- reselect: 5.3.0
- use-sync-external-store: 1.7.0(react@19.3.1)
-
'@braintree/sanitize-url@7.1.2': {}
'@bufbuild/protobuf@2.10.1': {}
@@ -8111,46 +7962,13 @@ snapshots:
dependencies:
'@floating-ui/utils': 0.2.10
- '@floating-ui/core@1.8.0':
- dependencies:
- '@floating-ui/utils': 0.2.12
-
'@floating-ui/dom@1.7.5':
dependencies:
'@floating-ui/core': 1.7.4
'@floating-ui/utils': 0.2.10
- '@floating-ui/dom@1.8.0':
- dependencies:
- '@floating-ui/core': 1.8.0
- '@floating-ui/utils': 0.2.12
-
- '@floating-ui/react-dom@2.1.9(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
- dependencies:
- '@floating-ui/dom': 1.8.0
- react: 19.3.1
- react-dom: 19.3.1(react@19.3.1)
-
'@floating-ui/utils@0.2.10': {}
- '@floating-ui/utils@0.2.12': {}
-
- '@fontsource/zcool-qingke-huangyou@5.3.0': {}
-
- '@glass-sdk/liquid-glass@0.0.2(react-dom@19.3.1(react@19.3.1))(react@19.3.1)':
- dependencies:
- '@base-ui/react': 1.9.0(react-dom@19.3.1(react@19.3.1))(react@19.3.1)
- '@lisse/core': 0.7.3
- react: 19.3.1
- react-dom: 19.3.1(react@19.3.1)
- vgpu: 0.5.0
- transitivePeerDependencies:
- - '@date-fns/tz'
- - '@types/react'
- - date-fns
- - supports-color
- - three
-
'@handsontable/pikaday@1.0.0': {}
'@handsontable/vue3@16.2.0(handsontable@16.2.0)(vue@3.5.18(typescript@4.9.5))':
@@ -8265,23 +8083,12 @@ snapshots:
'@lezer/highlight': 1.2.3
'@lezer/lr': 1.4.8
- '@lisse/core@0.7.3': {}
-
'@marijn/find-cluster-break@1.0.2': {}
'@mermaid-js/parser@1.2.0':
dependencies:
'@chevrotain/types': 11.1.2
- '@modelcontextprotocol/core@2.0.0':
- dependencies:
- zod: 4.6.7
-
- '@modelcontextprotocol/server@2.0.0':
- dependencies:
- '@modelcontextprotocol/core': 2.0.0
- zod: 4.6.7
-
'@mrmlnc/readdir-enhanced@2.2.1':
dependencies:
call-me-maybe: 1.0.2
@@ -9105,33 +8912,6 @@ snapshots:
d3-selection: 3.0.0
d3-transition: 3.0.1(d3-selection@3.0.0)
- '@vgpu/adapter-mock@0.5.0(@vgpu/adapter-node@0.5.0)':
- dependencies:
- '@vgpu/core': 0.5.0(@vgpu/adapter-node@0.5.0)
- transitivePeerDependencies:
- - '@vgpu/adapter-node'
-
- '@vgpu/adapter-node@0.5.0':
- dependencies:
- '@vgpu/core': 0.5.0(@vgpu/adapter-node@0.5.0)
- webgpu: 0.4.0
- transitivePeerDependencies:
- - supports-color
-
- '@vgpu/core@0.5.0(@vgpu/adapter-node@0.5.0)':
- dependencies:
- '@vgpu/wgsl': 0.5.0(@vgpu/adapter-node@0.5.0)
- transitivePeerDependencies:
- - '@vgpu/adapter-node'
-
- '@vgpu/wgsl-std@0.5.0': {}
-
- '@vgpu/wgsl@0.5.0(@vgpu/adapter-node@0.5.0)':
- dependencies:
- '@vgpu/wgsl-std': 0.5.0
- optionalDependencies:
- '@vgpu/adapter-node': 0.5.0
-
'@vitejs/plugin-vue-jsx@2.1.1(vite@6.3.5(@types/node@20.5.1)(jiti@1.21.7)(less@4.4.0)(sass-embedded@1.93.3)(sass@1.93.3)(sugarss@2.0.0)(tsx@4.20.3))(vue@3.5.18(typescript@4.9.5))':
dependencies:
'@babel/core': 7.28.0
@@ -9315,8 +9095,6 @@ snapshots:
- '@vue/composition-api'
- vue
- '@webgpu/types@0.1.74': {}
-
'@wtto00/html2canvas@1.4.3':
dependencies:
css-line-break: 2.1.0
@@ -9324,6 +9102,21 @@ snapshots:
'@zumer/snapdom@2.0.2': {}
+ '@zxing/browser@0.2.1(@zxing/library@0.23.0)':
+ dependencies:
+ '@zxing/library': 0.23.0
+ optionalDependencies:
+ '@zxing/text-encoding': 0.9.0
+
+ '@zxing/library@0.23.0':
+ dependencies:
+ ts-custom-error: 3.3.1
+ optionalDependencies:
+ '@zxing/text-encoding': 0.9.0
+
+ '@zxing/text-encoding@0.9.0':
+ optional: true
+
JSONStream@1.3.5:
dependencies:
jsonparse: 1.3.1
@@ -12918,8 +12711,6 @@ snapshots:
node-fetch-native: 1.6.6
ufo: 1.6.1
- ogl@1.0.11: {}
-
once@1.4.0:
dependencies:
wrappy: 1.0.2
@@ -13158,10 +12949,6 @@ snapshots:
pinkie@2.0.4: {}
- pixelmatch@7.2.0:
- dependencies:
- pngjs: 7.0.0
-
pkg-types@1.3.1:
dependencies:
confbox: 0.1.8
@@ -13176,8 +12963,6 @@ snapshots:
pngjs@5.0.0: {}
- pngjs@7.0.0: {}
-
pngquant-bin@6.0.1:
dependencies:
bin-build: 3.0.0
@@ -13362,13 +13147,6 @@ snapshots:
dependencies:
performance-now: 2.1.0
- react-dom@19.3.1(react@19.3.1):
- dependencies:
- react: 19.3.1
- scheduler: 0.28.0
-
- react@19.3.1: {}
-
read-pkg-up@1.0.1:
dependencies:
find-up: 1.1.2
@@ -13533,8 +13311,6 @@ snapshots:
require-main-filename@2.0.0: {}
- reselect@5.3.0: {}
-
reserved-words@0.1.2: {}
resize-detector@0.3.0: {}
@@ -13777,8 +13553,6 @@ snapshots:
sax@1.4.1:
optional: true
- scheduler@0.28.0: {}
-
screenfull@5.2.0: {}
scroll-into-view-if-needed@2.2.31:
@@ -14544,6 +14318,8 @@ snapshots:
trough@1.0.5: {}
+ ts-custom-error@3.3.1: {}
+
ts-dedent@2.3.0: {}
ts-node@10.9.2(@types/node@20.5.1)(typescript@4.9.5):
@@ -14854,10 +14630,6 @@ snapshots:
url-to-options@1.0.1: {}
- use-sync-external-store@1.7.0(react@19.3.1):
- dependencies:
- react: 19.3.1
-
use@3.1.1: {}
util-deprecate@1.0.2: {}
@@ -14928,22 +14700,6 @@ snapshots:
- typescript
- utf-8-validate
- vgpu@0.5.0:
- dependencies:
- '@modelcontextprotocol/server': 2.0.0
- '@vgpu/adapter-mock': 0.5.0(@vgpu/adapter-node@0.5.0)
- '@vgpu/adapter-node': 0.5.0
- '@vgpu/core': 0.5.0(@vgpu/adapter-node@0.5.0)
- '@vgpu/wgsl': 0.5.0(@vgpu/adapter-node@0.5.0)
- '@vgpu/wgsl-std': 0.5.0
- '@webgpu/types': 0.1.74
- pixelmatch: 7.2.0
- pngjs: 7.0.0
- wgpu-matrix: 3.4.2
- zod: 4.6.7
- transitivePeerDependencies:
- - supports-color
-
vite-plugin-compression@0.5.1(vite@6.3.5(@types/node@20.5.1)(jiti@1.21.7)(less@4.4.0)(sass-embedded@1.93.3)(sass@1.93.3)(sugarss@2.0.0)(tsx@4.20.3)):
dependencies:
chalk: 4.1.2
@@ -15157,19 +14913,10 @@ snapshots:
w3c-keyname@2.2.8: {}
- webgpu@0.4.0:
- dependencies:
- '@webgpu/types': 0.1.74
- debug: 4.4.1
- transitivePeerDependencies:
- - supports-color
-
webidl-conversions@3.0.1: {}
webpack-virtual-modules@0.6.2: {}
- wgpu-matrix@3.4.2: {}
-
whatwg-url@5.0.0:
dependencies:
tr46: 0.0.3
@@ -15349,8 +15096,6 @@ snapshots:
yocto-queue@0.1.0: {}
- zod@4.6.7: {}
-
zrender@5.6.1:
dependencies:
tslib: 2.3.0
diff --git a/src/App.vue b/src/App.vue
index 075f1e1..429b380 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -31,17 +31,32 @@
import zhCN from '@arco-design/web-vue/es/locale/lang/zh-cn';
import useLocale from '@/hooks/locale';
import { isLoginRouteName } from '@/utils/login-portal';
- import { consumePageFlip } from '@/utils/page-transition-flag';
+ import {
+ consumePageFlip,
+ PORTAL_IRIS_ACTIVE_CLASS,
+ PORTAL_IRIS_SETTLED_CLASS,
+ shouldPortalIris,
+ } from '@/utils/page-transition-flag';
import GlobalSetting from '@/components/global-setting/index.vue';
const route = useRoute();
const router = useRouter();
- /** '' | 'oms-iris' — 中心虹膜散开(官网→登录 / 登录互切) */
+ /** '' | 'oms-iris' — 中心展开(官网→登录 / 登录互切) */
const portalTransition = ref('');
const isPageIris = computed(() => portalTransition.value === 'oms-iris');
- const IRIS_MS = 1000;
- const IRIS_EASE = 'cubic-bezier(0.22, 1, 0.36, 1)';
+ /**
+ * 圆半径用百分比时,约 71% 就盖住视口四角。
+ * 收到 80% 为止,整段时间都在铺画面,不再扩到 150% 后空转。
+ * 曲线前段就有位移、后段轻轻收住,避免猛地撑开或开头发呆。
+ */
+ const IRIS_MS = 920;
+ const IRIS_EASE = 'cubic-bezier(0.33, 0.5, 0.22, 1)';
+ /** 新页图片解码最多等这么久,超时也开动画,避免点击发僵 */
+ const IRIS_READY_CAP_MS = 160;
+ const IRIS_AT = '50% 50%';
+ /** 约 71% 盖住四角,收到 80% 留一点余量 */
+ const IRIS_END = '80%';
function clearPortalTransition() {
portalTransition.value = '';
@@ -58,89 +73,144 @@
node.style.position = 'absolute';
node.style.inset = '0';
node.style.width = '100%';
+ node.style.height = '100%';
node.style.minHeight = '100%';
node.style.zIndex = String(z);
- node.style.willChange = 'clip-path, opacity, filter';
+ node.style.overflow = 'hidden';
}
function clearSheetStyles(node: HTMLElement) {
node.style.position = '';
node.style.inset = '';
node.style.width = '';
+ node.style.height = '';
node.style.minHeight = '';
node.style.zIndex = '';
+ node.style.overflow = '';
node.style.willChange = '';
node.style.transform = '';
node.style.filter = '';
node.style.opacity = '';
node.style.clipPath = '';
+ node.style.pointerEvents = '';
node.style.removeProperty('-webkit-clip-path');
}
- /**
- * 中心虹膜:旧页留底层轻压暗;新页 clip-path 从中心向外展开。
- */
- function playIrisLeave(node: HTMLElement, done: () => void) {
- prepareSheet(node, 1);
- const anim = node.animate(
- [
- { opacity: 1, filter: 'brightness(1)', offset: 0 },
- { opacity: 0.92, filter: 'brightness(0.94)', offset: 0.45 },
- { opacity: 0.82, filter: 'brightness(0.88)', offset: 1 },
- ],
- {
- duration: IRIS_MS,
- easing: IRIS_EASE,
- fill: 'forwards',
- },
- );
+ /** 旧页卸掉之后再调;新页铺满前不能提前放 */
+ let releaseIrisLeave: (() => void) | null = null;
- anim.finished
- .catch(() => undefined)
- .finally(() => {
- done();
- });
+ function markIrisSettled() {
+ const root = document.documentElement;
+ root.classList.add(PORTAL_IRIS_SETTLED_CLASS);
+ root.classList.remove(PORTAL_IRIS_ACTIVE_CLASS);
}
- function playIrisEnter(node: HTMLElement, done: () => void) {
- prepareSheet(node, 4);
- node.style.clipPath = 'circle(0% at 50% 50%)';
- node.style.setProperty('-webkit-clip-path', 'circle(0% at 50% 50%)');
-
- const anim = node.animate(
- [
- {
- clipPath: 'circle(0% at 50% 50%)',
- opacity: 1,
- filter: 'brightness(0.98)',
- offset: 0,
- },
- {
- clipPath: 'circle(42% at 50% 50%)',
- opacity: 1,
- filter: 'brightness(1)',
- offset: 0.42,
- },
- {
- clipPath: 'circle(150% at 50% 50%)',
- opacity: 1,
- filter: 'brightness(1)',
- offset: 1,
- },
- ],
- {
- duration: IRIS_MS,
- easing: IRIS_EASE,
- fill: 'forwards',
- },
+ /**
+ * 等新页完成一次完整绘制,再开裁剪。
+ * 若边裁边解码大图,每一帧都要重绘,圆就会一卡一卡地长。
+ */
+ function whenIncomingReady(node: HTMLElement) {
+ const pending = [...node.querySelectorAll('img')].filter((img) => !img.complete);
+ const decoded = Promise.all(
+ pending.map((img) =>
+ typeof img.decode === 'function'
+ ? img.decode().catch(() => undefined)
+ : Promise.resolve(),
+ ),
);
-
- anim.finished
- .catch(() => undefined)
- .finally(() => {
- clearSheetStyles(node);
- done();
+ const cap = new Promise((resolve) => {
+ window.setTimeout(resolve, IRIS_READY_CAP_MS);
+ });
+ const frames = new Promise((resolve) => {
+ requestAnimationFrame(() => {
+ requestAnimationFrame(() => resolve());
});
+ });
+ return Promise.all([frames, Promise.race([decoded, cap])]).then(() => undefined);
+ }
+
+ /**
+ * 旧页只作一张静止底图。亮度滤镜会让整页每一帧都重采样,是掉帧的主要来源。
+ */
+ function playIrisLeave(node: HTMLElement, done: () => void) {
+ prepareSheet(node, 2);
+ node.classList.add('portal-iris-frozen');
+ node.style.transform = 'translateZ(0)';
+ node.style.pointerEvents = 'none';
+ try {
+ node.getAnimations({ subtree: true }).forEach((anim) => anim.pause());
+ } catch {
+ /* 旧环境没有 getAnimations 时,样式冻结仍然生效 */
+ }
+
+ let released = false;
+ const release = () => {
+ if (released) return;
+ released = true;
+ if (releaseIrisLeave === release) releaseIrisLeave = null;
+ done();
+ };
+ releaseIrisLeave = release;
+ window.setTimeout(release, IRIS_MS + IRIS_READY_CAP_MS + 480);
+ }
+
+ async function playIrisEnter(node: HTMLElement, done: () => void) {
+ prepareSheet(node, 1);
+ node.style.willChange = 'clip-path';
+ node.style.pointerEvents = 'none';
+ node.style.clipPath = 'none';
+ node.style.setProperty('-webkit-clip-path', 'none');
+
+ let finished = false;
+ let anim: Animation | null = null;
+ const finish = () => {
+ if (finished) return;
+ finished = true;
+ // 先去掉内联裁剪再 cancel,避免 fill 被取消后回到 circle(0%)
+ node.style.clipPath = '';
+ node.style.removeProperty('-webkit-clip-path');
+ anim?.cancel();
+ clearSheetStyles(node);
+ done();
+ releaseIrisLeave?.();
+ markIrisSettled();
+ };
+
+ try {
+ await whenIncomingReady(node);
+ } catch {
+ /* 解码失败也继续展开 */
+ }
+
+ if (!node.isConnected) {
+ finish();
+ return;
+ }
+
+ const at = IRIS_AT;
+ const end = IRIS_END;
+ // 先收到 0 再抬到上层,避免动画首帧还没写上时整页闪一下
+ node.style.clipPath = `circle(0% at ${at})`;
+ node.style.setProperty('-webkit-clip-path', `circle(0% at ${at})`);
+ node.style.zIndex = '3';
+ try {
+ anim = node.animate(
+ [
+ { clipPath: `circle(0% at ${at})` },
+ { clipPath: `circle(${end} at ${at})` },
+ ],
+ {
+ duration: IRIS_MS,
+ easing: IRIS_EASE,
+ fill: 'forwards',
+ },
+ );
+ } catch {
+ finish();
+ return;
+ }
+
+ anim.finished.catch(() => undefined).finally(finish);
}
function onPortalLeave(el: Element, done: () => void) {
@@ -182,26 +252,15 @@
return true;
});
- function isPcLoginRouteName(name: unknown) {
- return name === 'login' || name === 'adminLogin';
- }
-
router.beforeEach((to, from) => {
- const armed = consumePageFlip();
- const siteToLogin =
- from.name === 'siteRoot' &&
- (to.name === 'login' || to.name === 'H5Login') &&
- to.query.from === 'official-site';
- const loginPortalSwitch =
- isPcLoginRouteName(from.name) &&
- isPcLoginRouteName(to.name) &&
- from.name !== to.name;
- const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
-
- if ((armed || siteToLogin || loginPortalSwitch) && !reduceMotion) {
- portalTransition.value = 'oms-iris';
+ const iris = shouldPortalIris(to, from);
+ consumePageFlip();
+ portalTransition.value = iris ? 'oms-iris' : '';
+ const root = document.documentElement;
+ if (iris) {
+ root.classList.add(PORTAL_IRIS_ACTIVE_CLASS);
} else {
- portalTransition.value = '';
+ root.classList.remove(PORTAL_IRIS_ACTIVE_CLASS, PORTAL_IRIS_SETTLED_CLASS);
}
});
@@ -269,7 +328,33 @@ html body .main-menu .menu-text {
overflow: hidden;
min-height: 100vh;
min-height: 100dvh;
- /* 与登录页灰底一致,避免虹膜展开时露黑缝 */
+ /* 与登录页灰底一致,避免展开时露黑缝 */
background: var(--app-page-bg, #f0f3f4);
}
+
+/* 旧页:停掉无限动画和额外合成层,让底图在展开期间保持同一张纹理 */
+.portal-iris-frozen,
+.portal-iris-frozen * {
+ animation-play-state: paused !important;
+ transition: none !important;
+ will-change: auto !important;
+}
+
+/* 新页:展开期间不要再叠模糊和入场动画,否则裁剪每一帧都要重绘 */
+html.portal-iris-active .login-split,
+html.portal-iris-active .login-pane {
+ will-change: auto !important;
+}
+
+html.portal-iris-active .login-container,
+html.portal-iris-active .login-container * {
+ backdrop-filter: none !important;
+ -webkit-backdrop-filter: none !important;
+}
+
+html.portal-iris-active .login-hero__principle,
+html.portal-iris-settled .login-hero__principle {
+ animation: none !important;
+ opacity: 1 !important;
+}
diff --git a/src/api/channel/salesProduct.ts b/src/api/channel/salesProduct.ts
index 84a5863..7d5db84 100644
--- a/src/api/channel/salesProduct.ts
+++ b/src/api/channel/salesProduct.ts
@@ -214,18 +214,44 @@ export async function getSalesProductPublishSyncStatus(params: {
OnlinePublishTime?: string | null
pendingContentHash?: string | null
onlineContentHash?: string | null
+ approvalRequired?: boolean
+ ApprovalRequired?: boolean
+ approvalPending?: boolean
+ ApprovalPending?: boolean
+ approvalFailed?: boolean
+ ApprovalFailed?: boolean
+ approvalInstanceId?: number | null
+ ApprovalInstanceId?: number | null
+ approvalInstanceNo?: string | null
+ ApprovalInstanceNo?: string | null
+ approvalStatusName?: string | null
+ ApprovalStatusName?: string | null
+ approvalComment?: string | null
+ ApprovalComment?: string | null
}>(res.data)
}
+export type SalesProductPublishResult = {
+ decision?: string
+ Decision?: string
+ approvalInstanceId?: number
+ ApprovalInstanceId?: number
+ approvalInstanceNo?: string
+ ApprovalInstanceNo?: string
+ message?: string
+ Message?: string
+}
+
export async function publishSalesProduct(body: {
salesProductId: number | string
operatorType: string
description?: string
/** 价格发布必填:AI 风险分析报告原文 */
aiAnalysisReport?: string
-}) {
+}): Promise {
const res = await axiosInstance.post(omsUrl('/channel/sales-product/publish'), body)
assertBusinessOk(res.data)
+ return unwrapData(res.data)
}
export async function rollbackSalesProductPublish(body: {
diff --git a/src/api/customer/index.ts b/src/api/customer/index.ts
index 6cd2dd8..0a981bf 100644
--- a/src/api/customer/index.ts
+++ b/src/api/customer/index.ts
@@ -59,6 +59,8 @@ export interface CustomerListParams {
salesman?: string
customerService?: string
agentId?: number
+ /** 监控 KPI 下钻:total / newToday / online / inactive7d */
+ monitorScope?: 'total' | 'newToday' | 'online' | 'inactive7d' | string
sortField?: string
sortOrder?: string
}
diff --git a/src/api/operation/shipContainer.ts b/src/api/operation/shipContainer.ts
new file mode 100644
index 0000000..65d0a0e
--- /dev/null
+++ b/src/api/operation/shipContainer.ts
@@ -0,0 +1,204 @@
+import { axiosInstance } from '@/api/rbac'
+import { assertBusinessOk, omsUrl, unwrapData } from '@/api/oms/common'
+
+function post(path: string, body?: unknown): Promise {
+ return axiosInstance.post(omsUrl(path), body).then((res) => {
+ assertBusinessOk(res.data)
+ return unwrapData(res.data) as T
+ })
+}
+
+function get(path: string, params?: Record): Promise {
+ return axiosInstance.get(omsUrl(path), { params }).then((res) => {
+ assertBusinessOk(res.data)
+ return unwrapData(res.data) as T
+ })
+}
+
+export type ShipBagItem = {
+ id: number
+ orderId: number
+ waybillNo: string
+ orderStatus?: string
+ orderStatusName?: string
+ consigneeCountry?: string
+}
+
+export type ShipBag = {
+ id: number
+ bagNo: string
+ bagType: string
+ status: string
+ statusName?: string
+ warehouseId?: number
+ destinationCountry?: string
+ destinationPort?: string
+ channelCode?: string
+ length?: number
+ width?: number
+ height?: number
+ weight?: number
+ parcelCount: number
+ sealTime?: string
+ shipTime?: string
+ masterId?: number
+ remark?: string
+ createTime?: string
+ items?: ShipBagItem[]
+}
+
+export type ShipMasterItem = {
+ id: number
+ itemType: string
+ bagId?: number
+ bagNo?: string
+ orderId?: number
+ waybillNo?: string
+}
+
+export type ShipMaster = {
+ id: number
+ masterNo: string
+ externalMawb?: string
+ status: string
+ statusName?: string
+ warehouseId?: number
+ destinationCountry?: string
+ destinationPort?: string
+ flightOrVoyage?: string
+ length?: number
+ width?: number
+ height?: number
+ weight?: number
+ bagCount: number
+ parcelCount: number
+ sealTime?: string
+ handTime?: string
+ remark?: string
+ createTime?: string
+ items?: ShipMasterItem[]
+}
+
+export type ShipBagMetaInput = {
+ bagNo: string
+ destinationCountry?: string
+ destinationPort?: string
+ channelCode?: string
+ length?: number | null
+ width?: number | null
+ height?: number | null
+ weight?: number | null
+ remark?: string
+}
+
+export type ShipMasterMetaInput = {
+ masterNo: string
+ destinationCountry?: string
+ destinationPort?: string
+ flightOrVoyage?: string
+ length?: number | null
+ width?: number | null
+ height?: number | null
+ weight?: number | null
+ remark?: string
+}
+
+export type ShipPageResult = { items: T[]; total: number }
+
+export const createShipBag = (body: {
+ bagType?: string
+ warehouseId?: number
+ destinationCountry?: string
+ channelCode?: string
+ remark?: string
+}) => post('/operation/bag/create', body)
+
+export const addParcelToBag = (bagNo: string, waybillNo: string) =>
+ post('/operation/bag/add-parcel', { bagNo, waybillNo })
+
+export const removeParcelFromBag = (bagNo: string, waybillNo: string) =>
+ post('/operation/bag/remove-parcel', { bagNo, waybillNo })
+
+export const sealShipBag = (bagNo: string) => post('/operation/bag/seal', { bagNo })
+
+export const voidShipBag = (bagNo: string) => post('/operation/bag/void', { bagNo })
+
+export const updateShipBagMeta = (body: ShipBagMetaInput) =>
+ post('/operation/bag/update-meta', body)
+
+export const getShipBag = (bagNo: string) => get('/operation/bag/get', { bagNo })
+
+export const pageShipBags = (body: {
+ pageIndex?: number
+ pageSize?: number
+ keyword?: string
+ status?: string
+ warehouseId?: number
+}) => post>('/operation/bag/page', body)
+
+export type ShipPrintLabelItem = {
+ bagNo?: string
+ masterNo?: string
+ printUrl: string
+}
+
+export type ShipPrintLabelsResult = {
+ templateName?: string
+ items: ShipPrintLabelItem[]
+}
+
+/** POST /operation/bag/print-labels */
+export const printShipBagLabels = (body: { bagNos: string[]; labelTemplateId?: number }) =>
+ post('/operation/bag/print-labels', body)
+
+export const outboundByBag = (bagNo: string, warehouseId?: number) =>
+ post<{ bagNo: string; successCount: number; waybillNos: string[] }>(
+ '/operation/outbound/bag-create',
+ { bagNo, warehouseId },
+ )
+
+export const createShipMaster = (body: {
+ warehouseId?: number
+ destinationCountry?: string
+ flightOrVoyage?: string
+ externalMawb?: string
+ remark?: string
+}) => post('/operation/master/create', body)
+
+export const addBagToMaster = (masterNo: string, bagNo: string) =>
+ post('/operation/master/add-bag', { masterNo, bagNo })
+
+export const addParcelToMaster = (masterNo: string, waybillNo: string) =>
+ post('/operation/master/add-parcel', { masterNo, waybillNo })
+
+export const removeMasterItem = (masterNo: string, itemId: number) =>
+ post('/operation/master/remove-item', { masterNo, itemId })
+
+export const sealShipMaster = (masterNo: string) =>
+ post('/operation/master/seal', { masterNo })
+
+export const bindMasterMawb = (masterNo: string, externalMawb: string, flightOrVoyage?: string) =>
+ post('/operation/master/bind-mawb', { masterNo, externalMawb, flightOrVoyage })
+
+export const updateShipMasterMeta = (body: ShipMasterMetaInput) =>
+ post('/operation/master/update-meta', body)
+
+export const handOverMaster = (masterNo: string) =>
+ post('/operation/master/hand-over', { masterNo })
+
+export const getShipMaster = (masterNo: string) =>
+ get('/operation/master/get', { masterNo })
+
+export const pageShipMasters = (body: {
+ pageIndex?: number
+ pageSize?: number
+ keyword?: string
+ status?: string
+ warehouseId?: number
+}) => post>('/operation/master/page', body)
+
+/** POST /operation/master/print-labels */
+export const printShipMasterLabels = (body: {
+ masterNos: string[]
+ labelTemplateId?: number
+}) => post('/operation/master/print-labels', body)
diff --git a/src/api/system/approval.ts b/src/api/system/approval.ts
new file mode 100644
index 0000000..7931018
--- /dev/null
+++ b/src/api/system/approval.ts
@@ -0,0 +1,322 @@
+import { axiosInstance } from '@/api/rbac'
+import {
+ assertBusinessOk,
+ extractOmsRequestError,
+ omsUrl,
+ parseListPayload,
+ unwrapData,
+} from '@/api/oms/common'
+
+export interface ApprovalDefinitionDto {
+ id: number
+ operationCode: string
+ operationName: string
+ isEnabled: boolean
+ conditionFormula?: string | null
+ approverType: string
+ approverIds: string[]
+ forbidSelfApprove: boolean
+ remark?: string | null
+ createTime?: string
+ updateTime?: string
+}
+
+export interface ApprovalCatalogItem {
+ code: string
+ name: string
+ module: string
+ supportsCondition: boolean
+ conditionHint: string
+}
+
+export interface ApprovalInstanceDto {
+ id: number
+ instanceNo: string
+ operationCode: string
+ bizKey: string
+ title: string
+ status: number
+ statusName: string
+ applicantUserId: number
+ applicantUserGuid: string
+ applicantUserName?: string | null
+ payloadJson?: string | null
+ summaryJson?: string | null
+ definitionSnapshot?: string | null
+ currentTaskId?: number | null
+ createTime?: string
+ completedTime?: string | null
+ executedTime?: string | null
+ executeMessage?: string | null
+ concurrencyStamp?: string | null
+ canApprove?: boolean
+ canWithdraw?: boolean
+ events?: ApprovalEventDto[]
+}
+
+export interface ApprovalEventDto {
+ id: number
+ eventType: string
+ fromStatus?: number | null
+ toStatus?: number | null
+ operatorUserName?: string | null
+ message?: string | null
+ createTime?: string
+}
+
+function pickString(row: Record, ...keys: string[]) {
+ for (const key of keys) {
+ const value = row[key]
+ if (value != null && String(value).trim()) return String(value).trim()
+ }
+ return ''
+}
+
+function pickBool(row: Record, ...keys: string[]) {
+ for (const key of keys) {
+ const value = row[key]
+ if (typeof value === 'boolean') return value
+ if (value === 1 || value === '1' || value === 'true') return true
+ if (value === 0 || value === '0' || value === 'false') return false
+ }
+ return false
+}
+
+function pickNumber(row: Record, ...keys: string[]) {
+ for (const key of keys) {
+ const value = row[key]
+ if (typeof value === 'number' && Number.isFinite(value)) return value
+ const n = Number(value)
+ if (Number.isFinite(n)) return n
+ }
+ return 0
+}
+
+function pickIds(row: Record): string[] {
+ const raw = row.approverIds ?? row.ApproverIds
+ if (Array.isArray(raw)) return raw.map((x) => String(x).trim()).filter(Boolean)
+ if (typeof raw === 'string') {
+ return raw.split(/[,;,\s]+/).map((x) => x.trim()).filter(Boolean)
+ }
+ return []
+}
+
+export function mapDefinitionRow(row: Record): ApprovalDefinitionDto {
+ return {
+ id: pickNumber(row, 'id', 'Id'),
+ operationCode: pickString(row, 'operationCode', 'OperationCode'),
+ operationName: pickString(row, 'operationName', 'OperationName'),
+ isEnabled: pickBool(row, 'isEnabled', 'IsEnabled'),
+ conditionFormula: pickString(row, 'conditionFormula', 'ConditionFormula') || null,
+ approverType: pickString(row, 'approverType', 'ApproverType') || 'User',
+ approverIds: pickIds(row),
+ forbidSelfApprove: pickBool(row, 'forbidSelfApprove', 'ForbidSelfApprove'),
+ remark: pickString(row, 'remark', 'Remark') || null,
+ createTime: pickString(row, 'createTime', 'CreateTime') || undefined,
+ updateTime: pickString(row, 'updateTime', 'UpdateTime') || undefined,
+ }
+}
+
+export function mapInstanceRow(row: Record): ApprovalInstanceDto {
+ const eventsRaw = (row.events ?? row.Events) as Record[] | undefined
+ return {
+ id: pickNumber(row, 'id', 'Id'),
+ instanceNo: pickString(row, 'instanceNo', 'InstanceNo'),
+ operationCode: pickString(row, 'operationCode', 'OperationCode'),
+ bizKey: pickString(row, 'bizKey', 'BizKey'),
+ title: pickString(row, 'title', 'Title'),
+ status: pickNumber(row, 'status', 'Status'),
+ statusName: pickString(row, 'statusName', 'StatusName'),
+ applicantUserId: pickNumber(row, 'applicantUserId', 'ApplicantUserId'),
+ applicantUserGuid: pickString(row, 'applicantUserGuid', 'ApplicantUserGuid'),
+ applicantUserName: pickString(row, 'applicantUserName', 'ApplicantUserName') || null,
+ payloadJson: pickString(row, 'payloadJson', 'PayloadJson') || null,
+ summaryJson: pickString(row, 'summaryJson', 'SummaryJson') || null,
+ definitionSnapshot: pickString(row, 'definitionSnapshot', 'DefinitionSnapshot') || null,
+ currentTaskId: pickNumber(row, 'currentTaskId', 'CurrentTaskId') || null,
+ createTime: pickString(row, 'createTime', 'CreateTime') || undefined,
+ completedTime: pickString(row, 'completedTime', 'CompletedTime') || null,
+ executedTime: pickString(row, 'executedTime', 'ExecutedTime') || null,
+ executeMessage: pickString(row, 'executeMessage', 'ExecuteMessage') || null,
+ concurrencyStamp: pickString(row, 'concurrencyStamp', 'ConcurrencyStamp') || null,
+ canApprove: pickBool(row, 'canApprove', 'CanApprove'),
+ canWithdraw: pickBool(row, 'canWithdraw', 'CanWithdraw'),
+ events: Array.isArray(eventsRaw)
+ ? eventsRaw.map((e) => ({
+ id: pickNumber(e, 'id', 'Id'),
+ eventType: pickString(e, 'eventType', 'EventType'),
+ fromStatus: pickNumber(e, 'fromStatus', 'FromStatus') || null,
+ toStatus: pickNumber(e, 'toStatus', 'ToStatus') || null,
+ operatorUserName: pickString(e, 'operatorUserName', 'OperatorUserName') || null,
+ message: pickString(e, 'message', 'Message') || null,
+ createTime: pickString(e, 'createTime', 'CreateTime') || undefined,
+ }))
+ : [],
+ }
+}
+
+export async function getApprovalDefinitionList(params: {
+ page?: number
+ pageSize?: number
+ keyword?: string
+ isEnabled?: boolean | null
+}) {
+ const res = await axiosInstance.get(omsUrl('/system/approval/definition/list'), { params })
+ const { items, total } = parseListPayload(res.data)
+ return {
+ items: (items || []).map((row) => mapDefinitionRow(row as Record)),
+ total,
+ }
+}
+
+export async function getApprovalCatalog() {
+ const res = await axiosInstance.get(omsUrl('/system/approval/operation-catalog'))
+ const payload = unwrapData[] | null>(res.data)
+ if (!Array.isArray(payload)) return [] as ApprovalCatalogItem[]
+ return payload.map((row) => ({
+ code: pickString(row, 'code', 'Code'),
+ name: pickString(row, 'name', 'Name'),
+ module: pickString(row, 'module', 'Module'),
+ supportsCondition: pickBool(row, 'supportsCondition', 'SupportsCondition'),
+ conditionHint: pickString(row, 'conditionHint', 'ConditionHint'),
+ }))
+}
+
+export async function saveApprovalDefinition(body: {
+ id?: number
+ operationCode: string
+ isEnabled: boolean
+ conditionFormula?: string | null
+ approverType: string
+ approverIds: string[]
+ forbidSelfApprove: boolean
+ remark?: string | null
+}) {
+ try {
+ const res = await axiosInstance.post(omsUrl('/system/approval/definition/save'), body)
+ assertBusinessOk(res.data)
+ return mapDefinitionRow((unwrapData(res.data) || {}) as Record)
+ } catch (e) {
+ throw new Error(extractOmsRequestError(e))
+ }
+}
+
+export async function enableApprovalDefinition(id: number, isEnabled: boolean) {
+ try {
+ const res = await axiosInstance.post(omsUrl('/system/approval/definition/enable'), { id, isEnabled })
+ assertBusinessOk(res.data)
+ } catch (e) {
+ throw new Error(extractOmsRequestError(e))
+ }
+}
+
+export async function deleteApprovalDefinition(id: number) {
+ try {
+ const res = await axiosInstance.post(omsUrl('/system/approval/definition/delete'), { id })
+ assertBusinessOk(res.data)
+ } catch (e) {
+ throw new Error(extractOmsRequestError(e))
+ }
+}
+
+export async function getApprovalMyTodo(params: {
+ page?: number
+ pageSize?: number
+ keyword?: string
+}) {
+ const res = await axiosInstance.get(omsUrl('/system/approval/engine/my-todo'), { params })
+ const { items, total } = parseListPayload(res.data)
+ return {
+ items: (items || []).map((row) => mapInstanceRow(row as Record)),
+ total,
+ }
+}
+
+export async function getApprovalMySubmitted(params: {
+ page?: number
+ pageSize?: number
+ keyword?: string
+ status?: number | null
+}) {
+ const res = await axiosInstance.get(omsUrl('/system/approval/engine/my-submitted'), { params })
+ const { items, total } = parseListPayload(res.data)
+ return {
+ items: (items || []).map((row) => mapInstanceRow(row as Record)),
+ total,
+ }
+}
+
+export async function getApprovalDetail(id: number) {
+ const res = await axiosInstance.get(omsUrl('/system/approval/engine/detail'), { params: { id } })
+ return mapInstanceRow((unwrapData(res.data) || {}) as Record)
+}
+
+export async function approveApproval(body: {
+ instanceId: number
+ comment?: string
+ concurrencyStamp?: string | null
+}) {
+ try {
+ const res = await axiosInstance.post(omsUrl('/system/approval/engine/approve'), body)
+ assertBusinessOk(res.data)
+ } catch (e) {
+ throw new Error(extractOmsRequestError(e))
+ }
+}
+
+export async function rejectApproval(body: {
+ instanceId: number
+ comment: string
+ concurrencyStamp?: string | null
+}) {
+ try {
+ const res = await axiosInstance.post(omsUrl('/system/approval/engine/reject'), body)
+ assertBusinessOk(res.data)
+ } catch (e) {
+ throw new Error(extractOmsRequestError(e))
+ }
+}
+
+export async function withdrawApproval(body: {
+ instanceId: number
+ comment?: string
+ concurrencyStamp?: string | null
+}) {
+ try {
+ const res = await axiosInstance.post(omsUrl('/system/approval/engine/withdraw'), body)
+ assertBusinessOk(res.data)
+ } catch (e) {
+ throw new Error(extractOmsRequestError(e))
+ }
+}
+
+/** 终审后业务执行失败 / 历史空跑:重试 Handler(落发布、入账等) */
+export async function retryApprovalExecute(id: number) {
+ try {
+ const res = await axiosInstance.post(omsUrl('/system/approval/engine/retry-execute'), { id })
+ assertBusinessOk(res.data)
+ } catch (e) {
+ throw new Error(extractOmsRequestError(e))
+ }
+}
+
+export async function simulateApprovalSubmit(body: {
+ operationCode?: string
+ bizKey?: string
+ title?: string
+ payload?: unknown
+ summary?: unknown
+}) {
+ try {
+ const res = await axiosInstance.post(omsUrl('/system/approval/engine/simulate-submit'), body)
+ assertBusinessOk(res.data)
+ return unwrapData(res.data) as {
+ decision?: string
+ instanceId?: number
+ instanceNo?: string
+ message?: string
+ }
+ } catch (e) {
+ throw new Error(extractOmsRequestError(e))
+ }
+}
diff --git a/src/api/system/otherConfig.ts b/src/api/system/otherConfig.ts
index 16cd138..41b8161 100644
--- a/src/api/system/otherConfig.ts
+++ b/src/api/system/otherConfig.ts
@@ -52,6 +52,30 @@ export async function deleteSystemOtherConfig(id: number | string) {
assertBusinessOk(res.data)
}
+export type PaymentReceiveQrChannel = 'alipay' | 'wechat'
+
+export interface PaymentReceiveQrDto {
+ alipayUrl?: string
+ wechatUrl?: string
+}
+
+/** 获取充值收款码(支付宝 / 微信)可访问地址 */
+export async function getPaymentReceiveQr() {
+ const res = await axiosInstance.get(omsUrl('/system/other-config/payment-qr'))
+ return unwrapData(res.data)
+}
+
+/** 上传并替换充值收款码图片 */
+export async function uploadPaymentReceiveQr(channel: PaymentReceiveQrChannel, file: File) {
+ const form = new FormData()
+ form.append('channel', channel)
+ form.append('file', file)
+ const res = await axiosInstance.post(omsUrl('/system/other-config/payment-qr/upload'), form, {
+ headers: { 'Content-Type': 'multipart/form-data' },
+ })
+ return unwrapData(res.data)
+}
+
/** 轨迹服务默认配置编码 */
export const TRACK_SERVICE_CONFIG_CODE = 'track_service'
diff --git a/src/components.d.ts b/src/components.d.ts
index a07ad97..f8bb9d3 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -12,6 +12,7 @@ declare module 'vue' {
AgentSideRail: typeof import('./components/agent-side-rail/index.vue')['default']
AiAdvisorShell: typeof import('./components/NanaAssistant/AiAdvisorShell.vue')['default']
ApiTest: typeof import('./components/ApiTest/index.vue')['default']
+ ApprovalDetailDrawer: typeof import('./components/ApprovalDetailDrawer/index.vue')['default']
BasicLayoutLeftRight: typeof import('./components/BasicLayoutLeftRight/index.vue')['default']
Block: typeof import('./components/global-setting/block.vue')['default']
Cascader: typeof import('./components/CascaderPro/Cascader.vue')['default']
@@ -30,6 +31,7 @@ declare module 'vue' {
FormWrapper: typeof import('./components/global-setting/form-wrapper.vue')['default']
GlobalSetting: typeof import('./components/global-setting/index.vue')['default']
GuideAudienceTabs: typeof import('./components/GuideAudienceTabs/index.vue')['default']
+ H5ScanInput: typeof import('./components/h5/H5ScanInput.vue')['default']
HandsontablePro: typeof import('./components/HandsontablePro/index.vue')['default']
HeaderFilterPopover: typeof import('./components/HandsontablePro/HeaderFilterPopover.vue')['default']
InterfaceDetail: typeof import('./components/InterfaceDetail/index.vue')['default']
diff --git a/src/components/ApprovalDetailDrawer/index.vue b/src/components/ApprovalDetailDrawer/index.vue
new file mode 100644
index 0000000..2cc45e4
--- /dev/null
+++ b/src/components/ApprovalDetailDrawer/index.vue
@@ -0,0 +1,1060 @@
+
+
+
+
+ {{ t('system.approval.inbox.detailTitle') }}
+
+ {{ detail.statusName || '—' }}
+
+
+
+
+
+
+
+ {{ detail.title || '—' }}
+
+
+ {{ operationDisplayName(detail.operationCode) }}
+
+
+
+
+ {{ t('system.approval.inbox.basicInfo') }}
+
+
+
{{ item.label }}
+
{{ item.value }}
+
+
+
+
+
+ {{ t('system.approval.inbox.bizSummary') }}
+
+
+
+
+
+ {{ priceView.productCode }}
+ {{ priceView.productName }}
+
+
+ {{ priceView.riskTag }}
+
+
+
+ {{ t('system.approval.inbox.price.description') }}
+ {{ priceView.description }}
+
+
+
{{ t('system.approval.inbox.price.aiReport') }}
+
{{ priceView.aiSummary }}
+
{{ t('system.approval.inbox.price.noAiReport') }}
+
+ {{ t('system.approval.inbox.price.expandReport') }}
+ {{ priceView.aiReport }}
+
+
+
+
+
+
+
¥{{ rechargeView.amountText }}
+
+
+
{{ t('system.approval.inbox.recharge.customer') }}
+
+ {{ rechargeView.customerName || '—' }}
+
+ ({{ rechargeView.customerCode }})
+
+
+
+
+
{{ t('system.approval.inbox.recharge.payType') }}
+
{{ rechargeView.payTypeName }}
+
+
+
{{ t('system.approval.inbox.recharge.serialNo') }}
+
{{ rechargeView.serialNumber || '—' }}
+
+
+
{{ t('system.approval.inbox.recharge.remark') }}
+
{{ rechargeView.remark }}
+
+
+
+
{{ t('system.approval.inbox.recharge.screenshot') }}
+
+
{{ t('system.approval.inbox.recharge.noScreenshot') }}
+
+
+
+
+
+
+
+
{{ item.label }}
+
{{ item.value }}
+
+
+ {{ t('system.approval.inbox.noSummary') }}
+
+
+
+
+ {{ t('system.approval.inbox.timeline') }}
+
+
+
+
+ {{ eventTypeLabel(ev.eventType) }}
+ {{ formatTime(ev.createTime) }}
+
+
+ {{ ev.operatorUserName }}
+ {{ ev.message }}
+ —
+
+
+
+
+ {{ t('system.approval.inbox.noTimeline') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { if (!v) previewImageUrl = '' }"
+ >
+
+
![]()
+
+
+
+
+
+
+
diff --git a/src/components/NanaAssistant/AiAdvisorShell.vue b/src/components/NanaAssistant/AiAdvisorShell.vue
index 0d2fd5a..73dfda9 100644
--- a/src/components/NanaAssistant/AiAdvisorShell.vue
+++ b/src/components/NanaAssistant/AiAdvisorShell.vue
@@ -239,10 +239,19 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/h5/admin-center/customers/index.vue b/src/views/h5/admin-center/customers/index.vue
new file mode 100644
index 0000000..25b1cf7
--- /dev/null
+++ b/src/views/h5/admin-center/customers/index.vue
@@ -0,0 +1,497 @@
+
+
+
+
+
+
{{ t('h5Admin.customers.title') }}
+
{{ t(scopeHintKey) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.customerName || row.customerCode || '—' }}
+
+ {{ t('h5Admin.customers.onlineBadge') }}
+
+
+
+
+
+
+ {{ t('h5Admin.customers.loadMore') }}
+
+
+
+
+
+
+
+
diff --git a/src/views/h5/admin-center/layout.vue b/src/views/h5/admin-center/layout.vue
index 7bbe933..0c35dcd 100644
--- a/src/views/h5/admin-center/layout.vue
+++ b/src/views/h5/admin-center/layout.vue
@@ -13,7 +13,8 @@
>
-
+
+
@@ -28,12 +29,14 @@ import { hideWeChatBrowserNav } from '@/utils/device';
import { H5_ORDER_GROUPS, sumStatusCounts } from '@/constants/h5OrderStatus';
import LoginLangToggle from '@/views/login/components/LoginLangToggle.vue';
import AppTabBar from './components/AppTabBar.vue';
+import H5OpsHubSheet from './components/H5OpsHubSheet.vue';
defineOptions({ name: 'H5AdminCenterLayout' });
const { t, locale } = useI18n();
const route = useRoute();
const orderBadge = ref(0);
+const opsHubVisible = ref(false);
let idlePreloadHandle: number | null = null;
let badgeTimer: ReturnType | null = null;
@@ -45,6 +48,10 @@ const headerTitle = computed(() => {
return t(key);
});
+function syncDocumentTitle() {
+ document.title = t('h5Admin.documentTitle');
+}
+
async function refreshOrderBadge() {
if (!isLogin()) {
orderBadge.value = 0;
@@ -68,6 +75,7 @@ function scheduleBadgeRefresh() {
onMounted(() => {
hideWeChatBrowserNav();
+ syncDocumentTitle();
if (isLogin()) {
const run = () => void ensureFullLocaleMessages(locale.value);
if (typeof window !== 'undefined' && 'requestIdleCallback' in window) {
@@ -83,6 +91,10 @@ onMounted(() => {
}
});
+watch(locale, () => {
+ syncDocumentTitle();
+});
+
onBeforeUnmount(() => {
if (badgeTimer) clearTimeout(badgeTimer);
if (idlePreloadHandle != null) {
diff --git a/src/views/h5/admin-center/locale/en-US.ts b/src/views/h5/admin-center/locale/en-US.ts
index 5eb5f91..43d25a6 100644
--- a/src/views/h5/admin-center/locale/en-US.ts
+++ b/src/views/h5/admin-center/locale/en-US.ts
@@ -1,5 +1,6 @@
export default {
'h5Admin.center.title': 'Ops Center',
+ 'h5Admin.documentTitle': 'IDE Ops Center',
'h5Admin.tab.workplace': 'Home',
'h5Admin.tab.monitor': 'Monitor',
'h5Admin.tab.orders': 'Shipments',
@@ -31,6 +32,7 @@ export default {
'h5Admin.me.emptyRole': 'No roles',
'h5Admin.me.emptyOrg': 'No organization',
'h5Admin.me.emptyEmail': 'Not set',
+ 'h5Admin.me.changePassword': 'Change password',
'h5Admin.recharge.title': 'Recharge review',
'h5Admin.recharge.subtitle': 'Approve customer top-ups',
@@ -41,12 +43,15 @@ export default {
'h5Admin.recharge.loadMore': 'Load more',
'h5Admin.recharge.loadFailed': 'Failed to load',
'h5Admin.recharge.tab.pending': 'Pending',
+ 'h5Admin.recharge.tab.pendingApproval': 'Pending approval',
'h5Admin.recharge.tab.all': 'All',
'h5Admin.recharge.tab.success': 'Approved',
'h5Admin.recharge.tab.failed': 'Rejected',
'h5Admin.recharge.customer': 'Customer',
'h5Admin.recharge.serialNo': 'Serial No.',
'h5Admin.recharge.time': 'Time',
+ 'h5Admin.recharge.approvalNo': 'Approval No.',
+ 'h5Admin.recharge.approvalTip': 'In approval flow — handle it in PC Approval Inbox',
'h5Admin.recharge.remark': 'Remark',
'h5Admin.recharge.viewImage': 'Screenshot',
'h5Admin.recharge.approve': 'Approve',
@@ -144,4 +149,45 @@ export default {
'h5Admin.monitor.vsYesterday': 'vs yesterday',
'h5Admin.monitor.vsLastWeek': 'vs last week',
'h5Admin.monitor.vsLastMonth': 'vs last month',
+
+ 'h5Admin.customers.title': 'Customers',
+ 'h5Admin.customers.refresh': 'Refresh',
+ 'h5Admin.customers.search': 'Search',
+ 'h5Admin.customers.searchPh': 'Code / name / phone',
+ 'h5Admin.customers.empty': 'No customers',
+ 'h5Admin.customers.loadMore': 'Load more',
+ 'h5Admin.customers.code': 'Code',
+ 'h5Admin.customers.phone': 'Phone',
+ 'h5Admin.customers.createTime': 'Registered',
+ 'h5Admin.customers.lastLogin': 'Last login',
+ 'h5Admin.customers.onlineBadge': 'Online',
+ 'h5Admin.customers.hint.total': 'All active customers',
+ 'h5Admin.customers.hint.newToday': 'Registered today',
+ 'h5Admin.customers.hint.online': 'Logged in within 30 minutes',
+ 'h5Admin.customers.hint.inactive7d': 'No login for 7+ days',
+
+ 'h5Admin.ops.fab': 'Ops',
+ 'h5Admin.ops.hubTitle': 'Warehouse ops',
+ 'h5Admin.ops.hubHint': 'Arrival, inbound, outbound, and pick',
+ 'h5Admin.ops.noPermission': 'No ops permission',
+ 'h5Admin.ops.parcelArrival': 'Parcel arrival',
+ 'h5Admin.ops.parcelArrivalDesc': 'Scan domestic tracking to arrive',
+ 'h5Admin.ops.inbound': 'Inbound scan',
+ 'h5Admin.ops.inboundDesc': 'Scan waybill and enter dimensions',
+ 'h5Admin.ops.outbound': 'Outbound scan',
+ 'h5Admin.ops.outboundDesc': 'Scan waybill and verify weight',
+ 'h5Admin.ops.fulfillPack': 'Fulfill pick',
+ 'h5Admin.ops.fulfillPackDesc': 'Locate order and confirm pack',
+ 'h5Admin.ops.scanGunHint': 'Scan into the field with a gun, or tap the scan icon for camera',
+ 'h5Admin.ops.cameraSheetTitle': 'Camera scan',
+ 'h5Admin.ops.cameraSheetHint': 'Aim at the barcode; it fills and closes on success',
+ 'h5Admin.ops.cameraClose': 'Close',
+ 'h5Admin.ops.torchOn': 'Torch on',
+ 'h5Admin.ops.torchOff': 'Torch off',
+ 'h5Admin.ops.recentRecords': 'Recent',
+ 'h5Admin.ops.emptyRecent': 'No records',
+ 'h5Admin.ops.lookup': 'Lookup',
+ 'h5Admin.ops.refresh': 'Refresh',
+ 'h5Admin.ops.fulfillQueue': 'Pick queue',
+ 'h5Admin.ops.switchWarehouse': 'Switch warehouse',
};
diff --git a/src/views/h5/admin-center/locale/zh-CN.ts b/src/views/h5/admin-center/locale/zh-CN.ts
index 77d105c..99f9952 100644
--- a/src/views/h5/admin-center/locale/zh-CN.ts
+++ b/src/views/h5/admin-center/locale/zh-CN.ts
@@ -1,5 +1,6 @@
export default {
'h5Admin.center.title': '运营中心',
+ 'h5Admin.documentTitle': 'IDE运营中心',
'h5Admin.tab.workplace': '工作台',
'h5Admin.tab.monitor': '监控',
'h5Admin.tab.orders': '运单',
@@ -31,6 +32,7 @@ export default {
'h5Admin.me.emptyRole': '暂无角色',
'h5Admin.me.emptyOrg': '未分配组织',
'h5Admin.me.emptyEmail': '未填写',
+ 'h5Admin.me.changePassword': '修改密码',
'h5Admin.recharge.title': '充值审核',
'h5Admin.recharge.subtitle': '审核客户充值申请',
@@ -41,12 +43,15 @@ export default {
'h5Admin.recharge.loadMore': '加载更多',
'h5Admin.recharge.loadFailed': '加载失败',
'h5Admin.recharge.tab.pending': '待审核',
+ 'h5Admin.recharge.tab.pendingApproval': '待审批',
'h5Admin.recharge.tab.all': '全部',
'h5Admin.recharge.tab.success': '已通过',
'h5Admin.recharge.tab.failed': '已驳回',
'h5Admin.recharge.customer': '客户',
'h5Admin.recharge.serialNo': '流水号',
'h5Admin.recharge.time': '时间',
+ 'h5Admin.recharge.approvalNo': '审批号',
+ 'h5Admin.recharge.approvalTip': '已进入审批流,请到 PC「审批待办」处理',
'h5Admin.recharge.remark': '备注',
'h5Admin.recharge.viewImage': '查看截图',
'h5Admin.recharge.approve': '通过',
@@ -144,4 +149,45 @@ export default {
'h5Admin.monitor.vsYesterday': '较昨日',
'h5Admin.monitor.vsLastWeek': '较上周',
'h5Admin.monitor.vsLastMonth': '较上月',
+
+ 'h5Admin.customers.title': '客户列表',
+ 'h5Admin.customers.refresh': '刷新',
+ 'h5Admin.customers.search': '搜索',
+ 'h5Admin.customers.searchPh': '编号 / 名称 / 手机',
+ 'h5Admin.customers.empty': '暂无客户',
+ 'h5Admin.customers.loadMore': '加载更多',
+ 'h5Admin.customers.code': '编号',
+ 'h5Admin.customers.phone': '手机',
+ 'h5Admin.customers.createTime': '注册',
+ 'h5Admin.customers.lastLogin': '最近登录',
+ 'h5Admin.customers.onlineBadge': '在线',
+ 'h5Admin.customers.hint.total': '全部正常客户',
+ 'h5Admin.customers.hint.newToday': '今日新注册客户',
+ 'h5Admin.customers.hint.online': '近 30 分钟有登录',
+ 'h5Admin.customers.hint.inactive7d': '超过 7 天未登录',
+
+ 'h5Admin.ops.fab': '操作',
+ 'h5Admin.ops.hubTitle': '仓操入口',
+ 'h5Admin.ops.hubHint': '扫码到仓、入库、出库与代发拣货',
+ 'h5Admin.ops.noPermission': '暂无操作权限',
+ 'h5Admin.ops.parcelArrival': '快递到仓',
+ 'h5Admin.ops.parcelArrivalDesc': '扫国内快递单确认到仓',
+ 'h5Admin.ops.inbound': '入库扫描',
+ 'h5Admin.ops.inboundDesc': '扫运单入库并录入材积',
+ 'h5Admin.ops.outbound': '出库扫描',
+ 'h5Admin.ops.outboundDesc': '扫运单出库并核对重量',
+ 'h5Admin.ops.fulfillPack': '代发拣货',
+ 'h5Admin.ops.fulfillPackDesc': '扫码定位并确认打包',
+ 'h5Admin.ops.scanGunHint': '扫码枪对准输入框即可;无枪时点右侧扫码图标开摄像头',
+ 'h5Admin.ops.cameraSheetTitle': '摄像头扫码',
+ 'h5Admin.ops.cameraSheetHint': '对准条码,识别成功后自动填入并关闭',
+ 'h5Admin.ops.cameraClose': '关闭',
+ 'h5Admin.ops.torchOn': '开灯',
+ 'h5Admin.ops.torchOff': '关灯',
+ 'h5Admin.ops.recentRecords': '最近记录',
+ 'h5Admin.ops.emptyRecent': '暂无记录',
+ 'h5Admin.ops.lookup': '查询',
+ 'h5Admin.ops.refresh': '刷新',
+ 'h5Admin.ops.fulfillQueue': '待拣货队列',
+ 'h5Admin.ops.switchWarehouse': '切换仓库',
};
diff --git a/src/views/h5/admin-center/login/index.vue b/src/views/h5/admin-center/login/index.vue
index c0fa9c6..3647cef 100644
--- a/src/views/h5/admin-center/login/index.vue
+++ b/src/views/h5/admin-center/login/index.vue
@@ -68,7 +68,7 @@ import { OmsLoginType } from '@/api/rbac';
import { isLogin, setToken } from '@/utils/auth';
import { applyRbacUserToUserStore } from '@/utils/enter-system';
import { ensureFullLocaleMessages } from '@/locale';
-import { useRbacUserStore } from '@/store/modules/rbac-user';
+import { loginErrorForUser, useRbacUserStore } from '@/store/modules/rbac-user';
import { ADMIN_H5_HOME_PATH, isAdminH5Path } from '@/utils/login-portal';
import logoImg from '@/assets/logo2.png';
import LoginLangToggle from '@/views/login/components/LoginLangToggle.vue';
@@ -144,13 +144,14 @@ async function handleSubmit() {
Message.success(t('h5Admin.login.success'));
await finishLogin();
} catch (e: any) {
- errorBox.value = e?.message || t('h5Admin.login.failed');
+ errorBox.value = loginErrorForUser(e?.message || '') || t('h5Admin.login.failed');
} finally {
loading.value = false;
}
}
onMounted(() => {
+ document.title = t('h5Admin.documentTitle');
if (isLogin() && rbacUserStore.loginPortalType === OmsLoginType.User) {
router.replace(resolveRedirectPath());
}
diff --git a/src/views/h5/admin-center/me/index.vue b/src/views/h5/admin-center/me/index.vue
index 342fecc..b30a878 100644
--- a/src/views/h5/admin-center/me/index.vue
+++ b/src/views/h5/admin-center/me/index.vue
@@ -25,16 +25,22 @@
{{ t('h5Admin.me.email') }}
{{ email }}
+
+
+
+
+
+
+
diff --git a/src/views/h5/admin-center/ops/fulfill-pack.vue b/src/views/h5/admin-center/ops/fulfill-pack.vue
new file mode 100644
index 0000000..eca4d82
--- /dev/null
+++ b/src/views/h5/admin-center/ops/fulfill-pack.vue
@@ -0,0 +1,309 @@
+
+
+
+
+
+
+
+
+
+
+ {{ feedbackMessage }}
+
+
+
+ {{ lookup.serviceNo || lookup.clientNo || lookup.orderId }}
+
+ {{ lookup.salesProductName || '-' }} ·
+ {{ lookup.destinationCountryName || lookup.destinationCountry || '-' }} ·
+ {{ bindStatusLabel }}
+
+
+ {{ item.skuName || item.skuCode || item.productName || '-' }}
+
+ {{ item.skuCode || '-' }}
+ · {{ item.binCode }}
+ · x{{ item.bindQty }}
+
+ {{ item.trackingNo }}
+
+
+
+
+
+
+
{{ t('h5Admin.ops.fulfillQueue') }}
+
+
+
+
+ {{ t('h5Admin.ops.emptyRecent') }}
+
+
+ {{ row.waybillNo || '-' }}
+
+ {{ row.primaryBinCode || '-' }} · {{ row.primarySkuCodes || '-' }} ·
+ x{{ row.stockBindQtyTotal || 0 }}
+
+ {{ progressLabel(row.fulfillProgress) }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/h5/admin-center/ops/inbound.vue b/src/views/h5/admin-center/ops/inbound.vue
new file mode 100644
index 0000000..9b699c2
--- /dev/null
+++ b/src/views/h5/admin-center/ops/inbound.vue
@@ -0,0 +1,285 @@
+
+
+
+
+
+
+
+
+
+
+ {{ feedbackMessage }}
+
+
+
+ {{ form.waybillNumber || '-' }}
+
+ {{ form.salesProductName || '-' }} · {{ form.destinationCountryName || '-' }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('h5Admin.ops.recentRecords') }}
+
+
+ {{ t('h5Admin.ops.emptyRecent') }}
+
+
+ {{ row.waybillNumber }}
+ {{ row.weight }} KG · {{ row.dimensions }}
+ {{ row.orderStatusName || row.operateTime }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/h5/admin-center/ops/ops-shared.less b/src/views/h5/admin-center/ops/ops-shared.less
new file mode 100644
index 0000000..e7aa9ef
--- /dev/null
+++ b/src/views/h5/admin-center/ops/ops-shared.less
@@ -0,0 +1,181 @@
+.h5-ops {
+ padding: 10px 16px 28px;
+ box-sizing: border-box;
+}
+
+.h5-ops__scan-row {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ margin-bottom: 10px;
+
+ > :first-child {
+ flex: 1;
+ min-width: 0;
+ }
+}
+
+.h5-ops__primary {
+ flex: 0 0 auto;
+ height: 44px;
+ padding: 0 14px;
+ border: none;
+ border-radius: 12px;
+ background: var(--app-primary-color, #1d7281);
+ color: #fff;
+ font-size: 13px;
+ white-space: nowrap;
+ cursor: pointer;
+
+ &:disabled {
+ opacity: 0.55;
+ }
+}
+
+.h5-ops__feedback {
+ margin: 0 0 12px;
+ padding: 10px 12px;
+ border-radius: 10px;
+ font-size: 13px;
+ line-height: 1.4;
+
+ &.is-success {
+ background: rgba(0, 180, 42, 0.1);
+ color: #00b42a;
+ }
+
+ &.is-error {
+ background: rgba(245, 63, 63, 0.1);
+ color: #f53f3f;
+ }
+
+ &.is-warning {
+ background: rgba(255, 125, 0, 0.12);
+ color: #ff7d00;
+ }
+}
+
+.h5-ops__panel {
+ margin-bottom: 14px;
+ padding: 14px;
+ border-radius: 14px;
+ background: #fff;
+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
+}
+
+.h5-ops__waybill {
+ margin: 0 0 6px;
+ font-size: 16px;
+ font-weight: 700;
+ color: var(--h5-text, #1d2129);
+ word-break: break-all;
+}
+
+.h5-ops__meta {
+ margin: 0 0 12px;
+ font-size: 12px;
+ color: var(--h5-text-3, #86909c);
+ line-height: 1.5;
+}
+
+.h5-ops__metrics {
+ display: grid;
+ gap: 10px;
+}
+
+.h5-ops__field {
+ display: grid;
+ gap: 6px;
+
+ label {
+ font-size: 12px;
+ color: var(--h5-text-2, #4e5969);
+ }
+
+ input {
+ height: 36px;
+ padding: 0 10px;
+ border: none;
+ border-radius: 10px;
+ background: var(--h5-well-bg, #f0f3f4);
+ font-size: 14px;
+ outline: none;
+ }
+}
+
+.h5-ops__dims {
+ display: grid;
+ grid-template-columns: 1fr auto 1fr auto 1fr;
+ gap: 6px;
+ align-items: center;
+
+ span {
+ color: var(--h5-text-3, #86909c);
+ }
+}
+
+.h5-ops__recent {
+ h2 {
+ margin: 0 0 10px;
+ font-size: 15px;
+ color: var(--h5-text, #1d2129);
+ }
+}
+
+.h5-ops__empty {
+ margin: 0;
+ padding: 18px 0;
+ text-align: center;
+ font-size: 13px;
+ color: var(--h5-text-3, #86909c);
+}
+
+.h5-ops__card {
+ display: grid;
+ gap: 4px;
+ margin-bottom: 8px;
+ padding: 12px;
+ border-radius: 12px;
+ background: #fff;
+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
+
+ strong {
+ font-size: 14px;
+ color: var(--h5-text, #1d2129);
+ word-break: break-all;
+ }
+
+ span,
+ em {
+ font-size: 12px;
+ color: var(--h5-text-3, #86909c);
+ font-style: normal;
+ }
+
+ &.is-active {
+ outline: 2px solid color-mix(in srgb, var(--app-primary-color) 45%, transparent);
+ }
+}
+
+.h5-ops__queue-head {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+ margin-bottom: 10px;
+
+ h2 {
+ margin: 0;
+ }
+
+ button {
+ height: 28px;
+ padding: 0 10px;
+ border: none;
+ border-radius: 8px;
+ background: var(--h5-well-bg, #f0f3f4);
+ color: var(--h5-text-2, #4e5969);
+ font-size: 12px;
+ cursor: pointer;
+ }
+}
diff --git a/src/views/h5/admin-center/ops/outbound.vue b/src/views/h5/admin-center/ops/outbound.vue
new file mode 100644
index 0000000..667b8ea
--- /dev/null
+++ b/src/views/h5/admin-center/ops/outbound.vue
@@ -0,0 +1,275 @@
+
+
+
+
+
+
+
+
+
+
+ {{ feedbackMessage }}
+
+
+
+ {{ form.waybillNumber || '-' }}
+
+ {{ form.salesProductName || '-' }} · {{ form.destinationCountryName || '-' }}
+ · {{ form.serviceChannelName }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('h5Admin.ops.recentRecords') }}
+
+
+ {{ t('h5Admin.ops.emptyRecent') }}
+
+
+ {{ row.waybillNumber }}
+ {{ row.weight }} KG · {{ row.dimensions }}
+ {{ row.operateTime }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/h5/admin-center/ops/parcel-arrival.vue b/src/views/h5/admin-center/ops/parcel-arrival.vue
new file mode 100644
index 0000000..3d3998e
--- /dev/null
+++ b/src/views/h5/admin-center/ops/parcel-arrival.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+
+
+ {{ feedbackMessage }}
+
+
+
+ {{ t('warehouse.parcelArrival.recent.title') }}
+
+
+ {{ t('h5Admin.ops.emptyRecent') }}
+
+
+ {{ row.trackingNo }}
+ {{ row.warehouseName }}
+ {{ row.operateTime }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/h5/admin-center/recharge/index.vue b/src/views/h5/admin-center/recharge/index.vue
index 5768546..6919091 100644
--- a/src/views/h5/admin-center/recharge/index.vue
+++ b/src/views/h5/admin-center/recharge/index.vue
@@ -67,8 +67,8 @@
¥{{ formatAmount(row.payAmount) }}
-
- {{ statusLabel(row.payStatus) }}
+
+ {{ statusLabel(row.payStatus, row.approvalPending) }}
@@ -90,6 +90,10 @@
{{ t('h5Admin.recharge.time') }}
{{ formatTime(row.payTime) }}
+
+ {{ t('h5Admin.recharge.approvalNo') }}
+ {{ row.approvalInstanceNo }}
+
{{ t('h5Admin.recharge.remark') }}
{{ row.remarks }}
@@ -105,7 +109,10 @@
>
{{ t('h5Admin.recharge.viewImage') }}
-
+
+ {{ t('h5Admin.recharge.approvalTip') }}
+
+
diff --git a/src/views/login/components/LoginPortalSwitch.vue b/src/views/login/components/LoginPortalSwitch.vue
index 831ab43..b661048 100644
--- a/src/views/login/components/LoginPortalSwitch.vue
+++ b/src/views/login/components/LoginPortalSwitch.vue
@@ -5,6 +5,8 @@
:to="to"
replace
:aria-label="label"
+ @pointerenter="preloadTarget"
+ @focus="preloadTarget"
@click="onSwitchClick"
>
@@ -36,6 +38,20 @@ const label = computed(() =>
: t('login.switchToCustomer'),
);
+const TARGET_HERO: Record<'admin' | 'customer', string> = {
+ admin: '/login-assets/hero-truck.png',
+ customer: '/login-assets/hero-plane.webp',
+};
+
+let targetPreloaded = false;
+
+function preloadTarget() {
+ if (targetPreloaded) return;
+ targetPreloaded = true;
+ const hero = new Image();
+ hero.src = TARGET_HERO[props.target];
+}
+
function onSwitchClick(e: MouseEvent) {
if (
e.button !== 0 ||
diff --git a/src/views/login/components/pwd-login/index.vue b/src/views/login/components/pwd-login/index.vue
index f554177..ef1a855 100644
--- a/src/views/login/components/pwd-login/index.vue
+++ b/src/views/login/components/pwd-login/index.vue
@@ -105,7 +105,7 @@ import { useI18n } from 'vue-i18n';
import { Message } from '@arco-design/web-vue';
import { IconWechat } from '@arco-design/web-vue/es/icon';
import { OmsLoginType } from '@/api/rbac';
-import { useRbacUserStore } from '@/store/modules/rbac-user';
+import { loginErrorForUser, useRbacUserStore } from '@/store/modules/rbac-user';
import { setToken } from '@/utils/auth';
import { getDefaultHomePathByType, resolveCustomerEntryPath } from '@/utils/login-portal';
import { enterSystemAfterLogin, applyRbacUserToUserStore } from '@/utils/enter-system';
@@ -358,7 +358,7 @@ async function handleSubmit() {
props.loginType,
);
} catch (loginErr: unknown) {
- const msg = loginErr instanceof Error ? loginErr.message.trim() : '';
+ const msg = loginErr instanceof Error ? loginErrorForUser(loginErr.message) : '';
errorBox.value = msg || t('login.form.login.failed');
loginCharacters.value?.onLoginFailed();
return;
diff --git a/src/views/login/composables/useLoginCharacters.ts b/src/views/login/composables/useLoginCharacters.ts
index 660270a..7dec065 100644
--- a/src/views/login/composables/useLoginCharacters.ts
+++ b/src/views/login/composables/useLoginCharacters.ts
@@ -1,5 +1,6 @@
import { onBeforeUnmount, onMounted, ref, shallowRef, nextTick, type Ref } from 'vue';
import gsap from 'gsap';
+import { isPortalIrisActive } from '@/utils/page-transition-flag';
export interface LoginCharactersApi {
onAccountFocus: () => void;
@@ -458,6 +459,10 @@ export function useLoginCharacters(refs: CharacterRefs) {
}
function tick() {
+ if (isPortalIrisActive()) {
+ rafId = requestAnimationFrame(tick);
+ return;
+ }
const container = refs.container.value;
updateMouthExpressions();
if (!container) {
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 981c1b8..4f18c3d 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -13,7 +13,7 @@
@@ -113,6 +113,7 @@ import {
type LoginCharactersApi,
} from './composables/useLoginCharacters';
import { LOGIN_EXIT_KEY, type LoginExitApi } from './composables/useLoginExit';
+import { isPortalIrisActive } from '@/utils/page-transition-flag';
/** Admin login never mounts WeChat; keep it out of the critical path */
const WechatLogin = defineAsyncComponent(
@@ -142,6 +143,8 @@ const brandCornerSuffix = computed(() =>
);
/** 角色动画偏重,首屏延后一帧再挂,管理端也挂但异步分包 */
const showCharacters = ref(false);
+/** 管理端关怀条在翻页结束后再挂,避免展开过程中插入一块新图层 */
+const careBannerReady = ref(!isPortalIrisActive());
const activeKey = ref<'pwd' | 'wechat'>('pwd');
const wechatMounted = ref(false);
const wechatLoginRef = ref<{ prefetch?: () => void } | null>(null);
@@ -293,21 +296,42 @@ function prefetchWechatQr() {
});
}
+/** 翻页进行中主线程要让给裁剪动画,装饰内容等动画结束后再挂 */
+function afterPortalIris(run: () => void) {
+ if (!isPortalIrisActive()) {
+ run();
+ return;
+ }
+ const started = performance.now();
+ const wait = () => {
+ if (!isPortalIrisActive() || performance.now() - started > 1800) {
+ run();
+ return;
+ }
+ window.setTimeout(wait, 80);
+ };
+ window.setTimeout(wait, 80);
+}
+
onMounted(() => {
document.documentElement.classList.add(LOGIN_PAGE_SCROLL_LOCK_CLASS);
shellReady.value = true;
const idle = window.requestIdleCallback
? (cb: () => void, timeout = 1200) => window.requestIdleCallback(cb, { timeout })
: (cb: () => void, timeout = 1200) => window.setTimeout(cb, Math.min(timeout, 400));
- // 表单先出,空闲后再挂角色,避免和首屏 JS/图抢带宽
- idle(() => {
- showCharacters.value = true;
- }, 1600);
- idle(() => {
- void import('@/locale').then(({ ensureFullLocaleMessages }) => {
- void ensureFullLocaleMessages();
- });
- }, 2500);
+ const enteredByIris = isPortalIrisActive();
+ afterPortalIris(() => {
+ careBannerReady.value = true;
+ // 表单先出,空闲后再挂角色,避免和首屏 JS/图抢带宽
+ idle(() => {
+ showCharacters.value = true;
+ }, enteredByIris ? 480 : 1600);
+ idle(() => {
+ void import('@/locale').then(({ ensureFullLocaleMessages }) => {
+ void ensureFullLocaleMessages();
+ });
+ }, 2500);
+ });
});
onBeforeUnmount(() => {
@@ -327,6 +351,9 @@ onBeforeUnmount(() => {
--login-right-bg: var(--app-page-bg, #f0f3f4);
box-sizing: border-box;
+ /* 官网 body 行高 1.55 会留到翻页结束。钉成页面默认 1.15,避免卸样式时登录卡缩短下移 */
+ font-size: 14px;
+ line-height: 1.15;
height: 100dvh;
max-height: 100dvh;
min-height: 100dvh;
diff --git a/src/views/operation/bagManage/index.vue b/src/views/operation/bagManage/index.vue
new file mode 100644
index 0000000..2afe374
--- /dev/null
+++ b/src/views/operation/bagManage/index.vue
@@ -0,0 +1,684 @@
+
+
+
+
+
+
+
+
+
+
+
+ 将打印 {{ pendingPrintBagNos.length }} 个大包 · 模板类型:大包标签
+
+
+
+
+
+
+
+
+
+
+
+ {{ detail.bagType === 'box' ? '箱' : '袋' }}
+
+
{{ detail.bagNo }}
+
+
+
+
+
+
+
+ 仅「装袋中」可增删小包;已出库/作废属性只读。
+
+
+
+
+
+
+
+
+
+ 移出
+
+
+
+
+
+ 暂无小包
+
+
+
+
+
+
+
diff --git a/src/views/operation/bagPack/index.vue b/src/views/operation/bagPack/index.vue
new file mode 100644
index 0000000..17dcf8e
--- /dev/null
+++ b/src/views/operation/bagPack/index.vue
@@ -0,0 +1,704 @@
+
+
+
+
+
+
+
+
+
装袋作业
+
开新袋后连续扫运单入袋;也可加载装袋中的大包继续作业。
+
+
+
loadByNo(false)"
+ />
+ loadByNo(false)">
+ 加载
+
+
+
+ {{ feedbackMessage }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ bagTypeLabel }}
+
+
+
+ {{ activeBag!.statusName || activeBag!.status }}
+
+
{{ activeBag!.parcelCount }} 件
+
+
+
refreshBag(false)">刷新
+
切换大包
+
+
+
+
+
+
+
+
+ {{ feedbackMessage }}
+
+
同袋建议同目的国;小包也可不装袋直接出库。
+
+
+
+
+
+
+
+
+
+ {{ bagTypeLabel }}
+
+
+
{{ activeBag!.bagNo }}
+
+
+
+ 目的国 {{ activeBag!.destinationCountry }}
+
+ 渠道 {{ activeBag!.channelCode }}
+
+
+
+
+
+ 袋内件数
+ {{ activeBag!.parcelCount }}
+
+
+ 最近入袋
+ {{ lastWaybillNo || '—' }}
+
+
+ 封袋时间
+ {{ activeBag!.sealTime || '—' }}
+
+
+
+
+
+
+
+
+
+
+ 请选择要开的是麻袋还是箱子
+
+
+
+
+ 正在开袋…
+
+
+
+
+
diff --git a/src/views/operation/masterBill/index.vue b/src/views/operation/masterBill/index.vue
new file mode 100644
index 0000000..9d2d4c6
--- /dev/null
+++ b/src/views/operation/masterBill/index.vue
@@ -0,0 +1,732 @@
+
+
+
+
+
+
+
+
+
+
+
+ 将打印 {{ pendingPrintMasterNos.length }} 个主单 · 模板类型:主单标签
+
+
+
+
+
+
+
+
+
+
{{ detail.masterNo }}
+
+
+
+
+
+
+ 仅「打板中」可增删板上明细;已交运/作废属性只读。
+
+
+
+
+
+
+ {{ record.itemType === 'bag' ? '大包' : '小包' }}
+
+
+
+
+ {{ record.bagNo || '—' }}
+
+
+ {{ record.waybillNo || '—' }}
+
+
+
+
+ 移出
+
+
+
+
+
+ 暂无板上明细
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/operation/masterBoard/index.vue b/src/views/operation/masterBoard/index.vue
new file mode 100644
index 0000000..166144a
--- /dev/null
+++ b/src/views/operation/masterBoard/index.vue
@@ -0,0 +1,597 @@
+
+
+
+
+
+
+
+
打板作业
+
开主单后扫大包或散货小包上板;也可加载打板中主单继续。
+
+
confirmCreateMaster(false)"
+ >
+ 开主单
+
+
+
+
loadMaster(false)"
+ />
+ loadMaster(false)">
+ 加载
+
+
+
+ {{ feedbackMessage }}
+
+
+
+
+
+
+
+
+
+
当前
+
+
+ {{ active!.statusName || active!.status }}
+
+
+ 大包 {{ active!.bagCount }} · 小包 {{ active!.parcelCount }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ feedbackMessage }}
+
+
+ 大包须已封袋;散货可不装袋上板。小包也可不走主单单独出库。
+
+
+
+
+
+
+
+
+
{{ active!.masterNo }}
+
+
+ 目的国 {{ active!.destinationCountry }}
+ MAWB {{ active!.externalMawb }}
+
+
+
+
+
+ 板上条目
+ {{ items.length }}
+
+
+ 最近上板
+ {{ lastScanNo || '—' }}
+
+
+ 封板时间
+ {{ active!.sealTime || '—' }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/operation/outboundScan/index.vue b/src/views/operation/outboundScan/index.vue
index 85eee2b..a871c93 100644
--- a/src/views/operation/outboundScan/index.vue
+++ b/src/views/operation/outboundScan/index.vue
@@ -3,11 +3,19 @@
- {{ $t('operation.outbound.form.hint.supportedTypes') }}
+
+ {{
+ scanMode === 'bag'
+ ? '大包须已封袋;按袋内入库/预报件重尺批量出库。小包也可不装袋单独出库。'
+ : $t('operation.outbound.form.hint.supportedTypes')
+ }}
+
@@ -51,7 +65,17 @@
{{ feedbackMessage }}
-
+
+
+
+
{{ formData.waybillNumber || '-' }}
+
+ 模式:大包出库(无需再填件重尺)
+
+
+
+
+
{{ formData.waybillNumber || '-' }}
@@ -153,6 +177,7 @@ import { useTableContainerHeight } from '@/composables/useTableContainerHeight'
import { useOperationScanFocus } from '@/composables/useOperationScanFocus'
import { useOperationScanFeedback } from '@/composables/useOperationScanFeedback'
import { outboundCreate, outboundRecentList, outboundOrderLookup } from '@/api/operation'
+import { outboundByBag } from '@/api/operation/shipContainer'
import { withServerFilterColumns } from '@/utils/headerFilterAdapter'
const { t } = useI18n()
@@ -171,6 +196,7 @@ const {
defineOptions({ name: 'OutboundScan' })
+const scanMode = ref<'parcel' | 'bag'>('parcel')
const submitting = ref(false)
const lookingUp = ref(false)
const listLoading = ref(false)
@@ -329,6 +355,10 @@ async function ensureOrderLookup(): Promise
{
}
async function onScanEnter() {
+ if (scanMode.value === 'bag') {
+ await handleSubmit()
+ return
+ }
const ok = await ensureOrderLookup()
if (!ok) return
if (hasMetrics()) {
@@ -340,10 +370,28 @@ async function onScanEnter() {
async function handleSubmit() {
if (!formData.waybillNumber?.trim()) {
- showWarning(t('operation.outbound.message.waybillNumberRequired'))
+ showWarning(
+ scanMode.value === 'bag' ? '请输入大包号' : t('operation.outbound.message.waybillNumberRequired'),
+ )
maybeRefocusScan()
return
}
+ if (scanMode.value === 'bag') {
+ submitting.value = true
+ try {
+ const result = await outboundByBag(formData.waybillNumber.trim())
+ showSuccess(`大包出库成功,共 ${result.successCount} 票`)
+ handleReset(false)
+ await loadRecent()
+ maybeRefocusScan()
+ } catch (e: any) {
+ showError(e?.message || t('operation.outbound.message.outboundFailed'))
+ maybeRefocusScan()
+ } finally {
+ submitting.value = false
+ }
+ return
+ }
const ok = await ensureOrderLookup()
if (!ok) return
if (!hasMetrics()) {
diff --git a/src/views/operation/printLabel/index.vue b/src/views/operation/printLabel/index.vue
index 9b1c1bb..2a7a080 100644
--- a/src/views/operation/printLabel/index.vue
+++ b/src/views/operation/printLabel/index.vue
@@ -643,6 +643,9 @@ async function loadRecent() {
inbound: t('operation.printLabel.labelTemplate.inbound'),
outbound: t('operation.printLabel.labelTemplate.outbound'),
sku: t('operation.printLabel.labelTemplate.sku'),
+ box: t('operation.printLabel.labelTemplate.box'),
+ shipBag: t('operation.printLabel.labelTemplate.shipBag'),
+ shipMaster: t('operation.printLabel.labelTemplate.shipMaster'),
}
recentOrders.value = (items || []).map((row: any, idx: number) => {
const ok = row.printSuccess === 1 || row.printSuccess === true
diff --git a/src/views/operation/styles/ops-scan-page.less b/src/views/operation/styles/ops-scan-page.less
index d428364..42bbe66 100644
--- a/src/views/operation/styles/ops-scan-page.less
+++ b/src/views/operation/styles/ops-scan-page.less
@@ -127,6 +127,81 @@
flex-wrap: wrap;
}
+.ops-scan__row--setup {
+ flex-wrap: wrap;
+ gap: 8px;
+}
+
+/* 扫描模式 / 袋型分段:灰底白块选中,高度与 32px 工具栏按钮一致 */
+.ops-mode.arco-radio-group-button,
+.ops-mode {
+ flex-shrink: 0;
+ background: var(--color-fill-2) !important;
+ border: 1px solid var(--color-border-2);
+ border-radius: 4px;
+ padding: 2px;
+ gap: 0;
+
+ :deep(.arco-radio-button) {
+ margin: 0 !important;
+ padding: 0 !important;
+ border: none !important;
+ background: transparent !important;
+ box-shadow: none !important;
+ }
+
+ :deep(.arco-radio-button .arco-radio-button-content) {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 64px;
+ height: 28px;
+ padding: 0 12px;
+ border-radius: 3px;
+ font-size: 13px;
+ line-height: 28px;
+ color: var(--color-text-2);
+ background: transparent;
+ box-shadow: none;
+ transition: background 0.15s, color 0.15s;
+ }
+
+ :deep(.arco-radio-button.arco-radio-checked .arco-radio-button-content) {
+ color: var(--app-primary-color);
+ font-weight: 600;
+ background: var(--app-card-bg);
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
+ }
+
+ :deep(.arco-radio-button:not(.arco-radio-checked):hover .arco-radio-button-content) {
+ color: var(--app-primary-color);
+ }
+
+ :deep(.arco-radio-disabled .arco-radio-button-content) {
+ color: var(--color-text-4);
+ cursor: not-allowed;
+ }
+}
+
+.ops-setup-btn {
+ height: 32px !important;
+ padding: 0 12px !important;
+ border-radius: 4px !important;
+ font-size: 14px;
+ flex-shrink: 0;
+}
+
+.ops-resume-input {
+ flex: 1 1 200px;
+ min-width: 180px;
+ max-width: 280px;
+
+ :deep(.arco-input-wrapper) {
+ height: 32px;
+ border-radius: 4px;
+ }
+}
+
.ops-scan-input {
width: 100%;
diff --git a/src/views/order/orderColumnLabelsZh.ts b/src/views/order/orderColumnLabelsZh.ts
index 851d24c..63b30dc 100644
--- a/src/views/order/orderColumnLabelsZh.ts
+++ b/src/views/order/orderColumnLabelsZh.ts
@@ -26,6 +26,8 @@ export const ORDER_COLUMN_LABEL_ZH: Record = {
clientNo: '客户单号',
trackNo: '跟踪号',
serviceNo: '运单号',
+ shipBagNo: '大包号',
+ shipMasterNo: '内部主单号',
productCode: '产品编码',
productName: '销售产品',
maxTimeliness: '最大时效(天)',
diff --git a/src/views/order/placeOrder/declarationColumnConfig.ts b/src/views/order/placeOrder/declarationColumnConfig.ts
index eac5a9b..1be6c72 100644
--- a/src/views/order/placeOrder/declarationColumnConfig.ts
+++ b/src/views/order/placeOrder/declarationColumnConfig.ts
@@ -46,11 +46,15 @@ export const PLACE_ORDER_DECLARATION_DEFAULT_KEYS: string[] = [
'unitPrice',
'unitWeight',
'quantity',
+ 'imHsCode',
+ 'exHsCode',
'amount',
'weight',
'cnName',
'sku',
'unit',
+ 'productId',
+ 'nonStdProductId',
];
/** 必填列:配置方案中若缺失则自动补回 */
diff --git a/src/views/order/placeOrder/index.vue b/src/views/order/placeOrder/index.vue
index 02e3943..e1bcba2 100644
--- a/src/views/order/placeOrder/index.vue
+++ b/src/views/order/placeOrder/index.vue
@@ -131,12 +131,47 @@
);
const declarationColumnConfigMounted = ref(false);
const declarationColumnConfigModalRef = ref<{ open?: () => void } | null>(null);
+ function migrateDeclarationDefaultSchemeKeys(
+ state: ReturnType,
+ ): ReturnType {
+ const defaultScheme = state.schemes.find((s) => s.id === 'default');
+ if (!defaultScheme) return state;
+ const nextKeys = [...defaultScheme.keys];
+ let changed = false;
+ for (let i = 0; i < PLACE_ORDER_DECLARATION_DEFAULT_KEYS.length; i++) {
+ const key = PLACE_ORDER_DECLARATION_DEFAULT_KEYS[i];
+ if (nextKeys.includes(key)) continue;
+ // 插到默认序上一个已存在列之后,保证「数量」后紧跟进口/出口 HsCode
+ let insertAt = nextKeys.length;
+ for (let j = i - 1; j >= 0; j--) {
+ const prevPos = nextKeys.indexOf(PLACE_ORDER_DECLARATION_DEFAULT_KEYS[j]);
+ if (prevPos >= 0) {
+ insertAt = prevPos + 1;
+ break;
+ }
+ }
+ nextKeys.splice(insertAt, 0, key);
+ changed = true;
+ }
+ if (!changed) return state;
+ const next = {
+ ...state,
+ schemes: state.schemes.map((s) =>
+ s.id === 'default' ? { ...s, keys: ensureDeclarationRequiredKeys(nextKeys) } : s,
+ ),
+ };
+ saveColumnConfigState(PLACE_ORDER_DECLARATION_COLUMN_STORAGE_KEY, next);
+ return next;
+ }
+
const declarationColumnConfigState = ref(
- loadColumnConfigState(
- PLACE_ORDER_DECLARATION_COLUMN_STORAGE_KEY,
- PLACE_ORDER_DECLARATION_COLUMN_CATALOG,
- PLACE_ORDER_DECLARATION_DEFAULT_KEYS,
- t('order.myOrders.columnConfig.defaultScheme'),
+ migrateDeclarationDefaultSchemeKeys(
+ loadColumnConfigState(
+ PLACE_ORDER_DECLARATION_COLUMN_STORAGE_KEY,
+ PLACE_ORDER_DECLARATION_COLUMN_CATALOG,
+ PLACE_ORDER_DECLARATION_DEFAULT_KEYS,
+ t('order.myOrders.columnConfig.defaultScheme'),
+ ),
),
);
const declarationActiveColumnKeys = computed(() =>
@@ -2174,7 +2209,7 @@
enMaterial: '',
purpose: '',
attributes: '',
- originCountry: '',
+ originCountry: 'CN',
salesLink: '',
model: '',
specifications: '',
@@ -2422,7 +2457,7 @@
type DeclarationColumnDef = {
key: string;
label: string;
- type?: 'text' | 'number' | 'boolean';
+ type?: 'text' | 'number' | 'boolean' | 'country';
/** 由单价/单重/数量自动计算,只读 */
derived?: boolean;
/** 仅与 /order/parcel/create 请求体 JSON 行内「//必填」一致 */
@@ -2455,7 +2490,7 @@
{ key: 'enMaterial', label: '英文材质' },
{ key: 'purpose', label: '用途' },
{ key: 'attributes', label: '属性' },
- { key: 'originCountry', label: '原产国' },
+ { key: 'originCountry', label: '原产国', type: 'country' },
{ key: 'salesLink', label: '销售链接' },
{ key: 'model', label: '型号' },
{ key: 'specifications', label: '规格' },
@@ -3176,6 +3211,7 @@
weight: parseNumberValue(item.weight) ?? 0,
isMagnetic: Boolean(item.isMagnetic),
skuImage: normalizeSkuImageForStorage(item.skuImage),
+ originCountry: normalizeCountryCode(item.originCountry) || undefined,
})),
};
payload.exportCustomsMode = exportMode || resolveExportCustomsMode9610Simple();
@@ -3237,7 +3273,7 @@
enMaterial: '',
purpose: '',
attributes: '',
- originCountry: '',
+ originCountry: 'CN',
salesLink: '',
model: '',
specifications: '',
@@ -3475,7 +3511,7 @@
enMaterial: '',
purpose: '',
attributes: '',
- originCountry: '',
+ originCountry: 'CN',
salesLink: '',
model: '',
specifications: '',
@@ -4656,6 +4692,25 @@
v-model="item[col.key]"
size="small"
/>
+
+
+ {{ opt.label }}
+
+
-
-
-
-
-
-
diff --git a/src/views/site/SiteAdvisorShell.vue b/src/views/site/SiteAdvisorShell.vue
index c61545f..56893d4 100644
--- a/src/views/site/SiteAdvisorShell.vue
+++ b/src/views/site/SiteAdvisorShell.vue
@@ -17,60 +17,54 @@
-
-

+
+
+
+

+
+
+
+ {{ runwayTitle }}
+
-
-
-
- IDE ·
-
-
- {{
- shortTitle ? copy.titleRestShort : copy.titleRest
- }}
-
-
-
-
{{ copy.heroCta }}
-
{{ copy.composeLead }}
-
-
+
@@ -233,7 +233,8 @@
import SitePartnerMarquee from './SitePartnerMarquee.vue';
import SiteMessageCard from './SiteMessageCard.vue';
import SiteIllusIcon from './SiteIllusIcon.vue';
- import TextType from './TextType.vue';
+ import SiteFeaturedRoutes from './SiteFeaturedRoutes.vue';
+ import SiteRunway from './SiteRunway.vue';
import {
FULFILL_DOOR_IDS,
GROWTH_DOOR_IDS,
@@ -284,11 +285,37 @@
'open-routes': [dest?: string];
'open-panel': [id: 'pricing' | 'contact'];
'switch-thread': [id: string];
+ ask: [payload: { text: string; intentId: string }];
choice: [payload: { id: string; label: string; flowId: string }];
}>();
const copy = computed(() => (props.isZh ? WELCOME_COPY.zh : WELCOME_COPY.en));
const homeDests = ROUTE_DEST_PRESETS.filter((item) => item.id !== 'all');
+ const pickedDest = ref('');
+ const destCursor = ref(0);
+
+ function pickDest(id: string, index: number) {
+ pickedDest.value = id;
+ destCursor.value = index;
+ emit('open-routes', id);
+ }
+
+ function onDestKeydown(event: KeyboardEvent) {
+ const key = event.key;
+ if (key !== 'ArrowRight' && key !== 'ArrowLeft' && key !== 'Home' && key !== 'End') return;
+ const root = event.currentTarget;
+ if (!(root instanceof HTMLElement)) return;
+ const buttons = [...root.querySelectorAll
('.ai-ask__dest:not(:disabled)')];
+ if (!buttons.length) return;
+ event.preventDefault();
+ let index = destCursor.value;
+ if (key === 'ArrowRight') index = (index + 1) % buttons.length;
+ else if (key === 'ArrowLeft') index = (index - 1 + buttons.length) % buttons.length;
+ else if (key === 'Home') index = 0;
+ else index = buttons.length - 1;
+ destCursor.value = index;
+ buttons[index]?.focus();
+ }
function doorById(id: string) {
return HOME_DOORS.find((d) => d.id === id);
@@ -305,12 +332,11 @@
(d): d is (typeof HOME_DOORS)[number] => !!d,
);
- // 首屏即按视口决定短标题,避免挂载后再切导致 TextType 卡住只剩品牌前缀
const shortTitle = ref(
typeof window !== 'undefined' && window.matchMedia('(max-width: 640px)').matches,
);
- const titleAnimate = ref(
- typeof window === 'undefined' || !window.matchMedia('(prefers-reduced-motion: reduce)').matches,
+ const runwayTitle = computed(() =>
+ shortTitle.value ? copy.value.titleShort : copy.value.title,
);
const draft = computed({
@@ -350,23 +376,18 @@
);
let mqNarrow: MediaQueryList | null = null;
- let mqReduce: MediaQueryList | null = null;
function syncMediaPrefs() {
shortTitle.value = !!mqNarrow?.matches;
- titleAnimate.value = !mqReduce?.matches;
}
onMounted(() => {
mqNarrow = window.matchMedia('(max-width: 640px)');
- mqReduce = window.matchMedia('(prefers-reduced-motion: reduce)');
syncMediaPrefs();
mqNarrow.addEventListener('change', syncMediaPrefs);
- mqReduce.addEventListener('change', syncMediaPrefs);
});
onBeforeUnmount(() => {
mqNarrow?.removeEventListener('change', syncMediaPrefs);
- mqReduce?.removeEventListener('change', syncMediaPrefs);
});
diff --git a/src/views/site/SiteComposer.vue b/src/views/site/SiteComposer.vue
index e8640e8..e8921b2 100644
--- a/src/views/site/SiteComposer.vue
+++ b/src/views/site/SiteComposer.vue
@@ -18,7 +18,9 @@
@keydown="onKeydown"
>
-
+
diff --git a/src/views/site/SiteDotGrid.vue b/src/views/site/SiteDotGrid.vue
new file mode 100644
index 0000000..72b0af7
--- /dev/null
+++ b/src/views/site/SiteDotGrid.vue
@@ -0,0 +1,295 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/site/SiteFeaturedRoutes.vue b/src/views/site/SiteFeaturedRoutes.vue
new file mode 100644
index 0000000..29b563e
--- /dev/null
+++ b/src/views/site/SiteFeaturedRoutes.vue
@@ -0,0 +1,304 @@
+
+
+
+
+
{{ copy.featuredRoutesTitle }}
+
+ {{ page + 1 }} / {{ pageCount }}
+
+
+
+ {{ copy.featuredRoutesAll }}
+ →
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ routeCoverageLabel(item, lang)
+ }}
+
+ {{ formatRouteTimeliness(item) }}
+ {{ routesCopy.days }}
+
+
+
+ {{ item.productName }}
+
+ {{ item.tradeTerms }}
+
+ ·
+
+
+ {{ item.productGroupName || item.productGroup }}
+
+
+
+
+ {{ item.productDescription || '\u00a0' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/site/SiteHeader.vue b/src/views/site/SiteHeader.vue
index 6e0926a..0830f36 100644
--- a/src/views/site/SiteHeader.vue
+++ b/src/views/site/SiteHeader.vue
@@ -188,42 +188,42 @@
href: '/',
zh: '首页',
en: 'Home',
- icon: '
',
+ icon: '
',
},
{
id: 'routes',
href: '#routes',
zh: '线路',
en: 'Lanes',
- icon: '
',
+ icon: '
',
},
{
id: 'services',
href: '#services',
zh: '服务',
en: 'Services',
- icon: '
',
+ icon: '
',
},
{
id: 'pricing',
href: '#pricing',
zh: '价格',
en: 'Price',
- icon: '
',
+ icon: '
',
},
{
id: 'about',
href: '#about',
zh: '关于',
en: 'About',
- icon: '
',
+ icon: '
',
},
{
id: 'contact',
href: '#contact',
zh: '联系',
en: 'Contact',
- icon: '
',
+ icon: '
',
},
];
diff --git a/src/views/site/SiteRunway.vue b/src/views/site/SiteRunway.vue
new file mode 100644
index 0000000..4ca6a8a
--- /dev/null
+++ b/src/views/site/SiteRunway.vue
@@ -0,0 +1,332 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/site/index.vue b/src/views/site/index.vue
index bc5994e..a51e99b 100644
--- a/src/views/site/index.vue
+++ b/src/views/site/index.vue
@@ -1,54 +1,16 @@
-
-
@@ -143,25 +106,25 @@
import SiteServicesPanel from './SiteServicesPanel.vue';
import SiteTopicPanel from './SiteTopicPanel.vue';
import SiteWecomModal from './SiteWecomModal.vue';
- import GradientWaves from './GradientWaves.vue';
+ import SiteDotGrid from './SiteDotGrid.vue';
import {
goOfficialLoginFromHref,
officialLoginUrl,
warmupOfficialLogin,
} from './lib/site-urls';
import { shouldOpenWecomDirect, WECOM_KF_URL } from './lib/site-wecom';
- import { provideSiteLiquidGlass } from './lib/site-liquid-glass';
import { activatePanelFocus, deactivatePanelFocus } from './lib/site-panel-focus';
+ import {
+ clearOfficialSiteDomState,
+ mountOfficialSiteStyles,
+ unmountOfficialSiteStyles,
+ } from './lib/site-style-lifecycle';
import { useSiteAdvisor } from './useSiteAdvisor';
import { trackSiteEvent } from '@/utils/ga';
- import './styles/vendor.css';
- import './styles/icons.css';
- import './styles/main.css';
- import './styles/ai-advisor.css';
+ import { isPortalIrisActive } from '@/utils/page-transition-flag';
- const glass = provideSiteLiquidGlass();
- const glassSceneEl = ref
(null);
- const glassContentEl = ref(null);
+ // 同步注入,离开页面时卸载,避免污染 /h5 与 NanaAssistant
+ mountOfficialSiteStyles();
type PanelId = 'routes' | 'services' | 'pricing' | 'about' | 'contact' | null;
const NAV_PANELS: PanelId[] = ['routes', 'services', 'pricing', 'about', 'contact'];
@@ -221,8 +184,8 @@
routesPending,
} = advisor;
- /** 对话 / 面板 / 历史侧栏打开时冻结波浪,省 GPU */
- const wavesPaused = computed(
+ /** 对话 / 面板 / 历史侧栏打开时冻结点阵,省 GPU */
+ const bgPaused = computed(
() => chatting.value || historyOpen.value || panel.value != null,
);
@@ -491,29 +454,37 @@
if (hash === '9610' || hash === 'services') openPanel('services');
else if (NAV_PANELS.includes(hash as PanelId)) openPanel(hash as Exclude);
else if (hash) nav.value = hash;
- void nextTick(() => {
- if (glassSceneEl.value && glassContentEl.value) {
- glass.init(glassSceneEl.value, glassContentEl.value);
- }
- });
});
+ function releaseOfficialSiteSurface() {
+ if (!isPortalIrisActive()) {
+ clearOfficialSiteDomState();
+ unmountOfficialSiteStyles();
+ return;
+ }
+ const started = performance.now();
+ const wait = () => {
+ if (!isPortalIrisActive() || performance.now() - started > 2000) {
+ clearOfficialSiteDomState();
+ unmountOfficialSiteStyles();
+ return;
+ }
+ window.setTimeout(wait, 32);
+ };
+ window.setTimeout(wait, 32);
+ }
+
onBeforeUnmount(() => {
- glass.dispose();
window.removeEventListener('keydown', onKeydown);
window.removeEventListener('resize', syncHeaderOffset);
window.removeEventListener('resize', syncVisualViewport);
window.visualViewport?.removeEventListener('resize', syncVisualViewport);
window.visualViewport?.removeEventListener('scroll', syncVisualViewport);
deactivatePanelFocus();
- document.body.classList.remove(
- 'site-panel-open',
- 'site-panel-routes',
- 'site-panel-services',
- 'site-panel-topic',
- );
- document.documentElement.classList.remove('command-home', 'app-boot-site');
closeMobileNav();
+ // 翻页过程中旧 DOM 还在。立刻卸 command-home / 官网样式的话,
+ // 导航 SVG 没有宽高,会按默认 300px 摊成一块蓝色房子图标。
+ releaseOfficialSiteSurface();
if (previousTitle) document.title = previousTitle;
});
diff --git a/src/views/site/lib/portal-catalog.ts b/src/views/site/lib/portal-catalog.ts
index 61a7fed..90ebd4b 100644
--- a/src/views/site/lib/portal-catalog.ts
+++ b/src/views/site/lib/portal-catalog.ts
@@ -216,14 +216,74 @@ export function normalizeRoutesCatalog(raw: unknown, lang: SiteLang): RoutesCata
};
}
+let routesCatalogCache: { lang: SiteLang; data: RoutesCatalog; at: number } | null = null;
+const ROUTES_CATALOG_TTL_MS = 5 * 60 * 1000;
+
export async function fetchRoutesCatalog(lang: SiteLang): Promise {
+ const cached = routesCatalogCache;
+ if (cached && cached.lang === lang && Date.now() - cached.at < ROUTES_CATALOG_TTL_MS) {
+ return cached.data;
+ }
const res = await fetch(resolveAdminApiPath('/channel/sales-product/portal/catalog'), {
method: 'GET',
headers: { Accept: 'application/json' },
credentials: 'omit',
});
if (!res.ok) throw new Error('HTTP ' + res.status);
- return normalizeRoutesCatalog(await res.json(), lang);
+ const data = normalizeRoutesCatalog(await res.json(), lang);
+ routesCatalogCache = { lang, data, at: Date.now() };
+ return data;
+}
+
+/** 欢迎区精选:按目的地区尽量分散,优先有时效的线路 */
+export function pickFeaturedRoutes(catalog: RoutesCatalog | null, limit = 6): RouteItem[] {
+ const items = catalog?.items || [];
+ if (!items.length) return [];
+
+ const destOrder = ROUTE_DEST_PRESETS.map((d) => d.id).filter((id) => id !== 'all');
+ const picked: RouteItem[] = [];
+ const used = new Set();
+
+ const score = (item: RouteItem) => {
+ let s = 0;
+ if (formatRouteTimeliness(item)) s += 3;
+ if (item.tradeTerms === 'DDP' || item.tradeTerms === 'DDU') s += 1;
+ if (item.productDescription) s += 1;
+ return s;
+ };
+
+ const byDest = new Map();
+ for (const item of items) {
+ const ids = inferRouteDestIds(item);
+ const key = ids.find((id) => id !== 'other') || 'other';
+ const list = byDest.get(key) || [];
+ list.push(item);
+ byDest.set(key, list);
+ }
+ for (const list of byDest.values()) {
+ list.sort((a, b) => score(b) - score(a));
+ }
+
+ for (const destId of destOrder) {
+ if (picked.length >= limit) break;
+ const list = byDest.get(destId);
+ const hit = list?.find((item) => !used.has(item.id));
+ if (!hit) continue;
+ used.add(hit.id);
+ picked.push(hit);
+ }
+
+ if (picked.length < limit) {
+ const rest = [...items].sort((a, b) => score(b) - score(a));
+ for (const item of rest) {
+ if (picked.length >= limit) break;
+ if (used.has(item.id)) continue;
+ used.add(item.id);
+ picked.push(item);
+ }
+ }
+
+ return picked;
}
function routeItemBlob(item: RouteItem) {
diff --git a/src/views/site/lib/site-liquid-glass.ts b/src/views/site/lib/site-liquid-glass.ts
deleted file mode 100644
index c10f877..0000000
--- a/src/views/site/lib/site-liquid-glass.ts
+++ /dev/null
@@ -1,231 +0,0 @@
-import { inject, provide, ref, type InjectionKey, type Ref } from 'vue';
-import {
- attachSelectionLens,
- createGlassScene,
- type GlassSceneController,
- type SurfaceOptions,
-} from '@glass-sdk/liquid-glass/dom';
-import '@glass-sdk/liquid-glass/styles.css';
-
-export type SiteGlassSurfaceOpts = SurfaceOptions;
-
-type QueuedJob =
- | { kind: 'surface'; el: HTMLElement; opts?: SiteGlassSurfaceOpts; setRemove: (fn: () => void) => void }
- | { kind: 'indicator'; el: HTMLElement; opts?: SiteGlassSurfaceOpts; setRemove: (fn: () => void) => void };
-
-export type SiteLiquidGlassApi = {
- ready: Ref;
- fallback: Ref;
- init: (root: HTMLElement, content: HTMLElement) => void;
- registerSurface: (el: HTMLElement | null | undefined, opts?: SiteGlassSurfaceOpts) => () => void;
- registerTabIndicator: (el: HTMLElement | null | undefined, opts?: SiteGlassSurfaceOpts) => () => void;
- dispose: () => void;
-};
-
-const SITE_LIQUID_GLASS_KEY: InjectionKey = Symbol('site-liquid-glass');
-
-/** 履约 / 权益门卡:低折射 + 关闭 fluid,减轻矮卡左右竖边光学校弯 */
-export const SITE_GLASS_PANEL_OPTS: SiteGlassSurfaceOpts = {
- material: 'clear',
- appearance: 'light',
- radius: 12,
- refraction: 20,
- fluid: false,
- interactive: false,
-};
-
-export const SITE_GLASS_TABS_OPTS: SiteGlassSurfaceOpts = {
- material: 'clear',
- appearance: 'light',
- radius: 'capsule',
- refraction: 56,
- interactive: true,
-};
-
-export const SITE_GLASS_TAB_INDICATOR_OPTS: SiteGlassSurfaceOpts = {
- material: 'clear',
- appearance: 'light',
- radius: 'capsule',
- refraction: 40,
- interactive: false,
-};
-
-/** Welcome input — frosted glass, no tint */
-export const SITE_GLASS_COMPOSER_OPTS: SiteGlassSurfaceOpts = {
- material: 'regular',
- appearance: 'light',
- radius: 12,
- refraction: 32,
- fluid: true,
- interactive: false,
-};
-
-export function provideSiteLiquidGlass(): SiteLiquidGlassApi {
- const ready = ref(false);
- const fallback = ref(false);
-
- let scene: GlassSceneController | null = null;
- let removers: Array<() => void> = [];
- let queue: QueuedJob[] = [];
- let readyObserver: MutationObserver | null = null;
- let fallbackTimer: number | null = null;
- const trackedSurfaces = new Set();
-
- function clearFallbackTimer() {
- if (fallbackTimer != null) {
- window.clearTimeout(fallbackTimer);
- fallbackTimer = null;
- }
- }
-
- function isClipReady(el: HTMLElement) {
- return !!el.getAttribute('style')?.includes('clip-path');
- }
-
- function syncReady() {
- if ([...trackedSurfaces].some(isClipReady)) {
- ready.value = true;
- fallback.value = false;
- clearFallbackTimer();
- return true;
- }
- return false;
- }
-
- function observeSurface(el: HTMLElement) {
- trackedSurfaces.add(el);
- if (!readyObserver) {
- readyObserver = new MutationObserver(() => {
- syncReady();
- });
- }
- readyObserver.observe(el, { attributes: true, attributeFilter: ['style'] });
- }
-
- function bindSurface(el: HTMLElement, opts?: SiteGlassSurfaceOpts) {
- if (!scene) return () => undefined;
- const remove = scene.addSurface(el, opts);
- observeSurface(el);
- syncReady();
- return () => {
- trackedSurfaces.delete(el);
- remove();
- };
- }
-
- function bindIndicator(el: HTMLElement, opts?: SiteGlassSurfaceOpts) {
- if (!scene) return () => undefined;
- const removeSurface = bindSurface(el, opts ?? SITE_GLASS_TAB_INDICATOR_OPTS);
- const removeAnimator = scene.addAnimator(attachSelectionLens(el, () => 'full'));
- return () => {
- removeAnimator();
- removeSurface();
- };
- }
-
- function enqueue(
- kind: 'surface' | 'indicator',
- el: HTMLElement,
- opts?: SiteGlassSurfaceOpts,
- ) {
- let removeFn = () => undefined;
- let flushed = false;
- const job: QueuedJob = {
- kind,
- el,
- opts,
- setRemove: (fn) => {
- flushed = true;
- removeFn = fn;
- },
- };
- queue.push(job);
- return () => {
- if (!flushed) {
- queue = queue.filter((item) => item !== job);
- return;
- }
- removeFn();
- };
- }
-
- function registerSurface(el: HTMLElement | null | undefined, opts?: SiteGlassSurfaceOpts) {
- if (!el) return () => undefined;
- if (scene) {
- const remove = bindSurface(el, opts);
- removers.push(remove);
- return remove;
- }
- return enqueue('surface', el, opts);
- }
-
- function registerTabIndicator(el: HTMLElement | null | undefined, opts?: SiteGlassSurfaceOpts) {
- if (!el) return () => undefined;
- if (scene) {
- const remove = bindIndicator(el, opts);
- removers.push(remove);
- return remove;
- }
- return enqueue('indicator', el, opts);
- }
-
- function init(root: HTMLElement, content: HTMLElement) {
- if (scene) return;
-
- fallbackTimer = window.setTimeout(() => {
- if (!ready.value) fallback.value = true;
- }, 2200);
-
- scene = createGlassScene(root, {
- maxSurfaces: 16,
- onDiagnostic: (diagnostic) => {
- if (diagnostic.error) {
- fallback.value = true;
- ready.value = false;
- } else if (diagnostic.maps > 0) {
- syncReady();
- }
- },
- });
- scene.setContent(content);
-
- for (const job of queue) {
- const remove =
- job.kind === 'indicator' ? bindIndicator(job.el, job.opts) : bindSurface(job.el, job.opts);
- job.setRemove(remove);
- removers.push(remove);
- }
- queue = [];
- syncReady();
- }
-
- function dispose() {
- clearFallbackTimer();
- readyObserver?.disconnect();
- readyObserver = null;
- removers.forEach((remove) => remove());
- removers = [];
- queue = [];
- trackedSurfaces.clear();
- scene?.dispose();
- scene = null;
- ready.value = false;
- fallback.value = false;
- }
-
- const api: SiteLiquidGlassApi = {
- ready,
- fallback,
- init,
- registerSurface,
- registerTabIndicator,
- dispose,
- };
-
- provide(SITE_LIQUID_GLASS_KEY, api);
- return api;
-}
-
-export function useSiteLiquidGlass(): SiteLiquidGlassApi | null {
- return inject(SITE_LIQUID_GLASS_KEY, null);
-}
diff --git a/src/views/site/lib/site-style-lifecycle.ts b/src/views/site/lib/site-style-lifecycle.ts
new file mode 100644
index 0000000..cc58c2d
--- /dev/null
+++ b/src/views/site/lib/site-style-lifecycle.ts
@@ -0,0 +1,43 @@
+/**
+ * Official-site CSS must not stay in the SPA after leaving `/`.
+ * Side-effect CSS imports would keep overriding H5 / NanaAssistant
+ * (shared `.ai-*` names + `body.command-home * { backdrop-filter: none }`).
+ */
+import vendorCss from '../styles/vendor.css?inline';
+import iconsCss from '../styles/icons.css?inline';
+import mainCss from '../styles/main.css?inline';
+import advisorCss from '../styles/ai-advisor.css?inline';
+
+const STYLE_ID = 'official-site-css';
+
+export function mountOfficialSiteStyles() {
+ if (typeof document === 'undefined') return;
+ if (document.getElementById(STYLE_ID)) return;
+ const el = document.createElement('style');
+ el.id = STYLE_ID;
+ el.setAttribute('data-official-site', '1');
+ el.textContent = [vendorCss, iconsCss, mainCss, advisorCss].join('\n');
+ document.head.appendChild(el);
+}
+
+export function unmountOfficialSiteStyles() {
+ if (typeof document === 'undefined') return;
+ document.getElementById(STYLE_ID)?.remove();
+}
+
+export function clearOfficialSiteDomState() {
+ if (typeof document === 'undefined') return;
+ document.body.classList.remove(
+ 'command-home',
+ 'site-panel-open',
+ 'site-panel-routes',
+ 'site-panel-services',
+ 'site-panel-topic',
+ 'mobile-nav-active',
+ );
+ document.documentElement.classList.remove('command-home', 'app-boot-site');
+ const rootStyle = document.documentElement.style;
+ rootStyle.removeProperty('--ai-header-h');
+ rootStyle.removeProperty('--ai-vv-height');
+ rootStyle.removeProperty('--ai-vv-offset-top');
+}
diff --git a/src/views/site/lib/site-urls.ts b/src/views/site/lib/site-urls.ts
index 6f66492..b24a7b1 100644
--- a/src/views/site/lib/site-urls.ts
+++ b/src/views/site/lib/site-urls.ts
@@ -105,6 +105,8 @@ export function warmupOfficialLogin() {
document.head.appendChild(prefetch);
// 预拉取登录分包,翻页进入时少等 chunk
void import('@/views/login/index.vue');
+ const hero = new Image();
+ hero.src = '/login-assets/hero-plane.webp';
} catch {
/* ignore */
}
diff --git a/src/views/site/lib/site-welcome.ts b/src/views/site/lib/site-welcome.ts
index 58ea96e..61cb361 100644
--- a/src/views/site/lib/site-welcome.ts
+++ b/src/views/site/lib/site-welcome.ts
@@ -21,6 +21,12 @@ export const WELCOME_COPY = {
groupFulfill: 'Fulfillment',
groupGrowth: 'Growth & partners',
intentAria: 'Shipping and benefits shortcuts',
+ featuredRoutesTitle: 'Featured lanes',
+ featuredRoutesAll: 'All lanes',
+ featuredRoutesAria: 'Featured shipping lanes',
+ featuredRoutesAsk: 'Ask about this lane',
+ featuredRoutesPrev: 'Previous lanes',
+ featuredRoutesNext: 'Next lanes',
partnerTag: 'Partners',
partnerAria: 'Connected platforms and carriers',
trustIcp: '粤ICP备2025463970号-2',
@@ -49,6 +55,12 @@ export const WELCOME_COPY = {
groupFulfill: '履约服务',
groupGrowth: '成长与合作',
intentAria: '履约与权益入口',
+ featuredRoutesTitle: '精选线路',
+ featuredRoutesAll: '全部线路',
+ featuredRoutesAria: '精选发货线路',
+ featuredRoutesAsk: '按这条问顾问',
+ featuredRoutesPrev: '上一页线路',
+ featuredRoutesNext: '下一页线路',
partnerTag: '合作伙伴',
partnerAria: '对接平台与服务商',
trustIcp: '粤ICP备2025463970号-2',
diff --git a/src/views/site/styles/ai-advisor.css b/src/views/site/styles/ai-advisor.css
index 30c1774..e439d4f 100644
--- a/src/views/site/styles/ai-advisor.css
+++ b/src/views/site/styles/ai-advisor.css
@@ -55,7 +55,7 @@
--ai-routes-panel-w: 1280px;
--ai-acrylic-bg: rgba(255, 255, 255, 0.32);
--ai-acrylic-bg-primary: color-mix(in srgb, var(--ai-gold-soft) 42%, rgba(255, 255, 255, 0.38));
- /* Soft fills ? cool tint aligned with GradientWaves */
+ /* Soft fills — cool tint */
--ai-glass-fill: linear-gradient(
165deg,
color-mix(in srgb, var(--ai-sky) 10%, rgba(255, 255, 255, 0.46)) 0%,
@@ -800,12 +800,7 @@ body.command-home #ai-advisor-shell {
background: var(--ai-bg);
}
-/*
- liquid-glass 会改写 .lg-content 的 left/right/宽高(采样包围盒)。
- 真正铺满视口的氛围层放在 __paint:fixed + 100vw,跟父级被改写的尺寸解耦。
-*/
-.official-site > .ai-shell-bg,
-.official-site > .ai-shell-bg.lg-content {
+.official-site > .ai-shell-bg {
position: fixed;
top: var(--ai-vv-offset-top, 0px);
left: 0;
@@ -816,26 +811,18 @@ body.command-home #ai-advisor-shell {
overflow: visible;
}
-.official-site > .ai-shell-bg .ai-shell-bg__paint,
-.official-site > .ai-shell-bg.lg-content .ai-shell-bg__paint {
+.official-site > .ai-shell-bg .ai-shell-bg__paint {
position: fixed;
- top: calc(var(--ai-vv-offset-top, 0px) - 160px);
- left: -160px;
- width: calc(100vw + 320px);
- height: calc(var(--ai-vv-height, 100%) + 320px);
+ /* 外扩仅防视口抖动露边 */
+ top: calc(var(--ai-vv-offset-top, 0px) - 48px);
+ left: -48px;
+ width: calc(100vw + 96px);
+ height: calc(var(--ai-vv-height, 100%) + 96px);
overflow: hidden;
- background:
- radial-gradient(ellipse 78% 52% at 50% -8%, rgba(255, 255, 255, 0.92), transparent 58%),
- radial-gradient(ellipse 48% 42% at 8% 36%, rgba(255, 255, 255, 0.42), transparent 68%),
- radial-gradient(ellipse 44% 40% at 92% 48%, rgba(18, 24, 32, 0.035), transparent 70%),
- radial-gradient(ellipse 70% 48% at 50% 108%, rgba(18, 24, 32, 0.045), transparent 60%),
- var(--ai-bg);
+ background: #eef1f4;
}
-.official-site > .ai-shell-bg .ai-shell-bg__waves,
-.official-site > .ai-shell-bg .ai-shell-bg__veil,
-.official-site > .ai-shell-bg.lg-content .ai-shell-bg__waves,
-.official-site > .ai-shell-bg.lg-content .ai-shell-bg__veil {
+.official-site > .ai-shell-bg .ai-shell-bg__dots {
position: absolute;
inset: 0;
width: 100%;
@@ -847,19 +834,6 @@ body.command-home #ai-advisor-shell {
z-index: 1;
}
-.ai-shell-bg__veil {
- display: block;
- position: absolute;
- inset: -4%;
- pointer-events: none;
- background:
- radial-gradient(ellipse 46% 38% at 28% 24%, rgba(255, 255, 255, 0.55), transparent 70%),
- radial-gradient(ellipse 42% 36% at 74% 32%, rgba(255, 255, 255, 0.35), transparent 72%),
- radial-gradient(ellipse 50% 42% at 58% 78%, rgba(255, 255, 255, 0.22), transparent 74%),
- radial-gradient(ellipse 40% 34% at 18% 72%, rgba(18, 24, 32, 0.035), transparent 70%);
- opacity: 0.9;
-}
-
/* ???????????? / ???? / ???? / ????? / ???? */
.ai-stage-maps {
position: absolute;
@@ -1149,7 +1123,7 @@ body.command-home .ai-stage-map--eu {
opacity: 1;
}
-/* iOS liquid glass ? intent doors */
+/* Intent doors — frosted card */
.ai-intent-door {
position: relative;
isolation: isolate;
@@ -2575,22 +2549,13 @@ body.command-home .ai-stage-map--eu {
}
}
-.ai-welcome__intro,
-.ai-welcome-compose-panel,
+.ai-welcome-airstrip,
.ai-welcome-trustline,
.ai-intent-section,
.ai-trust-bar {
animation: ai-welcome-rise 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}
-.ai-welcome__intro {
- animation-delay: 0.1s;
-}
-
-.ai-welcome-compose-panel {
- animation-delay: 0.24s;
-}
-
.ai-welcome-trustline {
animation-delay: 0.34s;
}
@@ -2661,7 +2626,7 @@ body.command-home #navbar .site-nav-avatar:hover {
width: 100%;
max-width: var(--ai-content-max);
margin-inline: auto;
- margin-top: -24px;
+ margin-top: 8px;
border: none;
border-radius: 0;
background: transparent;
@@ -2671,56 +2636,30 @@ body.command-home #navbar .site-nav-avatar:hover {
overflow: visible;
}
-.ai-welcome__intro {
- text-align: center;
- padding: 0 12px;
+.ai-welcome-airstrip {
+ /* 跑道上边线 Y,由 SiteRunway 写入;机腹再扣一点图内留白 */
+ --runway-edge-top: 14px;
+ --plane-belly-inset: clamp(32px, 7vw, 56px);
+ position: relative;
+ z-index: 2;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ width: 100%;
+ animation-delay: 0.1s;
}
-.ai-welcome-title {
- width: auto;
- max-width: 100%;
- margin: 0 auto;
- /* 中英同一套字族,避免 IDE 走 Avenir、中文掉苹方造成「一大一小」 */
- font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI',
- sans-serif;
- font-size: clamp(1.55rem, 2.2vw + 0.85rem, 2.65rem);
- font-weight: 700;
- letter-spacing: -0.02em;
- line-height: 1.22;
+/* 点阵标题的无障碍文案 */
+.ai-welcome-title--sr {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
white-space: nowrap;
- text-align: center;
- color: var(--ai-accent, #e96a26);
-}
-
-.ai-welcome-title span,
-.ai-welcome-title .text-type,
-.ai-welcome-title .text-type__content,
-.ai-welcome-title .text-type__cursor,
-.ai-welcome-title__brand,
-.ai-welcome-title__type {
- display: inline;
- font-size: 1em;
- font-weight: inherit;
- font-family: inherit;
- letter-spacing: inherit;
- line-height: inherit;
- vertical-align: baseline;
- color: inherit;
-}
-
-/* TextType 默认 inline-block + pre-wrap,会让后半段视觉偏大/错位 */
-.ai-welcome-title .text-type {
- display: inline;
- white-space: inherit;
-}
-
-.ai-welcome-title__dot {
- display: inline;
- font-size: 1em;
- font-weight: inherit;
- line-height: inherit;
- letter-spacing: 0.02em;
- color: inherit;
+ border: 0;
}
.ai-welcome__command {
@@ -2734,75 +2673,97 @@ body.command-home #navbar .site-nav-avatar:hover {
width: 100%;
}
-/* Welcome compose — light frost, not a heavy card stack */
-.ai-welcome-compose-panel {
+/* 提问卡:薄玻璃,点阵透出来 */
+.ai-ask {
position: relative;
isolation: isolate;
overflow: hidden;
margin: 0;
- padding: 20px 22px 18px;
- border-radius: 18px;
- border: 1px solid rgba(255, 255, 255, 0.72);
- background: rgba(255, 255, 255, 0.55);
- backdrop-filter: blur(14px) saturate(140%);
- -webkit-backdrop-filter: blur(14px) saturate(140%);
- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
+ padding: 18px 20px 16px;
+ border-radius: 16px;
+ border: 1px solid rgba(255, 255, 255, 0.7);
+ background: rgba(255, 255, 255, 0.28);
+ box-shadow: none;
}
-.ai-welcome-compose-panel::before {
- display: none;
-}
-
-.ai-welcome-compose-panel > * {
- position: relative;
- z-index: 1;
-}
-
-.ai-welcome-compose-panel .ai-welcome-cta-link {
- position: absolute;
- top: 18px;
- right: 20px;
- z-index: 1;
-}
-
-.ai-welcome-compose-panel .ai-welcome-compose__lead {
- padding-right: 7.5em;
- text-align: left;
-}
-
-.ai-welcome-cta-link {
- display: inline-flex;
+.ai-ask__bar {
+ display: flex;
align-items: center;
- justify-content: center;
- flex-shrink: 0;
- min-height: 32px;
- padding: 0 14px;
- border: 1px solid color-mix(in srgb, var(--ai-accent, #e96a26) 28%, #fff);
- border-radius: 999px;
- background: color-mix(in srgb, var(--ai-accent, #e96a26) 10%, #fff);
- color: var(--ai-accent, #e96a26);
- font-size: 0.8rem;
- font-weight: 700;
- letter-spacing: 0.01em;
- text-decoration: none;
- white-space: nowrap;
- box-shadow: 0 1px 2px rgba(233, 106, 38, 0.08);
- transition:
- color 0.18s var(--ai-ease),
- background 0.18s var(--ai-ease),
- border-color 0.18s var(--ai-ease),
- box-shadow 0.18s var(--ai-ease),
- transform 0.15s var(--ai-ease);
+ justify-content: space-between;
+ gap: 16px;
+ margin: 0 0 10px;
}
-.ai-welcome-cta-link:hover,
-.ai-welcome-cta-link:focus {
- color: #fff;
- background: var(--ai-accent, #e96a26);
- border-color: var(--ai-accent, #e96a26);
+.ai-ask__cta {
+ flex-shrink: 0;
+ margin-left: auto;
+ color: var(--ai-accent, #e96a26);
+ font-size: 0.84rem;
+ font-weight: 700;
+ line-height: 1;
text-decoration: none;
- box-shadow: 0 4px 14px rgba(233, 106, 38, 0.28);
- transform: translateY(-1px);
+}
+
+.ai-ask__cta:hover,
+.ai-ask__cta:focus-visible {
+ text-decoration: underline;
+ text-underline-offset: 3px;
+}
+
+.ai-ask__dests {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 8px;
+ min-width: 0;
+ margin: 0;
+}
+
+.ai-ask__dest {
+ min-height: 34px;
+ padding: 0 14px;
+ border-radius: 999px;
+ border: 1px solid rgba(18, 24, 32, 0.12);
+ background: rgba(255, 255, 255, 0.38);
+ color: #3d4754;
+ font: inherit;
+ font-size: 0.84rem;
+ font-weight: 650;
+ line-height: 1;
+ cursor: pointer;
+ transition:
+ color 0.15s var(--ai-ease),
+ background 0.15s var(--ai-ease),
+ border-color 0.15s var(--ai-ease);
+}
+
+.ai-ask__dest:hover:not(:disabled) {
+ color: #023e8a;
+ border-color: rgba(2, 62, 138, 0.35);
+ background: rgba(255, 255, 255, 0.62);
+}
+
+.ai-ask__dest:focus-visible {
+ outline: none;
+ box-shadow: 0 0 0 3px rgba(2, 62, 138, 0.18);
+}
+
+.ai-ask__dest[aria-pressed='true'] {
+ color: #023e8a;
+ border-color: rgba(2, 62, 138, 0.55);
+ background: rgba(2, 62, 138, 0.1);
+}
+
+.ai-ask__dest:disabled {
+ opacity: 0.5;
+ cursor: not-allowed;
+}
+
+.ai-ask__hint {
+ margin: 0 0 12px;
+ font-size: 0.8rem;
+ line-height: 1.4;
+ color: #6a7380;
}
/* 意图区 · 双区分类网格(履约 3 + 代理 featured + 成长 3) */
@@ -2825,6 +2786,442 @@ body.command-home #navbar .site-nav-avatar:hover {
min-width: 0;
}
+/* 欢迎区精选线路:左右箭头翻页,不自动播 */
+.ai-featured-routes {
+ width: 100%;
+ min-width: 0;
+ margin-top: 4px;
+ animation: ai-welcome-rise 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
+ animation-delay: 0.52s;
+}
+
+.ai-featured-routes__head {
+ display: flex;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 12px;
+ margin: 0 2px 10px;
+}
+
+.ai-featured-routes__heading {
+ display: inline-flex;
+ align-items: baseline;
+ gap: 8px;
+ min-width: 0;
+}
+
+.ai-featured-routes__title {
+ margin: 0;
+ font-size: 0.92rem;
+ font-weight: 700;
+ letter-spacing: 0.01em;
+ color: var(--ai-text-2, #3d4754);
+}
+
+.ai-featured-routes__page {
+ font-size: 0.74rem;
+ font-weight: 650;
+ font-variant-numeric: tabular-nums;
+ color: var(--ai-text-3, #6a7380);
+}
+
+.ai-featured-routes__all {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ background: transparent;
+ color: var(--ai-action);
+ font-size: 0.82rem;
+ font-weight: 650;
+ line-height: 1.3;
+ cursor: pointer;
+ -webkit-tap-highlight-color: transparent;
+}
+
+.ai-featured-routes__all:hover {
+ opacity: 0.84;
+}
+
+.ai-featured-routes__all:disabled {
+ opacity: 0.45;
+ cursor: not-allowed;
+}
+
+.ai-featured-routes__stage {
+ position: relative;
+ width: 100%;
+ min-width: 0;
+}
+
+.ai-featured-routes__nav {
+ position: absolute;
+ top: 50%;
+ z-index: 5;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 34px;
+ height: 34px;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ border-radius: 50%;
+ background: color-mix(in srgb, #fff 88%, transparent);
+ color: var(--ai-action);
+ box-shadow:
+ 0 1px 2px rgba(15, 23, 42, 0.06),
+ 0 8px 20px rgba(15, 23, 42, 0.1);
+ backdrop-filter: blur(10px);
+ -webkit-backdrop-filter: blur(10px);
+ cursor: pointer;
+ transform: translateY(-50%);
+ opacity: 0;
+ transition:
+ opacity 0.2s ease,
+ background 0.15s ease,
+ transform 0.2s cubic-bezier(0.32, 0.72, 0, 1),
+ box-shadow 0.15s ease;
+ -webkit-tap-highlight-color: transparent;
+}
+
+.ai-featured-routes__nav.is-prev {
+ left: 8px;
+}
+
+.ai-featured-routes__nav.is-next {
+ right: 8px;
+}
+
+.ai-featured-routes__nav svg {
+ width: 16px;
+ height: 16px;
+ display: block;
+}
+
+.ai-featured-routes__stage:hover .ai-featured-routes__nav:not(.is-hidden):not(:disabled),
+.ai-featured-routes__stage:focus-within .ai-featured-routes__nav:not(.is-hidden):not(:disabled),
+.ai-featured-routes__nav:not(.is-hidden):not(:disabled):focus-visible {
+ opacity: 1;
+}
+
+.ai-featured-routes__nav:hover:not(:disabled):not(.is-hidden) {
+ background: #fff;
+ box-shadow:
+ 0 2px 4px rgba(15, 23, 42, 0.08),
+ 0 10px 24px rgba(15, 23, 42, 0.12);
+ transform: translateY(-50%) scale(1.04);
+}
+
+.ai-featured-routes__nav:active:not(:disabled):not(.is-hidden) {
+ transform: translateY(-50%) scale(0.96);
+}
+
+.ai-featured-routes__nav.is-hidden,
+.ai-featured-routes__nav:disabled {
+ opacity: 0 !important;
+ pointer-events: none;
+ cursor: default;
+}
+
+/* 触控设备没有 hover:箭头常显半透明,点按可用 */
+@media (hover: none) {
+ .ai-featured-routes__nav:not(.is-hidden):not(:disabled) {
+ opacity: 0.88;
+ }
+}
+
+.ai-featured-routes__viewport {
+ position: relative;
+ min-width: 0;
+ min-height: 148px;
+ overflow: hidden;
+ /* 不用 isolation,减少翻页时合成层闪白 */
+}
+
+.ai-featured-routes__viewport.is-animating {
+ pointer-events: none;
+}
+
+.ai-featured-routes__grid {
+ display: grid;
+ grid-template-columns: repeat(var(--featured-cols, 4), minmax(0, 1fr));
+ gap: 10px;
+ width: 100%;
+ min-width: 0;
+ backface-visibility: hidden;
+ transform: translateZ(0);
+}
+
+.ai-featured-routes__skel {
+ height: 148px;
+ border-radius: 14px;
+ background: linear-gradient(
+ 90deg,
+ rgba(255, 255, 255, 0.45) 0%,
+ rgba(255, 255, 255, 0.72) 50%,
+ rgba(255, 255, 255, 0.45) 100%
+ );
+ background-size: 200% 100%;
+ animation: ai-routes-shimmer 1.2s ease-in-out infinite;
+}
+
+.ai-featured-routes__card {
+ position: relative;
+ z-index: 0;
+ display: flex;
+ flex-direction: column;
+ align-items: stretch;
+ gap: 8px;
+ box-sizing: border-box;
+ width: 100%;
+ min-width: 0;
+ height: 148px;
+ margin: 0;
+ padding: 12px 14px;
+ border: 1px solid rgba(255, 255, 255, 0.66);
+ border-radius: 14px;
+ background: color-mix(in srgb, #fff 46%, transparent);
+ box-shadow:
+ inset 0 1px 0 rgba(255, 255, 255, 0.78),
+ 0 1px 2px rgba(15, 23, 42, 0.04);
+ color: inherit;
+ font: inherit;
+ text-align: left;
+ cursor: pointer;
+ overflow: hidden;
+ isolation: isolate;
+ transition:
+ background 0.18s ease,
+ border-color 0.18s ease,
+ box-shadow 0.18s ease;
+ -webkit-tap-highlight-color: transparent;
+}
+
+/* 提问卡的点只有 2px,模糊一大就会被白底抹平,所以比线路卡更透、更少糊 */
+body.command-home .ai-ask {
+ backdrop-filter: blur(6px) saturate(135%) !important;
+ -webkit-backdrop-filter: blur(6px) saturate(135%) !important;
+}
+
+body.command-home .ai-featured-routes__card {
+ backdrop-filter: blur(18px) saturate(160%) !important;
+ -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
+}
+
+.ai-featured-routes__card::before {
+ content: '';
+ position: absolute;
+ inset: 0;
+ z-index: 0;
+ border-radius: inherit;
+ pointer-events: none;
+ background: linear-gradient(
+ 180deg,
+ rgba(255, 255, 255, 0.55) 0%,
+ rgba(255, 255, 255, 0.05) 40%,
+ transparent 62%
+ );
+}
+
+.ai-featured-routes__card > * {
+ position: relative;
+ z-index: 1;
+}
+
+.ai-featured-routes__card:hover {
+ background: color-mix(in srgb, #fff 64%, transparent);
+ border-color: rgba(255, 255, 255, 0.82);
+ box-shadow:
+ inset 0 1px 0 rgba(255, 255, 255, 0.88),
+ 0 6px 18px rgba(15, 23, 42, 0.07);
+}
+
+.ai-featured-routes__card:disabled {
+ opacity: 0.55;
+ cursor: not-allowed;
+}
+
+.ai-featured-routes__card-top {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+ min-width: 0;
+ flex-shrink: 0;
+}
+
+.ai-featured-routes__dest {
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ font-size: 0.72rem;
+ font-weight: 650;
+ color: var(--ai-muted, #6a7380);
+}
+
+.ai-featured-routes__eta {
+ flex-shrink: 0;
+ font-size: 0.78rem;
+ font-weight: 750;
+ color: var(--ai-action);
+ font-variant-numeric: tabular-nums;
+}
+
+.ai-featured-routes__eta em {
+ margin-left: 2px;
+ font-style: normal;
+ font-weight: 600;
+ font-size: 0.7rem;
+ color: var(--ai-text-3, #6a7380);
+}
+
+.ai-featured-routes__main {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ min-width: 0;
+ flex-shrink: 0;
+}
+
+.ai-featured-routes__name {
+ display: block;
+ margin: 0;
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ font-size: 0.92rem;
+ font-weight: 780;
+ line-height: 1.3;
+ letter-spacing: -0.01em;
+ color: var(--ai-action);
+}
+
+.ai-featured-routes__meta {
+ display: block;
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ font-size: 0.72rem;
+ font-weight: 600;
+ line-height: 1.3;
+ color: var(--ai-text-3, #6a7380);
+}
+
+.ai-featured-routes__desc {
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ line-clamp: 2;
+ margin: auto 0 0;
+ min-width: 0;
+ min-height: 2.8em;
+ max-height: 2.8em;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-word;
+ overflow-wrap: anywhere;
+ font-size: 0.72rem;
+ font-weight: 500;
+ line-height: 1.4;
+ color: color-mix(in srgb, var(--ai-text-3, #6a7380) 48%, #fff);
+}
+
+.ai-featured-routes__desc.is-empty {
+ visibility: hidden;
+}
+
+/*
+ * 消闪策略:去掉 blur / 卡片错落入场(易闪白);
+ * 进出同为 absolute 叠层,视口高度由首屏撑住。
+ */
+.ai-featured-slide-next-enter-active,
+.ai-featured-slide-next-leave-active,
+.ai-featured-slide-prev-enter-active,
+.ai-featured-slide-prev-leave-active {
+ transition:
+ opacity 0.38s cubic-bezier(0.32, 0.72, 0, 1),
+ transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
+}
+
+.ai-featured-slide-next-enter-active,
+.ai-featured-slide-next-leave-active,
+.ai-featured-slide-prev-enter-active,
+.ai-featured-slide-prev-leave-active {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ align-content: start;
+}
+
+.ai-featured-slide-next-enter-active,
+.ai-featured-slide-prev-enter-active {
+ z-index: 2;
+}
+
+.ai-featured-slide-next-leave-active,
+.ai-featured-slide-prev-leave-active {
+ z-index: 1;
+ pointer-events: none;
+}
+
+.ai-featured-slide-next-enter-from {
+ opacity: 0;
+ transform: translate3d(28px, 0, 0);
+}
+
+.ai-featured-slide-next-leave-to {
+ opacity: 0;
+ transform: translate3d(-20px, 0, 0);
+}
+
+.ai-featured-slide-prev-enter-from {
+ opacity: 0;
+ transform: translate3d(-28px, 0, 0);
+}
+
+.ai-featured-slide-prev-leave-to {
+ opacity: 0;
+ transform: translate3d(20px, 0, 0);
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .ai-featured-slide-next-enter-active,
+ .ai-featured-slide-next-leave-active,
+ .ai-featured-slide-prev-enter-active,
+ .ai-featured-slide-prev-leave-active {
+ transition: none;
+ }
+
+ .ai-featured-slide-next-enter-from,
+ .ai-featured-slide-next-leave-to,
+ .ai-featured-slide-prev-enter-from,
+ .ai-featured-slide-prev-leave-to {
+ transform: none;
+ }
+}
+
+@media (max-width: 720px) {
+ .ai-featured-routes__nav {
+ width: 32px;
+ height: 32px;
+ }
+
+ .ai-featured-routes__nav.is-prev {
+ left: 4px;
+ }
+
+ .ai-featured-routes__nav.is-next {
+ right: 4px;
+ }
+}
+
/* 单行入口:正反梯形交替咬合;明暗只做淡差,不压字 */
.ai-intent-ribbon {
--ai-ribbon-cut: 11px;
@@ -2839,7 +3236,7 @@ body.command-home #navbar .site-nav-avatar:hover {
width: 100%;
min-width: 0;
height: 46px;
- margin: 0 0 28px;
+ margin: 0 0 12px;
padding: 0;
border: 0;
background: transparent;
@@ -2895,7 +3292,11 @@ body.command-home #navbar .site-nav-avatar:hover {
/* 奇数:正梯形 · 亮 */
.ai-intent-ribbon__item:nth-child(odd) .ai-intent-ribbon__face {
- background: var(--ai-ribbon-light);
+ background: linear-gradient(
+ 180deg,
+ rgba(255, 255, 255, 0.96) 0%,
+ rgba(255, 255, 255, 0.62) 100%
+ );
clip-path: polygon(
var(--ai-ribbon-cut) 0,
calc(100% - var(--ai-ribbon-cut)) 0,
@@ -2906,7 +3307,11 @@ body.command-home #navbar .site-nav-avatar:hover {
/* 偶数:反梯形 · 淡雾 */
.ai-intent-ribbon__item:nth-child(even) .ai-intent-ribbon__face {
- background: var(--ai-ribbon-soft);
+ background: linear-gradient(
+ 180deg,
+ rgba(255, 255, 255, 0.84) 0%,
+ color-mix(in srgb, #d8e4ef 46%, rgba(255, 255, 255, 0.5)) 100%
+ );
clip-path: polygon(
0 0,
100% 0,
@@ -3146,11 +3551,12 @@ body.command-home #navbar .site-nav-avatar:hover {
.ai-welcome-plane {
position: relative;
- z-index: 2;
+ z-index: 3;
display: flex;
justify-content: center;
width: 100%;
- margin: -2px 0 -18px;
+ /* 负 margin = 上边线位置 + 机腹图内留白,让机腹贴住跑道上沿 */
+ margin: 0 0 calc(-1 * (var(--runway-edge-top, 14px) + var(--plane-belly-inset, 40px)));
pointer-events: none;
}
@@ -3190,8 +3596,8 @@ body.command-home #navbar .site-nav-avatar:hover {
@media (prefers-reduced-motion: reduce) {
.ai-welcome-plane img,
- .ai-welcome__intro,
- .ai-welcome-compose-panel,
+ .ai-welcome-airstrip,
+ .ai-ask,
.ai-welcome-trustline,
.ai-intent-section,
.ai-trust-bar {
@@ -3203,7 +3609,7 @@ body.command-home #navbar .site-nav-avatar:hover {
@media (max-height: 900px) {
body.command-home .ai-welcome__stack {
gap: 22px;
- margin-top: -28px;
+ margin-top: 4px;
}
body.command-home .ai-welcome__command {
@@ -3214,10 +3620,6 @@ body.command-home #navbar .site-nav-avatar:hover {
margin-top: 2px;
}
- body.command-home .ai-welcome__intro {
- margin-bottom: 0;
- }
-
body.command-home .ai-welcome-stats {
margin-top: 0;
gap: 10px 18px;
@@ -3227,15 +3629,19 @@ body.command-home #navbar .site-nav-avatar:hover {
height: 42px;
}
- body.command-home .ai-welcome-compose-panel {
+ body.command-home .ai-ask {
padding: 12px 14px 10px;
- border-radius: 18px;
- box-shadow: none;
+ border-radius: 16px;
}
- body.command-home .ai-welcome-compose-panel .ai-welcome-cta-link {
- top: 12px;
- right: 14px;
+ body.command-home .ai-ask__dest {
+ min-height: 30px;
+ padding: 0 12px;
+ font-size: 0.78rem;
+ }
+
+ body.command-home .ai-ask__hint {
+ margin-bottom: 8px;
}
body.command-home .ai-home-dests {
@@ -3247,8 +3653,8 @@ body.command-home #navbar .site-nav-avatar:hover {
padding: 8px 10px 8px 14px;
}
- body.command-home .ai-welcome-plane {
- margin: -12px 0 -24px;
+ body.command-home .ai-welcome-airstrip {
+ --plane-belly-inset: clamp(18px, 4vw, 32px);
}
body.command-home .ai-welcome-plane img {
@@ -4233,7 +4639,7 @@ body.command-home .ai-welcome-compose__lead {
padding: 0 14px;
border-radius: var(--ai-chip-radius, 999px);
border: 1px solid rgba(18, 24, 32, 0.06);
- background: rgba(255, 255, 255, 0.55);
+ background: rgba(255, 255, 255, 0.72);
box-shadow: none;
color: var(--ai-text-2);
font-size: 0.84rem;
@@ -4276,41 +4682,33 @@ body.command-home .ai-welcome-compose__lead {
color: var(--ai-text-3);
}
-/* Welcome input — soft inner field, no heavy nested drop shadow */
+/* 输入框不再铺第二层白,点阵跟提问卡、线路卡是同一层 */
.ai-composer-slot--welcome .ai-composer {
min-height: 56px;
padding: 12px 12px 12px 18px;
- border-radius: 16px;
- border: 1px solid rgba(255, 255, 255, 0.9) !important;
+ border-radius: 14px;
+ border: 1px solid rgba(255, 255, 255, 0.66) !important;
outline: none;
- background: rgba(255, 255, 255, 0.72) !important;
- backdrop-filter: blur(24px) saturate(170%) !important;
- -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 0.95),
- inset 0 1px 6px rgba(15, 23, 42, 0.05) !important;
+ background: transparent !important;
+ backdrop-filter: none !important;
+ -webkit-backdrop-filter: none !important;
+ box-shadow: none !important;
transition:
- background 0.18s var(--ai-ease),
- box-shadow 0.18s var(--ai-ease),
- border-color 0.18s var(--ai-ease);
- --lg-foreground: var(--ai-text, #121820);
+ border-color 0.18s var(--ai-ease),
+ box-shadow 0.18s var(--ai-ease);
}
.ai-composer-slot--welcome .ai-composer::before,
.ai-composer-slot--welcome .ai-composer::after {
+ content: none !important;
display: none !important;
}
.ai-composer-slot--welcome .ai-composer:focus-within {
- border-color: rgba(2, 62, 138, 0.28) !important;
+ border-color: rgba(255, 255, 255, 0.9) !important;
outline: none;
- background: rgba(255, 255, 255, 0.88) !important;
- backdrop-filter: blur(28px) saturate(180%) !important;
- -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
- box-shadow:
- inset 0 1px 0 rgba(255, 255, 255, 1),
- inset 0 1px 6px rgba(15, 23, 42, 0.06),
- 0 0 0 3px rgba(2, 62, 138, 0.08) !important;
+ background: transparent !important;
+ box-shadow: 0 0 0 3px rgba(2, 62, 138, 0.08) !important;
}
.ai-composer-slot--welcome .ai-composer-input {
@@ -4321,27 +4719,14 @@ body.command-home .ai-welcome-compose__lead {
color: var(--ai-text-3, #66707d);
}
-.ai-composer-slot--welcome .ai-composer-send {
- width: 40px;
- height: 40px;
- font-size: 1.1rem;
- box-shadow: none;
- background: var(--ai-brand, #023e8a);
- color: #fff;
-}
-
-.ai-composer-slot--welcome .ai-composer-send i {
- font-size: 1rem;
-}
-
-.ai-composer-slot--welcome .ai-composer-send:hover:not(:disabled):not(.is-empty) {
- background: var(--ai-brand-hover, #012a74);
- color: #fff;
-}
-
+.ai-composer-slot--welcome .ai-composer-send,
+.ai-composer-slot--welcome .ai-composer-send:hover:not(:disabled):not(.is-empty),
.ai-composer-slot--welcome .ai-composer-send.is-empty {
- background: color-mix(in srgb, var(--ai-brand, #023e8a) 42%, #c5d0db);
- color: rgba(255, 255, 255, 0.88);
+ width: 32px;
+ height: 32px;
+ border-radius: 999px;
+ box-shadow: none;
+ transform: none;
}
.ai-composer-dock {
@@ -4487,38 +4872,44 @@ body.command-home .ai-welcome-compose__lead {
display: inline-flex;
align-items: center;
justify-content: center;
- width: 52px;
- height: 52px;
+ width: 32px;
+ height: 32px;
border: none;
- border-radius: 50%;
- background: var(--ai-action);
+ border-radius: 999px;
+ background: #0d0d0d;
color: #fff;
- font-size: 1.35rem;
- box-shadow: 0 0 0 4px var(--ai-bg);
+ box-shadow: none;
cursor: pointer;
- transition: background 0.2s var(--ai-ease), transform 0.15s var(--ai-ease);
+ transition: background 0.15s var(--ai-ease);
}
-.ai-composer-send i {
- font-size: 1.2rem;
- line-height: 1;
+.ai-composer-send__mark {
+ display: block;
+ width: 18px;
+ height: 18px;
+ fill: none;
+ stroke: currentColor;
+ stroke-width: 2.25;
+ stroke-linecap: round;
+ stroke-linejoin: round;
}
-.ai-composer-send.is-empty {
- background: color-mix(in srgb, var(--ai-text-3) 18%, #e9edf0);
- color: color-mix(in srgb, var(--ai-text-3) 70%, #fff);
+.ai-composer-send.is-empty,
+.ai-composer-send.is-empty:hover {
+ background: #ececec;
+ color: #9a9a9a;
cursor: default;
transform: none;
}
-.ai-composer-send.is-empty:hover {
- background: color-mix(in srgb, var(--ai-text-3) 18%, #e9edf0);
+.ai-composer-send:hover:not(:disabled):not(.is-empty) {
+ background: #2f2f2f;
transform: none;
}
-.ai-composer-send:hover:not(:disabled):not(.is-empty) {
- background: var(--ai-action-hover);
- transform: translateY(-1px);
+.ai-composer-send:focus-visible {
+ outline: 2px solid #0d0d0d;
+ outline-offset: 2px;
}
.ai-composer-send:disabled {
@@ -4672,13 +5063,12 @@ body.command-home .ai-welcome-compose__lead {
padding-top: 2px;
}
- .ai-welcome-plane {
- margin-top: -8px;
- margin-bottom: -18px;
+ .ai-welcome-airstrip {
+ --plane-belly-inset: clamp(22px, 5vw, 40px);
}
.ai-welcome__stack {
- margin-top: -24px;
+ margin-top: 4px;
gap: 20px;
}
@@ -4785,7 +5175,8 @@ body.command-home .ai-welcome-compose__lead {
}
@media (max-width: 640px) {
- :root {
+ /* 仅官网:勿写裸 :root / .ai-advisor-layout,避免串到 H5 NanaAssistant */
+ body.command-home {
--ai-header-h: 64px;
}
@@ -4793,22 +5184,22 @@ body.command-home .ai-welcome-compose__lead {
padding-top: env(safe-area-inset-top, 0px);
}
- .ai-advisor-layout {
+ body.command-home .ai-advisor-layout {
padding: calc(var(--ai-header-h) + env(safe-area-inset-top, 0px) + 4px)
max(14px, env(safe-area-inset-left, 0px))
0
max(14px, env(safe-area-inset-right, 0px));
}
- .ai-routes-panel {
+ body.command-home .ai-routes-panel {
padding: 16px 14px 12px;
}
- .ai-routes-panel__body {
+ body.command-home .ai-routes-panel__body {
grid-template-columns: minmax(0, 1fr);
}
- .ai-route-card {
+ body.command-home .ai-route-card {
padding: 12px 14px;
}
@@ -4986,75 +5377,31 @@ body.command-home .ai-welcome-compose__lead {
padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px));
}
- .ai-welcome-title {
- white-space: normal;
- font-size: clamp(1.45rem, 6.2vw, 1.85rem);
- line-height: 1.28;
- }
-
- .ai-welcome-compose-panel {
+ .ai-ask {
padding: 14px 14px 12px;
- border-radius: 20px;
}
- .ai-welcome-compose-panel .ai-welcome-cta-link {
- position: static;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 100%;
- min-height: 44px;
- margin: 0 0 10px;
- padding: 0 14px;
- border-radius: 999px;
- border: 1px solid color-mix(in srgb, var(--ai-accent, #e96a26) 28%, #fff);
- background: color-mix(in srgb, var(--ai-accent, #e96a26) 12%, #fff);
- color: var(--ai-accent, #e96a26);
- font-size: 0.95rem;
- font-weight: 700;
- text-decoration: none;
- box-shadow: 0 1px 2px rgba(233, 106, 38, 0.08);
+ .ai-ask__bar {
+ gap: 12px;
}
- .ai-welcome-compose-panel .ai-welcome-cta-link:hover,
- .ai-welcome-compose-panel .ai-welcome-cta-link:focus {
- color: #fff;
- background: var(--ai-accent, #e96a26);
- border-color: var(--ai-accent, #e96a26);
- text-decoration: none;
- }
-
- .ai-welcome-compose-panel .ai-welcome-compose__lead {
- padding-right: 0;
- padding-top: 0;
- margin-bottom: 10px;
- font-size: 0.92rem;
- line-height: 1.45;
- }
-
- .ai-home-dests {
- display: flex;
+ .ai-ask__dests {
+ flex: 1;
flex-wrap: nowrap;
- gap: 8px;
- margin-bottom: 10px;
overflow-x: auto;
padding-bottom: 2px;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
touch-action: pan-x;
- mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 20px), transparent 100%);
- -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 20px), transparent 100%);
}
- .ai-home-dests::-webkit-scrollbar {
+ .ai-ask__dests::-webkit-scrollbar {
display: none;
}
- .ai-home-dest {
+ .ai-ask__dest {
flex: 0 0 auto;
min-height: 40px;
- padding: 0 14px;
- font-size: 0.88rem;
}
.ai-welcome-sub {
@@ -5083,9 +5430,10 @@ body.command-home .ai-welcome-compose__lead {
font-size: 16px; /* iOS 避免自动放大 */
}
- .ai-composer-send {
- width: 44px;
- height: 44px;
+ .ai-composer-send,
+ .ai-composer-slot--welcome .ai-composer-send {
+ width: 32px;
+ height: 32px;
}
.ai-composer-dock {
@@ -5213,21 +5561,21 @@ button.ai-card-link {
cursor: pointer;
}
-/* Paint budget: glass/blur over the globe is what makes drawers and refresh hitch. */
+/* Paint budget: blur over large surfaces makes drawers/refresh hitch. */
body.command-home,
body.command-home * {
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
}
-/* Keep specular sheen off welcome glass doors (sheen reads as white flash before LG ready) */
+/* Keep specular sheen off welcome doors (avoids white flash) */
body.command-home .ai-intent-door::after,
body.command-home .ai-welcome__command .ai-intent-door::before,
body.command-home .ai-welcome__command .ai-intent-door::after {
display: none !important;
}
-body.command-home .ai-intent-door:not(.lg-surface)::before {
+body.command-home .ai-intent-door::before {
display: block !important;
background: var(--ai-glass-sheen);
}
diff --git a/src/views/system/announcement/index.vue b/src/views/system/announcement/index.vue
index 7d0d889..96c1fab 100644
--- a/src/views/system/announcement/index.vue
+++ b/src/views/system/announcement/index.vue
@@ -171,13 +171,21 @@
{{ formatCreateTime(viewRecord.createTime) }}
- {{ viewRecord.content || '--' }}
+ {{ displayNoticeContent(viewRecord.content) }}
{{ t('system.announcement.drawer.close') }}
+
+ {{ t('system.announcement.actions.openApproval') }}
+
(null)
+const viewApprovalLink = computed(() =>
+ parseApprovalNoticeLink(viewRecord.value?.content),
+)
+
+function displayNoticeContent(content?: string | null) {
+ return stripApprovalNoticeMarker(content) || '--'
+}
+
+async function openApprovalFromNotice() {
+ const link = viewApprovalLink.value
+ if (!link) return
+ if (viewRecord.value?.id && !viewRecord.value.isRead) {
+ try {
+ await confirmNoticeRead(viewRecord.value.id)
+ } catch {
+ /* 已读失败不阻断跳转 */
+ }
+ }
+ drawerVisible.value = false
+ router.push(buildApprovalInboxLocation(link))
+}
const readLoading = ref(false)
const addButtonLabel = computed(() =>
diff --git a/src/views/system/approval/definition/index.vue b/src/views/system/approval/definition/index.vue
new file mode 100644
index 0000000..689c959
--- /dev/null
+++ b/src/views/system/approval/definition/index.vue
@@ -0,0 +1,489 @@
+
+
+
+
+
(modalVisible = false)"
+ >
+
+
+
+
+ {{ item.name }}({{ item.code }})
+
+
+
+
+
+ {{ t('system.approval.definition.approverUser') }}
+ {{ t('system.approval.definition.approverRole') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/approval/inbox/index.vue b/src/views/system/approval/inbox/index.vue
new file mode 100644
index 0000000..c224c29
--- /dev/null
+++ b/src/views/system/approval/inbox/index.vue
@@ -0,0 +1,366 @@
+
+
+
+
+
+
+
diff --git a/src/views/system/otherConfig/index.vue b/src/views/system/otherConfig/index.vue
index 061ad92..f9ca29f 100644
--- a/src/views/system/otherConfig/index.vue
+++ b/src/views/system/otherConfig/index.vue
@@ -4,6 +4,7 @@
@@ -204,11 +254,15 @@ import {
WECHAT_MP_FOLLOW_CONFIG_CODE,
createSystemOtherConfig,
deleteSystemOtherConfig,
+ getPaymentReceiveQr,
getSystemOtherConfigDetail,
getSystemOtherConfigList,
updateSystemOtherConfig,
+ uploadPaymentReceiveQr,
+ type PaymentReceiveQrChannel,
type SystemOtherConfigDto,
} from '@/api/system/otherConfig'
+import { resolveOmsAssetUrl } from '@/api/oms/common'
import { prodApiOrigin } from '@/utils/rewriteBrowserApiPath'
defineOptions({
@@ -610,6 +664,77 @@ async function handleDelete(id?: number | string) {
loadData()
}
+const paymentQrVisible = ref(false)
+const paymentQrLoading = ref(false)
+const paymentQrUrls = reactive({
+ alipay: '',
+ wechat: '',
+})
+const paymentQrUploading = reactive({
+ alipay: false,
+ wechat: false,
+})
+
+const paymentQrCards = computed(() => [
+ {
+ channel: 'alipay' as PaymentReceiveQrChannel,
+ title: t('system.otherConfig.paymentQr.alipay'),
+ url: paymentQrUrls.alipay,
+ uploading: paymentQrUploading.alipay,
+ },
+ {
+ channel: 'wechat' as PaymentReceiveQrChannel,
+ title: t('system.otherConfig.paymentQr.wechat'),
+ url: paymentQrUrls.wechat,
+ uploading: paymentQrUploading.wechat,
+ },
+])
+
+function applyPaymentQrDto(data?: { alipayUrl?: string; wechatUrl?: string } | null) {
+ const stamp = Date.now()
+ const alipay = resolveOmsAssetUrl(data?.alipayUrl)
+ const wechat = resolveOmsAssetUrl(data?.wechatUrl)
+ paymentQrUrls.alipay = alipay ? `${alipay}${alipay.includes('?') ? '&' : '?'}_t=${stamp}` : ''
+ paymentQrUrls.wechat = wechat ? `${wechat}${wechat.includes('?') ? '&' : '?'}_t=${stamp}` : ''
+}
+
+async function loadPaymentQr() {
+ paymentQrLoading.value = true
+ try {
+ const data = await getPaymentReceiveQr()
+ applyPaymentQrDto(data)
+ } catch (e: any) {
+ Message.error(e?.message || t('system.otherConfig.paymentQr.loadFailed'))
+ } finally {
+ paymentQrLoading.value = false
+ }
+}
+
+async function openPaymentQrModal() {
+ paymentQrVisible.value = true
+ await loadPaymentQr()
+}
+
+async function handlePaymentQrUpload(channel: PaymentReceiveQrChannel, option: any) {
+ const file: File | undefined = option?.fileItem?.file ?? option?.file
+ if (!file) {
+ option?.onError?.(new Error('no file'))
+ return
+ }
+ paymentQrUploading[channel] = true
+ try {
+ const data = await uploadPaymentReceiveQr(channel, file)
+ applyPaymentQrDto(data)
+ option?.onSuccess?.(data)
+ Message.success(t('system.otherConfig.paymentQr.uploadSuccess'))
+ } catch (e: any) {
+ option?.onError?.(e)
+ Message.error(e?.message || t('system.otherConfig.paymentQr.uploadFailed'))
+ } finally {
+ paymentQrUploading[channel] = false
+ }
+}
+
async function handleModalOk() {
try {
await formRef.value.validate()
@@ -912,4 +1037,60 @@ onMounted(() => {
margin-bottom: 16px;
}
}
+
+.payment-qr-loading {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ min-height: 220px;
+}
+
+.payment-qr-grid {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 16px;
+}
+
+.payment-qr-card {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ padding: 12px;
+ border: 1px solid var(--color-border-2);
+ border-radius: 8px;
+ background: #fff;
+}
+
+.payment-qr-card__head {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+}
+
+.payment-qr-card__title {
+ font-size: 14px;
+ font-weight: 600;
+ color: var(--color-text-1);
+}
+
+.payment-qr-card__preview {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ min-height: 220px;
+ background: var(--color-fill-1, #f7f8fa);
+ border-radius: 6px;
+}
+
+.payment-qr-card__empty {
+ color: var(--color-text-3);
+ font-size: 13px;
+}
+
+@media (max-width: 640px) {
+ .payment-qr-grid {
+ grid-template-columns: 1fr;
+ }
+}
diff --git a/src/views/user/profile/ProfilePanel.vue b/src/views/user/profile/ProfilePanel.vue
index ff4b4d1..8df2592 100644
--- a/src/views/user/profile/ProfilePanel.vue
+++ b/src/views/user/profile/ProfilePanel.vue
@@ -388,7 +388,8 @@ const contactRows = computed(() => [
},
])
-function validateConfirmPassword(_rule: unknown, value: string, callback: (error?: string) => void) {
+// Arco Form:validator(value, callback)
+function validateConfirmPassword(value: string, callback: (error?: string) => void) {
if (value !== pwdForm.newPassword) {
callback(t('profile.passwordMismatch'))
} else {
diff --git a/src/views/user/recharge/deposit.vue b/src/views/user/recharge/deposit.vue
index 9449689..97899b9 100644
--- a/src/views/user/recharge/deposit.vue
+++ b/src/views/user/recharge/deposit.vue
@@ -103,10 +103,10 @@
@@ -175,7 +175,7 @@