<!-- 嘀咚币 -->
<template>
	<view class="body" :style="'padding-top:' + bottomHeight">
		<view class="bg-box">
			<!-- 导航 -->
			<view class="ss-flex-2 ss-col-center ss-margin-width2" style="position: relative">
				<view class="ss-flex-2 ss-col-center">
					<text class="textIcon icon-fanhui icon-navigation" @click="backPage"></text>
					<view style="margin-left: 15rpx; color: #fff; font-size: 28rpx">嘀咚币</view>
				</view>
				<view class="ss-flex-1"></view>
			</view>
			<view class="title-maney-box">嘀咚币(个)</view>
			<view class="ss-flex-2 ss-col-center" style="margin-top: 5rpx;">
				<view class="ss-flex-1"></view>
				<view style="font-size: 70rpx;color: #fff;">100000</view>
				<text class="textIcon icon-yanjing" style="font-size: 60rpx;color: #fff;margin-left: 20rpx;"></text>
				<view class="ss-flex-1"></view>
			</view>
			<view class="ss-flex-2 ss-col-center" style="margin-top: 25rpx;">
				<view class="ss-flex-1"></view>
				<view class="bt-pay-box">转入余额</view>
				<view class="ss-flex-1"></view>
			</view>
		</view>
		<view style="color: red;font-size: 20rpx;width: 95%;margin-left: 2.5%;margin-top: 5rpx;text-align: right;">注：100嘀咚币=1元</view>
		<view class="ss-flex-2 ss-col-center ss-row-around" style="margin-top:20rpx;">
			<view class="ss-flex-2" style="flex-wrap: wrap;min-width:170rpx;">
				<view class="text-title" style="font-size:23rpx;color:#686868;">今日获得</view>
				<view class="text-title" style="margin-top:5rpx;">
					<text style="font-size:37rpx;color:#EC1C23;">10000</text>
					<text style="font-size:23rpx;color:#686868;">个</text>
				</view>
			</view>
			<view class="ss-flex-2" style="flex-wrap: wrap;min-width:170rpx;">
				<view class="text-title" style="font-size:23rpx;color:#686868;">昨日获得</view>
				<view class="text-title" style="margin-top:5rpx;">
					<text style="font-size:37rpx;color:#EC1C23;">200000</text>
					<text style="font-size:23rpx;color:#686868;">个</text>
				</view>
			</view>
		</view>
		<!-- 中部 -->
		<view class="list-wrap">
			<scroll-view scroll-y="true" class="list">
				<view class="list-scroll-view">
					<view class="ss-flex-2 ss-col-center go-box" v-for="i in 20">
						<view class="ss-flex-2" style="flex-wrap:wrap;">
							<view style="width:100%;font-size:24rpx;color:#7E8182;">微信充值赠送</view>
							<view style="width:100%;font-size:19rpx;color:#B8B8B8;margin-top:5rpx;">2024-09-12 14:45:12
							</view>
						</view>
						<view class="ss-flex-1"></view>
						<view style="font-size:34rpx;color:#666;font-weight:650;">+1000&nbsp;个</view>
					</view>
				</view>
			</scroll-view>
		</view>
	</view>
</template>
<script setup>
	import {
		reactive,
		ref
	} from 'vue';
	import {
		computed
	} from 'vue';
	import {
		onLoad,
		onPageScroll,
		onPullDownRefresh,
		onReady,
		onReachBottom,
		onShow,
	} from '@dcloudio/uni-app';
	import sheep from '@/sheep';
	import $share from '@/sheep/platform/share';
	// 隐藏原生tabBar
	// uni.hideTabBar();

	// 返回首页
	const backPage = async () => {
		uni.reLaunch({
			url: '/pages/XDHome/myFeat/wallet/wallet',
		});
	};

	const bottomHeight = ref('0rpx');
	// #ifdef APP-PlUS
	//获取顶部安全距离
	const app = uni.getSystemInfoSync();
	const bottomHeightOne = app.statusBarHeight + 'rpx';
	bottomHeight.value = bottomHeightOne
	// #endif
</script>
<style scoped lang="scss">
	.go-box {
		padding-bottom: 20rpx;
		border-bottom: 1rpx solid #DFDFDF;
		margin-bottom: 30rpx;
	}

	.line-box {
		width: 4rpx;
		height: 50rpx;
		background-color: #fff;
		margin-left: 20rpx;
		margin-right: 20rpx;
	}

	.text-title {
		color: #fff;
		text-align: center;
		width: 100%;
	}

	.bottom-box {
		width: 100%;
		min-height: 140rpx;
		background-color: #5FC3D1;
		color: #fff;
	}

	.bt-pay-box {
		padding: 10rpx 100rpx;
		box-sizing: border-box;
		background-color: #fff;
		color: #36AFCA;
		border-radius: 10rpx;
		font-size: 30rpx;
	}

	.title-maney-box {
		margin-top: 25rpx;
		font-size: 35rpx;
		text-align: center;
	}

	.bg-box {
		width: 100%;
		min-height: 350rpx;
		box-sizing: border-box;
		background-color: #36AFCA;
		color: #fff;
	}

	.icon-navigation {
		font-size: 32rpx;
		color: #fff;
		font-weight: 700;
	}

	// 上中下布局样式
	.body {
		display: flex;
		flex-direction: column;
		background-color: #EEEEF0;
		height: 100vh;
		box-sizing: border-box;
	}

	.head {
		text-align: center;
	}

	// 中部滚动
	.list-wrap {
		flex-grow: 1;
		position: relative;
		width: 95%;
		margin-left: 2.5%;
		box-sizing: border-box;
		background-color: #fff;
		margin-top: 20rpx;
		margin-bottom: 20rpx;
		border-radius: 10rpx;
	}

	.list {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 50rpx;
		padding: 10rpx;
		border-radius: 15rpx;
		box-sizing: border-box;
	}

	.list-scroll-view {
		width: 100%;
		box-sizing: border-box;
		padding: 10rpx;
	}

	.course-card {
		width: 47vw;
		margin-top: 10px;
		margin-bottom: 10px;
	}

	// 底部
	.tools {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}

	.tools-item {
		width: 45px;
		text-align: center;
		font-size: 14px;
		padding: 20px;
	}
</style>
