<template>
	<view class="WithdrawingCoin">
		<view class="withdrawing-content">
			<view class="item-name">添加提现银行</view>
			<view class="item">
				<view class="title">收款人姓名</view>
				<input class="input_num" v-model="name" maxlength="16"
					placeholder-style="color:#999;font-weight:normal; font-size:30rpx;"
					 placeholder="请输入收款人姓名" />
			</view>
			<view class="item">
				<view class="title">收款人账号</view>
				<input class="input_num" v-model="card" type="number"
					placeholder-style="color:#999;font-weight:normal; font-size:30rpx;" 
					placeholder="请输入收款人账号" />
			</view>
			<view class="item">
				<view class="title">开户行</view>
				<input class="input_num" v-model="name" maxlength="30"
					placeholder-style="color:#999;font-weight:normal; font-size:30rpx;" 
					placeholder="请输入开户行" />
			</view>
			<view class="item">
				<view class="title">支行名称</view>
				<input class="input_num" v-model="name" maxlength="30"
					placeholder-style="color:#999;font-weight:normal; font-size:30rpx;" 
					placeholder="省-市-区-支行名称" />
			</view>
			<view class="item">
				<view class="title">收款人手机号</view>
				<input class="input_num" v-model="name" maxlength="11"
					placeholder-style="color:#999;font-weight:normal; font-size:30rpx;" 
					placeholder="请输入手机号" />
			</view>
		</view>
		<view class="btn" @click="sureAdd">确认添加银行</view>
		<view class="history" @click="$Router.push({name:'withdrawList'})">提现记录<u-icon name="question-circle-fill" /></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				card: '', // 银行卡号
				name: '', // 姓名
				withdraw_input: '' // 提现能量球数量
			};
		},
		onLoad() {},
		methods: {
			sureAdd() {
				uni.navigateBack({})
			}
		}
	}
</script>

<style lang="scss">
	page {
		width: 100%;
		min-height: 100vh;
		background-color: #fff;
	}

	.history {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		color: #cacaca;
		.u-icon{
			margin-left: 10rpx;
		}
	}

	.withdrawing-content {
		min-height: 300rpx;
		background-color: #fff;
		box-shadow: 0 0 30rpx 1rpx rgba($color: #000000, $alpha: 0.2);
		margin: $margin;
		border-radius: 20rpx;
		padding: $padding;
		font-size: $title-size-m;

		.item-name {
			text-align: center;
			padding: $padding * .6;
			color: #303030;
			font-weight: bold;
			margin-bottom: $margin;
			font-size: $title-size *1.2;
			position: relative;
			&::after{
				content: '';
				position: absolute;
				background-color: rgba($color: $text-price, $alpha: .4);
				width: 200rpx;
				height: 10rpx;
				left: 50%;
				margin-left: -100rpx;
				bottom: 16rpx;
				z-index: 1;
				box-shadow: 0 10rpx 20rpx 0rpx rgba($color: #976dff, $alpha: 0.6);
			}
		}

		.item {
			border-bottom: solid 1rpx #f8f8f8;
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: flex-start;
			box-sizing: border-box;
			padding: $padding 0;

			span:nth-child(1) {
				color: #666;
				margin-right: 20rpx;
			}

			.title {
				width: 200rpx;
				font-size: 28rpx;
				&::before{
					content: '*';
					color: red;
					padding-right: 4rpx;
				}
			}

			.input_num {
				font-size: $title-size*1;
				color: #3a3a3a;
				font-weight: bolder;
				flex: 1;
				margin-left: 20rpx;
			}
		}

		.item-total {
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: space-between;
			padding: $padding*1 0 0 0;
			color: #3a3a3a;

			.total {
				display: flex;
				flex-direction: column;
				align-items: flex-start;
				justify-content: center;
				box-sizing: border-box;

				.money {
					padding-top: $padding *0.5;
				}
			}

			.lists {
				color: $text-price;
			}
		}

	}

	.btn {
		background-image: linear-gradient(to right, #7c52fc, #976dff);
		color: #fff;
		border-radius: 10rpx;
		text-align: center;
		padding: $padding * .9;
		margin:$margin*3 $margin * 2 $margin $margin*2;
		font-size: $title-size;
		font-weight: bold;
		letter-spacing: 2rpx;
	}
</style>
