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 a5df240d
authored
Aug 11, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接口调整
1 parent
2bdac421
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletions
src/views/crowdfunding/components/ActivityTrends.vue
src/views/crowdfunding/components/NearMerchantsRank.vue
src/views/crowdfundingDetail/ActivityTable.vue
src/views/crowdfunding/components/ActivityTrends.vue
View file @
a5df240
...
...
@@ -10,6 +10,7 @@
<div
class=
"activity-box"
>
<box-title
title=
"近一年活动场次趋势图"
></box-title>
<BarChart
v-if=
"!isEmpty"
ref=
"activityTrendChartRef"
class=
"bar-chart"
isMultiple
...
...
@@ -20,6 +21,9 @@
:colorList=
"colorList"
:tooltipFormatterObj=
"tooltips.amountTooltip"
></BarChart>
<div
v-else
class=
"empty"
>
<Empty></Empty>
</div>
</div>
</
template
>
...
...
@@ -32,6 +36,7 @@ export default {
},
data
()
{
return
{
isEmpty
:
false
,
dataList
:
[],
tooltips
:
{
amountTooltip
:
{
...
...
@@ -58,6 +63,10 @@ export default {
async
getActivityTrend
()
{
const
_result
=
await
this
.
api
.
crowdFunding
.
getActivityTrend
()
const
_data
=
_result
.
data
.
dataList
if
(
!
_data
.
length
)
{
this
.
isEmpty
=
true
return
}
this
.
dataList
=
_data
this
.
$nextTick
(()
=>
{
this
.
$refs
.
activityTrendChartRef
.
drawBar
()
...
...
src/views/crowdfunding/components/NearMerchantsRank.vue
View file @
a5df240
...
...
@@ -4,7 +4,7 @@
<box-title
title=
"近一年门店活动排名"
></box-title>
<inner-tab
class=
"tab-box"
:list=
"tabList"
:width=
"25"
:itemPadding=
"1.05"
@
changeTab=
"changeTab"
></inner-tab>
<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
v-else
class=
"empty"
>
<Empty></Empty>
...
...
@@ -47,6 +47,17 @@ export default {
this
.
dataList
=
_result
.
data
.
dataList
[
0
]
this
.
merchantRankList
=
this
.
dataList
.
activityRank
},
// 跳转售后众筹二级页面
goDetailPage
(
item
)
{
const
routeData
=
this
.
$router
.
resolve
({
name
:
'crowdfundingDetail'
,
query
:
{
merchantName
:
item
.
merchantName
,
merchantid
:
item
.
merchantId
}
})
window
.
open
(
routeData
.
href
,
'_blank'
)
},
// tab切换
changeTab
(
val
)
{
switch
(
val
)
{
...
...
src/views/crowdfundingDetail/ActivityTable.vue
View file @
a5df240
...
...
@@ -190,6 +190,9 @@ export default {
.el-select-dropdown__item
:hover
{
background-color
:
#072545
;
}
.el-table__empty-block
{
background-color
:
#051526
;
}
.usual-row
{
background
:
#051526
!important
;
}
...
...
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