Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
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 b56215ee
authored
May 24, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
49c232e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
108 additions
and
107 deletions
src/views/home/components/Marketing/MarketingLeft.vue
src/views/home/components/Marketing/MarketingLeft.vue
View file @
b56215e
<!--
* @Author: 前端
qianduan01@didihu.com.cn
* @Date: 2023-05-15
15:08:01
* @LastEditors: yangming
yangming@didihu.com.cn
* @LastEditTime: 2023-05-23
17:35:23
* @FilePath:
\scrm-micro-home\src\views\home\components\marketing\MarketingLeft.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置:
https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Author: 前端
qianduan01@didihu.com.cn
* @Date: 2023-05-15
15:08:01
* @LastEditors: yangming
yangming@didihu.com.cn
* @LastEditTime: 2023-05-23
17:35:23
* @FilePath:
\scrm-micro-home\src\views\home\components\marketing\MarketingLeft.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置:
https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<div
class=
"left-wrap"
>
<div
class=
"store-wrap"
>
<div
class=
"mrglr
text-16 scrm-c3
weight-6"
>
{{
merchantInfo
.
merchantName
}}
</div>
<div
class=
"merchantId
scrm-c3
scrm-f14"
>
商户号:
{{
merchantInfo
.
merchantId
}}
</div>
<div
class=
"mrglr
text-16 scrm-c3
weight-6"
>
{{
merchantInfo
.
merchantName
}}
</div>
<div
class=
"merchantId
scrm-c3
scrm-f14"
>
商户号:
{{
merchantInfo
.
merchantId
}}
</div>
<el-button
class=
"mrglr"
icon=
"el-icon-plus"
size=
"small"
type=
"primary"
@
click=
"addSuper"
>
新建
</el-button>
</div>
<!--
营销方案
-->
<!--
营销方案
-->
<div
class=
"scheme-wrap"
>
<div
class=
"scrm-ml6
scrm-c3 scrm-f14
weight-6"
>
营销方案:
</div>
<div
class=
"scrm-ml6
scrm-c3 scrm-f14
weight-6"
>
营销方案:
</div>
<div
class=
"scheme-list"
v-infinite-scroll=
"scrollLoad"
>
<template
v-for=
"(item, index) in schemeListData"
>
<div
class=
"scheme-line
scrm-c3 scrm-f14
flex"
:class=
"
{ select: item.hovering }" :key="index" @mouseenter="item.hovering = true" @mouseleave="item.hovering = false">
<div
class=
"scheme-text
one-line-ellipsis"
>
{{
item
.
activityName
}}
</div>
<div
class=
"flex
txt-blue"
v-show=
"item.hovering"
>
<div
class=
"scheme-line
scrm-c3 scrm-f14
flex"
:class=
"
{ select: item.hovering }" :key="index" @mouseenter="item.hovering = true" @mouseleave="item.hovering = false">
<div
class=
"scheme-text
one-line-ellipsis"
>
{{
item
.
activityName
}}
</div>
<div
class=
"flex
txt-blue"
v-show=
"item.hovering"
>
<span
class=
"pointer"
@
click=
"getView(item)"
>
预览
</span>
<span
class=
"scrm-ml6
pointer"
@
click=
"setActivity(item)"
>
引用
</span>
<span
class=
"scrm-ml6
pointer"
@
click=
"setActivity(item)"
>
引用
</span>
</div>
</div>
</
template
>
</div>
</div>
<!--
营销日历
-->
<!--
营销日历
-->
<div
class=
"calendar-market-wrap"
>
<div
class=
"scrm-c3
scrm-f14 m-b-8
weight-6"
>
营销日历:
</div>
<div
class=
"scrm-c3
scrm-f14 m-b-8
weight-6"
>
营销日历:
</div>
<glsx-calendar></glsx-calendar>
</div>
<!--
营销主题
-->
<!--
营销主题
-->
<div
class=
"theme-wrap"
>
<div
class=
"scrm-c3
scrm-f14 m-b-8
weight-6"
>
推荐近期营销主题:
</div>
<div
class=
"scrm-c3
scrm-f14 m-b-8
weight-6"
>
推荐近期营销主题:
</div>
<div
class=
"theme-list"
>
<
template
v-for=
"(item, index) in themeList"
>
<div
class=
"theme-line
scrm-c3 scrm-f12
flex"
:class=
"
{ select: item.hovering }" :key="index" @mouseenter="item.hovering = true" @mouseleave="item.hovering = false">
<div
class=
"theme-line
scrm-c3 scrm-f12
flex"
:class=
"
{ select: item.hovering }" :key="index" @mouseenter="item.hovering = true" @mouseleave="item.hovering = false">
<div
class=
"scheme-text"
>
{{
index
+
1
}}
、
{{
item
.
title
}}
</div>
<div
class=
"flex
txt-blue"
v-show=
"item.hovering"
>
<span
class=
"scrm-ml6
pointer"
@
click=
"setActivity(item)"
>
引用
</span>
<div
class=
"flex
txt-blue"
v-show=
"item.hovering"
>
<span
class=
"scrm-ml6
pointer"
@
click=
"setActivity(item)"
>
引用
</span>
</div>
</div>
</
template
>
...
...
@@ -101,7 +101,7 @@ export default {
}
},
mounted
()
{
this
.
getSchemeListData
()
//44211227
this.$globalState.session.merchantId
this
.
getSchemeListData
()
//44211227
this.$globalState.session.merchantId
},
methods
:
{
...
mapActions
(
'marketing'
,
[
'setActivityInfo'
,
'setSchemeListData'
]),
...
...
@@ -152,9 +152,10 @@ export default {
})
},
addSuper
()
{
this
.
$parent
.
handleShowCalendar
(
0
)
this
.
$parent
.
handleShowCalendar
(
0
)
this
.
setActivityInfo
({})
},
//设置活动详情
},
//设置活动详情
setActivity
(
item
)
{
this
.
$parent
.
handleShowCalendar
(
0
)
this
.
setActivityInfo
(
item
)
...
...
@@ -173,89 +174,89 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.left-wrap
{
width
:
246px
;
height
:
100%
;
background
:
#ffffff
;
box-sizing
:
border-box
;
display
:
flex
;
flex-direction
:
column
;
.store-wrap
{
height
:
192px
;
margin-top
:
48px
;
display
:
flex
;
flex-direction
:
column
;
border-bottom
:
1px
solid
#e5e5e5
;
.merchantId
{
margin
:
8px
auto
24px
;
}
}
.scheme-wrap
{
padding
:
16px
10px
;
.left-wrap
{
width
:
246px
;
height
:
100%
;
background
:
#ffffff
;
box-sizing
:
border-box
;
display
:
flex
;
flex-direction
:
column
;
.store-wrap
{
height
:
192px
;
margin-top
:
48px
;
display
:
flex
;
flex-direction
:
column
;
border-bottom
:
1px
solid
#e5e5e5
;
.merchantId
{
margin
:
8px
auto
24px
;
}
}
.scheme-wrap
{
padding
:
16px
10px
;
.scheme-list
{
margin
:
8px
0
;
display
:
flex
;
flex-direction
:
column
;
height
:
190px
;
overflow-y
:
scroll
;
overflow-x
:
hidden
;
.scheme-line
{
margin-bottom
:
4px
;
align-items
:
center
;
height
:
36px
;
line-height
:
36px
;
.scheme-text
{
width
:
182px
;
margin-left
:
6px
;
}
}
.select
{
width
:
226px
;
height
:
36px
;
background
:
#f2f1ff
;
border-radius
:
4px
;
padding
:
0
6px
;
box-sizing
:
border-box
;
.scheme-text
{
width
:
140px
;
}
}
}
}
.calendar-market-wrap
{
padding
:
0
16px
32px
;
}
.theme-wrap
{
padding
:
0
16px
;
.theme-list
{
height
:
200px
;
//
overflow-x
:
hidden
;
overflow-y
:
scroll
;
margin
:
8px
0
;
display
:
flex
;
flex-direction
:
column
;
.theme-line
{
margin-bottom
:
6px
;
align-items
:
center
;
line-height
:
32px
;
.scheme-text
{
width
:
182px
;
margin-left
:
6px
;
}
}
.select
{
width
:
206px
;
height
:
auto
;
background
:
#f2f1ff
;
border-radius
:
4px
;
padding
:
0
6px
;
box-sizing
:
border-box
;
.scheme-text
{
width
:
140px
;
}
}
}
}
.scheme-list
{
margin
:
8px
0
;
display
:
flex
;
flex-direction
:
column
;
height
:
190px
;
overflow-y
:
scroll
;
overflow-x
:
hidden
;
.scheme-line
{
margin-bottom
:
4px
;
align-items
:
center
;
height
:
36px
;
line-height
:
36px
;
.scheme-text
{
width
:
182px
;
margin-left
:
6px
;
}
}
.select
{
width
:
226px
;
height
:
36px
;
background
:
#f2f1ff
;
border-radius
:
4px
;
padding
:
0
6px
;
box-sizing
:
border-box
;
.scheme-text
{
width
:
140px
;
}
}
}
}
.calendar-market-wrap
{
padding
:
0
16px
32px
;
}
.theme-wrap
{
padding
:
0
16px
;
.theme-list
{
height
:
200px
;
//
overflow-x
:
hidden
;
overflow-y
:
scroll
;
margin
:
8px
0
;
display
:
flex
;
flex-direction
:
column
;
.theme-line
{
margin-bottom
:
6px
;
align-items
:
center
;
line-height
:
32px
;
.scheme-text
{
width
:
182px
;
margin-left
:
6px
;
}
}
.select
{
width
:
206px
;
height
:
auto
;
background
:
#f2f1ff
;
border-radius
:
4px
;
padding
:
0
6px
;
box-sizing
:
border-box
;
.scheme-text
{
width
:
140px
;
}
}
}
}
}
</
style
>
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