|
|
|
<template>
|
|
|
|
<view class="page">
|
|
|
|
<image class="bg" src="@/static/image/index/index2.png" mode="widthFix"></image>
|
|
|
|
<view class="team">
|
|
|
|
<uni-data-picker class="picker-input" placeholder="切换团队" popup-title="切换团队" preload :clear-icon="false" :localdata="list" :map="{text: 'partnerClassificationName', value: 'partnerId'}" v-model="partnerId" @change="teamChange"></uni-data-picker>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<image class="banner" src="@/static/image/index/index1.png" mode="widthFix"></image>
|
|
|
|
<ul class="entry">
|
|
|
|
<li @click="$util.to('../clients/clients')">
|
|
|
|
<image class="icon" src="@/static/image/index/index3.png" mode="widthFix"></image>
|
|
|
|
<view class="text">客户</view>
|
|
|
|
</li>
|
|
|
|
<li @click="$util.to('../plans/plans')">
|
|
|
|
<image class="icon" src="@/static/image/index/index4.png" mode="widthFix"></image>
|
|
|
|
<view class="text">方案</view>
|
|
|
|
</li>
|
|
|
|
<li @click="$util.to('../orders/orders')">
|
|
|
|
<image class="icon" src="@/static/image/index/index5.png" mode="widthFix"></image>
|
|
|
|
<view class="text">订单</view>
|
|
|
|
</li>
|
|
|
|
<li @click="$util.to('../products/products')">
|
|
|
|
<image class="icon" src="@/static/image/index/index6.png" mode="widthFix"></image>
|
|
|
|
<view class="text">产品</view>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<view class="panel">
|
|
|
|
<view class="title" @click="toPanel(1)">
|
|
|
|
<view class="left">
|
|
|
|
<image class="icon" src="@/static/image/index/index8.png" mode="widthFix"></image>
|
|
|
|
销售进展
|
|
|
|
</view>
|
|
|
|
<view class="right">
|
|
|
|
<image class="date" src="@/static/image/index/index7.png" mode="widthFix"></image>
|
|
|
|
<text>本月</text>
|
|
|
|
<image class="arrow" src="@/static/image/index/index10.png" mode="widthFix"></image>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="data first">
|
|
|
|
<view class="line">
|
|
|
|
<view class="item">
|
|
|
|
<view class="name">本月新增客户</view>
|
|
|
|
<view class="val">152</view>
|
|
|
|
</view>
|
|
|
|
<view class="item">
|
|
|
|
<view class="name">我的客户</view>
|
|
|
|
<view class="val">23</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="line">
|
|
|
|
<view class="item">
|
|
|
|
<view class="name">本月新增产品试用</view>
|
|
|
|
<view class="val">152</view>
|
|
|
|
</view>
|
|
|
|
<view class="item">
|
|
|
|
<view class="name">试用客户</view>
|
|
|
|
<view class="val">23</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<view class="panel">
|
|
|
|
<view class="title y-title" @click="toPanel(1)">
|
|
|
|
<view class="left">
|
|
|
|
<image class="icon" src="@/static/image/index/index9.png" mode="widthFix"></image>
|
|
|
|
年度业绩看板
|
|
|
|
</view>
|
|
|
|
<image class="arrow" src="@/static/image/index/index10.png" mode="widthFix"></image>
|
|
|
|
</view>
|
|
|
|
<view class="data second">
|
|
|
|
<view class="line">
|
|
|
|
<view class="item">
|
|
|
|
<view class="val">12W</view>
|
|
|
|
<view class="name">成交总额</view>
|
|
|
|
</view>
|
|
|
|
<view class="item">
|
|
|
|
<view class="val">0.9W</view>
|
|
|
|
<view class="name">收益金额</view>
|
|
|
|
</view>
|
|
|
|
<view class="item">
|
|
|
|
<view class="val">8.3w</view>
|
|
|
|
<view class="name">已到账</view>
|
|
|
|
</view>
|
|
|
|
<view class="item">
|
|
|
|
<view class="val">1.4w</view>
|
|
|
|
<view class="name">未到账</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { getTeamsByAccountId } from '@/apis/modules/client.js'
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
partnerId: this.$util.getBmId() || '',
|
|
|
|
list: [],
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
this.getInfo()
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
// 获取团队
|
|
|
|
getInfo() {
|
|
|
|
getTeamsByAccountId().then(({ data }) => {
|
|
|
|
// 默认选择第一个团队
|
|
|
|
if (data.length) {
|
|
|
|
this.partnerId = data[0].partnerId
|
|
|
|
uni.setStorageSync('team', data[0])
|
|
|
|
}
|
|
|
|
this.list = data
|
|
|
|
}).catch(e => {})
|
|
|
|
},
|
|
|
|
// 团队选择回调
|
|
|
|
teamChange() {
|
|
|
|
uni.setStorageSync('partnerId', this.partnerId)
|
|
|
|
},
|
|
|
|
// 提示暂未开放
|
|
|
|
toPanel(i) {
|
|
|
|
this.$util.errMsg('功能暂未开放!')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.page {
|
|
|
|
position: relative;
|
|
|
|
min-height: 100%;
|
|
|
|
padding: 30rpx 22rpx;
|
|
|
|
}
|
|
|
|
.bg {
|
|
|
|
z-index: -1;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
.team {
|
|
|
|
width: 200rpx;
|
|
|
|
margin-bottom: 30rpx;
|
|
|
|
}
|
|
|
|
.banner {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.entry {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-around;
|
|
|
|
align-items: center;
|
|
|
|
margin: 10rpx 0 30rpx;
|
|
|
|
text-align: center;
|
|
|
|
.icon {
|
|
|
|
width: 78rpx;
|
|
|
|
}
|
|
|
|
.text {
|
|
|
|
font-size: 28rpx;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.panel {
|
|
|
|
margin: 20rpx 10rpx;
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 20rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
.title {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
padding: 17rpx 20rpx;
|
|
|
|
background: linear-gradient(90deg, #E5EFFF 0%, #FFFFFF 100%);
|
|
|
|
}
|
|
|
|
.y-title {
|
|
|
|
background: linear-gradient(90deg, #FFF5E5 0%, #FFFFFF 100%);
|
|
|
|
}
|
|
|
|
.left {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 30rpx;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
.right {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 28rpx;
|
|
|
|
color: #333;
|
|
|
|
text {
|
|
|
|
margin: 0 15rpx 0 8rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.icon {
|
|
|
|
width: 36rpx;
|
|
|
|
margin-right: 10rpx;
|
|
|
|
}
|
|
|
|
.date {
|
|
|
|
width: 26rpx;
|
|
|
|
}
|
|
|
|
.arrow {
|
|
|
|
width: 16rpx;
|
|
|
|
}
|
|
|
|
.data {
|
|
|
|
padding: 33rpx 36rpx;
|
|
|
|
}
|
|
|
|
.line {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.first {
|
|
|
|
.item:first-child {
|
|
|
|
width: 65%;
|
|
|
|
}
|
|
|
|
.name {
|
|
|
|
margin-bottom: 14rpx;
|
|
|
|
font-size: 24rpx;
|
|
|
|
color: #999;
|
|
|
|
}
|
|
|
|
.val {
|
|
|
|
font-size: 30rpx;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
.line:first-child {
|
|
|
|
margin-bottom: 32rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.second {
|
|
|
|
padding: 38rpx 36rpx;
|
|
|
|
.line {
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
.item {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.val {
|
|
|
|
margin-bottom: 10rpx;
|
|
|
|
font-size: 30rpx;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
.name {
|
|
|
|
font-size: 24rpx;
|
|
|
|
color: #999;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|