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 2c75bba5
authored
Aug 02, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.3.0' of
http://192.168.3.233:8090/h5/glsk-data-view-pd
into v1.3.0
2 parents
6e280c12
d6322d4c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
463 additions
and
8 deletions
src/components/InnerTab.vue
src/views/crowdfunding/CrowdfundRight.vue
src/views/crowdfunding/components/ActivityTrends.vue
src/views/crowdfunding/components/MerchantsRank.vue
src/views/crowdfunding/components/NearMerchantsRank.vue
src/views/crowdfunding/components/PaymentPropertion.vue
src/components/InnerTab.vue
0 → 100644
View file @
2c75bba
<
template
>
<div
class=
"tab-box"
>
<div
class=
"tab-item-box"
:style=
"
{ width: width + 'vw' }">
<div
:class=
"['tab-item', tabActive == index ? 'tab-item-active' : '']"
:style=
"
{ 'padding-left': itemPadding + 'vw', 'padding-right': itemPadding + 'vw' }" v-for="(item, index) in list" :key="index" @click="changeTab(index)">
{{
item
}}
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'InnerTab'
,
props
:
{
list
:
{
type
:
Array
,
default
:
()
=>
[]
},
width
:
Number
,
itemPadding
:
Number
},
data
()
{
return
{
tabActive
:
0
}
},
mounted
()
{},
methods
:
{
// 切换tab
changeTab
(
index
)
{
this
.
tabActive
=
index
this
.
$emit
(
'changeTab'
,
index
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.tab-box
{
.tab-item-box
{
display
:
flex
;
margin
:
0
auto
;
height
:
2.67vh
;
background
:
#072545
;
line-height
:
2.67vh
;
cursor
:
pointer
;
.tab-item
{
text-align
:
center
;
box-sizing
:
border-box
;
font-weight
:
400
;
font-size
:
12px
;
line-height
:
2.67vh
;
color
:
#c9c9c9
;
&-active
{
color
:
#5894ff
;
background-image
:
-webkit-linear-gradient
(
left
,
#24d8ff
,
#7787ff
);
-webkit-background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
line-height
:
2.22vh
;
font-weight
:
600
;
border
:
2px
solid
;
border-image
:
linear-gradient
(
90deg
,
#074989
,
#30dcff
,
#074989
)
1
;
box-sizing
:
border-box
;
}
}
}
}
</
style
>
src/views/crowdfunding/CrowdfundRight.vue
View file @
2c75bba
...
@@ -7,29 +7,105 @@
...
@@ -7,29 +7,105 @@
-->
-->
<
template
>
<
template
>
<div
class=
"right"
>
<div
class=
"right"
>
右侧内容
<StatisticsBox
class=
"statistic-box"
:list=
"crowdfundList"
></StatisticsBox>
<div
class=
"card-box"
>
<!-- 收款方式占比 -->
<PaymentProprtion></PaymentProprtion>
<!-- 门店排名 -->
<MerchantsRank></MerchantsRank>
</div>
<div
class=
"card-box"
>
<!-- 近一年活动场次趋势图 -->
<ActivityTrends></ActivityTrends>
<!-- 近一年门店活动排名 -->
<NearMerchantsRank></NearMerchantsRank>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
PaymentProprtion
from
'./components/PaymentPropertion'
import
MerchantsRank
from
'./components/MerchantsRank.vue'
import
ActivityTrends
from
'./components/ActivityTrends.vue'
import
NearMerchantsRank
from
'./components/NearMerchantsRank.vue'
export
default
{
export
default
{
name
:
'CrowdfundLeft'
,
name
:
'CrowdfundLeft'
,
components
:
{
PaymentProprtion
,
MerchantsRank
,
ActivityTrends
,
NearMerchantsRank
},
data
()
{
data
()
{
return
{
return
{
crowdfundList
:
[
{
name
:
'总场次'
,
value
:
'1700'
,
unit
:
'场'
,
unitType
:
'right'
},
{
name
:
'进行中场次'
,
value
:
'1700'
,
unit
:
'场'
,
unitType
:
'right'
},
{
name
:
'已完成场次'
,
value
:
'1700'
,
unit
:
'场'
,
unitType
:
'right'
},
{
name
:
'产值'
,
value
:
'1700'
,
unit
:
'¥'
,
unitType
:
'left'
},
{
name
:
'订单数'
,
value
:
'550'
,
unit
:
'单'
,
unitType
:
'right'
},
{
name
:
'转化率'
,
value
:
'80'
,
unit
:
'%'
,
unitType
:
'right'
},
{
name
:
'退单率'
,
value
:
'20'
,
unit
:
'%'
,
unitType
:
'right'
}
]
}
}
},
},
mounted
()
{
mounted
()
{}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.right
{
.right
{
width
:
75vw
;
width
:
75vw
;
height
:
50vh
;
//
height
:
50vh
;
background
:
#061422
;
//
background
:
#061422
;
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
//
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
.card-box
{
display
:
flex
;
justify-content
:
space-between
;
margin-top
:
1.78vh
;
}
}
.statistic-box
{
&.statistics
{
height
:
9.78vh
;
/deep/
.statistics-top
{
padding-top
:
1.2vh
;
}
}
}
}
</
style
>
</
style
>
src/views/crowdfunding/components/ActivityTrends.vue
0 → 100644
View file @
2c75bba
<!-- 近一年活动场次趋势图 -->
<
template
>
<div
class=
"activity-box"
>
<box-title
title=
"近一年活动场次趋势图"
></box-title>
</div>
</
template
>
<
script
>
export
default
{
name
:
'ActivityTrends'
,
data
()
{
return
{}
},
mounted
()
{},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.activity-box
{
width
:
36.94vw
;
height
:
34vh
;
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
}
</
style
>
src/views/crowdfunding/components/MerchantsRank.vue
0 → 100644
View file @
2c75bba
<!-- 门店排名 -->
<
template
>
<div
class=
"merchants-box"
>
<box-title
title=
"门店排名"
></box-title>
<inner-tab
class=
"tab-box"
:list=
"tabList"
:width=
"21.16"
:itemPadding=
"1.53"
></inner-tab>
<div
class=
"rank-content"
v-if=
"merchantRankList.length"
>
<Ranking
class=
"rank-box"
:rankingsList=
"merchantRankList"
:rankingDataObj=
"rankingDataObj"
></Ranking>
</div>
<div
v-else
class=
"empty"
>
<Empty></Empty>
</div>
</div>
</
template
>
<
script
>
import
InnerTab
from
'../../../components/InnerTab.vue'
export
default
{
components
:
{
InnerTab
},
name
:
'MerchantsRank'
,
data
()
{
return
{
tabList
:
[
'产值排名'
,
'转化率排名'
,
' 退单率排名'
],
merchantRankList
:
[
{
name
:
'公转路一号点'
,
value
:
'258456'
},
{
name
:
'公转路一号点'
,
value
:
'258456'
},
{
name
:
'公转路一号点'
,
value
:
'258456'
},
{
name
:
'公转路一公转路一号公转路一号公转路一号号点'
,
value
:
'258456'
},
{
name
:
'公转路一号点'
,
value
:
'258456'
}
],
rankingDataObj
:
[
{
name
:
'name'
,
width
:
'17vw'
,
action
:
true
},
{
name
:
'value'
,
width
:
'8vw'
,
type
:
'number'
}
]
}
},
mounted
()
{},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.merchants-box
{
width
:
36.94vw
;
height
:
34vh
;
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
.tab-box
{
margin
:
2.22vh
auto
;
}
.rank-content
{
padding
:
0
1.39vw
;
}
.rank-box
{
/deep/.ranking-box-item
{
padding-bottom
:
1.11vh
;
}
}
.empty
{
height
:
21.33vh
;
display
:
flex
;
align-items
:
center
;
}
}
</
style
>
src/views/crowdfunding/components/NearMerchantsRank.vue
0 → 100644
View file @
2c75bba
<!-- 近一年门店活动排名 -->
<
template
>
<div
class=
"merchants-rank-box"
>
<box-title
title=
"近一年门店活动排名"
></box-title>
<inner-tab
class=
"tab-box"
:list=
"tabList"
:width=
"25"
:itemPadding=
"1.06"
></inner-tab>
<div
class=
"rank-content"
v-if=
"merchantRankList.length"
>
<Ranking
class=
"rank-box"
:rankingsList=
"merchantRankList"
:rankingDataObj=
"rankingDataObj"
></Ranking>
</div>
<div
v-else
class=
"empty"
>
<Empty></Empty>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'NearMerchantsRank'
,
data
()
{
return
{
tabList
:
[
'活动场次排名'
,
'活动平均客单价排名'
,
'活动退单率排名'
],
merchantRankList
:
[
{
name
:
'公转路一号点'
,
value
:
'258456'
},
{
name
:
'公转路一号点'
,
value
:
'258456'
},
{
name
:
'公转路一号点'
,
value
:
'258456'
},
{
name
:
'公转路一公转路一号公转路一号公转路一号号点'
,
value
:
'258456'
},
{
name
:
'公转路一号点'
,
value
:
'258456'
}
],
rankingDataObj
:
[
{
name
:
'name'
,
width
:
'17vw'
,
action
:
true
},
{
name
:
'value'
,
width
:
'8vw'
,
type
:
'number'
}
]
}
},
mounted
()
{},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.merchants-rank-box
{
width
:
36.94vw
;
height
:
34vh
;
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
.tab-box
{
margin
:
2.22vh
auto
;
}
.rank-content
{
padding
:
0
1.39vw
;
}
.rank-box
{
/deep/.ranking-box-item
{
padding-bottom
:
1.11vh
;
}
}
.empty
{
height
:
21.33vh
;
display
:
flex
;
align-items
:
center
;
}
}
</
style
>
src/views/crowdfunding/components/PaymentPropertion.vue
0 → 100644
View file @
2c75bba
<!-- 收款方式占比 -->
<
template
>
<div
class=
"payment-box"
>
<box-title
title=
"收款方式占比"
></box-title>
<inner-tab
class=
"tab-box"
:list=
"tabList"
:width=
"18.33"
:itemPadding=
"1.74"
></inner-tab>
<RightViewContent
v-if=
"paymentData.length"
class=
"content-box"
:chart=
"paymentChart"
:listData=
"paymentData"
:legentList=
"paymentLegend"
:legendColors=
"paymentChart.colors"
></RightViewContent>
<div
v-else
class=
"empty"
>
<Empty></Empty>
</div>
</div>
</
template
>
<
script
>
import
RightViewContent
from
'../../solar/RightViewContent.vue'
export
default
{
name
:
'PaymentProprtion'
,
components
:
{
RightViewContent
},
data
()
{
return
{
tabList
:
[
'总场次'
,
'进行中'
,
'已完成'
],
paymentData
:
[
{
name
:
'广联收定金和尾款'
,
rate
:
'36'
,
num
:
360
},
{
name
:
'广联收定金门店收尾款'
,
rate
:
'28'
,
num
:
280
},
{
name
:
'广联收定金门店收全款退定金'
,
rate
:
'24'
,
num
:
240
},
{
name
:
'广联收定金门店收全款退定金'
,
rate
:
'12'
,
num
:
120
}
],
paymentChart
:
{
id
:
'paymentPropertion'
,
keys
:
[
'name'
,
'num'
],
height
:
'15.56vh'
,
colors
:
[
'#747DFF'
,
'#16E193'
,
'#FFC200'
,
'#EB6001'
]
},
paymentLegend
:
[
{
name
:
'name'
,
width
:
'8vw'
},
{
name
:
'rate'
,
type
:
'decimal'
,
width
:
'3vw'
},
{
name
:
'num'
,
type
:
'number'
,
width
:
'4vw'
,
unitIcon
:
'场'
}
]
}
},
mounted
()
{},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.payment-box
{
width
:
36.94vw
;
height
:
34vh
;
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
.tab-box
{
margin
:
2.22vh
auto
;
}
.content-box
{
padding
:
0
1.39vw
;
height
:
21.67vh
;
/deep/
.legend-box
.legend-item{
margin-bottom
:
0.89vh
;
}
}
.empty
{
height
:
21.67vh
;
display
:
flex
;
align-items
:
center
;
}
}
</
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