226 lines
4.2 KiB
Vue
226 lines
4.2 KiB
Vue
<template>
|
|
<view class="content">
|
|
<view class="container">
|
|
<headers :titles="titles"><uni-icons type="arrow-left" color="#fff" size="22px"></uni-icons></headers>
|
|
<view class="top-box">
|
|
<view class="bai-box">
|
|
<view class="title-">本月分润</view>
|
|
<view class="price-">¥{{dealNum(formData.fenrun)||0.00}}</view>
|
|
<view class="anniu" @click="goIncome()">
|
|
查看明细
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="bg-box">
|
|
<view class="box-h" @click="goteam()">
|
|
<view class="dis">
|
|
<view class="icon-box">
|
|
<image src="../../static/imgs/r1.png" mode=""></image>
|
|
</view>
|
|
<view class="">
|
|
团队总交易量
|
|
</view>
|
|
</view>
|
|
|
|
<view class="dis">
|
|
<view class="">{{dealNum(formData.agentGroupTradeCount)||0.00}}</view>
|
|
<u-icon name="arrow-right" size="18"></u-icon>
|
|
</view>
|
|
</view>
|
|
<view class="box-h">
|
|
<view class="dis">
|
|
<view class="icon-box">
|
|
<image src="../../static/imgs/r2.png" mode=""></image>
|
|
</view>
|
|
<view class="">
|
|
本月直营激活商户数量
|
|
</view>
|
|
</view>
|
|
|
|
<view class="dis">
|
|
<view class="">{{formData.zhiyingMerNum||0}}</view>
|
|
|
|
</view>
|
|
</view>
|
|
<view class="box-h">
|
|
<view class="dis">
|
|
<view class="icon-box">
|
|
<image src="../../static/imgs/r3.png" mode=""></image>
|
|
</view>
|
|
<view class="">
|
|
本月团队激活用户数量
|
|
</view>
|
|
</view>
|
|
<view class="dis">
|
|
<view class="">{{formData.merNum||0}}</view>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import request from '../../utils/request.js'
|
|
import headers from '../../components/header/headers.vue'
|
|
import tabbar from '../../components/tabbar/tabbar.vue'
|
|
export default {
|
|
data() {
|
|
return {
|
|
titles: "业绩",
|
|
formData: {}
|
|
}
|
|
},
|
|
onShow() {
|
|
this.uaAgentIndex()
|
|
this.achievement()
|
|
},
|
|
components: {
|
|
headers
|
|
},
|
|
methods: {
|
|
dealNum(data) {
|
|
console.log(data);
|
|
if (data) {
|
|
return parseFloat(data).toFixed(2)
|
|
} else {
|
|
return '0.00'
|
|
}
|
|
},
|
|
achievement() {
|
|
request({
|
|
url: '/app/uaAgent/achievement',
|
|
method: 'post',
|
|
data: {}
|
|
}).then(res => {
|
|
|
|
this.formData.zhiyingMerNum = res.zhiyingMerNum,
|
|
this.formData.merNum = res.merNum,
|
|
this.formData.fenrun = res.fenrun
|
|
this.$forceUpdate()
|
|
})
|
|
},
|
|
uaAgentIndex() {
|
|
request({
|
|
url: '/app/uaAgent/index',
|
|
method: 'post',
|
|
data: {}
|
|
}).then(res => {
|
|
this.formData.agentGroupTradeCount = res.agentGroupTradeCount
|
|
this.$forceUpdate()
|
|
})
|
|
},
|
|
goteam() {
|
|
uni.navigateTo({
|
|
url: '/homePages/performance/team'
|
|
})
|
|
},
|
|
goIncome() {
|
|
uni.navigateTo({
|
|
url: '/homePages/performance/income'
|
|
})
|
|
},
|
|
goback() {
|
|
uni.navigateBack()
|
|
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.content {
|
|
background: #fff;
|
|
|
|
height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
background: #fff;
|
|
box-sizing: border-box;
|
|
padding-top: 88px;
|
|
}
|
|
|
|
.top-box {
|
|
width: 100%;
|
|
height: 160px;
|
|
background: linear-gradient(135deg, #079F54 0%, #61E9AF 100%);
|
|
|
|
box-sizing: border-box;
|
|
padding: 1px;
|
|
}
|
|
|
|
.bai-box {
|
|
width: 95%;
|
|
border-radius: 6px;
|
|
// background: ;
|
|
background: rgba(255, 255, 255, 0.7);
|
|
box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.6), inset 0px -20px 20px 0px rgba(255, 255, 255, 0.7);
|
|
border-radius: 8px 8px 8px 8px;
|
|
margin: 10px auto;
|
|
box-sizing: border-box;
|
|
padding: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
.anniu {
|
|
width: 64px;
|
|
height: 24px;
|
|
border-radius: 50px;
|
|
background: #fff;
|
|
color: #138E51;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
margin: 10px auto;
|
|
}
|
|
|
|
.price- {
|
|
font-size: 28px;
|
|
|
|
}
|
|
|
|
.title- {
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
color: #999999;
|
|
}
|
|
|
|
.box-h {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin: 15px auto;
|
|
|
|
}
|
|
|
|
.icon-box {
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
margin-right: 10px;
|
|
|
|
image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.dis {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.bg-box {
|
|
color: #333333;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 15px;
|
|
}
|
|
</style> |