|
|
@ -1,39 +1,40 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<view class="page"> |
|
|
|
<view class="page"> |
|
|
|
|
|
|
|
<image class="bg" src="@/static/image/index/index2.png" mode="widthFix"></image> |
|
|
|
<view class="team"> |
|
|
|
<view class="team"> |
|
|
|
<uni-data-picker class="picker-input" placeholder="切换团队" popup-title="切换团队" preload :clear-icon="false" :localdata="list" v-model="partnerId" @change="teamChange"></uni-data-picker> |
|
|
|
<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> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<image class="banner" src="../../static/image/index/index1.png" mode="widthFix"></image> |
|
|
|
<image class="banner" src="@/static/image/index/index1.png" mode="widthFix"></image> |
|
|
|
<ul class="entry"> |
|
|
|
<ul class="entry"> |
|
|
|
<li @click="$util.to('../clients/clients')"> |
|
|
|
<li @click="$util.to('../clients/clients')"> |
|
|
|
<image class="icon" src="../../static/image/index/index3.png" mode="widthFix"></image> |
|
|
|
<image class="icon" src="@/static/image/index/index3.png" mode="widthFix"></image> |
|
|
|
<view class="text">客户</view> |
|
|
|
<view class="text">客户</view> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li @click="$util.to('../plans/plans')"> |
|
|
|
<li @click="$util.to('../plans/plans')"> |
|
|
|
<image class="icon" src="../../static/image/index/index4.png" mode="widthFix"></image> |
|
|
|
<image class="icon" src="@/static/image/index/index4.png" mode="widthFix"></image> |
|
|
|
<view class="text">方案</view> |
|
|
|
<view class="text">方案</view> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li @click="$util.to('../orders/orders')"> |
|
|
|
<li @click="$util.to('../orders/orders')"> |
|
|
|
<image class="icon" src="../../static/image/index/index5.png" mode="widthFix"></image> |
|
|
|
<image class="icon" src="@/static/image/index/index5.png" mode="widthFix"></image> |
|
|
|
<view class="text">订单</view> |
|
|
|
<view class="text">订单</view> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li @click="$util.to('../products/products')"> |
|
|
|
<li @click="$util.to('../products/products')"> |
|
|
|
<image class="icon" src="../../static/image/index/index6.png" mode="widthFix"></image> |
|
|
|
<image class="icon" src="@/static/image/index/index6.png" mode="widthFix"></image> |
|
|
|
<view class="text">产品</view> |
|
|
|
<view class="text">产品</view> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
|
|
|
|
|
|
|
|
<view class="panel"> |
|
|
|
<view class="panel"> |
|
|
|
<view class="title"> |
|
|
|
<view class="title" @click="toPanel(1)"> |
|
|
|
<view class="left"> |
|
|
|
<view class="left"> |
|
|
|
<image class="icon" src="../../static/image/index/index8.png" mode="widthFix"></image> |
|
|
|
<image class="icon" src="@/static/image/index/index8.png" mode="widthFix"></image> |
|
|
|
销售进展 |
|
|
|
销售进展 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="right"> |
|
|
|
<view class="right"> |
|
|
|
<image class="date" src="../../static/image/index/index7.png" mode="widthFix"></image> |
|
|
|
<image class="date" src="@/static/image/index/index7.png" mode="widthFix"></image> |
|
|
|
<text>本月</text> |
|
|
|
<text>本月</text> |
|
|
|
<image class="arrow" src="../../static/image/index/index10.png" mode="widthFix"></image> |
|
|
|
<image class="arrow" src="@/static/image/index/index10.png" mode="widthFix"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="data first"> |
|
|
|
<view class="data first"> |
|
|
@ -62,12 +63,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="panel"> |
|
|
|
<view class="panel"> |
|
|
|
<view class="title"> |
|
|
|
<view class="title y-title" @click="toPanel(1)"> |
|
|
|
<view class="left"> |
|
|
|
<view class="left"> |
|
|
|
<image class="icon" src="../../static/image/index/index9.png" mode="widthFix"></image> |
|
|
|
<image class="icon" src="@/static/image/index/index9.png" mode="widthFix"></image> |
|
|
|
年度业绩看板 |
|
|
|
年度业绩看板 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<image class="arrow" src="../../static/image/index/index10.png" mode="widthFix"></image> |
|
|
|
<image class="arrow" src="@/static/image/index/index10.png" mode="widthFix"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="data second"> |
|
|
|
<view class="data second"> |
|
|
|
<view class="line"> |
|
|
|
<view class="line"> |
|
|
@ -109,26 +110,21 @@ |
|
|
|
// 获取团队 |
|
|
|
// 获取团队 |
|
|
|
getInfo() { |
|
|
|
getInfo() { |
|
|
|
getTeamsByAccountId().then(({ data }) => { |
|
|
|
getTeamsByAccountId().then(({ data }) => { |
|
|
|
const result = [] |
|
|
|
|
|
|
|
data.map(e => { |
|
|
|
|
|
|
|
result.push({ |
|
|
|
|
|
|
|
text: e.partnerClassificationName, |
|
|
|
|
|
|
|
value: e.partnerId |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
// 默认选择第一个团队 |
|
|
|
// 默认选择第一个团队 |
|
|
|
if (result.length) { |
|
|
|
if (data.length) { |
|
|
|
const val = result[0].value |
|
|
|
this.partnerId = data[0].partnerId |
|
|
|
this.partnerId = val |
|
|
|
uni.setStorageSync('team', data[0]) |
|
|
|
uni.setStorageSync('partnerId', val) |
|
|
|
|
|
|
|
uni.setStorageSync('partnerClassificationName', result[0].text) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
this.list = result |
|
|
|
this.list = data |
|
|
|
}).catch(e => {}) |
|
|
|
}).catch(e => {}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 团队选择回调 |
|
|
|
// 团队选择回调 |
|
|
|
teamChange() { |
|
|
|
teamChange() { |
|
|
|
uni.setStorageSync('partnerId', this.partnerId) |
|
|
|
uni.setStorageSync('partnerId', this.partnerId) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 提示暂未开放 |
|
|
|
|
|
|
|
toPanel(i) { |
|
|
|
|
|
|
|
this.$util.errMsg('功能暂未开放!') |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -136,9 +132,17 @@ |
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
<style scoped lang="scss"> |
|
|
|
.page { |
|
|
|
.page { |
|
|
|
|
|
|
|
position: relative; |
|
|
|
min-height: 100%; |
|
|
|
min-height: 100%; |
|
|
|
padding: 30rpx 22rpx; |
|
|
|
padding: 30rpx 22rpx; |
|
|
|
background: url(../../static/image/index/index2.png) 0 0/100% 100% no-repeat; |
|
|
|
} |
|
|
|
|
|
|
|
.bg { |
|
|
|
|
|
|
|
z-index: -1; |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: 0; |
|
|
|
|
|
|
|
left: 0; |
|
|
|
|
|
|
|
width: 100%; |
|
|
|
|
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
.team { |
|
|
|
.team { |
|
|
|
width: 200rpx; |
|
|
|
width: 200rpx; |
|
|
@ -173,6 +177,9 @@ |
|
|
|
padding: 17rpx 20rpx; |
|
|
|
padding: 17rpx 20rpx; |
|
|
|
background: linear-gradient(90deg, #E5EFFF 0%, #FFFFFF 100%); |
|
|
|
background: linear-gradient(90deg, #E5EFFF 0%, #FFFFFF 100%); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.y-title { |
|
|
|
|
|
|
|
background: linear-gradient(90deg, #FFF5E5 0%, #FFFFFF 100%); |
|
|
|
|
|
|
|
} |
|
|
|
.left { |
|
|
|
.left { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |