|
|
|
@ -1,39 +1,40 @@ |
|
|
|
|
<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" 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> |
|
|
|
|
|
|
|
|
|
<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"> |
|
|
|
|
<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> |
|
|
|
|
</li> |
|
|
|
|
<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> |
|
|
|
|
</li> |
|
|
|
|
<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> |
|
|
|
|
</li> |
|
|
|
|
<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> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
|
|
|
|
|
<view class="panel"> |
|
|
|
|
<view class="title"> |
|
|
|
|
<view class="title" @click="toPanel(1)"> |
|
|
|
|
<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 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> |
|
|
|
|
<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 first"> |
|
|
|
@ -62,12 +63,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="panel"> |
|
|
|
|
<view class="title"> |
|
|
|
|
<view class="title y-title" @click="toPanel(1)"> |
|
|
|
|
<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> |
|
|
|
|
<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 class="data second"> |
|
|
|
|
<view class="line"> |
|
|
|
@ -109,26 +110,21 @@ |
|
|
|
|
// 获取团队 |
|
|
|
|
getInfo() { |
|
|
|
|
getTeamsByAccountId().then(({ data }) => { |
|
|
|
|
const result = [] |
|
|
|
|
data.map(e => { |
|
|
|
|
result.push({ |
|
|
|
|
text: e.partnerClassificationName, |
|
|
|
|
value: e.partnerId |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
// 默认选择第一个团队 |
|
|
|
|
if (result.length) { |
|
|
|
|
const val = result[0].value |
|
|
|
|
this.partnerId = val |
|
|
|
|
uni.setStorageSync('partnerId', val) |
|
|
|
|
uni.setStorageSync('partnerClassificationName', result[0].text) |
|
|
|
|
if (data.length) { |
|
|
|
|
this.partnerId = data[0].partnerId |
|
|
|
|
uni.setStorageSync('team', data[0]) |
|
|
|
|
} |
|
|
|
|
this.list = result |
|
|
|
|
this.list = data |
|
|
|
|
}).catch(e => {}) |
|
|
|
|
}, |
|
|
|
|
// 团队选择回调 |
|
|
|
|
teamChange() { |
|
|
|
|
uni.setStorageSync('partnerId', this.partnerId) |
|
|
|
|
}, |
|
|
|
|
// 提示暂未开放 |
|
|
|
|
toPanel(i) { |
|
|
|
|
this.$util.errMsg('功能暂未开放!') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -136,9 +132,17 @@ |
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|
.page { |
|
|
|
|
position: relative; |
|
|
|
|
min-height: 100%; |
|
|
|
|
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 { |
|
|
|
|
width: 200rpx; |
|
|
|
@ -173,6 +177,9 @@ |
|
|
|
|
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; |