|
|
@ -1,147 +1,152 @@ |
|
|
|
<template> |
|
|
|
<div class="dataOverview"> |
|
|
|
<van-nav-bar title="团队信息" left-text="返回" left-arrow @click-left="onClickLeft" /> |
|
|
|
<div class="top"> |
|
|
|
<p class="title">2021年总业绩</p> |
|
|
|
<p class="money">¥{{list.year_count | capitalize}}</p> |
|
|
|
<p class="monthMoney">本月业绩:{{list.month_count | capitalize}}</p> |
|
|
|
</div> |
|
|
|
<div class="providersSum"> |
|
|
|
<p class="title">服务商总数量</p> |
|
|
|
<p class="num">{{list.level_count | capitalize}}</p> |
|
|
|
<div class="list"> |
|
|
|
<div class="item" @click="toTeamList('1','5')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/shareholder.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">股东</p> |
|
|
|
<p class="num">{{list.level_5}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="item" @click="toTeamList('1','4')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/filiale.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">分公司</p> |
|
|
|
<p class="num">{{list.level_4}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="item" @click="toTeamList('1','3')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/partner.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">合伙人</p> |
|
|
|
<p class="num">{{list.level_3}}</p> |
|
|
|
<van-nav-bar title="团队信息" left-text="返回" left-arrow @click-left="onClickLeft" :fixed="true" /> |
|
|
|
<van-pull-refresh v-model="isLoading" @refresh="onRefresh"> |
|
|
|
<div class="top"> |
|
|
|
<p class="title">轻未来2021年总业绩</p> |
|
|
|
<p class="money">¥{{list.year_count | capitalize}}</p> |
|
|
|
<p class="monthMoney">本月业绩:{{list.month_count | capitalize}}</p> |
|
|
|
</div> |
|
|
|
<div class="providersSum aa"> |
|
|
|
<p class="title">服务商总数量</p> |
|
|
|
<p class="num">{{list.level_count | capitalize}}</p> |
|
|
|
<div class="list"> |
|
|
|
<div class="item" @click="toTeamList('1','5')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/shareholder.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">股东</p> |
|
|
|
<p class="num">{{list.level_5}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="item" @click="toTeamList('1','2')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/general.svg" alt=""> |
|
|
|
<div class="item" @click="toTeamList('1','4')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/filiale.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">分公司</p> |
|
|
|
<p class="num">{{list.level_4}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">总代</p> |
|
|
|
<p class="num">{{list.level_2}}</p> |
|
|
|
<div class="item" @click="toTeamList('1','3')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/partner.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">合伙人</p> |
|
|
|
<p class="num">{{list.level_3}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="item" style="margin-bottom:0px" @click="toTeamList('1','1')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/vip.svg" alt=""> |
|
|
|
<div class="item" @click="toTeamList('1','2')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/general.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">总代</p> |
|
|
|
<p class="num">{{list.level_2}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">vip</p> |
|
|
|
<p class="num">{{list.level_1}}</p> |
|
|
|
<div class="item" style="margin-bottom:0px" @click="toTeamList('1','1')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/vip.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">vip</p> |
|
|
|
<p class="num">{{list.level_1}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="providersSum1 providersSum"> |
|
|
|
<p class="title">本月新增服务商</p> |
|
|
|
<div class="list"> |
|
|
|
<div class="item" @click="toTeamList('2','5')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/shareholder.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">股东</p> |
|
|
|
<p class="num">{{list.month_add_level_5}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="item" @click="toTeamList('2','4')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/filiale.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">分公司</p> |
|
|
|
<p class="num">{{list.month_add_level_4}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="item" @click="toTeamList('2','3')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/partner.svg" alt=""> |
|
|
|
<div class="providersSum1 providersSum"> |
|
|
|
<p class="title">本月新增服务商</p> |
|
|
|
<div class="list"> |
|
|
|
<div class="item" @click="toTeamList('2','5')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/shareholder.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">股东</p> |
|
|
|
<p class="num">{{list.month_add_level_5}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">合伙人</p> |
|
|
|
<p class="num">{{list.month_add_level_3}}</p> |
|
|
|
<div class="item" @click="toTeamList('2','4')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/filiale.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">分公司</p> |
|
|
|
<p class="num">{{list.month_add_level_4}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="item" @click="toTeamList('2','2')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/general.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">总代</p> |
|
|
|
<p class="num">{{list.month_add_level_2}}</p> |
|
|
|
<div class="item" @click="toTeamList('2','3')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/partner.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">合伙人</p> |
|
|
|
<p class="num">{{list.month_add_level_3}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="item" style="margin-bottom:0px" @click="toTeamList('2','1')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/vip.svg" alt=""> |
|
|
|
<div class="item" @click="toTeamList('2','2')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/general.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">总代</p> |
|
|
|
<p class="num">{{list.month_add_level_2}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">vip</p> |
|
|
|
<p class="num">{{list.month_add_level_1}}</p> |
|
|
|
<div class="item" style="margin-bottom:0px" @click="toTeamList('2','1')"> |
|
|
|
<div class="left"> |
|
|
|
<img src="../../assets/vip.svg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="right"> |
|
|
|
<p class="name">vip</p> |
|
|
|
<p class="num">{{list.month_add_level_1}}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="moneyRanking"> |
|
|
|
<div class="title">本月团队业绩排名TOP</div> |
|
|
|
<div class="list"> |
|
|
|
<div class="item" v-for="(item,index) of list.month_money_top" :key="index"> |
|
|
|
<div class="rankNum"> |
|
|
|
<p>{{index+1}}</p> |
|
|
|
</div> |
|
|
|
<div class="teamImg"> |
|
|
|
<img :src="item.headimg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="teamInfo"> |
|
|
|
<div class="teamName">{{item.username}}</div> |
|
|
|
<div class="teamMoney">{{list.today_month}}月打款业绩:{{item.team_integral | capitalize}}</div> |
|
|
|
<div class="teamNum">注册时间:{{item.created_at | time}}</div> |
|
|
|
|
|
|
|
<div class="moneyRanking"> |
|
|
|
<div class="title">本月团队业绩排名TOP</div> |
|
|
|
<div class="list"> |
|
|
|
<div class="item" v-for="(item,index) of list.month_money_top" :key="index"> |
|
|
|
<div class="rankNum"> |
|
|
|
<p>{{index+1}}</p> |
|
|
|
</div> |
|
|
|
<div class="teamImg"> |
|
|
|
<img :src="item.headimg" alt=""> |
|
|
|
</div> |
|
|
|
<div class="teamInfo"> |
|
|
|
<div class="teamName">{{item.username}}</div> |
|
|
|
<div class="teamMoney">{{list.today_month}}月打款业绩:{{item.team_integral | capitalize}}</div> |
|
|
|
<div class="teamNum">注册时间:{{item.created_at | time}}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</van-pull-refresh> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import data from "@/api/data.js"; |
|
|
|
import { |
|
|
|
NavBar |
|
|
|
NavBar, |
|
|
|
PullRefresh |
|
|
|
} from 'vant'; |
|
|
|
export default { |
|
|
|
name: "dataOverview", |
|
|
|
components: { |
|
|
|
"van-nav-bar": NavBar |
|
|
|
"van-nav-bar": NavBar, |
|
|
|
'van-pull-refresh': PullRefresh |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
list: {}, |
|
|
|
id: '', |
|
|
|
isLoading: false, |
|
|
|
} |
|
|
|
}, |
|
|
|
filters: { |
|
|
@ -158,6 +163,10 @@ |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
onRefresh() { |
|
|
|
this.getData() |
|
|
|
this.isLoading = false; |
|
|
|
}, |
|
|
|
onClickLeft() { |
|
|
|
this.$router.go(-1) |
|
|
|
}, |
|
|
@ -184,22 +193,27 @@ |
|
|
|
<style lang="scss" scoped> |
|
|
|
.dataOverview { |
|
|
|
background: #3C3F50; |
|
|
|
|
|
|
|
::v-deep .van-nav-bar__content{ |
|
|
|
background: RGBA(63, 66, 88, 1); |
|
|
|
|
|
|
|
::v-deep .van-nav-bar__content { |
|
|
|
background: RGBA(63, 66, 88, 1); |
|
|
|
} |
|
|
|
::v-deep .van-nav-bar__title{ |
|
|
|
|
|
|
|
::v-deep .van-nav-bar__title { |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
::v-deep .van-nav-bar__text{ |
|
|
|
|
|
|
|
::v-deep .van-nav-bar__text { |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
::v-deep .van-icon-arrow-left::before{ |
|
|
|
|
|
|
|
::v-deep .van-icon-arrow-left::before { |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
::v-deep .van-hairline--bottom::after{ |
|
|
|
|
|
|
|
::v-deep .van-hairline--bottom::after { |
|
|
|
border: none; |
|
|
|
} |
|
|
|
|
|
|
|
.top { |
|
|
|
width: 750px; |
|
|
|
height: 334px; |
|
|
@ -209,6 +223,9 @@ |
|
|
|
padding: 0 70px; |
|
|
|
padding-top: 46px; |
|
|
|
margin-bottom: 50px; |
|
|
|
position: fixed; |
|
|
|
top: 85px; |
|
|
|
z-index: 999; |
|
|
|
|
|
|
|
.title { |
|
|
|
height: 40px; |
|
|
@ -245,6 +262,10 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.aa { |
|
|
|
padding-top: 58.53vw !important; |
|
|
|
} |
|
|
|
|
|
|
|
.providersSum { |
|
|
|
padding: 50px 70px; |
|
|
|
min-height: 580px; |
|
|
|