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 8f6e82f0
authored
Aug 03, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
d6322d4c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
138 additions
and
1 deletions
src/components/TopTab.vue
src/views/crowdfunding/CrowdfundRight.vue
src/views/crowdfunding/components/MainTab.vue
src/components/TopTab.vue
0 → 100644
View file @
8f6e82f
<
template
>
<div
class=
"tab-box"
>
</div>
</
template
>
<
script
>
export
default
{
name
:
'TopTab'
,
props
:
{
tabList
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
};
},
mounted
()
{
},
methods
:
{
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/crowdfunding/CrowdfundRight.vue
View file @
8f6e82f
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
-->
-->
<
template
>
<
template
>
<div
class=
"right"
>
<div
class=
"right"
>
<MainTab
class=
"main-tab"
:tabList=
"tabList"
></MainTab>
<StatisticsBox
class=
"statistic-box"
:list=
"crowdfundList"
></StatisticsBox>
<StatisticsBox
class=
"statistic-box"
:list=
"crowdfundList"
></StatisticsBox>
<div
class=
"card-box"
>
<div
class=
"card-box"
>
<!-- 收款方式占比 -->
<!-- 收款方式占比 -->
...
@@ -28,16 +29,19 @@ import PaymentProprtion from './components/PaymentPropertion'
...
@@ -28,16 +29,19 @@ import PaymentProprtion from './components/PaymentPropertion'
import
MerchantsRank
from
'./components/MerchantsRank.vue'
import
MerchantsRank
from
'./components/MerchantsRank.vue'
import
ActivityTrends
from
'./components/ActivityTrends.vue'
import
ActivityTrends
from
'./components/ActivityTrends.vue'
import
NearMerchantsRank
from
'./components/NearMerchantsRank.vue'
import
NearMerchantsRank
from
'./components/NearMerchantsRank.vue'
import
MainTab
from
'./components/MainTab.vue'
export
default
{
export
default
{
name
:
'CrowdfundLeft'
,
name
:
'CrowdfundLeft'
,
components
:
{
components
:
{
PaymentProprtion
,
PaymentProprtion
,
MerchantsRank
,
MerchantsRank
,
ActivityTrends
,
ActivityTrends
,
NearMerchantsRank
NearMerchantsRank
,
MainTab
},
},
data
()
{
data
()
{
return
{
return
{
tabList
:
[
'广联维度'
,
'品牌品类维度'
],
crowdfundList
:
[
crowdfundList
:
[
{
{
name
:
'总场次'
,
name
:
'总场次'
,
...
@@ -94,6 +98,9 @@ export default {
...
@@ -94,6 +98,9 @@ export default {
//
height
:
50vh
;
//
height
:
50vh
;
//
background
:
#061422
;
//
background
:
#061422
;
//
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
//
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
.main-tab
{
margin-bottom
:
1.78vh
;
}
.card-box
{
.card-box
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
...
src/views/crowdfunding/components/MainTab.vue
0 → 100644
View file @
8f6e82f
<
template
>
<div
class=
"tab-box flex"
>
<div
class=
"flex"
>
<div
v-for=
"(item, index) in tabList"
:key=
"index"
class=
"tab-item"
:class=
"tabActive == index ? 'tab-item-active' : ''"
>
{{
item
}}
</div>
</div>
<div>
<span>
统计月份:
</span>
<div
class=
"month-plugin"
>
<div
class=
"month"
@
click
.
stop=
"switchMonth"
>
{{
month
||
'全部'
}}
<img
class=
"arrow-down"
src=
"@/assets/images/arrow-down.png"
alt=
""
/>
</div>
<SelectBox
:isShow=
"isShow"
isObject
:defaultValue=
"defaultMonth"
@
clickOutside=
"clickOutside"
:dataList=
"dataList"
:boxWidth=
"'8.61vw'"
@
selectVal=
"selectVal"
></SelectBox>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'MainTab'
,
props
:
{
tabList
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
tabActive
:
0
,
isShow
:
false
,
defaultMonth
:
''
,
month
:
''
}
},
mounted
()
{},
methods
:
{
switchMonth
()
{
this
.
isShow
=
!
this
.
isShow
},
selectVal
(
val
)
{
// this.setSolarYear(val.value)
this
.
switchMonth
()
},
clickOutside
()
{
this
.
isShow
=
false
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.tab-box
{
height
:
6.22vh
;
padding
:
1.11vh
0.83vw
;
box-sizing
:
border-box
;
background
:
#091c40
;
.tab-item
{
font-weight
:
400
;
font-size
:
14px
;
color
:
#c9c9c9
;
padding
:
0.89vh
1.39vw
;
cursor
:
pointer
;
}
.tab-item-active
{
font-weight
:
500
;
font-size
:
16px
;
color
:
#ffffff
;
background-image
:
linear-gradient
(
270deg
,
#6578ff
0%
,
#079ff1
100%
);
}
.month-plugin
{
position
:
relative
;
}
.month
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
width
:
8.61vw
;
height
:
4vh
;
padding
:
0
0.56vw
;
box-sizing
:
border-box
;
background-image
:
linear-gradient
(
270deg
,
#6578ff
0%
,
#079ff1
100%
);
margin-right
:
0.56vw
;
color
:
#ffffff
;
.arrow-down
{
width
:
0.69vw
;
height
:
0.67vh
;
}
}
}
.flex
{
display
:
flex
;
}
</
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