Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsx-posters
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 2c09aa13
authored
Oct 19, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
0a41d3ce
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
193 additions
and
107 deletions
package-lock.json
src/assets/styles/activity.scss
src/components/EchartBox/index.vue
src/views/crowdfunding/activited.vue
package-lock.json
View file @
2c09aa1
...
@@ -488,6 +488,22 @@
...
@@ -488,6 +488,22 @@
"tslib"
:
"^2.0.3"
"tslib"
:
"^2.0.3"
}
}
},
},
"echarts"
:
{
"version"
:
"5.4.0"
,
"resolved"
:
"https://registry.npmjs.org/echarts/-/echarts-5.4.0.tgz"
,
"integrity"
:
"sha512-uPsO9VRUIKAdFOoH3B0aNg7NRVdN7aM39/OjovjO9MwmWsAkfGyeXJhK+dbRi51iDrQWliXV60/XwLA7kg3z0w=="
,
"requires"
:
{
"tslib"
:
"2.3.0"
,
"zrender"
:
"5.4.0"
},
"dependencies"
:
{
"tslib"
:
{
"version"
:
"2.3.0"
,
"resolved"
:
"https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz"
,
"integrity"
:
"sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
}
}
},
"error-ex"
:
{
"error-ex"
:
{
"version"
:
"1.3.2"
,
"version"
:
"1.3.2"
,
"resolved"
:
"https://registry.npmmirror.com/error-ex/-/error-ex-1.3.2.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/error-ex/-/error-ex-1.3.2.tgz"
,
...
@@ -1425,6 +1441,21 @@
...
@@ -1425,6 +1441,21 @@
"resolved"
:
"https://registry.npmmirror.com/yaml/-/yaml-1.10.2.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/yaml/-/yaml-1.10.2.tgz"
,
"integrity"
:
"sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg=="
,
"integrity"
:
"sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg=="
,
"dev"
:
true
"dev"
:
true
},
"zrender"
:
{
"version"
:
"5.4.0"
,
"resolved"
:
"https://registry.npmjs.org/zrender/-/zrender-5.4.0.tgz"
,
"integrity"
:
"sha512-rOS09Z2HSVGFs2dn/TuYk5BlCaZcVe8UDLLjj1ySYF828LATKKdxuakSZMvrDz54yiKPDYVfjdKqcX8Jky3BIA=="
,
"requires"
:
{
"tslib"
:
"2.3.0"
},
"dependencies"
:
{
"tslib"
:
{
"version"
:
"2.3.0"
,
"resolved"
:
"https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz"
,
"integrity"
:
"sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
}
}
}
}
}
}
}
}
src/assets/styles/activity.scss
View file @
2c09aa1
...
@@ -37,8 +37,8 @@
...
@@ -37,8 +37,8 @@
border-radius
:
8px
;
border-radius
:
8px
;
top
:
292px
;
top
:
292px
;
}
}
}
}
.wrapper-output
{
.wrapper-output
{
position
:
relative
;
position
:
relative
;
margin-top
:
46px
;
margin-top
:
46px
;
font-size
:
0
;
font-size
:
0
;
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
top
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
width
:
72px
;
width
:
72px
;
height
:
100%
height
:
100%
;
}
}
.ratio-number
{
.ratio-number
{
color
:
#ff333a
;
color
:
#ff333a
;
...
@@ -153,14 +153,12 @@
...
@@ -153,14 +153,12 @@
display
:
inline-flex
;
display
:
inline-flex
;
align-items
:
flex-end
;
align-items
:
flex-end
;
justify-content
:
center
;
justify-content
:
center
;
box-shadow
:
inset
0px
-1px
3px
0px
#fe9d24
,
box-shadow
:
inset
0px
-1px
3px
0px
#fe9d24
,
inset
0px
2px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
)
,
inset
0px
2px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
)
,
inset
0px
1px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
);
inset
0px
1px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
);
padding
:
14px
15px
;
padding
:
14px
15px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
border-radius
:
5px
;
border-radius
:
5px
;
box-shadow
:
inset
0px
-1px
3px
0px
#fe9d24
,
box-shadow
:
inset
0px
-1px
3px
0px
#fe9d24
,
inset
0px
2px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
)
,
inset
0px
2px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
)
,
inset
0px
1px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
);
inset
0px
1px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
);
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
.icon-flash
{
.icon-flash
{
...
@@ -292,8 +290,7 @@
...
@@ -292,8 +290,7 @@
.department
{
.department
{
width
:
120px
;
width
:
120px
;
height
:
32px
;
height
:
32px
;
background
:
url("@/assets/images/activityReport/bg-department.png")
background
:
url("@/assets/images/activityReport/bg-department.png")
no-repeat
;
no-repeat
;
background-size
:
120px
32px
;
background-size
:
120px
32px
;
font-size
:
22px
;
font-size
:
22px
;
font-weight
:
400
;
font-weight
:
400
;
...
@@ -365,24 +362,21 @@
...
@@ -365,24 +362,21 @@
top
:
-33px
;
top
:
-33px
;
width
:
140px
;
width
:
140px
;
height
:
140px
;
height
:
140px
;
background
:
url("@/assets/images/activityReport/first-avatar-bg.png")
background
:
url("@/assets/images/activityReport/first-avatar-bg.png")
no-repeat
;
no-repeat
;
background-size
:
140px
;
background-size
:
140px
;
}
}
.second-avatar-bg
{
.second-avatar-bg
{
top
:
-32px
;
top
:
-32px
;
width
:
120px
;
width
:
120px
;
height
:
120px
;
height
:
120px
;
background
:
url("@/assets/images/activityReport/second-avatar-bg.png")
background
:
url("@/assets/images/activityReport/second-avatar-bg.png")
no-repeat
;
no-repeat
;
background-size
:
120px
;
background-size
:
120px
;
}
}
.third-avatar-bg
{
.third-avatar-bg
{
top
:
-32px
;
top
:
-32px
;
width
:
120px
;
width
:
120px
;
height
:
120px
;
height
:
120px
;
background
:
url("@/assets/images/activityReport/third-avatar-bg.png")
background
:
url("@/assets/images/activityReport/third-avatar-bg.png")
no-repeat
;
no-repeat
;
background-size
:
120px
;
background-size
:
120px
;
}
}
.avatar
{
.avatar
{
...
@@ -432,8 +426,8 @@
...
@@ -432,8 +426,8 @@
width
:
100%
;
width
:
100%
;
}
}
}
}
}
}
.wrapper-code
{
.wrapper-code
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
...
@@ -465,7 +459,7 @@
...
@@ -465,7 +459,7 @@
margin-top
:
-85px
;
margin-top
:
-85px
;
z-index
:
-1
;
z-index
:
-1
;
}
}
}
}
// 触达通道分析
// 触达通道分析
.legend-list
{
.legend-list
{
...
@@ -496,6 +490,7 @@
...
@@ -496,6 +490,7 @@
.funnel-box
{
.funnel-box
{
display
:
flex
;
display
:
flex
;
position
:
relative
;
position
:
relative
;
margin-bottom
:
50px
;
.funnel-list
{
.funnel-list
{
position
:
relative
;
position
:
relative
;
margin-left
:
30px
;
margin-left
:
30px
;
...
@@ -515,7 +510,7 @@
...
@@ -515,7 +510,7 @@
align-items
:
center
;
align-items
:
center
;
font-size
:
20px
;
font-size
:
20px
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#
FFFFFF
;
color
:
#
ffffff
;
line-height
:
32px
;
line-height
:
32px
;
transform
:
skewX
(
-15deg
);
transform
:
skewX
(
-15deg
);
width
:
100%
;
width
:
100%
;
...
@@ -553,7 +548,7 @@
...
@@ -553,7 +548,7 @@
position
:
absolute
;
position
:
absolute
;
top
:
-19px
;
top
:
-19px
;
right
:
10px
;
right
:
10px
;
background-color
:
#
FFF6EA
;
background-color
:
#
fff6ea
;
transform
:
skewX
(
-15deg
);
transform
:
skewX
(
-15deg
);
width
:
65px
;
width
:
65px
;
img
{
img
{
...
@@ -561,7 +556,6 @@
...
@@ -561,7 +556,6 @@
width
:
14px
;
width
:
14px
;
height
:
290px
;
height
:
290px
;
}
}
}
}
}
}
.funnel-right
{
.funnel-right
{
...
@@ -572,7 +566,7 @@
...
@@ -572,7 +566,7 @@
align-items
:
center
;
align-items
:
center
;
padding
:
7px
30px
;
padding
:
7px
30px
;
margin-bottom
:
28px
;
margin-bottom
:
28px
;
background
:
linear-gradient
(
90deg
,
#
FFD0B9
0%
,
#FFF6EA
100%
);
background
:
linear-gradient
(
90deg
,
#
ffd0b9
0%
,
#fff6ea
100%
);
.icon
{
.icon
{
display
:
inline-block
;
display
:
inline-block
;
width
:
30px
;
width
:
30px
;
...
...
src/components/EchartBox/index.vue
View file @
2c09aa1
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* @Description:
* @Description:
* @Author: huyue
* @Author: huyue
* @Date: 2022-10-14 18:32:54
* @Date: 2022-10-14 18:32:54
* @LastEditors:
huyue
* @LastEditors:
yangming yangming@didihu.com.cn
* @LastEditTime: 2022-10-19 1
5:50:56
* @LastEditTime: 2022-10-19 1
7:21:59
-->
-->
<
template
>
<
template
>
<div
:ref=
"id"
class=
"canvas"
></div>
<div
:ref=
"id"
class=
"canvas"
></div>
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
import
{
onMounted
,
ref
}
from
"vue"
;
import
{
onMounted
,
ref
}
from
"vue"
;
// 按需引入 echarts
// 按需引入 echarts
import
*
as
echarts
from
"echarts"
;
import
*
as
echarts
from
"echarts"
;
import
type
{
PropType
}
from
"@vue/runtime-core"
;
import
{
PropType
,
watch
}
from
"@vue/runtime-core"
;
let
chart
:
any
=
null
;
let
chart
:
any
=
null
;
const
client
=
ref
();
const
client
=
ref
();
const
props
=
defineProps
({
const
props
=
defineProps
({
...
@@ -20,6 +20,10 @@ const props = defineProps({
...
@@ -20,6 +20,10 @@ const props = defineProps({
type
:
Array
as
PropType
<
string
[]
>
,
type
:
Array
as
PropType
<
string
[]
>
,
default
:
()
=>
[
"#FFC154"
,
"#FF9671"
],
default
:
()
=>
[
"#FFC154"
,
"#FF9671"
],
},
},
value
:
{
type
:
Array
,
default
:
[],
},
id
:
{
id
:
{
type
:
String
,
type
:
String
,
default
:
""
,
default
:
""
,
...
@@ -31,7 +35,6 @@ const props = defineProps({
...
@@ -31,7 +35,6 @@ const props = defineProps({
});
});
const
id
=
(
el
:
HTMLElement
)
=>
{
const
id
=
(
el
:
HTMLElement
)
=>
{
if
(
el
)
{
if
(
el
)
{
console
.
log
(
el
);
client
.
value
=
el
;
client
.
value
=
el
;
}
}
};
};
...
@@ -40,12 +43,18 @@ onMounted(() => {
...
@@ -40,12 +43,18 @@ onMounted(() => {
chart
.
setOption
(
getChartSetOption
());
chart
.
setOption
(
getChartSetOption
());
window
.
addEventListener
(
"resize"
,
resizeHandler
);
window
.
addEventListener
(
"resize"
,
resizeHandler
);
});
});
watch
(
props
,
(
count
,
prevCount
)
=>
{
chart
=
echarts
.
init
(
client
.
value
);
chart
.
setOption
(
getChartSetOption
());
window
.
addEventListener
(
"resize"
,
resizeHandler
);
});
const
resizeHandler
=
()
=>
{
const
resizeHandler
=
()
=>
{
if
(
chart
)
{
if
(
chart
)
{
chart
.
resize
();
chart
.
resize
();
}
}
};
};
const
getChartSetOption
=
()
=>
{
const
getChartSetOption
=
()
=>
{
console
.
log
(
props
.
value
);
var
option
=
{
var
option
=
{
color
:
props
.
colors
,
color
:
props
.
colors
,
series
:
[
series
:
[
...
@@ -68,10 +77,7 @@ const getChartSetOption = () => {
...
@@ -68,10 +77,7 @@ const getChartSetOption = () => {
labelLine
:
{
labelLine
:
{
show
:
false
,
show
:
false
,
},
},
data
:
[
data
:
props
.
value
,
{
value
:
735
,
name
:
"Direct"
},
{
value
:
580
,
name
:
"Email"
},
],
},
},
],
],
};
};
...
...
src/views/crowdfunding/activited.vue
View file @
2c09aa1
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* @Description: 战报
* @Description: 战报
* @Author: huyue
* @Author: huyue
* @Date: 2022-10-11 17:41:38
* @Date: 2022-10-11 17:41:38
* @LastEditors:
huyue
* @LastEditors:
yangming yangming@didihu.com.cn
* @LastEditTime: 2022-10-19 1
6:27:16
* @LastEditTime: 2022-10-19 1
8:00:24
-->
-->
<
template
>
<
template
>
<!-- 战报产品 -->
<!-- 战报产品 -->
...
@@ -544,7 +544,11 @@
...
@@ -544,7 +544,11 @@
</div>
</div>
<div
class=
"box-body-wrap"
>
<div
class=
"box-body-wrap"
>
<div
class=
"box-body-wrap-vessel client"
>
<div
class=
"box-body-wrap-vessel client"
>
<echart-box
id=
"client"
:colors=
"colors"
></echart-box>
<echart-box
id=
"client"
:value=
"data.activitedInfo.coverRateValue"
:colors=
"colors"
></echart-box>
<div
class=
"box-body-details"
>
<div
class=
"box-body-details"
>
<div
class=
"info"
>
<div
class=
"info"
>
<div
class=
"info-text"
>
基盘客户数
</div>
<div
class=
"info-text"
>
基盘客户数
</div>
...
@@ -552,7 +556,7 @@
...
@@ -552,7 +556,7 @@
</div>
</div>
<div
class=
"info"
>
<div
class=
"info"
>
<div
class=
"info-text"
>
访客总数
</div>
<div
class=
"info-text"
>
访客总数
</div>
<span>
600
<label>
个
</label></span>
<span>
{{ data.activitedInfo.fansCount }}
<label>
个
</label></span>
</div>
</div>
<div
class=
"info"
>
<div
class=
"info"
>
<div
class=
"info-text"
>
基盘覆盖率
</div>
<div
class=
"info-text"
>
基盘覆盖率
</div>
...
@@ -561,23 +565,19 @@
...
@@ -561,23 +565,19 @@
</div>
</div>
</div>
</div>
<div
class=
"box-body-wrap-vessel vehicle"
>
<div
class=
"box-body-wrap-vessel vehicle"
>
<echart-box
id=
"vehicle"
:colors=
"colors"
></echart-box>
<echart-box
<div
class=
"brand-wrap"
>
:value=
"data.activitedInfo.seriesRank"
<div
class=
"flex brand-text"
>
id=
"vehicle"
<div
class=
"icon"
></div>
:colors=
"data.seriesRankColor"
奔驰
></echart-box>
</div>
<div
<div
class=
"flex brand-text"
>
class=
"brand-wrap"
<div
class=
"icon"
></div>
v-for=
"item in data.activitedInfo.seriesRank"
宝马
:key=
"item"
</div>
>
<div
class=
"flex brand-text"
>
<div
class=
"icon"
></div>
宝马
</div>
<div
class=
"flex brand-text"
>
<div
class=
"flex brand-text"
>
<div
class=
"icon"
></div>
<div
class=
"icon"
></div>
宝马
{{ item.name }}
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -646,30 +646,43 @@
...
@@ -646,30 +646,43 @@
class=
"funnel-bg"
class=
"funnel-bg"
:style=
"{
:style=
"{
'background-color': data.colorList[0],
'background-color': data.colorList[0],
width: (data.custemData[0] / data.total) * 400 + 'px',
width:
(data.activitedInfo.touchVisitorCount[0] /
data.activitedInfo.touchVisitorCount[3]) *
400 +
'px',
}"
}"
>
>
<span
class=
"funnel-value"
>
{{ data.custemData[0] }}
</span>
<span
class=
"funnel-value"
>
{{
data.activitedInfo.touchVisitorCount[0]
}}
</span>
</div>
</div>
<div
<div
class=
"funnel-bg"
class=
"funnel-bg"
style=
"width: 100px"
style=
"width: 100px"
:style=
"{
:style=
"{
'background-color': data.colorList[1],
'background-color': data.colorList[1],
width: (data.custemData[1] / data.total) * 400 + 'px',
width:
(data.activitedInfo.touchVisitorCount[1] /
data.activitedInfo.touchVisitorCount[3]) *
400 +
'px',
}"
}"
>
>
<span
class=
"funnel-value"
>
{{ data.custemData[1] }}
</span>
<span
class=
"funnel-value"
>
{{
data.activitedInfo.touchVisitorCount[1]
}}
</span>
</div>
</div>
<div
<div
class=
"funnel-bg"
class=
"funnel-bg"
style=
"width: 100px"
:style=
"{
:style=
"{
'background-color': data.colorList[2],
'background-color': data.colorList[2],
flex: 1,
flex: 1,
}"
}"
>
>
<span
class=
"funnel-value"
>
{{ data.custemData[2] }}
</span>
<span
class=
"funnel-value"
>
{{
data.activitedInfo.touchVisitorCount[2]
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"funnel-item width1"
>
<div
class=
"funnel-item width1"
>
...
@@ -677,20 +690,32 @@
...
@@ -677,20 +690,32 @@
class=
"funnel-bg"
class=
"funnel-bg"
:style=
"{
:style=
"{
'background-color': data.colorList[0],
'background-color': data.colorList[0],
width: (data.custemData[0] / data.total) * 400 + 'px',
width:
(data.activitedInfo.touchOrderCount[0] /
data.activitedInfo.touchOrderCount[3]) *
400 +
'px',
}"
}"
>
>
<span
class=
"funnel-value"
>
{{ data.custemData[0] }}
</span>
<span
class=
"funnel-value"
>
{{
data.activitedInfo.touchOrderCount[0]
}}
</span>
</div>
</div>
<div
<div
class=
"funnel-bg"
class=
"funnel-bg"
style=
"width: 100px"
style=
"width: 100px"
:style=
"{
:style=
"{
'background-color': data.colorList[1],
'background-color': data.colorList[1],
width: (data.custemData[1] / data.total) * 400 + 'px',
width:
(data.activitedInfo.touchOrderCount[1] /
data.activitedInfo.touchOrderCount[3]) *
400 +
'px',
}"
}"
>
>
<span
class=
"funnel-value"
>
{{ data.custemData[1] }}
</span>
<span
class=
"funnel-value"
>
{{
data.activitedInfo.touchOrderCount[1]
}}
</span>
</div>
</div>
<div
<div
class=
"funnel-bg"
class=
"funnel-bg"
...
@@ -700,7 +725,9 @@
...
@@ -700,7 +725,9 @@
flex: 1,
flex: 1,
}"
}"
>
>
<span
class=
"funnel-value"
>
{{ data.custemData[2] }}
</span>
<span
class=
"funnel-value"
>
{{
data.activitedInfo.touchOrderCount[2]
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"funnel-item width2"
>
<div
class=
"funnel-item width2"
>
...
@@ -708,51 +735,32 @@
...
@@ -708,51 +735,32 @@
class=
"funnel-bg"
class=
"funnel-bg"
:style=
"{
:style=
"{
'background-color': data.colorList[0],
'background-color': data.colorList[0],
width: (data.custemData[0] / data.total) * 400 + 'px',
width:
}"
(data.activitedInfo.touchConversionRate[0] /
>
data.activitedInfo.touchConversionRate[2]) *
<span
class=
"funnel-value"
>
{{ data.custemData[0] }}
</span>
400 +
</div>
'px',
<div
class=
"funnel-bg"
style=
"width: 100px"
:style=
"{
'background-color': data.colorList[1],
width: (data.custemData[1] / data.total) * 400 + 'px',
}"
>
<span
class=
"funnel-value"
>
{{ data.custemData[1] }}
</span>
</div>
<div
class=
"funnel-bg"
style=
"width: 100px"
:style=
"{
'background-color': data.colorList[2],
flex: 1,
}"
}"
>
>
<span
class=
"funnel-value"
>
{{ data.custemData[2] }}
</span>
<span
class=
"funnel-value"
</div>
>
{{ data.activitedInfo.touchConversionRate[0] }}%
</span
</div>
<div
class=
"funnel-item width3"
>
<div
class=
"funnel-bg"
:style=
"{
'background-color': data.colorList[0],
width: (data.custemData[0] / data.total) * 400 + 'px',
}"
>
>
<span
class=
"funnel-value"
>
{{ data.custemData[0] }}
</span>
</div>
</div>
<div
<div
class=
"funnel-bg"
class=
"funnel-bg"
style=
"width: 100px"
style=
"width: 100px"
:style=
"{
:style=
"{
'background-color': data.colorList[1],
'background-color': data.colorList[1],
width: (data.custemData[1] / data.total) * 400 + 'px',
width:
(data.activitedInfo.touchConversionRate[1] /
data.activitedInfo.touchConversionRate[2]) *
400 +
'px',
}"
}"
>
>
<span
class=
"funnel-value"
>
{{ data.custemData[1] }}
</span>
<span
class=
"funnel-value"
>
{{ data.activitedInfo.touchConversionRate[1] }}%
</span
>
</div>
</div>
<div
<div
class=
"funnel-bg"
class=
"funnel-bg"
...
@@ -762,7 +770,9 @@
...
@@ -762,7 +770,9 @@
flex: 1,
flex: 1,
}"
}"
>
>
<span
class=
"funnel-value"
>
{{ data.custemData[2] }}
</span>
<span
class=
"funnel-value"
>
{{ data.activitedInfo.touchConversionRate[2] }}%
</span
>
</div>
</div>
</div>
</div>
<div
class=
"arrow-left"
>
<div
class=
"arrow-left"
>
...
@@ -775,20 +785,16 @@
...
@@ -775,20 +785,16 @@
</div>
</div>
<div
class=
"funnel-right"
>
<div
class=
"funnel-right"
>
<div
class=
"label-item"
>
<div
class=
"label-item"
>
<span
class=
"icon icon-custom"
></span>
<span
class=
"label-name"
>
目标客户数
</span>
</div>
<div
class=
"label-item"
>
<span
class=
"icon icon-visite"
></span>
<span
class=
"icon icon-visite"
></span>
<span
class=
"label-name"
>
目标客户
数
</span>
<span
class=
"label-name"
>
访客
数
</span>
</div>
</div>
<div
class=
"label-item"
>
<div
class=
"label-item"
>
<span
class=
"icon icon-order"
></span>
<span
class=
"icon icon-order"
></span>
<span
class=
"label-name"
>
目标客户
数
</span>
<span
class=
"label-name"
>
订单
数
</span>
</div>
</div>
<div
class=
"label-item"
>
<div
class=
"label-item"
>
<span
class=
"icon icon-conversion"
></span>
<span
class=
"icon icon-conversion"
></span>
<span
class=
"label-name"
>
目标客户数
</span>
<span
class=
"label-name"
>
转化率
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -797,7 +803,7 @@
...
@@ -797,7 +803,7 @@
<div
class=
"box-rate"
>
<div
class=
"box-rate"
>
<img
src=
"@/assets/images/activityReport/micro.png"
alt=
""
/>
<img
src=
"@/assets/images/activityReport/micro.png"
alt=
""
/>
</div>
</div>
<echart-box
id=
"client"
:colors=
"colors"
></echart-box>
<echart-box
id=
"client
Vis
"
:colors=
"colors"
></echart-box>
<div
class=
"box-body-details"
>
<div
class=
"box-body-details"
>
<div
class=
"flex statistical-text"
>
<div
class=
"flex statistical-text"
>
<div
class=
"icon"
></div>
<div
class=
"icon"
></div>
...
@@ -813,7 +819,11 @@
...
@@ -813,7 +819,11 @@
<div
class=
"box-rate"
>
<div
class=
"box-rate"
>
<img
src=
"@/assets/images/activityReport/qw.png"
alt=
""
/>
<img
src=
"@/assets/images/activityReport/qw.png"
alt=
""
/>
</div>
</div>
<echart-box
id=
"vehicle"
:colors=
"colors"
></echart-box>
<echart-box
id=
"vehicleVis"
:value=
"data.activitedInfo.workWechatRate"
:colors=
"colors"
></echart-box>
<div
class=
"box-body-details"
>
<div
class=
"box-body-details"
>
<div
class=
"flex statistical-text"
>
<div
class=
"flex statistical-text"
>
<div
class=
"icon"
></div>
<div
class=
"icon"
></div>
...
@@ -864,13 +874,18 @@ const progress = ref();
...
@@ -864,13 +874,18 @@ const progress = ref();
interface
params
{
interface
params
{
activityId
?:
number
|
string
;
activityId
?:
number
|
string
;
}
}
interface
rankingConfig
{
name
:
string
;
rate
:
string
;
}
let
query
:
params
=
{};
let
query
:
params
=
{};
// const count = ref(50);
// const count = ref(50);
// const progress = ref(50);
// const progress = ref(50);
const
colors
=
ref
<
string
[]
>
([
"#FFC154"
,
"#FF9671"
]);
const
colors
=
ref
<
string
[]
>
([
"#FFC154"
,
"#FF9671"
]);
const
data
=
reactive
({
const
data
=
reactive
({
colorList
:
[
"#F65A3F"
,
"#FF8B64"
,
"#FFBD55"
],
colorList
:
[
"#F65A3F"
,
"#FF8B64"
,
"#FFBD55"
],
widthList
:
[
400
,
350
,
304
,
258
],
seriesRankColor
:
[
"#ff6e42"
,
"#ffb657"
,
"#677aea"
,
"#76d189"
],
widthList
:
[
400
,
350
,
304
],
custemData
:
[
100
,
800
,
6000
],
custemData
:
[
100
,
800
,
6000
],
total
:
7200
,
total
:
7200
,
activitedInfo
:
{
activitedInfo
:
{
...
@@ -880,15 +895,23 @@ const data = reactive({
...
@@ -880,15 +895,23 @@ const data = reactive({
qrcodeUrl
:
""
,
qrcodeUrl
:
""
,
coverRate
:
""
,
coverRate
:
""
,
seriesRank
:
[],
seriesRank
:
[],
touchVisitorCount
:
[],
touchOrderCount
:
[],
touchConversionRate
:
[],
workWechatMomentsRate
:
""
,
workWechatShareRate
:
""
,
coverRateValue
:
[],
workWechatRate
:
[],
},
},
});
});
const
rankingList
=
reactive
(
{
const
rankingList
=
{
departmentOrderRank
:
0
,
departmentOrderRank
:
0
,
userOrderRank
:
0
,
userOrderRank
:
0
,
}
)
;
};
const
getInfo
=
async
()
=>
{
const
getInfo
=
async
()
=>
{
const
res
=
await
req
(
"scrm.api.shopmall.activity.end.report.param"
,
query
);
const
res
=
await
req
(
"scrm.api.shopmall.activity.end.report.param"
,
query
);
data
.
activitedInfo
=
res
;
data
.
activitedInfo
=
res
;
const
seriesRank
=
data
.
activitedInfo
.
seriesRank
;
progress
.
value
=
res
.
volume
;
progress
.
value
=
res
.
volume
;
let
index
=
1
;
let
index
=
1
;
for
(
let
i
in
rankingList
)
{
for
(
let
i
in
rankingList
)
{
...
@@ -898,6 +921,38 @@ const getInfo = async () => {
...
@@ -898,6 +921,38 @@ const getInfo = async () => {
index
++
;
index
++
;
}
}
}
}
if
(
seriesRank
)
{
const
seriesRankValue
=
seriesRank
.
map
((
item
:
rankingConfig
)
=>
{
return
{
name
:
item
.
name
,
value
:
item
.
rate
.
split
(
"%"
)[
0
],
};
});
data
.
activitedInfo
.
seriesRank
=
seriesRankValue
as
any
;
let
coverRate
=
data
.
activitedInfo
.
coverRate
.
split
(
"%"
)[
0
]
as
unknown
as
number
;
data
.
activitedInfo
.
coverRateValue
=
[
{
name
:
"1"
,
value
:
coverRate
,
},
{
name
:
"2"
,
value
:
1
-
coverRate
,
},
]
as
any
;
data
.
activitedInfo
.
workWechatRate
=
[
{
name
:
"1"
,
value
:
data
.
activitedInfo
.
workWechatMomentsRate
.
split
(
"%"
)[
0
],
},
{
name
:
"2"
,
value
:
data
.
activitedInfo
.
workWechatShareRate
.
split
(
"%"
)[
0
],
},
]
as
any
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
route
.
query
)
{
if
(
route
.
query
)
{
...
...
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