Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e5d6a9da
authored
Oct 24, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review:banner 逻辑
parent
ed0f3a30
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
41 deletions
+6
-41
src/utils/dict.ts
+1
-1
src/views/mall/product/spu/form/OtherSettingsForm.vue
+3
-38
src/views/mall/promotion/banner/BannerForm.vue
+1
-1
src/views/mall/promotion/banner/index.vue
+1
-1
No files found.
src/utils/dict.ts
View file @
e5d6a9da
...
...
@@ -184,7 +184,7 @@ export enum DICT_TYPE {
PROMOTION_CONDITION_TYPE
=
'promotion_condition_type'
,
// 营销的条件类型枚举
PROMOTION_BARGAIN_RECORD_STATUS
=
'promotion_bargain_record_status'
,
// 砍价记录的状态
PROMOTION_COMBINATION_RECORD_STATUS
=
'promotion_combination_record_status'
,
// 拼团记录的状态
BANNER_POSITION
=
'
banner_position'
,
// banner 定位
PROMOTION_BANNER_POSITION
=
'promotion_
banner_position'
,
// banner 定位
// ========== CRM - 客户管理模块 ==========
CRM_RECEIVABLE_CHECK_STATUS
=
'crm_receivable_check_status'
,
...
...
src/views/mall/product/spu/form/OtherSettingsForm.vue
View file @
e5d6a9da
...
...
@@ -109,59 +109,24 @@ const props = defineProps({
const
promotionTypes
=
ref
<
DictDataType
[]
>
([
{
dictType
:
'promotionTypes'
,
label
:
'秒杀
活动
'
,
label
:
'秒杀'
,
value
:
1
,
colorType
:
'warning'
,
cssClass
:
''
},
{
dictType
:
'promotionTypes'
,
label
:
'砍价
活动
'
,
label
:
'砍价'
,
value
:
2
,
colorType
:
'warning'
,
cssClass
:
''
},
{
dictType
:
'promotionTypes'
,
label
:
'拼团
活动
'
,
label
:
'拼团'
,
value
:
3
,
colorType
:
'warning'
,
cssClass
:
''
},
{
dictType
:
'promotionTypes'
,
label
:
'限时折扣'
,
value
:
4
,
colorType
:
'warning'
,
cssClass
:
''
},
{
dictType
:
'promotionTypes'
,
label
:
'满减送'
,
value
:
5
,
colorType
:
'warning'
,
cssClass
:
''
},
{
dictType
:
'promotionTypes'
,
label
:
'会员折扣'
,
value
:
6
,
colorType
:
'warning'
,
cssClass
:
''
},
{
dictType
:
'promotionTypes'
,
label
:
'优惠劵'
,
value
:
7
,
colorType
:
'warning'
,
cssClass
:
''
},
{
dictType
:
'promotionTypes'
,
label
:
'积分'
,
value
:
8
,
colorType
:
'warning'
,
cssClass
:
''
}
])
...
...
src/views/mall/promotion/banner/BannerForm.vue
View file @
e5d6a9da
...
...
@@ -45,7 +45,7 @@
<el-form-item
label=
"定位"
prop=
"position"
>
<el-radio-group
v-model=
"formData.position"
>
<el-radio
v-for=
"dict in getIntDictOptions(DICT_TYPE.BANNER_POSITION)"
v-for=
"dict in getIntDictOptions(DICT_TYPE.
PROMOTION_
BANNER_POSITION)"
:key=
"dict.value"
:label=
"dict.value"
>
...
...
src/views/mall/promotion/banner/index.vue
View file @
e5d6a9da
...
...
@@ -76,7 +76,7 @@
</el-table-column>
<el-table-column
align=
"center"
label=
"定位"
prop=
"position"
>
<
template
#
default=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.BANNER_POSITION"
:value=
"scope.row.position"
/>
<dict-tag
:type=
"DICT_TYPE.
PROMOTION_
BANNER_POSITION"
:value=
"scope.row.position"
/>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"跳转地址"
prop=
"url"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment