Skip to content

Commit e5d6a9d

Browse files
committed
code review:banner 逻辑
1 parent ed0f3a3 commit e5d6a9d

File tree

4 files changed

+6
-41
lines changed

4 files changed

+6
-41
lines changed

src/utils/dict.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export enum DICT_TYPE {
184184
PROMOTION_CONDITION_TYPE = 'promotion_condition_type', // 营销的条件类型枚举
185185
PROMOTION_BARGAIN_RECORD_STATUS = 'promotion_bargain_record_status', // 砍价记录的状态
186186
PROMOTION_COMBINATION_RECORD_STATUS = 'promotion_combination_record_status', // 拼团记录的状态
187-
BANNER_POSITION = 'banner_position', // banner 定位
187+
PROMOTION_BANNER_POSITION = 'promotion_banner_position', // banner 定位
188188

189189
// ========== CRM - 客户管理模块 ==========
190190
CRM_RECEIVABLE_CHECK_STATUS = 'crm_receivable_check_status',

src/views/mall/product/spu/form/OtherSettingsForm.vue

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -109,59 +109,24 @@ const props = defineProps({
109109
const promotionTypes = ref<DictDataType[]>([
110110
{
111111
dictType: 'promotionTypes',
112-
label: '秒杀活动',
112+
label: '秒杀',
113113
value: 1,
114114
colorType: 'warning',
115115
cssClass: ''
116116
},
117117
{
118118
dictType: 'promotionTypes',
119-
label: '砍价活动',
119+
label: '砍价',
120120
value: 2,
121121
colorType: 'warning',
122122
cssClass: ''
123123
},
124124
{
125125
dictType: 'promotionTypes',
126-
label: '拼团活动',
126+
label: '拼团',
127127
value: 3,
128128
colorType: 'warning',
129129
cssClass: ''
130-
},
131-
{
132-
dictType: 'promotionTypes',
133-
label: '限时折扣',
134-
value: 4,
135-
colorType: 'warning',
136-
cssClass: ''
137-
},
138-
{
139-
dictType: 'promotionTypes',
140-
label: '满减送',
141-
value: 5,
142-
colorType: 'warning',
143-
cssClass: ''
144-
},
145-
{
146-
dictType: 'promotionTypes',
147-
label: '会员折扣',
148-
value: 6,
149-
colorType: 'warning',
150-
cssClass: ''
151-
},
152-
{
153-
dictType: 'promotionTypes',
154-
label: '优惠劵',
155-
value: 7,
156-
colorType: 'warning',
157-
cssClass: ''
158-
},
159-
{
160-
dictType: 'promotionTypes',
161-
label: '积分',
162-
value: 8,
163-
colorType: 'warning',
164-
cssClass: ''
165130
}
166131
])
167132

src/views/mall/promotion/banner/BannerForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<el-form-item label="定位" prop="position">
4646
<el-radio-group v-model="formData.position">
4747
<el-radio
48-
v-for="dict in getIntDictOptions(DICT_TYPE.BANNER_POSITION)"
48+
v-for="dict in getIntDictOptions(DICT_TYPE.PROMOTION_BANNER_POSITION)"
4949
:key="dict.value"
5050
:label="dict.value"
5151
>

src/views/mall/promotion/banner/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
</el-table-column>
7777
<el-table-column align="center" label="定位" prop="position">
7878
<template #default="scope">
79-
<dict-tag :type="DICT_TYPE.BANNER_POSITION" :value="scope.row.position" />
79+
<dict-tag :type="DICT_TYPE.PROMOTION_BANNER_POSITION" :value="scope.row.position" />
8080
</template>
8181
</el-table-column>
8282
<el-table-column align="center" label="跳转地址" prop="url" />

0 commit comments

Comments
 (0)