Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
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 04b63841
authored
Sep 06, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数字营销交互
1 parent
594189a8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
282 additions
and
75 deletions
src/views/internal/components/CoreIndex.vue
src/views/internal/components/DigitalLink.vue
src/views/internal/components/DigitalMarketing.vue
src/views/internal/components/DigitalMarketingLeft.vue
src/views/internal/components/DigitalMarketingRight.vue
src/views/internal/components/PriceSwitch.vue
src/views/internal/components/PullDownSelect.vue
src/views/internal/components/constant.js
src/views/internal/components/CoreIndex.vue
View file @
04b6384
...
...
@@ -3,7 +3,7 @@
<box-title
title=
"核心指标"
></box-title>
<div
class=
"core-box-content"
>
<StatisticsBox
:list=
"coreIndexList"
></StatisticsBox>
<PullDownSelect
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<PullDownSelect
class=
"down-select"
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<inner-tab
class=
"tab-box"
:list=
"tabList"
:width=
"18.3"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<BarChart
ref=
"coreChartRef"
domId=
"coreChart"
:dataList
.
sync=
"dataList"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips"
></BarChart>
</div>
...
...
@@ -118,6 +118,10 @@ export default {
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
&-content
{
padding
:
1.56vh
0.83vw
;
.down-select,
.tab-box
{
margin-top
:
1.78vh
;
}
}
}
</
style
>
src/views/internal/components/DigitalLink.vue
View file @
04b6384
...
...
@@ -3,17 +3,23 @@
<box-title
title=
"数字化链接"
></box-title>
<div
class=
"link-box-content"
>
<StatisticsBox
:list=
"digitalLinkList"
></StatisticsBox>
<div
class=
"down-content"
>
<PullDownSelect
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<BarChart
ref=
"linkChartRef"
domId=
"linkChart"
:dataList
.
sync=
"dataList"
:colorList=
"colorList"
:tooltipFormatterObj=
"tooltips"
></BarChart>
</div>
</div>
<PullDownSelect
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
</div>
</
template
>
<
script
>
import
PullDownSelect
from
'./PullDownSelect.vue'
import
BarChart
from
'./BarChart.vue'
export
default
{
name
:
'DigitalLink'
,
components
:
{
PullDownSelect
PullDownSelect
,
BarChart
},
data
()
{
return
{
...
...
@@ -57,15 +63,34 @@ export default {
val
:
'merNum'
}
],
selectType
:
''
dataList
:
[
{
statMonth
:
'2021'
,
actiNum
:
400
},
{
statMonth
:
'2022'
,
actiNum
:
400
},
{
statMonth
:
'2023'
,
actiNum
:
400
}
],
colorList
:
[
'#22D8FF'
,
'#223FA9'
,
'#061422'
],
tooltips
:
{
label
:
'场次'
,
attrName
:
'actiNum'
}
}
},
mounted
()
{},
mounted
()
{
this
.
$refs
.
linkChartRef
.
drawBar
()
},
methods
:
{
selectVal
(
val
)
{
this
.
selectType
=
val
}
}
}
...
...
@@ -78,6 +103,13 @@ export default {
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
&-content
{
padding
:
1.56vh
0.83vw
;
.down-content{
margin-top
:
1.78vh
;
height
:
21.5vh
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
}
}
}
</
style
>
src/views/internal/components/DigitalMarketing.vue
View file @
04b6384
...
...
@@ -15,6 +15,7 @@
<
script
>
import
DigitalMarketingLeft
from
'./DigitalMarketingLeft.vue'
import
DigitalMarketingRight
from
'./DigitalMarketingRight.vue'
import
{
digitalMarketingObj
}
from
'./constant'
export
default
{
name
:
'DigitalMarketing'
,
components
:
{
...
...
@@ -25,64 +26,7 @@ export default {
return
{
tabList
:
[
'1.1精品升级'
,
'1.3售后众筹'
],
activeName
:
0
,
digitalMarketingList
:
[
{
name
:
'注册门店总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'活跃门店总数'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'订单总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'总产值'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
}
]
digitalMarketingList
:
digitalMarketingObj
.
boutique
}
},
...
...
@@ -91,6 +35,16 @@ export default {
methods
:
{
changeTab
(
data
)
{
this
.
activeName
=
data
console
.
log
(
data
);
switch
(
data
)
{
case
0
:
this
.
digitalMarketingList
=
digitalMarketingObj
.
boutique
break
case
1
:
console
.
log
(
digitalMarketingObj
);
this
.
digitalMarketingList
=
digitalMarketingObj
.
crowdfunding
break
}
}
}
}
...
...
@@ -108,6 +62,7 @@ export default {
&-bottom
{
display
:
flex
;
justify-content
:
space-between
;
margin-top
:
1.78vh
;
}
}
}
...
...
src/views/internal/components/DigitalMarketingLeft.vue
View file @
04b6384
<
template
>
<div
class=
"marketing-left"
>
<PullDownSelect
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<BarChart
ref=
"trendChartRef"
domId=
"trendChart"
:dataList
.
sync=
"dataList"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips"
></BarChart>
<inner-tab
class=
"inner-tab"
v-if=
"tabShow"
:list=
"tabList"
:width=
"6.4"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<!-- 1.3售后众筹显示占比和价格区间切换 -->
<div
class=
"switch-box"
>
<div>
收入占比:64.89%
</div>
<div></div>
</div>
<BarChart
ref=
"trendChartRef"
domId=
"trendChart"
:height=
"'16vh'"
:dataList
.
sync=
"dataList"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips"
></BarChart>
</div>
</
template
>
...
...
@@ -16,6 +22,7 @@ export default {
},
data
()
{
return
{
tabList
:
[
'订单量'
,
'收入'
],
selectList
:
[
{
name
:
'注册门店趋势'
,
...
...
@@ -49,7 +56,8 @@ export default {
tooltips
:
{
label
:
'场次'
,
attrName
:
'actiNum'
}
},
tabShow
:
false
}
},
...
...
@@ -59,7 +67,18 @@ export default {
methods
:
{
selectVal
(
val
)
{
this
.
selectType
=
val
console
.
log
(
val
)
switch
(
val
.
val
)
{
case
'num'
:
this
.
tabShow
=
false
break
case
'merNum'
:
this
.
tabShow
=
false
break
case
'trend'
:
this
.
tabShow
=
true
break
}
}
}
}
...
...
@@ -68,6 +87,18 @@ export default {
<
style
lang=
"scss"
scoped
>
.marketing-left
{
width
:
22.78vw
;
height
:
25.33vh
;
height
:
23vh
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
.inner-tab
{
/deep/.tab-item-box
{
margin
:
0
;
}
}
.switch-box
{
display
:
flex
;
justify-content
:
space-between
;
}
}
</
style
>
src/views/internal/components/DigitalMarketingRight.vue
View file @
04b6384
<
template
>
<div
class=
"marketing-right"
>
<PullDownSelect
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<BarChart
ref=
"merchantChartRef"
domId=
"merchantChart"
:dataList
.
sync=
"dataList"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips"
></BarChart>
<inner-tab
class=
"inner-tab"
:list=
"tabList"
:width=
"tabWidth"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<BarChart
ref=
"merchantChartRef"
domId=
"merchantChart"
:height=
"'16vh'"
:dataList
.
sync=
"dataList"
:colorList=
"colorList"
:barWidth=
"'50'"
:tooltipFormatterObj=
"tooltips"
></BarChart>
</div>
</
template
>
...
...
@@ -16,6 +17,8 @@ export default {
},
data
()
{
return
{
tabList
:
[
'门店数'
,
'总金额'
],
tabWidth
:
7.3
,
selectList
:
[
{
name
:
'门店订单金额分布'
,
...
...
@@ -55,7 +58,15 @@ export default {
methods
:
{
selectVal
(
val
)
{
this
.
selectType
=
val
switch
(
val
.
val
)
{
case
'num'
:
this
.
tabList
=
[
'门店数'
,
'总金额'
]
break
case
'merNum'
:
this
.
tabList
=
[
'门店数'
,
'总订单数'
]
this
.
tabWidth
=
8.1
break
}
}
}
}
...
...
@@ -64,6 +75,14 @@ export default {
<
style
lang=
"scss"
scoped
>
.marketing-right
{
width
:
22.78vw
;
height
:
25.33vh
;
height
:
23vh
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
.inner-tab
{
/deep/.tab-item-box
{
margin
:
0
;
}
}
}
</
style
>
src/views/internal/components/PriceSwitch.vue
0 → 100644
View file @
04b6384
<
template
>
<div
class=
"price-select"
>
<div
class=
"type-plugin"
>
<div
class=
"trend-type-box"
@
click
.
stop=
"switchType"
>
<div
class=
"text"
>
{{
selectType
||
selectList
[
0
].
name
}}
</div>
<div
class=
"trangle-icon"
></div>
</div>
<SelectBox
:isShow=
"isShow"
isObject
:defaultValue
.
sync=
"selectList[0]"
@
clickOutside=
"clickOutside"
:dataList
.
sync=
"selectList"
:boxWidth=
"boxWidth"
@
selectVal=
"selectVal"
:labelName=
"'name'"
:valueName=
"'name'"
></SelectBox>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'PriceSwitch'
,
data
()
{
return
{
};
},
mounted
()
{
},
methods
:
{
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
\ No newline at end of file
src/views/internal/components/PullDownSelect.vue
View file @
04b6384
...
...
@@ -35,7 +35,8 @@ export default {
},
data
()
{
return
{
isShow
:
false
isShow
:
false
,
selectType
:
''
}
},
...
...
@@ -49,8 +50,8 @@ export default {
this
.
isShow
=
false
},
selectVal
(
val
)
{
//
this.selectType = val.name
this
.
$emit
(
'selectVal'
,
val
.
name
)
this
.
selectType
=
val
.
name
this
.
$emit
(
'selectVal'
,
val
)
this
.
switchType
()
}
}
...
...
@@ -69,7 +70,7 @@ export default {
line-height
:
2.22vh
;
padding
:
0
0.83vw
;
box-sizing
:
border-box
;
background-image
:
linear-gradient
(
269deg
,
#5663ff00
10%
,
#6578ff
d4
49%
,
#079
FF
1
100%
);
background-image
:
linear-gradient
(
269deg
,
#5663ff00
10%
,
#6578ff
d4
49%
,
#079
ff
1
100%
);
.text
{
font-weight
:
500
;
font-size
:
14px
;
...
...
src/views/internal/components/constant.js
0 → 100644
View file @
04b6384
const
digitalMarketingObj
=
{
boutique
:
[
{
name
:
'注册门店总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'活跃门店总数'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'订单总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'总产值'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
}
],
crowdfunding
:
[
{
name
:
'门店总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'活跃总场次'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'订单总数'
,
valueName
:
'count'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
},
{
name
:
'总产值'
,
valueName
:
'countvalue'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'outputvalueTb'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'outputvalueHb'
,
ratioRightValue
:
'0'
}
]
}
export
{
digitalMarketingObj
}
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