<template>
	<view class="content">
		<view class="content-money">
			<view class="status_bar"><!-- 这里是状态栏 --></view>
			<view class="body-title">
				<view class="goback-box" @click="toBack">
				</view>
				<view class="header">贡献值</view>
			</view>
			<view class="content-bg">
				<image src="../../users/static/tc.png" mode=""></image>
			</view>
			<view class="money-box">
				<view class="money">{{ 34 || 0 }}</view>
				<view class="col">当前余额</view>
			</view>
		</view>
		<!-- 列表 -->
		<view class="list" v-for="item in 4">
			<view class="le">
				<view class="title">购买商品赠送</view>
				<view class="time">2023.12.01</view>
			</view>
			<view class="rig">
				<view class="sumb">+10</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {speed} from '@/api/user.js'
	export default {
		data() {
			return {};
		},
		onLoad() {
			this.speed()
		},
		onShow() {},
		methods: {
			async speed() {
				const data = await speed()
				console.log('123', data);
			}
		}
	};
</script>

<style lang="scss">
	page {
		background: #f1f1f1;
		height: 100%;
	}

	.status_bar {
		height: var(--status-bar-height);
		width: 100%;
	}

	.content-money {
		position: relative;
		height: 480rpx;

		.content-bg {
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			width: 750rpx;
			height: 480rpx;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.body-title {
			height: 80rpx;
			text-align: center;
			font-size: 35rpx;
			position: relative;

			.header {
				position: absolute;
				left: 0;
				top: 0;
				width: 100%;
				font-size: 36rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #fff;
				height: 80rpx;
				font-size: 36rpx;
				font-weight: 700;
				z-index: 9;
				display: flex;
				justify-content: center;
				align-items: center;
			}

			.goback-box {
				position: absolute;
				left: 18rpx;
				top: 0;
				height: 80rpx;
				display: flex;
				align-items: center;
			}

			.goback {
				z-index: 100;
				width: 34rpx;
				height: 34rpx;
			}
		}
	}

	.info-box {
		width: 670rpx;
		height: 186rpx;
		background: #ffffff;
		box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
		border-radius: 20rpx;
		margin: -100rpx auto 0;
		position: relative;
		z-index: 2;

		.info-item {
			padding-top: 50rpx;
			width: 50%;
			display: flex;
			flex-direction: column;
			align-items: center;
			line-height: 1;

			.info-font {
				font-size: 30rpx;
				font-weight: bold;
				color: #999999;
			}

			.info-num {
				margin-top: 30rpx;
				font-size: 30rpx;
				font-weight: bold;
				color: #181818;
			}
		}

		.shu {
			width: 2rpx;
			height: 74rpx;
			background: #dcdfe6;
			margin-top: 55rpx;
		}
	}

	.money-box {
		position: relative;
		z-index: 2;
		/* #ifdef H5 */
		padding-top: 90rpx;
		/* #endif */
		color: #fff;
		text-align: center;
		/* #ifdef APP-PLUS */
		height: 200rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		/* #endif */
		/* #ifdef MP-WEIXIN */
		padding-top: 40rpx;
		/* #endif */

		.money {
			font-size: 72rpx;
			font-weight: bold;
			color: #fff;
		}

		.text {
			font-size: 30rpx;
		}
	}
	.list {
		display: flex;
		justify-content: space-between;
		width: 750rpx;
		height: 130rpx;
		background-color: #fff;
		
		.le {
			padding-left: 50rpx;
			.title {
				font-size: 30rpx;
				font-weight: 500;
				color: #666666;
				padding-top: 23rpx;
			}
			.time {
				font-size: 26rpx;
				font-weight: 500;
				color: #AEAEAE;
				padding-top: 13rpx;
			}
		}
		.rig {
			padding-right: 47rpx;
			padding-top: 43rpx;
			.sumb {
				font-size: 36rpx;
				font-weight: bold;
				color: #FD3B39;
			}
		}
	}

   
</style>