diff --git a/src/assets/appicon-icons.json b/src/assets/appicon-icons.json new file mode 100644 index 0000000..7088008 --- /dev/null +++ b/src/assets/appicon-icons.json @@ -0,0 +1,23 @@ +{ + "prefix": "appicon", + "info": { + "name": "AppIcon", + "total": 2, + "author": "ysch front-end team", + "license": { + "title": "Remix Icon (Apache-2.0) 等,见 meta.json source", + "spdx": "Apache-2.0" + }, + "height": 1024 + }, + "icons": { + "tongzhi": { + "body": "", + "cn": "通知" + }, + "wenjuan": { + "body": "", + "cn": "问卷" + } + } +} \ No newline at end of file diff --git a/src/components/AppIconPicker.vue b/src/components/AppIconPicker.vue new file mode 100644 index 0000000..928585a --- /dev/null +++ b/src/components/AppIconPicker.vue @@ -0,0 +1,315 @@ + + + + + + + + {{ cnOf(modelValue) }} + {{ modelValue }} + + + + 选择矢量图标 + 更换 + + + + + 着色: + + ? + + + 无 + + + + + + + + + + + {{ item.cn }} + {{ item.key }} + + 无匹配图标(清单未拉取成功时仅剩内置副本) + + + 三场景同形:方块底(PC 应用卡)/ 圆底(App 首页)/ 线性(App 列表)——底色由各端场景决定,此处仅选形状。 + + + + + + + + + diff --git a/src/views/app/AddAppContainer.vue b/src/views/app/AddAppContainer.vue index 268ee15..6d6dbd2 100644 --- a/src/views/app/AddAppContainer.vue +++ b/src/views/app/AddAppContainer.vue @@ -22,7 +22,7 @@ let onSuccessCallback: (() => void) | null = null; // useForm 托管提交 const { form, loading: submitting, send: sendForm, onSuccess, onError } = useForm( (dto) => Apis.AppSettings.addApp({ data: dto }), - { initialForm: { name: '', categoryId: undefined, desc: '', appCode: '', appNature: 'BUSINESS', clients: [], pcUrl: '', pcIcon: '', appUrl: '', appIcon: '', officialAccountUrl: '', dingtalkUrl: '' }, resetAfterSubmiting: true } + { initialForm: { name: '', categoryId: undefined, desc: '', appCode: '', appNature: 'BUSINESS', clients: [], pcUrl: '', pcIcon: '', appUrl: '', appIcon: '', iconKey: '', iconColor: '', officialAccountUrl: '', dingtalkUrl: '' }, resetAfterSubmiting: true } ); onSuccess(() => { @@ -57,6 +57,8 @@ async function handleSubmit(formData: Record) { pcIcon: formData.pcIcon, appUrl: formData.appUrl, appIcon: formData.appIcon, + iconKey: formData.iconKey, + iconColor: formData.iconColor, officialAccountUrl: formData.officialAccountUrl, dingtalkUrl: formData.dingtalkUrl, }; diff --git a/src/views/app/AppForm.vue b/src/views/app/AppForm.vue index a47268c..8e0b91d 100644 --- a/src/views/app/AppForm.vue +++ b/src/views/app/AppForm.vue @@ -86,14 +86,14 @@ - + - + + + + + + - + - - - - - - - - - - - - + + + + + + + + 上传位图图标(高级 · 遗留通道) + + + + Pc应用图标: + + + + + + + + + + 矢量图标(上方)优先生效;此位图为存量回退。 + + + App应用图标: + + + + + + + + + + 存量移动端位图;矢量图标优先生效。 + + + + + @@ -160,6 +198,7 @@