<template>
|
|
<view class="page">
|
|
<!-- <navbar
|
|
title="我的团队"
|
|
leftClick
|
|
@leftClick="$utils.navigateBack"
|
|
bgColor="#DC2828"
|
|
color="#fff"
|
|
/> -->
|
|
<navbar title="我的团队" leftClick @leftClick="$utils.navigateBack" />
|
|
|
|
<view class="team">
|
|
<view class="team-message">
|
|
<view class="leftImage">
|
|
<image src="" mode=""></image>
|
|
</view>
|
|
<view class="number-team">
|
|
<view class="top-number">
|
|
<text style="font-weight: 500;">13845131854</text>
|
|
<view class="salesman">一级业务员</view>
|
|
</view>
|
|
<view class="bottom-number">
|
|
<view class="performance">
|
|
<view class="team-sum">
|
|
团队总业绩
|
|
</view>
|
|
<view class="figure">
|
|
|
|
<text style="margin-left: 30rpx; color: #DC2828; font-weight: 600;">¥</text><text
|
|
class="money">66666</text>
|
|
</view>
|
|
</view>
|
|
<view class="withdraw" @click="toPurse">
|
|
<view class="withdraw-button">
|
|
去提现
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="user">
|
|
<uv-tabs :list="tabs" :activeStyle="{color : '#FD5100', fontWeight : 600}" lineColor="#FD5100"
|
|
lineHeight="8rpx" lineWidth="50rpx" @click="clickTabs"></uv-tabs>
|
|
</view>
|
|
<view class="user-list">
|
|
<view class="head" v-for="(item,index) in 20">
|
|
<view class="headImage">
|
|
<image src="" mode=""></image>
|
|
</view>
|
|
<view class="info">
|
|
<view class="name">
|
|
用户138xxxxxxxx
|
|
</view>
|
|
<view class="headBtn">
|
|
下单量:<text>12</text>单 | 佣金: <text style="color: darkorange;">120元</text>
|
|
</view>
|
|
<view class="tips">
|
|
已加入平台<text>120</text>天
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
state: -1,
|
|
tabs: [{
|
|
name: '直销用户'
|
|
},
|
|
{
|
|
name: '间推用户'
|
|
},
|
|
|
|
],
|
|
};
|
|
},
|
|
methods: {
|
|
//点击tab栏
|
|
clickTabs(index) {
|
|
if (index == 0) {
|
|
this.state = -1;
|
|
} else {
|
|
this.state = index - 1;
|
|
}
|
|
// this.queryParams.pageSize = 10
|
|
// this.orderPage()
|
|
},
|
|
// 跳转到钱包提现
|
|
toPurse() {
|
|
uni.navigateTo({
|
|
url: '/pages_order/mine/purse'
|
|
})
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.page {
|
|
.team {
|
|
height: 250rpx;
|
|
background-color: #DC2828;
|
|
padding-top: 50rpx;
|
|
|
|
.team-message {
|
|
height: 200rpx;
|
|
width: 90%;
|
|
background-color: #fff;
|
|
margin: 0 30rpx;
|
|
position: relative;
|
|
border-radius: 10rpx;
|
|
|
|
.leftImage {
|
|
width: 150rpx;
|
|
height: 150rpx;
|
|
background-image: url(/static/image/center/3.png);
|
|
background-size: 100% 100%;
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
margin-right: 15rpx;
|
|
display: inline-block;
|
|
position: absolute;
|
|
top: 25rpx;
|
|
left: 26rpx;
|
|
}
|
|
|
|
.number-team {
|
|
width: 70%;
|
|
display: inline-block;
|
|
position: absolute;
|
|
top: 0rpx;
|
|
left: 202rpx;
|
|
|
|
.top-number {
|
|
height: 70rpx;
|
|
position: relative;
|
|
border-bottom: #DC2828 dotted 1rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0 20rpx;
|
|
|
|
.salesman {
|
|
position: absolute;
|
|
height: 40rpx;
|
|
width: 160rpx;
|
|
text-align: center;
|
|
background-color: #FF6700;
|
|
border-radius: 50rpx;
|
|
display: inline;
|
|
margin-left: 240rpx;
|
|
color: #fff;
|
|
font-size: 24rpx;
|
|
}
|
|
}
|
|
|
|
.bottom-number {
|
|
height: 120rpx;
|
|
position: relative;
|
|
|
|
.performance {
|
|
width: 50%;
|
|
height: 100%;
|
|
display: inline-block;
|
|
position: absolute;
|
|
top: 0rpx;
|
|
|
|
.team-sum {
|
|
display: inline-block;
|
|
width: 180rpx;
|
|
background-color: #F99F9F;
|
|
border-radius: 50rpx;
|
|
text-align: center;
|
|
margin: 0rpx 20rpx;
|
|
margin-top: 8rpx;
|
|
color: #DC2828;
|
|
font-size: 26rpx;
|
|
}
|
|
|
|
.figure {
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
display: flex;
|
|
// align-items: center;
|
|
padding-top: 10rpx;
|
|
|
|
.money {
|
|
font-size: 40rpx;
|
|
color: #DC2828;
|
|
display: inline-block;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
}
|
|
|
|
.withdraw {
|
|
width: 50%;
|
|
height: 100%;
|
|
display: inline-block;
|
|
position: absolute;
|
|
right: 0rpx;
|
|
display: flex;
|
|
justify-content: center; //横轴居中
|
|
align-items: center; //竖轴居中
|
|
|
|
.withdraw-button {
|
|
background-color: #DC2828;
|
|
color: #fff;
|
|
border-radius: 50rpx;
|
|
text-align: center;
|
|
height: 62rpx;
|
|
width: 200rpx;
|
|
line-height: 62rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.user {
|
|
height: 120rpx;
|
|
background-color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
padding-left: 30rpx;
|
|
}
|
|
|
|
.user-list {
|
|
margin: 0 20rpx;
|
|
|
|
.head {
|
|
z-index: -1;
|
|
display: flex;
|
|
background-color: #fff;
|
|
padding: 0rpx 20rpx;
|
|
align-items: center;
|
|
position: relative;
|
|
height: 100rpx;
|
|
margin-top: 20rpx;
|
|
border-radius: 20rpx;
|
|
|
|
.headImage {
|
|
width: 75rpx;
|
|
height: 75rpx;
|
|
background-image: url(/static/image/center/3.png);
|
|
background-size: 100% 100%;
|
|
overflow: hidden;
|
|
border-radius: 50%;
|
|
margin-right: 15rpx;
|
|
}
|
|
|
|
.info {
|
|
font-size: 22rpx;
|
|
|
|
.name {
|
|
font-size: 26rpx;
|
|
color: #333;
|
|
}
|
|
|
|
.tips {
|
|
font-size: 22rpx;
|
|
color: #999999;
|
|
margin-top: 10rpx;
|
|
}
|
|
}
|
|
|
|
.headBtn {
|
|
position: absolute;
|
|
right: 60rpx;
|
|
top: 38rpx;
|
|
color: #333;
|
|
font-size: 26rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|