Commit 707e02fd by 前端

更新样式 逻辑

1 parent afc1b86c
...@@ -14,6 +14,9 @@ body .app { ...@@ -14,6 +14,9 @@ body .app {
height: 100%; height: 100%;
// overflow: hidden; // overflow: hidden;
--themeColor: #3975c6; --themeColor: #3975c6;
overflow-x: hidden;
} }
img { img {
......
<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>
...@@ -9,10 +9,13 @@ ...@@ -9,10 +9,13 @@
<template> <template>
<div> <div>
<div class='content flex'> <div class='content flex'>
<!--<FeedBack></FeedBack>-->
<div class='logo user-select'> <div class='logo user-select'>
<img style='height: 3.17vh' src='@/assets/images/logo.png' alt='logo' /> <img style='height: 3.17vh' src='@/assets/images/logo.png' alt='logo' />
</div> </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='time'>
<div class='top flex'> <div class='top flex'>
<img src='@/assets/images/time.png' class='icon' /> <img src='@/assets/images/time.png' class='icon' />
...@@ -20,20 +23,41 @@ ...@@ -20,20 +23,41 @@
</div> </div>
</div> </div>
</div> </div>
<!--<FeedBack></FeedBack>-->
<div class='title-tab-wrap'> <div class='float-drag-button' @click='changeTitles(title)'>
<div class='circle-object' :class="titleClick?'anim-object':''" @click="goPage('/springbudAtion')">春蕾行动</div> <span>
<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> +
</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>
<!-- <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> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import FeedBack from 'components/FeedBack'
import data from 'utils/data' import data from 'utils/data'
// import FeedBack from 'plugins/FeedBack'
export default { export default {
name: 'ViewTitle', name: 'ViewTitle',
components: { FeedBack },
props: { props: {
title: { title: {
type: String, type: String,
...@@ -50,7 +74,7 @@ export default { ...@@ -50,7 +74,7 @@ export default {
mounted() { mounted() {
this.timer() this.timer()
this.$bus.$on('hideEvent', data =>{ this.$bus.$on('hideEvent', data => {
this.titleClick = false this.titleClick = false
}) })
}, },
...@@ -71,7 +95,7 @@ export default { ...@@ -71,7 +95,7 @@ export default {
goPage(val) { goPage(val) {
this.$router.push(val) this.$router.push(val)
this.titleClick = false this.titleClick = false
}, }
} }
} }
</script> </script>
...@@ -115,10 +139,11 @@ export default { ...@@ -115,10 +139,11 @@ export default {
.title-tab-wrap { .title-tab-wrap {
display: flex; display: flex;
//justify-content: center;
width: 50vw; width: 50vw;
margin: 0 auto; margin: 0 auto;
cursor: pointer;
.circle-object { .circle-object {
background: #2436b7; background: #2436b7;
width: 4vw; width: 4vw;
...@@ -134,7 +159,7 @@ export default { ...@@ -134,7 +159,7 @@ export default {
.anim-object { .anim-object {
display: block; display: block;
position: relative; //position: relative;
z-index: 905; z-index: 905;
transform-style: preserve-3d; transform-style: preserve-3d;
animation: bounce-in-top 1.1s ease 0s 1 normal both running; animation: bounce-in-top 1.1s ease 0s 1 normal both running;
...@@ -155,5 +180,85 @@ export default { ...@@ -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> </style>
...@@ -700,7 +700,7 @@ function lineAndBarOptions(list) { ...@@ -700,7 +700,7 @@ function lineAndBarOptions(list) {
}, },
yAxis: [ yAxis: [
{ {
name: 'bar', name: '',
nameGap: 30, nameGap: 30,
type: 'value', type: 'value',
splitLine: { splitLine: {
...@@ -715,7 +715,7 @@ function lineAndBarOptions(list) { ...@@ -715,7 +715,7 @@ function lineAndBarOptions(list) {
splitNumber: 4 splitNumber: 4
}, },
{ {
name: 'line', name: '',
nameGap: 30, nameGap: 30,
type: 'value', type: 'value',
splitLine: { splitLine: {
......
...@@ -19,6 +19,7 @@ import Request from './api/request' ...@@ -19,6 +19,7 @@ import Request from './api/request'
import { fetchConfig, cfg } from '@/config' import { fetchConfig, cfg } from '@/config'
import '@/assets/css/index.scss' import '@/assets/css/index.scss'
import './utils/util' import './utils/util'
import "./utils/drag.js";
import 'components' import 'components'
import * as echarts from 'echarts' import * as echarts from 'echarts'
import dialog from './plugins/dialog' import dialog from './plugins/dialog'
......
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 事件');
}
})
}
})
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
:selectArr='monthList' :selectArr='monthList'
:selectType="'months'" :selectType="'months'"
:label-name="'month'" :label-name="'month'"
:showSelect = 'true'
:val-name="'month'"></SelectCpn> :val-name="'month'"></SelectCpn>
</div> </div>
</template> </template>
......
...@@ -29,10 +29,10 @@ export default { ...@@ -29,10 +29,10 @@ export default {
type: String, type: String,
default: '' default: ''
}, },
showSelect: { // showSelect: {
type: Boolean, // type: Boolean,
default: false // default: false
}, // },
selectArr: { selectArr: {
type: Array, type: Array,
default: () => [] default: () => []
...@@ -50,18 +50,19 @@ export default { ...@@ -50,18 +50,19 @@ export default {
data() { data() {
return { return {
selStr: '', selStr: '',
showFirstSelStaus: false
} }
}, },
watch: { watch: {
showFirstSelStaus: { selectArr: {
handler(newval, oldval) { handler(newval, oldval) {
if (newval == true && this.showSelect == true) {
this.selStr = this.selectArr[0][this.valName] this.selStr = this.selectArr[0][this.valName]
} // if (newval == true && this.showSelect == true) {
if (newval == false && this.showSelect == true) { // this.selStr = this.selectArr[0][this.valName]
this.selStr = '' // console.log(this.selStr)
} // }
// if (newval == false && this.showSelect == true) {
// this.selStr = ''
// }
} }
} }
}, },
......
...@@ -107,6 +107,7 @@ export default { ...@@ -107,6 +107,7 @@ export default {
}, },
// 自动滚动 // 自动滚动
autoScroll() { autoScroll() {
clearInterval(this.timer2)
this.timer2 = setInterval(() => { this.timer2 = setInterval(() => {
if (this.scrollableHeight >= this.scrollTop) { if (this.scrollableHeight >= this.scrollTop) {
// 当为滚动到结尾时滚动 // 当为滚动到结尾时滚动
...@@ -147,7 +148,7 @@ export default { ...@@ -147,7 +148,7 @@ export default {
height: 85vh; height: 85vh;
.component { .component {
padding: 0.5vw 0; //padding: 0.5vw 0;
//font-family: Source Han Sans CN, Source Han Sans CN-Regular; //font-family: Source Han Sans CN, Source Han Sans CN-Regular;
letter-spacing: 0.1vw; letter-spacing: 0.1vw;
...@@ -165,7 +166,7 @@ export default { ...@@ -165,7 +166,7 @@ export default {
.list_dv { .list_dv {
width: 100%; width: 100%;
height: 76.5vh; height:77vh;
overflow-y: auto; overflow-y: auto;
font-size: 0.6vw; font-size: 0.6vw;
color: #d4eaf6; color: #d4eaf6;
......
...@@ -23,14 +23,14 @@ export default { ...@@ -23,14 +23,14 @@ export default {
data() { data() {
return { return {
bussinessTitle: '1.1转换+业务', bussinessTitle: '1.1转换+业务',
bussinessType: '', bussinessType: 'transWork',
// isShowTransWork:true, // isShowTransWork:true,
systemType: 'gl', systemType: 'gl',
month: '' month: ''
} }
}, },
async created() { async created() {
await this.bussinessInit('transWork') await this.bussinessInit(this.bussinessType)
}, },
mounted() { mounted() {
...@@ -66,26 +66,34 @@ export default { ...@@ -66,26 +66,34 @@ export default {
}, },
methods: { methods: {
// 1.1转换+ 2.1无忧的初始化
async bussinessInit(bussinessType) { async bussinessInit(bussinessType) {
await this.getTotal(bussinessType) // 获取订单详情 await this.getTotal(bussinessType) // 获取订单详情
await this.getMonth(bussinessType) // 获取可选月份 await this.getMonth(bussinessType) // 获取可选月份
await this.getOrderMonthlyTrend(bussinessType) // 获取月度趋势 await this.getOrderMonthlyTrend(bussinessType) // 获取月度趋势
await this.getAllGoodsDistribution(bussinessType) // 获取商品统计——整体品类分布 await this.getAllGoodsDistribution(bussinessType) // 获取商品统计——整体品类分布
// this.$bus.$emit('orderinfoMonthly', { bussinessType }) this.$bus.$emit('orderinfoMonthly', { bussinessType }) // 切换业务时更新各类商品每月订单数
}, },
// 1.2 1.3的初始化
crowdFundingInit(bussinessType, systemType, month) { crowdFundingInit(bussinessType, systemType, month) {
this.getTotal(bussinessType, systemType) this.getMonth(bussinessType) // 获取可选月份
this.getOrderMonthlyTrend(bussinessType, systemType) this.getTotal(bussinessType, systemType) // 获取订单详情
this.getActivitiesMonthly(bussinessType, systemType, month) this.getOrderMonthlyTrend(bussinessType, systemType) // 获取月度趋势
this.getTop5CouponMonthly(bussinessType, systemType, month) this.getActivitiesMonthly(bussinessType, systemType, month) // 获取页面左边排名前五的数据
this.getTop10Coupon(bussinessType, systemType) this.getTop5CouponMonthly(bussinessType, systemType, month)// 获取页面右边排名前五的数据
this.getTop10Acitivity(bussinessType, systemType) this.getTop10Coupon(bussinessType, systemType) // 获取页面右边排名前10的数据
this.getTop10Acitivity(bussinessType, systemType)// 获取页面左边排名前10的数据
}, },
// 获取订单总数、今年新增订单数、收入总额 // 获取订单总数、今年新增订单数、收入总额
getTotal(val, type) { 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 => { this.api[val].getTotal(params).then(res => {
if (res.code == 0) { if (res.code == 0) {
const orderList = res.data.dataList[0] const orderList = res.data.dataList[0]
...@@ -94,16 +102,27 @@ export default { ...@@ -94,16 +102,27 @@ export default {
}) })
}, },
// 获取不同业务的月份
async getMonth(val) { async getMonth(val) {
// val 通过不同业务调用不同的接口
// transWork 1.1业务 expandedGold 1.2业务 crowdFunding 1.3 noWorries 2.1
await this.api[val].getMonth().then(res => { await this.api[val].getMonth().then(res => {
if (res.code == 0) { if (res.code == 0) {
const monthList = res.data.dataList const monthList = res.data.dataList
if (this.bussinessType == 'transWork' || this.bussinessType == 'noWorries') {
monthList.unshift({ month: '' })
}
this.$bus.$emit('monthList', { monthList }) this.$bus.$emit('monthList', { monthList })
} }
}) })
}, },
// 获取订单月度趋势
getOrderMonthlyTrend(val, queryItem) { getOrderMonthlyTrend(val, queryItem) {
// val 通过不同业务调用不同的接口
// transWork 1.1业务 expandedGold 1.2业务 crowdFunding 1.3 noWorries 2.1
// queryItem 通过不同系统调用不同的接口
// gl 广联 gh 广汇
const params = queryItem ? { queryItem } : '' const params = queryItem ? { queryItem } : ''
this.api[val].getOrderMonthlyTrend(params).then(res => { this.api[val].getOrderMonthlyTrend(params).then(res => {
if (res.code == 0) { if (res.code == 0) {
...@@ -113,7 +132,10 @@ export default { ...@@ -113,7 +132,10 @@ export default {
}) })
}, },
// 获取商品统计——整体品类分布
getAllGoodsDistribution(val) { getAllGoodsDistribution(val) {
// val 通过不同业务调用不同的接口
// transWork 1.1业务 expandedGold 1.2业务 crowdFunding 1.3 noWorries 2.1
this.api[val].getAllGoodsDistribution().then(res => { this.api[val].getAllGoodsDistribution().then(res => {
if (res.code == 0) { if (res.code == 0) {
const allGoodsDistribution = res.data.dataList const allGoodsDistribution = res.data.dataList
...@@ -122,23 +144,34 @@ export default { ...@@ -122,23 +144,34 @@ export default {
}) })
}, },
// 点击了别处隐藏菜单选择
hideTitle() { hideTitle() {
this.$bus.$emit('hideEvent', { title: '111' }) this.$bus.$emit('hideEvent', { title: '111' })
}, },
// 获取排名前十的数据 右边
getTop10Coupon(bussinessType, queryItem) { getTop10Coupon(bussinessType, queryItem) {
// bussinessType 通过不同业务调用不同的接口
// expandedGold 1.2业务 crowdFunding 1.3
// queryItem 系统参数
// gl 广联 gh 广汇
bussinessType == 'expandedGold' bussinessType == 'expandedGold'
? this.getTopTenData(bussinessType, 'getTop10Coupon', queryItem, 'Top10Right') ? this.getTopTenData(bussinessType, 'getTop10Coupon', queryItem, 'Top10Right')
: this.getTopTenData(bussinessType, 'getVehicleBrandRanking', queryItem, 'Top10Right') : this.getTopTenData(bussinessType, 'getVehicleBrandRanking', queryItem, 'Top10Right')
}, },
// 获取排名前十的数据 左边
getTop10Acitivity(bussinessType, queryItem) { getTop10Acitivity(bussinessType, queryItem) {
// bussinessType 通过不同业务调用不同的接口
// expandedGold 1.2业务 crowdFunding 1.3
// queryItem 系统参数
// gl 广联 gh 广汇
bussinessType == 'expandedGold' bussinessType == 'expandedGold'
? this.getTopTenData(bussinessType, 'getTop5Activities', queryItem, 'Top10Left') ? this.getTopTenData(bussinessType, 'getTop5Activities', queryItem, 'Top10Left')
: this.getTopTenData(bussinessType, 'getAllGoodsDistribution', queryItem, 'Top10Left') : this.getTopTenData(bussinessType, 'getAllGoodsDistribution', queryItem, 'Top10Left')
}, },
// 获取前十的数据 // 获取前十的数据
getTopTenData(bussinessType, method, queryItem, emitName) { getTopTenData(bussinessType, method, queryItem, emitName) {
const params = { queryItem } const params = { queryItem }
...@@ -149,19 +182,25 @@ export default { ...@@ -149,19 +182,25 @@ export default {
}) })
}, },
// 活动(链接)统计_xx月订单量排名前5活动场次 // 获取排名前5的数据 -左边
getActivitiesMonthly(bussinessType, systemType, month) { getActivitiesMonthly(bussinessType, systemType, month) {
// bussinessType 通过不同业务调用不同的接口
// expandedGold 1.2业务 crowdFunding 1.3
// systemType 系统参数
// gl 广联 gh 广汇
bussinessType == 'expandedGold' bussinessType == 'expandedGold'
? this.getMonthlyRankingData(bussinessType, 'getActivitiesMonthly', month, systemType, 'topFiveRankingTopLeft') ? this.getMonthlyRankingData(bussinessType, 'getActivitiesMonthly', month, systemType, 'topFiveRankingTopLeft')
: this.getMonthlyRankingData(bussinessType, 'getGoodsTop5Monthly', month, systemType, 'topFiveRankingTopLeft') : this.getMonthlyRankingData(bussinessType, 'getGoodsTop5Monthly', month, systemType, 'topFiveRankingTopLeft')
}, },
// 获取排名前5的数据 -右边
getTop5CouponMonthly(bussinessType, systemType, month) { getTop5CouponMonthly(bussinessType, systemType, month) {
bussinessType == 'expandedGold' bussinessType == 'expandedGold'
? this.getMonthlyRankingData(bussinessType, 'getTop5CouponMonthly', month, systemType, 'topFiveRankingTopRight') ? this.getMonthlyRankingData(bussinessType, 'getTop5CouponMonthly', month, systemType, 'topFiveRankingTopRight')
: this.getMonthlyRankingData(bussinessType, 'getVehicleBrandTop5Monthly', month, systemType, 'topFiveRankingTopRight') : this.getMonthlyRankingData(bussinessType, 'getVehicleBrandTop5Monthly', month, systemType, 'topFiveRankingTopRight')
}, },
// 获取排名前五数据
getMonthlyRankingData(bussinessType, method, month, queryItem, emitName) { getMonthlyRankingData(bussinessType, method, month, queryItem, emitName) {
let getmonth = month let getmonth = month
if (!getmonth) { if (!getmonth) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!