withdrawal.vue 4.9 KB
<template>
	<view class="">
		<image  class="bg" src="/static/takeMoneyBg.png" mode=""></image>
		<view class="top">
			<view >账户余额:</view>
			<view > <text style="32rpx">¥</text> 600.00</view>
		</view>
		<view class="center">
			<view class="title">提现金额</view>
			<view class="inputPrice">
				<view class="">
					¥<input type="text" value="" />
				</view>
				<view class="right">全部提现</view>
			</view>
			
			<!-- 支付要输入的信息 -->
			<view class="payInput"  v-if="payType==2">
				<view class="list">
					<view class="input">支付宝收款姓名:</view>
					<input type="text" placeholder="请输入" value="" />
				</view>
				<view class="list">
					<view class="input">支付宝绑定的手机号:</view>
					<input type="number" maxlength="11" placeholder="请输入" value="" />
				</view>
			</view>
			<view class="payInput"  v-if="payType==3">
				<view class="list">
					<view class="input">提现银行:</view>
					<input type="text" placeholder="请选择" value="" />
				</view>
				<view class="list">
					<view class="input">银行卡号:</view>
					<input type="number" maxlength="11" placeholder="请输入" value="" />
				</view>
			</view>
			<view class="line"></view>
			<view class="title" style="margin-top: 30rpx;">提现方式</view>
			
			<!-- 提现方式 -->
			<view class="payType">
				<view class="list" @click="payType=2">
					<view class="left flexA">
						<image src="/static/zhifubao.png" mode=""></image>
						支付宝
					</view>
					<view class="right">
						<image v-if="payType==2" src="/static/checked.png" mode=""></image>
						<image v-else  src="/static/notCheck.png" mode=""></image>
					</view>
				</view>
				<view class="list" @click="payType=1">
					<view class="left flexA">
						<image src="/static/wechat.png" mode=""></image>
						微信
					</view>
					<view class="right">
						<image v-if="payType==1" src="/static/checked.png" mode=""></image>
						<image v-else  src="/static/notCheck.png" mode=""></image>
					</view>
				</view>
				<view class="list" @click="payType=3">
					<view class="left flexA">
						<image src="/static/yinlian.png" mode=""></image>
						银行卡支付
					</view>
					<view class="right">
						<image v-if="payType==3" src="/static/checked.png" mode=""></image>
						<image v-else  src="/static/notCheck.png" mode=""></image>
					</view>
				</view>
			</view>
			
			<view class="Withdrawal flexC">提现</view>
			<view class="tips">
				温馨提示:为了平台更好的服务于平台用户,提示时平台将会提取交易金额的10%手续费用于维持平台的运营工作
			</view>
			
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				payType:'1'
			}
		},
	}
</script>

<style lang="less">
	page {
		background: #f6f6f6;
	}
	.bg {
		overflow: hidden;
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 366rpx;
	}
	.top {
		position: absolute;
		left: 32rpx;
		top: 64rpx;
		view:nth-child(1) {
			 color: rgba(0,0,0,0.4);
			 font-size: 28rpx;
		}
		view:nth-child(2) {
			 color: rgba(0,0,0,0.9);
			 font-size: 64rpx;
			 font-weight: 700;
		}
	}
	.center {
		position: absolute;
		width: 686rpx;
		left: 50%;
		top: 220rpx;
		border-radius: 24rpx;
		padding: 40rpx 30rpx;
		transform: translateX(-50%);
		background: #fff;
		box-sizing: border-box;
		.line {
			margin: 32rpx 0;
			width: 622rpx;
			height: 1rpx;
			background: rgba(240,242,245,1);
		}
		// 收到的信息
		.payInput {
			.list {
				display: flex;
				justify-content: space-between;
				font-size: 28rpx;
				margin: 32rpx 0;
				.input {
					flex: 1;
					font-weight: 700;
				}
				input {
					text-align: right;
					width:300rpx;
				}
			}
		}
		.title {
			font-weight: 700;
			margin-bottom: 32rpx;
			font-weight: 700;
		}
		.inputPrice {
			display: flex;
			justify-content: space-between;
			align-items: center;
			view {
				font-weight: 700;
				display: flex;
				align-items: center;
				 font-size: 52rpx;
				input {
					margin-left: 20rpx;
					font-weight: 400;
				}
			}
			.right {
				 color: rgba(33,83,212,1);
				  font-size: 28rpx;
				 font-weight: 400;
			}
		}
	}
	.payType {
		.list{
			margin-bottom: 32rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
		}
		.left {
			image {
				margin-right: 24rpx;
				width: 48rpx;
				height: 48rpx;
			}
		}
		.right {
			image {
				width: 36rpx;
				height: 36rpx;
			}
		}
	}
	.Withdrawal {
		margin: 100rpx auto 0;
		width: 622rpx;
		height: 88rpx;
		 color: rgba(0,0,0,0.9);
		 font-size: 32rpx;
		 font-weight: 700;
		border-radius: 28rpx;
		background: linear-gradient(90deg, rgba(255,230,89,1) 0%, rgba(255,216,0,1) 100%);
	}
	.tips {
		margin-top: 16rpx;
		 color: rgba(0,0,0,0.4);
		 font-size: 24rpx;
	}
</style>