lower-level.vue 3.9 KB
<template>
	<view>
		<!-- title -->
		<view class="lower-title">
			<view class="lower-top">
				<view>
					<view>{{comm}}</view>
					<view>可提现奖励</view>
				</view>
				<view @click="toTi">提现</view>
			</view>
			
			<view class="lower-bottom">
				<!-- 占位 -->
				<view></view> 
				<view>
					<view>{{comm_sum}}</view>
					<view>累计获得奖励</view>
				</view>
				<view>
					<view>{{comm_month}}</view>
					<view>本月获得奖励</view>
				</view>
			</view>
			
		</view>
		
		
		<view class="nav-wrp">
			<view class="nav-list">
				<view>
					<image src="../../../static/up.png" mode=""></image>
					<view>当前奖励比例</view>
				</view>
				<image src="../../../static/back.png" mode=""></image>
			</view>
			
			<view class="nav-list">
				<view>
					<image src="../../../static/all.png" mode=""></image>
					<view>我的事业</view>
				</view>
				<image src="../../../static/back.png" mode=""></image>
			</view>
			
			<view class="nav-list">
				<view>
					<image src="../../../static/mssion.png" mode=""></image>
					<view>奖励清单</view>
				</view>
				<image src="../../../static/back.png" mode=""></image>
			</view>
			
			<view class="nav-list">
				<view>
					<image src="../../../static/friend.png" mode=""></image>
					<view>我的伙伴</view>
				</view>
				<image src="../../../static/back.png" mode=""></image>
			</view>
			
			<view class="nav-list">
				<view>
					<image src="../../../static/group.png" mode=""></image>
					<view>我的二维码</view>
				</view>
				<image src="../../../static/back.png" mode=""></image>
			</view>
			
			
			
		</view>
		
		
		
	</view>
</template>

<script>
	import request from "../../../App.vue"
	export default {
		data() {
			return {
				// 可提现 累计 今日
				comm:'',
				comm_sum:'',
				comm_month:'',
			};
		},
		methods:{
			toTi(){
				uni.navigateTo({
					url:'/pages/user/withdraw/withdraw'
				})
			}
		},
		onLoad:function(){
			request.post('/api/user/commission').then(r=>{
				if(r.code == 1){
					this.comm = r.data.commission
					this.comm_sum = r.data.commission_month
					this.comm_month = r.data.commission_sum
				}
			})
		}
	}
</script>

<style lang="scss" scoped>
	*{
		margin: 0;
		padding: 0;
		box-sizing: border-box;
	}
	
	.lower-title{
		box-shadow: 4px 3px 6px 0px #ff5722a6;
		width: 686rpx;
		background-size: cover;
		margin: 0 auto;
		margin-top: 32rpx;
		border-radius: 16rpx;
		background-image: url('../../../static/lower-level.png');
		padding:48rpx 32rpx 32rpx 32rpx;
		.lower-top{
			display: flex;
			align-items: flex-start;
			justify-content: space-between;
			>view:first-child{
				color: white;
				>view:first-child{
					font-size: 56rpx;
					font-weight: 600;
					padding-bottom: 8rpx;
				}
				>view:last-child{
					font-size: 28rpx;
					font-weight: 400;
				}
			}
			>view:last-child{
				border: 5rpx solid #FFFFFF;
				color: white;
				font-size: 24rpx;
				font-weight: 400;
				padding: 16rpx 32rpx;
				border-radius: 32rpx;
			}
		}
	}
	
	.lower-bottom{
		display: flex;
		justify-content: space-around;
		color: white;
		padding-top: 54rpx;
		>view:nth-child(2){
			>view:first-child{
					font-size: 36rpx;
					font-weight: 600;
			}
			>view:last-child{
				font-size: 24rpx;
			}
		}
		>view:nth-child(3){
			>view:first-child{
					font-size: 36rpx;
					font-weight: 600;
			}
			>view:last-child{
				font-size: 24rpx;
			}
		}
	}
	
	.nav-wrp{
		width: 686rpx;
		margin: 0 auto;
		padding-top: 100rpx;
		>.nav-list{
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom: 1rpx solid rgba(25, 24, 51, 0.10);
			padding-bottom: 30rpx;
			padding-top: 29rpx;
		>view{
			display: flex;
			align-items: center;
			>image{
				width: 48rpx;
				height: 48rpx;
			}
			>view{
				color: #191833;
				font-size: 28rpx;
				font-weight: 400;
				margin-left: 16rpx;
			}
		}
		>image{
			width: 32rpx;
			height: 32rpx;
		}
	}
	}

</style>