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 b367f4be
authored
Sep 13, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式调整
1 parent
9936d4b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
32 deletions
src/assets/css/index.scss
src/views/internal/components/DigitalMarketingRight.vue
src/views/internal/components/ViewClue.vue
src/assets/css/index.scss
View file @
b367f4b
...
@@ -156,6 +156,7 @@ img {
...
@@ -156,6 +156,7 @@ img {
color
:
#fff
;
color
:
#fff
;
line-height
:
2
.22vh
;
line-height
:
2
.22vh
;
padding-left
:
0
.83vw
;
padding-left
:
0
.83vw
;
font-size
:
14px
;
z-index
:
1
;
z-index
:
1
;
&
:
:
before
{
&
:
:
before
{
content
:
''
;
content
:
''
;
...
...
src/views/internal/components/DigitalMarketingRight.vue
View file @
b367f4b
<
template
>
<
template
>
<div
class=
"marketing-right"
>
<div
class=
"marketing-right"
>
<PullDownSelect
ref=
"rightDownSelect"
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<PullDownSelect
ref=
"rightDownSelect"
v-show=
"!switchShow"
:selectList=
"selectList"
@
selectVal=
"selectVal"
></PullDownSelect>
<div
class=
"patch-title"
v-show=
"switchShow"
>
活动订单金额分布
</div>
<inner-tab
ref=
"innerTabRef"
class=
"inner-tab"
:list=
"tabList"
:width=
"tabWidth"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<inner-tab
ref=
"innerTabRef"
class=
"inner-tab"
:list=
"tabList"
:width=
"tabWidth"
:itemPadding=
"0.5"
@
changeTab=
"changeTab"
></inner-tab>
<!-- 1.3售后众筹显示占比和价格区间切换 -->
<!-- 1.3售后众筹显示占比和价格区间切换 -->
<div
class=
"switch-box"
v-if=
"switchShow"
>
<div
class=
"switch-box"
v-if=
"switchShow"
>
...
@@ -100,24 +101,24 @@ export default {
...
@@ -100,24 +101,24 @@ export default {
this
.
$refs
.
merchantChartRef
.
drawBar
(
this
.
marketingDistributionList
)
this
.
$refs
.
merchantChartRef
.
drawBar
(
this
.
marketingDistributionList
)
})
})
break
break
case
'crowdFundingMerDistr'
:
//
case 'crowdFundingMerDistr':
this
.
tabList
=
[
'门店数'
,
'订单数'
,
'总金额'
]
//
this.tabList = ['门店数', '订单数', '总金额']
this
.
tabWidth
=
10.8
//
this.tabWidth = 10.8
this
.
downSelectNum
=
0
//
this.downSelectNum = 0
this
.
getMarketingCrowdFundingMerDistr
(
'num'
)
//
this.getMarketingCrowdFundingMerDistr('num')
break
//
break
case
'crowdFundingActivityDistr'
:
//
case 'crowdFundingActivityDistr':
this
.
tabList
=
[
'活动数'
,
'订单数'
,
'订单金额'
]
//
this.tabList = ['活动数', '订单数', '订单金额']
this
.
tabWidth
=
11.6
//
this.tabWidth = 11.6
this
.
downSelectNum
=
1
//
this.downSelectNum = 1
this
.
getMarketingCrowdFundingActivityDistr
(
'num'
)
//
this.getMarketingCrowdFundingActivityDistr('num')
break
//
break
case
'crowdFundingActivityMoneyDistr'
:
//
case 'crowdFundingActivityMoneyDistr':
this
.
tabList
=
[
'活动数'
,
'订单数'
,
'总订单金额'
]
//
this.tabList = ['活动数', '订单数', '总订单金额']
this
.
tabWidth
=
12.4
//
this.tabWidth = 12.4
this
.
downSelectNum
=
2
//
this.downSelectNum = 2
this
.
getMarketingCrowdFundingActivityMoneyDistr
(
'num'
)
//
this.getMarketingCrowdFundingActivityMoneyDistr('num')
break
//
break
}
}
},
},
changeTab
(
val
)
{
changeTab
(
val
)
{
...
@@ -127,34 +128,31 @@ export default {
...
@@ -127,34 +128,31 @@ export default {
// 1.1精品升级
// 1.1精品升级
if
(
this
.
digitalMarketingTab
===
0
)
{
if
(
this
.
digitalMarketingTab
===
0
)
{
this
.
valueName
=
this
.
downSelectNum
===
0
?
'outputMerchantNum'
:
'orderMerchantNum'
this
.
valueName
=
this
.
downSelectNum
===
0
?
'outputMerchantNum'
:
'orderMerchantNum'
this
.
$refs
.
merchantChartRef
.
drawBar
(
this
.
marketingDistributionList
)
}
else
{
}
else
{
// 1.3售后众筹
// 1.3售后众筹
const
_valList
=
[
'getMarketingCrowdFundingMerDistr'
,
'crowdFundingActivityDistr'
,
'crowdFundingActivityMoneyDistr'
]
this
.
getMarketingCrowdFundingMerDistr
(
'num'
)
this
[
_valList
[
this
.
downSelectNum
]](
'num'
)
}
}
break
break
case
1
:
case
1
:
// 1.1精品升级
// 1.1精品升级
if
(
this
.
digitalMarketingTab
===
0
)
{
if
(
this
.
digitalMarketingTab
===
0
)
{
console
.
log
(
this
.
downSelectNum
);
this
.
valueName
=
this
.
downSelectNum
===
0
?
'outputMoney'
:
'orderMoney'
this
.
valueName
=
this
.
downSelectNum
===
0
?
'outputMoney'
:
'orderMoney'
this
.
$refs
.
merchantChartRef
.
drawBar
(
this
.
marketingDistributionList
)
}
else
{
}
else
{
// 1.3售后众筹
// 1.3售后众筹
const
_valList
=
[
'getMarketingCrowdFundingMerDistr'
,
'crowdFundingActivityDistr'
,
'crowdFundingActivityMoneyDistr'
]
this
.
getMarketingCrowdFundingMerDistr
(
'orderNum'
)
this
[
_valList
[
this
.
downSelectNum
]](
'orderNum'
)
}
}
break
break
case
2
:
case
2
:
// 只有1.3售后众筹
// 只有1.3售后众筹
// eslint-disable-next-line no-case-declarations
// eslint-disable-next-line no-case-declarations
const
_valList
=
[
'getMarketingCrowdFundingMerDistr'
,
'crowdFundingActivityDistr'
,
'crowdFundingActivityMoneyDistr'
]
this
.
getMarketingCrowdFundingMerDistr
(
'price'
)
this
[
_valList
[
this
.
downSelectNum
]](
'price'
)
break
break
}
}
console
.
log
(
this
.
valueName
);
// this.$nextTick(() => {
this
.
$nextTick
(()
=>
{
// this.$refs.merchantChartRef.drawBar(this.marketingDistributionList)
this
.
$refs
.
merchantChartRef
.
drawBar
(
this
.
marketingDistributionList
)
// })
})
},
},
async
getMarketingDistribution
()
{
async
getMarketingDistribution
()
{
const
_data
=
await
this
.
api
.
internal
.
getMarketingDistribution
()
const
_data
=
await
this
.
api
.
internal
.
getMarketingDistribution
()
...
...
src/views/internal/components/ViewClue.vue
View file @
b367f4b
...
@@ -132,7 +132,7 @@ export default {
...
@@ -132,7 +132,7 @@ export default {
}
}
.trend-box
{
.trend-box
{
display
:
inline-block
;
display
:
inline-block
;
height
:
23
.4
vh
;
height
:
23vh
;
width
:
50%
;
width
:
50%
;
&:nth-child(1),
&:nth-child(1),
&:nth-child(2)
{
&:nth-child(2)
{
...
@@ -148,7 +148,7 @@ export default {
...
@@ -148,7 +148,7 @@ export default {
}
}
.text
{
.text
{
font-weight
:
400
;
font-weight
:
400
;
font-size
:
1
2
px
;
font-size
:
1
4
px
;
}
}
}
}
}
}
...
...
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