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 04d2fe2a
authored
Aug 03, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
众筹二级页面
1 parent
27c23e89
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
204 additions
and
8 deletions
src/router/routes.js
src/views/crowdfunding/CrowdfundRight.vue
src/views/crowdfunding/components/BrandDimension.vue
src/views/crowdfunding/components/MerchantsRank.vue
src/views/crowdfundingDetail/ActivityDetail.vue
src/views/crowdfundingDetail/DateTab.vue
src/views/crowdfundingDetail/index.vue
src/router/routes.js
View file @
04d2fe2
...
@@ -21,6 +21,13 @@ const pages = [
...
@@ -21,6 +21,13 @@ const pages = [
isTab
:
true
,
isTab
:
true
,
backgroundColor
:
'#F7F7F7'
backgroundColor
:
'#F7F7F7'
}
}
},
{
name
:
'crowdfundingDetail'
,
meta
:
{
isTab
:
true
,
backgroundColor
:
'#F7F7F7'
}
}
}
]
]
const
keepAlives
=
[]
const
keepAlives
=
[]
...
...
src/views/crowdfunding/CrowdfundRight.vue
View file @
04d2fe2
...
@@ -37,7 +37,7 @@ export default {
...
@@ -37,7 +37,7 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
tabChange
(
val
)
{
tabChange
(
val
)
{
this
.
currentTab
=
val
this
.
currentTab
=
val
}
}
}
}
}
}
...
@@ -52,7 +52,5 @@ this.currentTab = val
...
@@ -52,7 +52,5 @@ this.currentTab = val
.main-tab
{
.main-tab
{
margin-bottom
:
1.78vh
;
margin-bottom
:
1.78vh
;
}
}
}
}
</
style
>
</
style
>
src/views/crowdfunding/components/BrandDimension.vue
View file @
04d2fe2
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<div
class=
"rank-item"
>
<div
class=
"rank-item"
>
<box-title
title=
"产值排名"
></box-title>
<box-title
title=
"产值排名"
></box-title>
<div
v-if=
"productionRankList.length"
class=
"content"
>
<div
v-if=
"productionRankList.length"
class=
"content"
>
<Ranking
:id=
"'productionRank'"
:rankingsList=
"productionRankList"
:rankingDataObj=
"productionRankListObj"
></Ranking>
<Ranking
class=
"brand-rank"
:id=
"'productionRank'"
:rankingsList=
"productionRankList"
:rankingDataObj=
"productionRankListObj"
></Ranking>
</div>
</div>
<div
v-else
class=
"empty"
><Empty></Empty></div>
<div
v-else
class=
"empty"
><Empty></Empty></div>
</div>
</div>
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<div
class=
"rank-item"
>
<div
class=
"rank-item"
>
<box-title
title=
"平均转化率排名"
></box-title>
<box-title
title=
"平均转化率排名"
></box-title>
<div
v-if=
"percentRankList.length"
class=
"content"
>
<div
v-if=
"percentRankList.length"
class=
"content"
>
<Ranking
:id=
"'percentRank'"
:rankingsList=
"percentRankList"
:rankingDataObj=
"percentRankListObj"
></Ranking>
<Ranking
class=
"brand-rank"
:id=
"'percentRank'"
:rankingsList=
"percentRankList"
:rankingDataObj=
"percentRankListObj"
></Ranking>
</div>
</div>
<div
v-else
class=
"empty"
><Empty></Empty></div>
<div
v-else
class=
"empty"
><Empty></Empty></div>
</div>
</div>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<div
class=
"rank-item"
>
<div
class=
"rank-item"
>
<box-title
title=
"平均退单率排名"
></box-title>
<box-title
title=
"平均退单率排名"
></box-title>
<div
v-if=
"rejectRankList.length"
class=
"content"
>
<div
v-if=
"rejectRankList.length"
class=
"content"
>
<Ranking
:id=
"'rejectRank'"
:rankingsList=
"rejectRankList"
:rankingDataObj=
"rejectRankListObj"
></Ranking>
<Ranking
class=
"brand-rank"
:id=
"'rejectRank'"
:rankingsList=
"rejectRankList"
:rankingDataObj=
"rejectRankListObj"
></Ranking>
</div>
</div>
<div
v-else
class=
"empty"
><Empty></Empty></div>
<div
v-else
class=
"empty"
><Empty></Empty></div>
</div>
</div>
...
...
src/views/crowdfunding/components/MerchantsRank.vue
View file @
04d2fe2
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<box-title
title=
"门店排名"
></box-title>
<box-title
title=
"门店排名"
></box-title>
<inner-tab
class=
"tab-box"
:list=
"tabList"
:width=
"21.16"
:itemPadding=
"1.53"
></inner-tab>
<inner-tab
class=
"tab-box"
:list=
"tabList"
:width=
"21.16"
:itemPadding=
"1.53"
></inner-tab>
<div
class=
"rank-content"
v-if=
"merchantRankList.length"
>
<div
class=
"rank-content"
v-if=
"merchantRankList.length"
>
<Ranking
class=
"rank-box"
:rankingsList=
"merchantRankList"
:rankingDataObj=
"rankingDataObj"
></Ranking>
<Ranking
class=
"rank-box"
:rankingsList=
"merchantRankList"
:rankingDataObj=
"rankingDataObj"
@
goDetailPage=
"goDetailPage"
></Ranking>
</div>
</div>
<div
v-else
class=
"empty"
>
<div
v-else
class=
"empty"
>
<Empty></Empty>
<Empty></Empty>
...
@@ -60,7 +60,18 @@ export default {
...
@@ -60,7 +60,18 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{}
methods
:
{
// 跳转售后众筹二级页面
goDetailPage
(
item
)
{
const
routeData
=
this
.
$router
.
resolve
({
name
:
'crowdfundingDetail'
,
query
:
{
item
}
})
window
.
open
(
routeData
.
href
,
'_blank'
)
}
}
}
}
</
script
>
</
script
>
...
...
src/views/crowdfundingDetail/ActivityDetail.vue
0 → 100644
View file @
04d2fe2
<
template
>
<div
class=
"activity-box"
>
<box-title
title=
"活动数据明细"
></box-title>
<div
class=
"content-box"
>
<DateTab></DateTab>
</div>
</div>
</
template
>
<
script
>
import
DateTab
from
'./DateTab.vue'
export
default
{
name
:
'ActivityDetail'
,
components
:
{
DateTab
},
data
()
{
return
{}
},
mounted
()
{},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.activity-box
{
height
:
74.89vh
;
box-shadow
:
inset
0
0
20px
0
#3d57ff69
;
.content-box
{
padding
:
1.78vh
1.39vw
;
}
}
</
style
>
src/views/crowdfundingDetail/DateTab.vue
0 → 100644
View file @
04d2fe2
<
template
>
<div
class=
"date-tab-box"
>
<div
v-for=
"(item, index) in dateList"
:key=
"index"
class=
"tab-item"
:class=
"tabActive == index ? 'tab-item-active' : ''"
@
click=
"changeDate(index)"
>
{{
item
}}
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'DateTab'
,
data
()
{
return
{
dateList
:
[
'近3个月'
,
'近6个月'
,
'近1年'
,
'自定义'
],
tabActive
:
1
}
},
mounted
()
{},
methods
:
{
changeDate
(
val
)
{
this
.
tabActive
=
val
this
.
$emit
(
'changeDate'
,
val
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.date-tab-box
{
display
:
flex
;
width
:
17.62vw
;
height
:
3.56vh
;
border
:
2px
solid
;
border-image
:
linear-gradient
(
90deg
,
#074989
,
#30dcff
,
#074989
)
1
;
padding
:
0.28vh
;
box-sizing
:
border-box
;
.tab-item
{
font-weight
:
400
;
font-size
:
12px
;
color
:
#c9c9c9
;
height
:
2.67vh
;
line-height
:
2.67vh
;
padding
:
0
0.83vw
;
}
.tab-item-active
{
font-weight
:
600
;
color
:
#ffffff
;
background
:
#244888
;
}
}
</
style
>
src/views/crowdfundingDetail/index.vue
0 → 100644
View file @
04d2fe2
<
template
>
<div
class=
"layout"
>
<view-container>
<template
#
title
>
<DetailTitle
:dataList=
"merchantList"
:searchType=
"'crowdfunding'"
:dataListObj=
"merchantListObj"
:tabObject=
"tabObject"
></DetailTitle>
</
template
>
<
template
#
content
>
<div
class=
"content"
>
<StatisticsBox
:list=
"crowdfundingDetailList"
></StatisticsBox>
<!-- 活动数据明细 -->
<ActivityDetail
class=
"activity-detail"
></ActivityDetail>
</div>
</
template
>
</view-container>
</div>
</template>
<
script
>
import
ActivityDetail
from
'./ActivityDetail.vue'
export
default
{
name
:
'CrowdfundingDetail'
,
components
:
{
ActivityDetail
},
data
()
{
return
{
merchantList
:
[],
merchantListObj
:
{
labelName
:
'merchantName'
,
valueName
:
'merchantid'
},
tabObject
:
{},
crowdfundingDetailList
:
[
{
name
:
'总产值'
,
valueName
:
'days'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
,
bottomType
:
'ratio'
,
ratioLeftLabel
:
'周同比'
,
ratioLeftValueName
:
'perCusTransHB'
,
ratioLeftValue
:
'0'
,
ratioRightLabel
:
'日环比'
,
ratioRightValueName
:
'perCusTransTB'
,
ratioRightValue
:
'0'
},
{
name
:
'总场次'
,
valueName
:
'days'
,
value
:
'0'
,
unit
:
'场'
,
unitType
:
'right'
},
{
name
:
'平均客单价'
,
valueName
:
'days'
,
value
:
'0'
,
unit
:
'¥'
,
unitType
:
'left'
},
{
name
:
'平均转化率'
,
valueName
:
'days'
,
value
:
'0'
,
unit
:
'%'
,
unitType
:
'right'
},
{
name
:
'平均退单率'
,
valueName
:
'days'
,
value
:
'0'
,
unit
:
'%'
,
unitType
:
'right'
}
]
}
},
mounted
()
{},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.content
{
padding
:
1.78vh
1.67vw
;
.activity-detail
{
margin-top
:
1.78vh
;
}
}
</
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