Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b3edbf3e
authored
Jan 20, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
概览修改样式和群发活动添加无忧服务
1 parent
c794b449
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
86 deletions
src/views/customerTransform/components/activityModel.vue
src/views/home/index.vue
src/views/customerTransform/components/activityModel.vue
View file @
b3edbf3
<
template
>
<div
class=
"square-main"
>
<el-dialog
title=
"选择活动"
:visible
.
sync=
"dialogVisible"
width=
"1088px"
:before-close=
"handleClose"
>
<el-dialog
title=
"选择活动"
:visible
.
sync=
"dialogVisible"
width=
"1088px"
:before-close=
"handleClose"
>
<div
class=
"model-panel"
>
<div
class=
"model-panel-tab"
>
<label>
活动类型:
</label>
...
...
@@ -14,56 +9,21 @@
<el-tab-pane
label=
"权益套餐"
name=
"4"
></el-tab-pane>
<el-tab-pane
label=
"商城券"
name=
"2"
></el-tab-pane>
<el-tab-pane
label=
"秒杀活动"
name=
"5"
></el-tab-pane>
<
!--
<el-tab-pane
label=
"无忧服务"
name=
"6"
v-if=
"openFlag"
></el-tab-pane>
--
>
<
el-tab-pane
label=
"无忧服务"
name=
"6"
v-if=
"openFlag"
></el-tab-pane
>
</el-tabs>
</div>
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
v-loading=
"loading"
>
<div
class=
"model-item"
:class=
"
{ checked: selectItem == item }"
v-for="(item, index) in modelList"
:key="index"
@click="handleSelectItem(item)"
>
<div
class=
"model-item-title"
:title=
"item.equityName"
v-show=
"activeName == 3"
>
{{
item
.
equityName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.couponName"
v-show=
"activeName == 2"
>
{{
item
.
couponName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.couponName"
v-show=
"activeName == 6"
>
{{
item
.
equityName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.packageName"
v-show=
"activeName == 4"
>
{{
item
.
packageName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.activityName"
v-show=
"activeName == 5"
>
{{
item
.
activityName
}}
</div>
<div
class=
"model-item"
:class=
"
{ checked: selectItem == item }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)">
<div
class=
"model-item-title"
:title=
"item.equityName"
v-show=
"activeName == 3"
>
{{
item
.
equityName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.couponName"
v-show=
"activeName == 2"
>
{{
item
.
couponName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.couponName"
v-show=
"activeName == 6"
>
{{
item
.
equityName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.packageName"
v-show=
"activeName == 4"
>
{{
item
.
packageName
}}
</div>
<div
class=
"model-item-title"
:title=
"item.activityName"
v-show=
"activeName == 5"
>
{{
item
.
activityName
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 3"
>
领取方式:免费领用
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 4"
>
领取方式:付费购买
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 6"
>
有效期:
{{
item
.
effectiveDays
}}
天
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 3"
>
有效期:无限制
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 2"
>
有效期:
{{
item
.
effectiveStartTime
?
item
.
effectiveStartTime
.
split
(
' '
)[
0
]
:
''
}}
~
{{
item
.
effectiveEndTime
?
item
.
effectiveEndTime
.
split
(
' '
)[
0
]
:
''
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 6"
>
有效期:
{{
item
.
effectiveDays
}}
天
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 3"
>
有效期:无限制
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 2 && item.effectiveType == 2"
>
有效期:
{{
item
.
effectiveStartTime
?
item
.
effectiveStartTime
.
split
(
' '
)[
0
]
:
''
}}
~
{{
item
.
effectiveEndTime
?
item
.
effectiveEndTime
.
split
(
' '
)[
0
]
:
''
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 6"
>
获取方式:需先购买无忧服务套餐
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 6"
>
获取限制:每个服务套餐限领一次
</div>
...
...
@@ -76,9 +36,9 @@
使用途径:
{{
item
.
useChannel
==
1
?
'线上商品'
:
'到店核销'
}}
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 6"
>
<div
class=
"model-item-content
model-item-weight
"
v-show=
"activeName == 6"
>
赠送天数:
<span>
{{
effectiveType
==
2
?
item
.
effective
Day
+
'天'
:
'永久有效'
}}
</span>
<span>
{{
item
.
effectiveType
==
2
?
item
.
effectived
Day
+
'天'
:
'永久有效'
}}
</span>
</div>
<div
class=
"model-item-content"
v-show=
"activeName == 4 || activeName == 5"
></div>
<div
class=
"model-item-content model-item-contents"
v-show=
"activeName == 4"
>
...
...
@@ -104,38 +64,14 @@
<img
src=
"@/assets/empty.png"
/>
<div
class=
"empty-item"
>
暂无数据
</div>
</div>
<el-pagination
v-if=
"activeName != 3"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"pageNum"
:page-sizes=
"[12, 24, 36, 48]"
:page-size=
"pageSize"
:total=
"tableTotal"
layout=
"total, sizes, prev, pager, next, jumper"
></el-pagination>
<el-pagination
v-if=
"activeName != 3"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"pageNum"
:page-sizes=
"[12, 24, 36, 48]"
:page-size=
"pageSize"
:total=
"tableTotal"
layout=
"total, sizes, prev, pager, next, jumper"
></el-pagination>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSelect"
v-show=
"modelList.length"
>
确 定
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOpen"
v-show=
"modelList.length == 0 && activeName == 2 && memberMenu"
>
立即添加
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOpen"
v-show=
"modelList.length == 0 && activeName == 4 && couponMenu"
>
立即添加
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOpen"
v-show=
"modelList.length == 0 && activeName == 5 && activityMenu"
>
立即添加
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOpen"
v-show=
"modelList.length == 0 && activeName == 2 && memberMenu"
>
立即添加
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOpen"
v-show=
"modelList.length == 0 && activeName == 4 && couponMenu"
>
立即添加
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOpen"
v-show=
"modelList.length == 0 && activeName == 5 && activityMenu"
>
立即添加
</el-button>
</span>
</el-dialog>
</div>
...
...
@@ -412,12 +348,16 @@ export default {
font-size
:
12px
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
1
8
px
;
height
:
1
8
px
;
line-height
:
1
6
px
;
height
:
1
6
px
;
margin-top
:
6px
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
&.model-item-weight
{
line-height
:
20px
;
height
:
20px
;
}
span
{
color
:
#5850ff
;
font-size
:
20px
;
...
...
src/views/home/index.vue
View file @
b3edbf3
...
...
@@ -637,7 +637,8 @@ export default {
}
.coupons
{
//
width
:
570px
;
width
:
66.6%
;
width
:
calc
(
67%
-
11px
);
//
width
:
66.6%
;
box-sizing
:
border-box
;
&-content
{
display
:
inline-flex
;
...
...
@@ -654,8 +655,9 @@ export default {
}
.activity
{
display
:
inline-block
;
//
width
:
275px
;
width
:
calc
(
33.3%
-
20px
);
min-width
:
275px
;
width
:
calc
(
33%
-
9px
);
//
width
:
calc
(
33.3%
-
20px
);
box-sizing
:
border-box
;
}
.name
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment