Skip to content

Commit 26bb847

Browse files
committed
✨ MALL:简化商品分类的 VO 转化
1 parent fdfb028 commit 26bb847

File tree

4 files changed

+1
-12
lines changed

4 files changed

+1
-12
lines changed

src/api/mall/product/category.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ export interface CategoryVO {
2020
* 移动端分类图
2121
*/
2222
picUrl: string
23-
/**
24-
* PC 端分类图
25-
*/
26-
bigPicUrl?: string
2723
/**
2824
* 分类排序
2925
*/

src/views/mall/product/category/CategoryForm.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
<UploadImg v-model="formData.picUrl" :limit="1" :is-show-tip="false" />
2626
<div style="font-size: 10px" class="pl-10px">推荐 180x180 图片分辨率</div>
2727
</el-form-item>
28-
<el-form-item label="PC 端分类图" prop="bigPicUrl">
29-
<UploadImg v-model="formData.bigPicUrl" :limit="1" :is-show-tip="false" />
30-
<div style="font-size: 10px" class="pl-10px">推荐 468x340 图片分辨率</div>
31-
</el-form-item>
3228
<el-form-item label="分类排序" prop="sort">
3329
<el-input-number v-model="formData.sort" controls-position="right" :min="0" />
3430
</el-form-item>
@@ -68,7 +64,6 @@ const formData = ref({
6864
id: undefined,
6965
name: '',
7066
picUrl: '',
71-
bigPicUrl: '',
7267
status: CommonStatusEnum.ENABLE
7368
})
7469
const formRules = reactive({
@@ -133,7 +128,6 @@ const resetForm = () => {
133128
id: undefined,
134129
name: '',
135130
picUrl: '',
136-
bigPicUrl: '',
137131
status: CommonStatusEnum.ENABLE
138132
}
139133
formRef.value?.resetFields()

src/views/mall/product/category/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<el-table-column label="名称" min-width="240" prop="name" sortable />
3939
<el-table-column label="分类图标" align="center" min-width="80" prop="picUrl">
4040
<template #default="scope">
41-
<img v-if="scope.row.picUrl" :src="scope.row.picUrl" alt="移动端分类图" class="h-36px" />
41+
<img :src="scope.row.picUrl" alt="移动端分类图" class="h-36px" />
4242
</template>
4343
</el-table-column>
4444
<el-table-column label="排序" align="center" min-width="150" prop="sort" />

src/views/mall/trade/delivery/express/ExpressForm.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ const resetForm = () => {
119119
id: undefined,
120120
name: '',
121121
picUrl: '',
122-
bigPicUrl: '',
123122
status: CommonStatusEnum.ENABLE
124123
}
125124
formRef.value?.resetFields()

0 commit comments

Comments
 (0)