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 @@ + + + + + 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 @@ - + - + + + + + + - + - - - -
- -
-
- - -
-
-
+
+ + + + + + + 上传位图图标(高级 · 遗留通道) + + + @@ -160,6 +198,7 @@