Commit 502ee2b4 by 匡雅琴

会员权益页面

1 parent a4ddabcf
...@@ -19,10 +19,10 @@ const DefaultData = { ...@@ -19,10 +19,10 @@ const DefaultData = {
{ {
label: '业务数据 | 1.3售后众筹', label: '业务数据 | 1.3售后众筹',
value: '3' value: '3'
// }, },
// { {
// label: '业务数据 | 2.1会员权益', label: '业务数据 | 2.1会员权益',
// value: '4' value: '4'
} }
], ],
directionTimer: 3000, directionTimer: 3000,
......
<template>
<div class="overview-box">
<box-title title="数据总览"></box-title>
<Tab class="tab-box" :list="tabList" :width="19.17" :itemWidth="10" @changeTab="changeTab"></Tab>
</div>
</template>
<script>
export default {
name: 'EquityBottom',
data() {
return {
tabList: ['广汇数据总览', '非广汇数据总览']
}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.overview-box {
// width: 100%;
height: 57.78vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.tab-box {
margin: 1.78vh auto;
}
}
</style>
<template>
<div class="equity-left">
<StatisticsBox :list="equitylList" class="bottom-class">
<template #count>
<img class="img-statictic" src="../../assets/images/bar-graph.png" alt="" />
</template>
<template #kedan>
<img class="img-statictic" src="../../assets/images/curve.png" alt="" />
</template>
<template #zhuanhua="{ zhuanhua }">
<el-progress class="conversion-progress" :percentage="Number(zhuanhua.value)" :stroke-width="18"></el-progress>
</template>
</StatisticsBox>
<ProductionTrend class="bottom-class"></ProductionTrend>
<OrderTrends></OrderTrends>
</div>
</template>
<script>
import ProductionTrend from './components/ProductionTrend.vue'
import OrderTrends from './components/OrderTrends.vue'
export default {
name: 'EquityLeft',
components: {
ProductionTrend,
OrderTrends
},
data() {
return {
equitylList: [
{
name: '总产值',
valueName: 'outputvalue',
value: '258957',
unit: '¥',
unitType: 'left',
bottomType: 'ratio',
ratioLeftLabel: '周同比',
ratioLeftValueName: 'outputvalueTb',
ratioLeftValue: '0',
ratioRightLabel: '日环比',
ratioRightValueName: 'outputvalueHb',
ratioRightValue: '0'
},
{
name: '推荐量',
valueName: 'count',
value: '1688',
bottomType: 'slot'
},
{
name: '成交量',
valueName: 'deal',
value: '258957',
bottomType: 'ratio',
ratioLeftLabel: '周同比',
ratioLeftValueName: 'dealTb',
ratioLeftValue: '0',
ratioRightLabel: '日环比',
ratioRightValueName: 'dealHb',
ratioRightValue: '0'
},
{
name: '转化率',
valueName: 'zhuanhua',
value: '20',
unit: '%',
unitType: 'right',
bottomType: 'slot'
},
{
name: '客单价',
valueName: 'kedan',
value: '0',
unit: '¥',
unitType: 'left',
bottomType: 'slot'
}
]
}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.equity-left {
width: 64.17vw;
.bottom-class {
margin-bottom: 1.78vh;
}
.el-progress--line {
width: 14.03vw;
}
/deep/.el-progress__text {
display: none;
}
/deep/.el-progress-bar {
padding-right: 0;
}
/deep/.el-progress-bar__outer {
border-radius: 0;
}
/deep/.el-progress-bar__inner {
border-radius: 0;
}
.conversion-progress {
/deep/.el-progress-bar__outer {
background-image: linear-gradient(-89deg, #11627a 0%, #282f7a 100%);
}
/deep/.el-progress-bar__inner {
background-image: linear-gradient(270deg, #22d8ff 0%, #5c56ff 100%);
}
}
}
</style>
<template>
<div>
<!-- 第一个盒子 -->
<div class="rank-box">
<box-title title="门店产值排名"></box-title>
<div class="rank-content" v-if="storeOutputList.length">
<Ranking :id="'storeOutput'" :rankingsList="storeOutputList" :rankingDataObj="rankingDataObj" @goDetailPage="goDetailPage"></Ranking>
</div>
<div v-else class="empty">
<Empty></Empty>
</div>
</div>
<!-- 第二个盒子 -->
<div class="rank-box">
<box-title title="门店转化率排行"></box-title>
<div class="rank-content" v-if="storePercentList.length">
<Ranking :id="'storePercent'" :rankingsList="storePercentList" :rankingDataObj="rankPercentObj" @goDetailPage="goDetailPage"></Ranking>
</div>
<div v-else class="empty">
<Empty></Empty>
</div>
</div>
<!-- 第三个盒子 -->
<div class="rank-box">
<box-title title="门店客单价排行"></box-title>
<div class="rank-content" v-if="storePriceList.length">
<Ranking :id="'storePrice'" :rankingsList="storePriceList" :rankingDataObj="rankingDataObj" @goDetailPage="goDetailPage"></Ranking>
</div>
<div v-else class="empty">
<Empty></Empty>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'EquityRight',
data() {
return {
// 门店产值排名数据
storeOutputList: [],
// 门店转化率排名数据
storePercentList: [],
// 门店客单价排名数据
storePriceList: [],
// rankingDataObj
rankingDataObj: [
{
name: 'merchantname',
width: '17vw',
action: true
},
// {
// name: 'province',
// width: '2.92vw'
// },
// {
// name: 'brand',
// width: '2vw'
// },
{
name: 'num',
width: '8vw',
type: 'number',
preunit: '¥'
}
],
rankPercentObj: [
{
name: 'merchantname',
width: '17vw',
action: true
},
// {
// name: 'province',
// width: '2.92vw'
// },
// {
// name: 'brand',
// width: '2vw'
// },
{
name: 'num',
width: '3vw',
type: 'decimal'
}
]
}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.rank-box {
width: 31.39vw;
height: 26.78vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
&:nth-child(-n + 2) {
margin-bottom: 1.78vh;
}
.rank-content {
padding: 1.67vh 1.39vw;
}
.empty {
height: 24.45vh;
display: flex;
align-items: center;
}
}
</style>
<template>
<div class="pie-box">
<TotalBill></TotalBill>
<TotalMerchant></TotalMerchant>
</div>
</template>
<script>
import TotalBill from './components/TotalBill.vue'
import TotalMerchant from './components/TotalMerchant.vue'
export default {
name: 'EquityTop',
components: {
TotalBill,
TotalMerchant
},
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.pie-box {
display: flex;
justify-content: space-between;
}
</style>
<template>
<div class="content">
<EquityLeft></EquityLeft>
<EquityRight></EquityRight>
</div>
</template>
<script>
import EquityLeft from './EquityLeft.vue'
import EquityRight from './EquityRight.vue'
export default {
name: 'Resident',
components: {
EquityLeft,
EquityRight
},
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.content {
display: flex;
justify-content: space-between;
// padding: 1.78vh 0 0;
// margin-top: 1.78vh;
}
</style>
<template>
<div>
<EquityTop></EquityTop>
<EquityBottom class="top-class"></EquityBottom>
</div>
</template>
<script>
import EquityTop from './EquityTop.vue'
import EquityBottom from './EquityBottom.vue'
export default {
name: 'Wholesale',
components: {
EquityTop,
EquityBottom
},
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.top-class {
margin-top: 1.78vh;
}
</style>
<template>
<div class="trend-box">
<box-title title="订单趋势"></box-title>
</div>
</template>
<script>
export default {
name: 'OrderTrends',
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.trend-box {
width: 64.17vw;
height: 34.22vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
}
</style>
<template>
<div class="trend-box">
<box-title title="产值趋势"></box-title>
</div>
</template>
<script>
export default {
name: 'ProductionTrend',
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.trend-box {
width: 64.17vw;
height: 34.22vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
}
</style>
<template>
<div>
<div class="bill-total-box">
<box-title title="提单总数"></box-title>
<div v-if="totalBillData.length" class="content-box">
<div class="text-box">
<div class="text">提单总数</div>
<div class="number-text">2,280,708</div>
</div>
<RightViewContent :chart="totalBillChart" :listData="totalBillData" :legentList="totalBillLegend" :legendColors="totalBillChart.colors"></RightViewContent>
</div>
<div v-else class="empty">
<Empty></Empty>
</div>
</div>
</div>
</template>
<script>
import RightViewContent from '../../solar/RightViewContent.vue'
export default {
name: 'TotalBill',
components: {
RightViewContent
},
data() {
return {
totalBillData: [
{
name: '光辉提款但',
num: '4568'
},
{
name: '非光辉提款但',
num: '4568'
}
],
totalBillChart: {
id: 'totalBill',
keys: ['name', 'num'],
height: '15vh',
colors: ['#FF7D5E', '#69EE9F'],
formatter: 'none'
},
totalBillLegend: [
{
name: 'name',
width: '7vw'
},
{
name: 'num',
type: 'number',
width: '5vw'
}
]
}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.bill-total-box {
width: 47.78vw;
height: 21.78vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.content-box {
display: flex;
padding: 3.03vh 0 0 2.92vw;
.text-box {
margin-right: 3.75vw;
.text {
font-weight: 500;
font-size: 14px;
color: #ffffff;
}
.number-text {
font-weight: 600;
font-size: 20px;
color: #5894ff;
background-image: -webkit-linear-gradient(left, #24d8ff, #7787ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
}
.empty {
height: 18.45vh;
display: flex;
align-items: center;
}
}
</style>
<template>
<div>
<div class="bill-total-box">
<box-title title="提单门店数"></box-title>
<div v-if="totalMerchantData.length" class="content-box">
<div class="text-box">
<div class="text">提单门店数</div>
<div class="number-text">2,280,708</div>
</div>
<RightViewContent
:chart="totalMerchantChart"
:listData="totalMerchantData"
:legentList="totalMerchantLegend"
:legendColors="totalMerchantChart.colors"
></RightViewContent>
</div>
<div v-else class="empty">
<Empty></Empty>
</div>
</div>
</div>
</template>
<script>
import RightViewContent from '../../solar/RightViewContent.vue'
export default {
name: 'TotalMerchant',
components: {
RightViewContent
},
data() {
return {
totalMerchantData: [
{
name: '光辉提款但',
num: '4568'
},
{
name: '非光辉提款但',
num: '4568'
}
],
totalMerchantChart: {
id: 'totalMerchant',
keys: ['name', 'num'],
height: '15.34vh',
colors: ['#EBA3FF', '#726BFF'],
formatter: 'none'
},
totalMerchantLegend: [
{
name: 'name',
width: '7vw'
},
{
name: 'num',
type: 'number',
width: '5vw'
}
]
}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.bill-total-box {
width: 47.78vw;
height: 21.78vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
.content-box {
display: flex;
padding: 3.03vh 0 0 2.92vw;
.text-box {
margin-right: 3.75vw;
.text {
font-weight: 500;
font-size: 14px;
color: #ffffff;
}
.number-text {
font-weight: 600;
font-size: 20px;
color: #5894ff;
background-image: -webkit-linear-gradient(left, #24d8ff, #7787ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
}
.empty {
height: 18.45vh;
display: flex;
align-items: center;
}
}
</style>
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
}, },
data() { data() {
return { return {
activeName: '1' activeName: '4'
} }
}, },
mounted() { mounted() {
......
...@@ -6,23 +6,51 @@ ...@@ -6,23 +6,51 @@
* @LastEditTime: 2023-07-06 10:09:59 * @LastEditTime: 2023-07-06 10:09:59
--> -->
<template> <template>
<div class="layout"> <div class="view-content">
阿斯顿发射点 <TopTab :tabList="tabList" @tabChange="changeTab" class="top-tab"></TopTab>
<template v-if="tabActive == 0">
<Resident></Resident>
</template>
<template v-else>
<Wholesale></Wholesale>
</template>
</div> </div>
</template> </template>
<script> <script>
import Resident from '../../equity/Resident.vue'
import Wholesale from '../../equity/Wholesale.vue'
export default { export default {
name: 'ViewEquity', name: 'ViewEquity',
components: {
Resident,
Wholesale
},
data() { data() {
return {} return {
tabList: ['驻店零售权益', '批发销售权益'],
tabActive: 0
}
}, },
mounted() { }, mounted() {},
methods: { methods: {
changeTab(index) {
this.tabActive = index
}
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.view-content {
width: 100%;
height: 100%;
box-sizing: border-box;
position: relative;
padding: 1.78vh 1.67vw;
gap: 0 16px;
.top-tab {
margin-bottom: 1.78vh;
}
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!