Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 9d4de07b
authored
Nov 24, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
tijiao
1 parent
6c063d00
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
274 additions
and
6 deletions
src/views/customerTransform/index.vue
src/views/home/components/lineChart.vue
src/views/home/components/pieChart.vue
src/views/home/index.vue
src/views/customerTransform/index.vue
View file @
9d4de07
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<el-button
<el-button
type=
"text"
type=
"text"
:disabled=
"scope.scope.isRemind ==
0
"
:disabled=
"scope.scope.isRemind ==
1
"
@
click=
"btnClick('remind', 2, scope.scope)"
@
click=
"btnClick('remind', 2, scope.scope)"
>
提醒发送
</el-button>
>
提醒发送
</el-button>
<el-button
type=
"text"
@
click=
"btnClick('detail', 2, scope.scope)"
>
详情
</el-button>
<el-button
type=
"text"
@
click=
"btnClick('detail', 2, scope.scope)"
>
详情
</el-button>
...
@@ -253,6 +253,10 @@ export default {
...
@@ -253,6 +253,10 @@ export default {
// if (type == 1) {
// if (type == 1) {
this
.
$apis
.
customerTransform
.
listRemindOperate
(
params
).
then
(
res
=>
{
this
.
$apis
.
customerTransform
.
listRemindOperate
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
$message
({
type
:
'success'
,
message
:
'操作成功!'
})
if
(
type
==
1
)
{
if
(
type
==
1
)
{
this
.
$refs
.
customer
.
refreshTable
()
this
.
$refs
.
customer
.
refreshTable
()
}
else
{
}
else
{
...
...
src/views/home/components/lineChart.vue
0 → 100644
View file @
9d4de07
<
template
>
<div
id=
"line"
class=
"chart-line"
></div>
</
template
>
<
script
>
import
*
as
echarts
from
'echarts'
export
default
{
name
:
'PieChart'
,
data
()
{
return
{}
},
methods
:
{
getChart
()
{
let
chartDom
=
document
.
getElementById
(
'pie'
)
let
myChart
=
echarts
.
init
(
chartDom
)
let
option
option
=
{
xAxis
:
{
type
:
'category'
,
data
:
[
'Mon'
,
'Tue'
,
'Wed'
,
'Thu'
,
'Fri'
,
'Sat'
,
'Sun'
]
},
yAxis
:
{
type
:
'value'
},
series
:
[
{
data
:
[
150
,
230
,
224
,
218
,
135
,
147
,
260
],
type
:
'line'
}
]
}
option
&&
myChart
.
setOption
(
option
)
}
},
mounted
()
{
this
.
getChart
()
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.chart-pie
{
height
:
260px
;
}
</
style
>
src/views/home/components/pieChart.vue
0 → 100644
View file @
9d4de07
<
template
>
<div
id=
"pie"
class=
"chart-pie"
></div>
</
template
>
<
script
>
import
*
as
echarts
from
'echarts'
export
default
{
name
:
'PieChart'
,
data
()
{
return
{}
},
methods
:
{
getChart
()
{
let
chartDom
=
document
.
getElementById
(
'pie'
)
let
myChart
=
echarts
.
init
(
chartDom
)
let
option
option
=
{
// title: {
// text: 'Referer of a Website',
// subtext: 'Fake Data',
// left: 'center'
// },
tooltip
:
{
trigger
:
'item'
,
formatter
:
'{b}\n \n{c} 张'
},
// legend: {
// orient: 'vertical',
// left: 'left'
// },
series
:
[
{
name
:
'券类营销'
,
type
:
'pie'
,
radius
:
'50%'
,
label
:
{
formatter
:
'{b}\n \n{c} 张'
},
data
:
[
{
value
:
1048
,
name
:
'折扣券'
},
{
value
:
75
,
name
:
'兑换券'
}
],
emphasis
:
{
itemStyle
:
{
shadowBlur
:
10
,
shadowOffsetX
:
0
,
shadowColor
:
'rgba(0, 0, 0, 0.5)'
}
}
}
]
}
option
&&
myChart
.
setOption
(
option
)
}
},
mounted
()
{
this
.
getChart
()
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.chart-pie
{
width
:
330px
;
height
:
185px
;
}
</
style
>
src/views/home/index.vue
View file @
9d4de07
...
@@ -23,13 +23,80 @@
...
@@ -23,13 +23,80 @@
</div>
</div>
</div>
</div>
<!-- 客户分群 -->
<!-- 客户分群 -->
<div>
<div
class=
"customer-group"
>
<div
class=
"title"
>
客户分群
</div>
<div
class=
"title"
>
客户分群
</div>
<div>
<div
class=
"customer-content"
>
<!-- 券类营销 -->
<!-- 券类营销 -->
<div></div>
<div
class=
"border coupons"
>
<div
class=
"name"
>
券类营销
</div>
<div
class=
"coupons-content"
>
<div
class=
"coupons-left"
>
<div
class=
"data-item"
>
<span
class=
"data-title w-90"
>
优惠券总数
<img
:src=
"iconUrl"
alt
/>
</span>
<span
class=
"date-content"
>
<span
class=
"data-num"
>
1245
</span>
张
</span>
</div>
<div
class=
"data-item"
>
<span
class=
"data-title w-90"
>
发放总数
<img
:src=
"iconUrl"
alt
/>
</span>
<span
class=
"date-content"
>
<span
class=
"data-num"
>
155
</span>
张
</span>
</div>
<div
class=
"data-item"
>
<span
class=
"data-title w-90"
>
核销总数
<img
:src=
"iconUrl"
alt
/>
</span>
<span
class=
"date-content"
>
<span
class=
"data-num"
>
44
</span>
张
</span>
</div>
<div
class=
"data-last"
>
<span
class=
"data-name"
>
核销总数
</span>
<span
class=
"data-percentage"
>
60%
</span>
</div>
</div>
<PieChart
class=
"coupons-right"
v-show=
"true"
></PieChart>
</div>
</div>
<!-- 秒杀活动 -->
<!-- 秒杀活动 -->
<div></div>
<div
class=
"border activity"
>
<div
class=
"name"
>
秒杀活动
</div>
<div
class=
"data-item"
>
<span
class=
"data-title w-118"
>
参与活动总人数
<img
:src=
"iconUrl"
alt
/>
</span>
<span
class=
"date-content"
>
<span
class=
"data-num"
>
1245
</span>
人
</span>
</div>
<div
class=
"data-item"
>
<span
class=
"data-title w-118"
>
浏览量
<img
:src=
"iconUrl"
alt
/>
</span>
<span
class=
"date-content"
>
<span
class=
"data-num"
>
155
</span>
人
</span>
</div>
<div
class=
"data-item"
>
<span
class=
"data-title w-118"
>
累计销量
<img
:src=
"iconUrl"
alt
/>
</span>
<span
class=
"date-content"
>
<span
class=
"data-num"
>
121,144
</span>
元
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -40,10 +107,17 @@
...
@@ -40,10 +107,17 @@
</
template
>
</
template
>
<
script
>
<
script
>
const
iconUrl
=
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAFoTx1HAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADqADAAQAAAABAAAADgAAAAC98Dn6AAAB7klEQVQoFVVSQUhUURQ9981sVFyYRRHuFFq1CGlZC3etnBlMRhMXQwhtCqIQJBA3gSSi1EpkNqkjCjOjm1YWuGojBVO7Fi0K2qQLF6H453bO+/ODLvz37z333PvOu+8BtImCf0K56J8VYKLoC9HRMlnwRxaRgB0kOHDDz5gl/0hZBaaFwGl3H65j577nygV/ITCM71pinRo1GiF4zm8jqzkr5dEtluiTJZ9zx8fYTEBmbP5D/tSY3wnaRUwB0rbdsAH5SYK3sW2l4r1/jnFIsUMElmsNmxdB7JGsUnGUWvQz+XkHXtXqNsxx/KL/Zg+oS5xxi8A2T8SqNe0az3NANyfVJD4N5ripZDTDrc1da8kn/i1QxGya4eq4Kl8aui7hblRLUd/JXCSxxXarBJ9T8fuYFLsztiqTv4NjXUTh2rZteEhiP8OKiiIez3+CFoWubdXtpUDe1XAbmJEfQLxpRxFPRz7T1ccz6BFkl6okRzHFOJ5ccbnkr8l5LF8mrl5Pnv5gJksJjmlD/wclv9121ClxeqthH4TJQh5fLhIMaa7LOrRuIk2la89lfO29ghuU/69IHBatqIZfOhgWv2OXhUIOi/FCnDpoZuYqaCaYpYJ5gvf+m6pInUE9Y5NRhoPCdGl80fscyFK1aqfCZH8B0rPa9foo7e4AAAAASUVORK5CYII='
import
PieChart
from
'./components/pieChart'
export
default
{
export
default
{
name
:
'home'
,
name
:
'home'
,
components
:
{
PieChart
},
data
()
{
data
()
{
return
{
return
{
iconUrl
,
list
:
[
list
:
[
{
{
title
:
'日常关怀'
,
title
:
'日常关怀'
,
...
@@ -89,11 +163,12 @@ export default {
...
@@ -89,11 +163,12 @@ export default {
}
}
.home-top
{
.home-top
{
display
:
flex
;
display
:
flex
;
background-color
:
#ccc
;
//
background-color
:
#ccc
;
.home-left
{
.home-left
{
//
display
:
flex
;
//
display
:
flex
;
.marketing
{
.marketing
{
display
:
flex
;
display
:
flex
;
margin-bottom
:
20px
;
&-item
{
&-item
{
width
:
275px
;
width
:
275px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -124,12 +199,87 @@ export default {
...
@@ -124,12 +199,87 @@ export default {
color
:
#333333
;
color
:
#333333
;
line-height
:
20px
;
line-height
:
20px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
min-height
:
60px
;
}
}
&
-btn
{
&
-btn
{
text-align
:
center
;
text-align
:
center
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
}
}
.customer-content
{
display
:
flex
;
justify-content
:
space-between
;
}
.coupons
{
width
:
570px
;
box-sizing
:
border-box
;
&-content
{
display
:
inline-flex
;
}
&
-left
{
width
:
200px
;
}
&
-right
{
flex
:
1
;
display
:
inline-block
;
}
}
.activity
{
display
:
inline-block
;
width
:
275px
;
box-sizing
:
border-box
;
}
.name
{
font-size
:
16px
;
color
:
#333
;
}
.data
{
&-item
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
20px
;
}
&
-last
{
display
:
flex
;
align-items
:
center
;
margin-top
:
16px
;
justify-content
:
flex-end
;
}
&
-title
{
display
:
inline-flex
;
align-items
:
center
;
justify-content
:
flex-end
;
font-size
:
14px
;
color
:
#666
;
img
{
margin-left
:
6px
;
}
}
&
-content
{
color
:
#333
;
font-size
:
12px
;
}
&
-num
{
font-size
:
22px
;
font-weight
:
500
;
}
&
-name
{
font-size
:
14px
;
color
:
#a3a3a3
;
}
&
-percentage
{
font-size
:
14px
;
color
:
#5850ff
;
margin-left
:
10px
;
}
}
.w-118
{
width
:
118px
;
}
.w-90
{
width
:
90px
;
}
}
}
.home-right
{
.home-right
{
flex
:
1
;
flex
:
1
;
...
...
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