From 9680a204ca09cc9febe563fbf9eb6d19f1c1a4ee Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 25 Apr 2023 21:02:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=95=86=E5=93=81=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E7=9A=84=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/vite/optimize.ts | 17 +++++- src/api/mall/product/category.ts | 12 ++--- .../mall/product/category/CategoryForm.vue | 53 ++++++++----------- src/views/mall/product/category/index.vue | 4 +- 4 files changed, 46 insertions(+), 40 deletions(-) diff --git a/build/vite/optimize.ts b/build/vite/optimize.ts index 416ea02e..1a7a1b2f 100644 --- a/build/vite/optimize.ts +++ b/build/vite/optimize.ts @@ -64,6 +64,7 @@ const include = [ 'element-plus/es/components/dropdown-menu/style/index', 'element-plus/es/components/dropdown-item/style/index', 'element-plus/es/components/skeleton/style/index', + 'element-plus/es/components/skeleton/style/css', 'element-plus/es/components/backtop/style/css', 'element-plus/es/components/menu/style/css', @@ -76,7 +77,21 @@ const include = [ 'element-plus/es/components/badge/style/css', 'element-plus/es/components/breadcrumb/style/css', 'element-plus/es/components/breadcrumb-item/style/css', - 'element-plus/es/components/image/style/css' + 'element-plus/es/components/image/style/css', + 'element-plus/es/components/tag/style/css', + 'element-plus/es/components/dialog/style/css', + 'element-plus/es/components/form/style/css', + 'element-plus/es/components/form-item/style/css', + 'element-plus/es/components/card/style/css', + 'element-plus/es/components/tooltip/style/css', + 'element-plus/es/components/radio-group/style/css', + 'element-plus/es/components/radio/style/css', + 'element-plus/es/components/input-number/style/css', + 'element-plus/es/components/tree-select/style/css', + 'element-plus/es/components/drawer/style/css', + 'element-plus/es/components/image-viewer/style/css', + 'element-plus/es/components/upload/style/css', + 'element-plus/es/components/switch/style/css' ] const exclude = ['@iconify/json'] diff --git a/src/api/mall/product/category.ts b/src/api/mall/product/category.ts index 7ae81285..8158fc0f 100644 --- a/src/api/mall/product/category.ts +++ b/src/api/mall/product/category.ts @@ -17,17 +17,17 @@ export interface CategoryVO { */ name: string /** - * 分类图片 + * 移动端分类图 */ picUrl: string + /** + * PC 端分类图 + */ + bigPicUrl?: string /** * 分类排序 */ - sort?: number - /** - * 分类描述 - */ - description?: string + sort: number /** * 开启状态 */ diff --git a/src/views/mall/product/category/CategoryForm.vue b/src/views/mall/product/category/CategoryForm.vue index 19bce872..dfe81333 100644 --- a/src/views/mall/product/category/CategoryForm.vue +++ b/src/views/mall/product/category/CategoryForm.vue @@ -4,27 +4,30 @@ ref="formRef" :model="formData" :rules="formRules" - label-width="80px" + label-width="120px" v-loading="formLoading" > - + + + + - + -
推荐 200x100 图片分辨率
-
推荐 100x100 图片分辨率
+
推荐 180x180 图片分辨率
+
+ + +
推荐 468x340 图片分辨率
@@ -40,9 +43,6 @@ - - -