<template>
	<view class="container">
		<view class="header">
			<view class="row-box">
				<view class="title">可提现金额</view>
				<view class="row">
					<view class="tit">￥{{money}}</view>
					
				</view>
			</view>
			<view class="row-box">
				<view class="title">申请提现金额</view>
				<view class="row">
					<input class="counts" type="number" v-model="withdrawal" placeholder="请输入金额"/>
				</view>
			</view>
			<view class="buttom" @click="withdrawal = money">全部提现</view>
		</view>
		<view class="conent">
			<view class="text">提现到</view>
			<radio-group @change="tabRadio">
				<label>
					<view class="box">
						<image src="../../static/img/img35.png" mode="scaleToFill"></image>
						<view class="title-box">
							<view class="title"><text>微信支付</text></view>
						</view>
						<view class="right">
							<radio value="weixin" color="#FF4C4C" :checked="type == 'weixin'" />
						</view>
					</view>
				</label>
				<label>
					<view class="box">
						<image src="../../static/img/img36.png" mode="scaleToFill"></image>
						<view class="title-box">
							<view class="title"><text>银行账户</text></view>
						</view>
						<view class="right">
							<radio value="bank" color="#FF4C4C" :checked="type == 'bank'" />
						</view>
					</view>
				</label>
			</radio-group>
			<view class="btn" @click="nav('/pages/user/refer')">
				<view class="title" >提交申请</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: 'weixin',
				money: '0.00', //可提现金额
				withdrawal: '' //提现金额
			}
		},
		methods: {
			tabRadio(e) {
				console.log(e)
				this.type = e.detail.value;
			},
			nav (url) {
				uni.navigateTo({
					url
				})
			}
		}
	}
</script>

<style lang="scss">
	.header {
		height: 330rpx;
		background-color: #fff;

		.row-box {
			height: 130rpx;
			width: 700rpx;
			background-color: #fff;
			display: flex;
			align-items: center;
			border-bottom: 1rpx solid #E6E6E6;
			margin: 0 auto;

			.title {
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #333333;
				width: 100%;
			}

			.row {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.tit {
					width: 300rpx;

				}

				.counts {
					// text-align: right;
					// width: 100rpx;
					font-size: 50rpx;
					font-family: Source Han Sans CN;
					font-weight: 500;
					color: #333333;

					// &::before {
					// 	content: '￥';
						
					// }
				}
			}
		}

		.buttom {
			margin-top: 10rpx;
			margin-left: 620rpx;
			flex-direction: column;
			width: 105rpx;
			height: 25rpx;
			font-size: 26rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #FF4C4C;
			line-height: 42rpx;
		}
	}

	.conent {
		margin-top: 20rpx;
		height: 890rpx;
		background-color: #fff;

		.text {
			font-size: 30rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #333333;
			margin-left: 20rpx;
			padding-top: 20rpx;
		}

		.box {
			display: flex;
			align-items: center;
			width: 710rpx;
			height: 100rpx;
			border-bottom: 1rpx solid #E6E6E6;
			margin-left: 20rpx;

			image {
				width: 40rpx;
				height: 40rpx;
				margin-left: 20rpx;
				margin-right: 20rpx;
			}

			.title-box {
				margin-right: 440rpx;
			}
		}

		.btn {
			margin-top: 120rpx;
			width: 670rpx;
			height: 100rpx;
			background: #6EAB4E;
			border-radius: 10rpx;
			display: flex;
			justify-content: center;
			margin-left: 40rpx;

			.title {
				display: flex;
				align-items: center;
				font-size: 32rpx;
				font-family: Source Han Sans CN;
				font-weight: 500;
				color: #FFFFFF;
			}
		}
	}
</style>
