Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
rd-data-screen
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 707e02fd
authored
May 10, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新样式 逻辑
1 parent
afc1b86c
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
390 additions
and
39 deletions
src/assets/css/index.scss
src/components/FeedBack.vue
src/components/ViewTitle.vue
src/components/options.js
src/main.js
src/utils/drag.js
src/views/sassPlus/componts/selectContainer.vue
src/views/sassPlus/componts/selectCpn.vue
src/views/sassPlus/conversionPlus/conversionLeft.vue
src/views/sassPlus/index.vue
src/assets/css/index.scss
View file @
707e02f
...
...
@@ -14,6 +14,9 @@ body .app {
height
:
100%
;
// overflow: hidden;
--themeColor
:
#3975c6
;
overflow-x
:
hidden
;
}
img
{
...
...
src/components/FeedBack.vue
0 → 100644
View file @
707e02f
<
template
>
<div
ref=
'dragDiv'
class=
'float-drag-button'
>
<span>
+
</span>
<!--
<div
class=
'circle-object'
:class=
"titleClick?'anim-object':''"
@
click=
"goPage('/springbudAtion')"
>
春蕾行动
</div>
-->
<!--
<div
class=
'title-tab-wrap'
>
-->
<!--
<div
class=
'circle-object'
:class=
"titleClick?'anim-object':''"
@
click=
"goPage('/springbudAtion')"
>
春蕾行动
</div>
-->
<!--
<div
class=
'circle-object'
:class=
"titleClick?'anim-object':''"
@
click=
"goPage('/sassPlus')"
>
SASS+
</div>
-->
<!--
<div
class=
'circle-object'
:class=
"titleClick?'anim-object':''"
@
click=
"goPage('/equity')"
>
会员权益
</div>
-->
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'FeedBack'
,
data
()
{
return
{
titleClick
:
false
}
},
mounted
()
{
this
.
$nextTick
(()
=>
{
// 获取DOM元素
let
dragDiv
=
this
.
$refs
.
dragDiv
// 缓存 clientX clientY 的对象: 用于判断是点击事件还是移动事件
let
clientOffset
=
{}
// 绑定鼠标按下事件
dragDiv
.
addEventListener
(
'mousedown'
,
(
event
)
=>
{
let
offsetX
=
dragDiv
.
getBoundingClientRect
().
left
// 获取当前的x轴距离
let
offsetY
=
dragDiv
.
getBoundingClientRect
().
top
// 获取当前的y轴距离
let
innerX
=
event
.
clientX
-
offsetX
// 获取鼠标在方块内的x轴距
let
innerY
=
event
.
clientY
-
offsetY
// 获取鼠标在方块内的y轴距
console
.
log
(
offsetX
,
offsetY
,
innerX
,
innerY
)
// 缓存 clientX clientY
clientOffset
.
clientX
=
event
.
clientX
clientOffset
.
clientY
=
event
.
clientY
// 鼠标移动的时候不停的修改div的left和top值
document
.
onmousemove
=
function
(
event
)
{
dragDiv
.
style
.
left
=
event
.
clientX
-
innerX
+
'px'
dragDiv
.
style
.
top
=
event
.
clientY
-
innerY
+
'px'
// dragDiv 距离顶部的距离
let
dragDivTop
=
window
.
innerHeight
-
dragDiv
.
getBoundingClientRect
().
height
// dragDiv 距离左部的距离
let
dragDivLeft
=
window
.
innerWidth
-
dragDiv
.
getBoundingClientRect
().
width
// 边界判断处理
// 1、设置左右不能动
dragDiv
.
style
.
left
=
dragDivLeft
+
'px'
// 2、超出顶部处理
if
(
dragDiv
.
getBoundingClientRect
().
top
<=
0
)
{
dragDiv
.
style
.
top
=
'0px'
}
// 3、超出底部处理
if
(
dragDiv
.
getBoundingClientRect
().
top
>=
dragDivTop
)
{
dragDiv
.
style
.
top
=
dragDivTop
+
'px'
}
}
// 鼠标抬起时,清除绑定在文档上的mousemove和mouseup事件;否则鼠标抬起后还可以继续拖拽方块
document
.
onmouseup
=
function
()
{
document
.
onmousemove
=
null
document
.
onmouseup
=
null
}
},
false
)
// 绑定鼠标松开事件
dragDiv
.
addEventListener
(
'mouseup'
,
(
event
)
=>
{
let
clientX
=
event
.
clientX
let
clientY
=
event
.
clientY
if
(
clientX
===
clientOffset
.
clientX
&&
clientY
===
clientOffset
.
clientY
)
{
console
.
log
(
'click 事件'
)
this
.
titleClick
=
!
this
.
titleClick
}
else
{
console
.
log
(
'drag 事件'
)
}
})
})
},
methods
:
{}
}
</
script
>
<
style
lang=
'scss'
scoped
>
.float-drag-button
{
position
:
absolute
;
right
:
0
;
top
:
40%
;
z-index
:
6666
;
padding
:
13px
;
width
:
0.3vw
;
opacity
:
1
;
background-color
:
#2436b7
;
border-radius
:
8px
0px
0px
8px
;
box-shadow
:
0px
2px
15px
0px
rgba
(
9
,
41
,
77
,
0.15
);
cursor
:
move
;
span
{
font-size
:
16px
;
color
:
#ffffff
;
line-height
:
24px
;
user-select
:
none
;
}
}
//
.title-tab-wrap
{
//
display
:
flex
;
//
//
justify-content
:
center
;
//
width
:
50vw
;
//
margin
:
0
auto
;
//
//
.circle-object
{
//
background
:
#2436b7
;
//
width
:
4vw
;
//
height
:
4vw
;
//
text-align
:
center
;
//
margin
:
0
auto
;
//
line-height
:
4vw
;
//
border-radius
:
50%
;
//
//
overflow
:
hidden
;
//
display
:
none
;
//
//
}
//
//
.anim-object
{
//
display
:
block
;
//
position
:
relative
;
//
z-index
:
905
;
//
transform-style
:
preserve-3d
;
//
animation
:
bounce-in-top
1.1s
ease
0s
1
normal
both
running
;
//
}
//
//
@keyframes
bounce-in-top
{
//
0
%
{
//
transform
:
scale
(
0
);
//
}
//
50
%
{
//
transform
:
scale
(
1.5
);
//
}
//
//
100
%
{
//
transform
:
scale
(
1
);
//
}
//
//
}
//
}
</
style
>
src/components/ViewTitle.vue
View file @
707e02f
...
...
@@ -9,10 +9,13 @@
<
template
>
<div>
<div
class=
'content flex'
>
<!--
<FeedBack></FeedBack>
-->
<div
class=
'logo user-select'
>
<img
style=
'height: 3.17vh'
src=
'@/assets/images/logo.png'
alt=
'logo'
/>
</div>
<div
class=
'view-title user-select'
@
click=
'changeTitles(title)'
>
{{
title
}}
</div>
<div
class=
'view-title user-select'
>
{{
title
}}
<!--
<img
style=
'height:2.3vh;width: 1.2vw'
src=
'@/assets/images/go.png'
class=
'float-element'
/>
-->
</div>
<div
class=
'time'
>
<div
class=
'top flex'
>
<img
src=
'@/assets/images/time.png'
class=
'icon'
/>
...
...
@@ -20,20 +23,41 @@
</div>
</div>
</div>
<div
class=
'title-tab-wrap'
>
<div
class=
'circle-object'
:class=
"titleClick?'anim-object':''"
@
click=
"goPage('/springbudAtion')"
>
春蕾行动
</div>
<div
class=
'circle-object'
:class=
"titleClick?'anim-object':''"
@
click=
"goPage('/sassPlus')"
>
SASS+
</div>
<div
class=
'circle-object'
:class=
"titleClick?'anim-object':''"
@
click=
"goPage('/equity')"
>
会员权益
</div>
<!--
<FeedBack></FeedBack>
-->
<div
class=
'float-drag-button'
@
click=
'changeTitles(title)'
>
<span>
<!-- ☰-->
+
</span>
</div>
<div
class=
'float-drag-wrap'
>
<div
class=
'float-drag-object'
:class=
"titleClick?'anim-drag-object':''"
@
click=
"goPage('/springbudAtion')"
>
春蕾行动
</div>
<div
class=
'float-drag-object'
:class=
"titleClick?'anim-drag-object':''"
@
click=
"goPage('/sassPlus')"
>
SASS+
</div>
<div
class=
'float-drag-object'
:class=
"titleClick?'anim-drag-object':''"
@
click=
"goPage('/equity')"
>
会员权益
</div>
</div>
<!--
<div
class=
'title-tab-wrap'
>
-->
<!--
<div
class=
'circle-object'
:class=
"titleClick?'anim-object':''"
@
click=
"goPage('/springbudAtion')"
>
春蕾行动
</div>
-->
<!--
<div
class=
'circle-object'
:class=
"titleClick?'anim-object':''"
@
click=
"goPage('/sassPlus')"
>
SASS+
</div>
-->
<!--
<div
class=
'circle-object'
:class=
"titleClick?'anim-object':''"
@
click=
"goPage('/equity')"
>
会员权益
</div>
-->
<!--
</div>
-->
</div>
</
template
>
<
script
type=
'text/ecmascript-6'
>
import
FeedBack
from
'components/FeedBack'
import
data
from
'utils/data'
// import FeedBack from 'plugins/FeedBack'
export
default
{
name
:
'ViewTitle'
,
components
:
{
FeedBack
},
props
:
{
title
:
{
type
:
String
,
...
...
@@ -50,7 +74,7 @@ export default {
mounted
()
{
this
.
timer
()
this
.
$bus
.
$on
(
'hideEvent'
,
data
=>
{
this
.
$bus
.
$on
(
'hideEvent'
,
data
=>
{
this
.
titleClick
=
false
})
},
...
...
@@ -71,7 +95,7 @@ export default {
goPage
(
val
)
{
this
.
$router
.
push
(
val
)
this
.
titleClick
=
false
}
,
}
}
}
</
script
>
...
...
@@ -115,10 +139,11 @@ export default {
.title-tab-wrap
{
display
:
flex
;
//
justify-content
:
center
;
width
:
50vw
;
margin
:
0
auto
;
cursor
:
pointer
;
.circle-object
{
background
:
#2436b7
;
width
:
4vw
;
...
...
@@ -134,7 +159,7 @@ export default {
.anim-object
{
display
:
block
;
position
:
relative
;
//
position
:
relative
;
z-index
:
905
;
transform-style
:
preserve-3d
;
animation
:
bounce-in-top
1.1s
ease
0s
1
normal
both
running
;
...
...
@@ -155,5 +180,85 @@ export default {
}
}
@keyframes
float
{
from
{
transform
:
translatey
(
0px
);
}
65
%
{
transform
:
translatey
(
15px
);
}
to
{
transform
:
translatey
(
-0px
);
}
}
/* 设置元素的初始状态 */
.float-element
{
position
:
relative
;
animation
:
float
3s
infinite
;
}
.float-drag-button
{
position
:
absolute
;
right
:
0
;
top
:
10%
;
z-index
:
6666
;
padding
:
13px
;
width
:
0.3vw
;
opacity
:
1
;
background-color
:
#2436b7
;
border-radius
:
8px
0px
0px
8px
;
box-shadow
:
0px
2px
15px
0px
rgba
(
9
,
41
,
77
,
0.15
);
//
cursor
:
move
;
cursor
:
pointer
;
span
{
font-size
:
16px
;
color
:
#ffffff
;
line-height
:
24px
;
user-select
:
none
;
}
}
.float-drag-wrap
{
position
:
absolute
;
right
:
0
;
top
:
18%
;
z-index
:
6666
;
opacity
:
1
;
.float-drag-object
{
text-align
:
center
;
font-size
:
1vw
;
color
:
#ffffff
;
margin
:
1vh
auto
;
padding
:
1vh
0
;
background-color
:
#2436b7
;
line-height
:
24px
;
user-select
:
none
;
writing-mode
:
vertical-lr
;
border-radius
:
8px
0px
0px
8px
;
box-shadow
:
0px
2px
15px
0px
rgba
(
9
,
41
,
77
,
0.15
);
cursor
:
pointer
;
display
:
none
;
}
.anim-drag-object
{
display
:
block
;
position
:
relative
;
z-index
:
905
;
transform-style
:
preserve-3d
;
animation
:
move
0.5s
ease-in-out
forwards
;
}
@keyframes
move
{
0
%
{
left
:
100%
;
}
100
%
{
left
:
0
;
}
}
}
</
style
>
src/components/options.js
View file @
707e02f
...
...
@@ -700,7 +700,7 @@ function lineAndBarOptions(list) {
},
yAxis
:
[
{
name
:
'
bar
'
,
name
:
''
,
nameGap
:
30
,
type
:
'value'
,
splitLine
:
{
...
...
@@ -715,7 +715,7 @@ function lineAndBarOptions(list) {
splitNumber
:
4
},
{
name
:
'
line
'
,
name
:
''
,
nameGap
:
30
,
type
:
'value'
,
splitLine
:
{
...
...
src/main.js
View file @
707e02f
...
...
@@ -19,6 +19,7 @@ import Request from './api/request'
import
{
fetchConfig
,
cfg
}
from
'@/config'
import
'@/assets/css/index.scss'
import
'./utils/util'
import
"./utils/drag.js"
;
import
'components'
import
*
as
echarts
from
'echarts'
import
dialog
from
'./plugins/dialog'
...
...
src/utils/drag.js
0 → 100644
View file @
707e02f
import
Vue
from
'vue'
;
Vue
.
directive
(
'drag'
,
{
bind
:
function
(
el
)
{
const
odiv
=
el
;
// 缓存 clientX clientY 的对象: 用于判断是点击事件还是移动事件
const
clientOffset
=
{};
odiv
.
style
.
position
=
'fixed'
;
odiv
.
onmousedown
=
(
e
)
=>
{
const
disX
=
e
.
clientX
-
odiv
.
offsetLeft
;
const
disY
=
e
.
clientY
-
odiv
.
offsetTop
;
// 缓存 clientX clientY
clientOffset
.
clientX
=
e
.
clientX
;
clientOffset
.
clientY
=
e
.
clientY
;
document
.
onmousemove
=
(
e
)
=>
{
const
left
=
e
.
clientX
-
disX
;
const
top
=
e
.
clientY
-
disY
;
odiv
.
style
.
left
=
left
+
'px'
;
odiv
.
style
.
top
=
top
+
'px'
;
// odiv 距离顶部的距离
const
dragDivTop
=
window
.
innerHeight
-
odiv
.
getBoundingClientRect
().
height
;
// odiv 距离左部的距离
const
dragDivLeft
=
window
.
innerWidth
-
odiv
.
getBoundingClientRect
().
width
;
// 边界判断处理
// 2、超出顶部处理
if
(
odiv
.
getBoundingClientRect
().
top
<=
0
)
{
odiv
.
style
.
top
=
'0px'
;
}
// 3、超出底部处理
if
(
odiv
.
getBoundingClientRect
().
top
>=
dragDivTop
)
{
odiv
.
style
.
top
=
dragDivTop
+
'px'
;
}
// 4、超出右边边界区域处理
if
(
odiv
.
getBoundingClientRect
().
left
>=
dragDivLeft
)
{
odiv
.
style
.
left
=
dragDivLeft
+
'px'
;
}
// 5、超出左边边界区域处理
if
(
odiv
.
getBoundingClientRect
().
left
<=
0
)
{
odiv
.
style
.
left
=
'0px'
;
}
};
document
.
onmouseup
=
()
=>
{
document
.
onmousemove
=
null
;
document
.
onmouseup
=
null
;
};
};
// 绑定鼠标松开事件
odiv
.
addEventListener
(
'mouseup'
,
(
event
)
=>
{
const
clientX
=
event
.
clientX
;
const
clientY
=
event
.
clientY
;
if
(
clientX
===
clientOffset
.
clientX
&&
clientY
===
clientOffset
.
clientY
)
{
return
false
// console.log('click 事件');
}
else
{
return
false
// console.log('drag 事件');
}
})
}
})
src/views/sassPlus/componts/selectContainer.vue
View file @
707e02f
...
...
@@ -7,7 +7,6 @@
:selectArr=
'monthList'
:selectType=
"'months'"
:label-name=
"'month'"
:showSelect =
'true'
:val-name=
"'month'"
></SelectCpn>
</div>
</
template
>
...
...
src/views/sassPlus/componts/selectCpn.vue
View file @
707e02f
...
...
@@ -29,10 +29,10 @@ export default {
type
:
String
,
default
:
''
},
showSelect
:
{
type
:
Boolean
,
default
:
false
},
//
showSelect: {
//
type: Boolean,
//
default: false
//
},
selectArr
:
{
type
:
Array
,
default
:
()
=>
[]
...
...
@@ -50,18 +50,19 @@ export default {
data
()
{
return
{
selStr
:
''
,
showFirstSelStaus
:
false
}
},
watch
:
{
s
howFirstSelStaus
:
{
s
electArr
:
{
handler
(
newval
,
oldval
)
{
if
(
newval
==
true
&&
this
.
showSelect
==
true
)
{
this
.
selStr
=
this
.
selectArr
[
0
][
this
.
valName
]
}
if
(
newval
==
false
&&
this
.
showSelect
==
true
)
{
this
.
selStr
=
''
}
this
.
selStr
=
this
.
selectArr
[
0
][
this
.
valName
]
// if (newval == true && this.showSelect == true) {
// this.selStr = this.selectArr[0][this.valName]
// console.log(this.selStr)
// }
// if (newval == false && this.showSelect == true) {
// this.selStr = ''
// }
}
}
},
...
...
src/views/sassPlus/conversionPlus/conversionLeft.vue
View file @
707e02f
...
...
@@ -107,6 +107,7 @@ export default {
},
// 自动滚动
autoScroll
()
{
clearInterval
(
this
.
timer2
)
this
.
timer2
=
setInterval
(()
=>
{
if
(
this
.
scrollableHeight
>=
this
.
scrollTop
)
{
// 当为滚动到结尾时滚动
...
...
@@ -147,7 +148,7 @@ export default {
height
:
85vh
;
.component
{
padding
:
0.5vw
0
;
//
padding
:
0.5vw
0
;
//
font-family
:
Source
Han
Sans
CN
,
Source
Han
Sans
CN-Regular
;
letter-spacing
:
0.1vw
;
...
...
@@ -165,7 +166,7 @@ export default {
.list_dv
{
width
:
100%
;
height
:
76.5
vh
;
height
:
77
vh
;
overflow-y
:
auto
;
font-size
:
0.6vw
;
color
:
#d4eaf6
;
...
...
src/views/sassPlus/index.vue
View file @
707e02f
...
...
@@ -23,14 +23,14 @@ export default {
data
()
{
return
{
bussinessTitle
:
'1.1转换+业务'
,
bussinessType
:
''
,
bussinessType
:
'
transWork
'
,
// isShowTransWork:true,
systemType
:
'gl'
,
month
:
''
}
},
async
created
()
{
await
this
.
bussinessInit
(
'transWork'
)
await
this
.
bussinessInit
(
this
.
bussinessType
)
},
mounted
()
{
...
...
@@ -66,26 +66,34 @@ export default {
},
methods
:
{
// 1.1转换+ 2.1无忧的初始化
async
bussinessInit
(
bussinessType
)
{
await
this
.
getTotal
(
bussinessType
)
// 获取订单详情
await
this
.
getMonth
(
bussinessType
)
// 获取可选月份
await
this
.
getOrderMonthlyTrend
(
bussinessType
)
// 获取月度趋势
await
this
.
getAllGoodsDistribution
(
bussinessType
)
// 获取商品统计——整体品类分布
// this.$bus.$emit('orderinfoMonthly', { bussinessType })
this
.
$bus
.
$emit
(
'orderinfoMonthly'
,
{
bussinessType
})
// 切换业务时更新各类商品每月订单数
},
// 1.2 1.3的初始化
crowdFundingInit
(
bussinessType
,
systemType
,
month
)
{
this
.
getTotal
(
bussinessType
,
systemType
)
this
.
getOrderMonthlyTrend
(
bussinessType
,
systemType
)
this
.
getActivitiesMonthly
(
bussinessType
,
systemType
,
month
)
this
.
getTop5CouponMonthly
(
bussinessType
,
systemType
,
month
)
this
.
getTop10Coupon
(
bussinessType
,
systemType
)
this
.
getTop10Acitivity
(
bussinessType
,
systemType
)
this
.
getMonth
(
bussinessType
)
// 获取可选月份
this
.
getTotal
(
bussinessType
,
systemType
)
// 获取订单详情
this
.
getOrderMonthlyTrend
(
bussinessType
,
systemType
)
// 获取月度趋势
this
.
getActivitiesMonthly
(
bussinessType
,
systemType
,
month
)
// 获取页面左边排名前五的数据
this
.
getTop5CouponMonthly
(
bussinessType
,
systemType
,
month
)
// 获取页面右边排名前五的数据
this
.
getTop10Coupon
(
bussinessType
,
systemType
)
// 获取页面右边排名前10的数据
this
.
getTop10Acitivity
(
bussinessType
,
systemType
)
// 获取页面左边排名前10的数据
},
// 获取订单总数、今年新增订单数、收入总额
getTotal
(
val
,
type
)
{
const
params
=
type
?
{
queryItem
:
type
}
:
''
// val 通过不同业务调用不同的接口
// transWork 1.1业务 expandedGold 1.2业务 crowdFunding 1.3 noWorries 2.1
// type 通过不同系统调用不同的接口
// gl 广联 广汇 gh
const
params
=
type
?
{
queryItem
:
type
}
:
''
// 1.1 2.1没有参数
this
.
api
[
val
].
getTotal
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
const
orderList
=
res
.
data
.
dataList
[
0
]
...
...
@@ -94,16 +102,27 @@ export default {
})
},
// 获取不同业务的月份
async
getMonth
(
val
)
{
// val 通过不同业务调用不同的接口
// transWork 1.1业务 expandedGold 1.2业务 crowdFunding 1.3 noWorries 2.1
await
this
.
api
[
val
].
getMonth
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
const
monthList
=
res
.
data
.
dataList
if
(
this
.
bussinessType
==
'transWork'
||
this
.
bussinessType
==
'noWorries'
)
{
monthList
.
unshift
({
month
:
''
})
}
this
.
$bus
.
$emit
(
'monthList'
,
{
monthList
})
}
})
},
// 获取订单月度趋势
getOrderMonthlyTrend
(
val
,
queryItem
)
{
// val 通过不同业务调用不同的接口
// transWork 1.1业务 expandedGold 1.2业务 crowdFunding 1.3 noWorries 2.1
// queryItem 通过不同系统调用不同的接口
// gl 广联 gh 广汇
const
params
=
queryItem
?
{
queryItem
}
:
''
this
.
api
[
val
].
getOrderMonthlyTrend
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
...
...
@@ -113,7 +132,10 @@ export default {
})
},
// 获取商品统计——整体品类分布
getAllGoodsDistribution
(
val
)
{
// val 通过不同业务调用不同的接口
// transWork 1.1业务 expandedGold 1.2业务 crowdFunding 1.3 noWorries 2.1
this
.
api
[
val
].
getAllGoodsDistribution
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
const
allGoodsDistribution
=
res
.
data
.
dataList
...
...
@@ -122,23 +144,34 @@ export default {
})
},
// 点击了别处隐藏菜单选择
hideTitle
()
{
this
.
$bus
.
$emit
(
'hideEvent'
,
{
title
:
'111'
})
},
// 获取排名前十的数据 右边
getTop10Coupon
(
bussinessType
,
queryItem
)
{
// bussinessType 通过不同业务调用不同的接口
// expandedGold 1.2业务 crowdFunding 1.3
// queryItem 系统参数
// gl 广联 gh 广汇
bussinessType
==
'expandedGold'
?
this
.
getTopTenData
(
bussinessType
,
'getTop10Coupon'
,
queryItem
,
'Top10Right'
)
:
this
.
getTopTenData
(
bussinessType
,
'getVehicleBrandRanking'
,
queryItem
,
'Top10Right'
)
},
// 获取排名前十的数据 左边
getTop10Acitivity
(
bussinessType
,
queryItem
)
{
// bussinessType 通过不同业务调用不同的接口
// expandedGold 1.2业务 crowdFunding 1.3
// queryItem 系统参数
// gl 广联 gh 广汇
bussinessType
==
'expandedGold'
?
this
.
getTopTenData
(
bussinessType
,
'getTop5Activities'
,
queryItem
,
'Top10Left'
)
:
this
.
getTopTenData
(
bussinessType
,
'getAllGoodsDistribution'
,
queryItem
,
'Top10Left'
)
},
// 获取前十的数据
getTopTenData
(
bussinessType
,
method
,
queryItem
,
emitName
)
{
const
params
=
{
queryItem
}
...
...
@@ -149,19 +182,25 @@ export default {
})
},
//
活动(链接)统计_xx月订单量排名前5活动场次
//
获取排名前5的数据 -左边
getActivitiesMonthly
(
bussinessType
,
systemType
,
month
)
{
// bussinessType 通过不同业务调用不同的接口
// expandedGold 1.2业务 crowdFunding 1.3
// systemType 系统参数
// gl 广联 gh 广汇
bussinessType
==
'expandedGold'
?
this
.
getMonthlyRankingData
(
bussinessType
,
'getActivitiesMonthly'
,
month
,
systemType
,
'topFiveRankingTopLeft'
)
:
this
.
getMonthlyRankingData
(
bussinessType
,
'getGoodsTop5Monthly'
,
month
,
systemType
,
'topFiveRankingTopLeft'
)
},
// 获取排名前5的数据 -右边
getTop5CouponMonthly
(
bussinessType
,
systemType
,
month
)
{
bussinessType
==
'expandedGold'
?
this
.
getMonthlyRankingData
(
bussinessType
,
'getTop5CouponMonthly'
,
month
,
systemType
,
'topFiveRankingTopRight'
)
:
this
.
getMonthlyRankingData
(
bussinessType
,
'getVehicleBrandTop5Monthly'
,
month
,
systemType
,
'topFiveRankingTopRight'
)
},
// 获取排名前五数据
getMonthlyRankingData
(
bussinessType
,
method
,
month
,
queryItem
,
emitName
)
{
let
getmonth
=
month
if
(
!
getmonth
)
{
...
...
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