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 f69e7413
authored
Aug 02, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
售后众筹基本框架搭建
1 parent
5d34e4ee
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
286 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 @
f69e741
<
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 @
f69e741
...
...
@@ -7,29 +7,105 @@
-->
<
template
>
<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>
</
template
>
<
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
{
name
:
'CrowdfundLeft'
,
components
:
{
PaymentProprtion
,
MerchantsRank
,
ActivityTrends
,
NearMerchantsRank
},
data
()
{
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
>
<
style
lang=
"scss"
scoped
>
.right
{
width
:
75vw
;
height
:
50vh
;
background
:
#061422
;
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
//
height
:
50vh
;
//
background
:
#061422
;
//
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
>
src/views/crowdfunding/components/ActivityTrends.vue
0 → 100644
View file @
f69e741
<!-- 近一年活动场次趋势图 -->
<
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 @
f69e741
<!-- 门店排名 -->
<
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>
</
template
>
<
script
>
import
InnerTab
from
'../../../components/InnerTab.vue'
export
default
{
components
:
{
InnerTab
},
name
:
'MerchantsRank'
,
data
()
{
return
{
tabList
:
[
'产值排名'
,
'转化率排名'
,
' 退单率排名'
]
}
},
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
;
}
}
</
style
>
src/views/crowdfunding/components/NearMerchantsRank.vue
0 → 100644
View file @
f69e741
<!-- 近一年门店活动排名 -->
<
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>
</
template
>
<
script
>
export
default
{
name
:
'NearMerchantsRank'
,
data
()
{
return
{
tabList
:
[
'活动场次排名'
,
'活动平均客单价排名'
,
'活动退单率排名'
]
}
},
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
;
}
}
</
style
>
src/views/crowdfunding/components/PaymentPropertion.vue
0 → 100644
View file @
f69e741
<!-- 收款方式占比 -->
<
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>
</div>
</
template
>
<
script
>
export
default
{
name
:
'PaymentProprtion'
,
data
()
{
return
{
tabList
:
[
'总场次'
,
'进行中'
,
'已完成'
]
}
},
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
;
}
}
</
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