<template>
	<uni-popup ref="popupRef">

		<view class="unopen-box">
			<view class="unopen-title">
				<text class="z-close"></text>
				<text>温馨提示</text>
				<text class="z-close" @click.stop="close">x</text>
			</view>
			<view class="unopen-content">
				<view class="account-box">
					<view class="account-item">
						合约账户
					</view>
					<view class="account-link">
						<image src="../../../static/logo.png" mode="aspectFit"></image>
						<text>划转</text>
					</view>
					<view class="account-item">
						币币账户
					</view>
				</view>
				<view class="capital-type">
					<text class="type-left">全部</text>
					<text class="type-rigth">USDT</text>
				</view>
				<view class="capital-nums">
					<text class="num-title">可划转金额：</text>
					<text class="num">29997.9123 USDT</text>
				</view>
				<view class="capital-btn">
					确定
				</view>
			</view>
		</view>
	</uni-popup>
</template>

<script>
	// 合约 - 币币
	// 币币 - 合约 / 法币
	export default {
		name: "capitalSwitchModules",
		data() {
			return {

			};
		},
		mounted() {
		 
		},
		methods: {
			open() {
				this.$nextTick(() => {
					this.$refs.popupRef.open();
				})
			},
			close(){
				this.$refs.popupRef.close();
			}

		}
	}
</script>

<style lang="scss" scoped>
	$paddingLR: 32rpx;

	.unopen-box {
		width: 587rpx;
		background-color: #fff;
		border-radius: 12rpx;
		overflow: hidden;

		.unopen-title {
			height: 90rpx;
			font-size: 32rpx;
			font-family: PingFang SC, PingFang SC-Bold;
			font-weight: 700;
			color: #1a1a1a;
			line-height: 90rpx;
			letter-spacing: 0.64rpx;
			border-bottom: 1rpx solid #e6e6e6;
			display: flex;
			justify-content: space-between;
			padding: 0 $paddingLR;
			.z-close{
				width: 25rpx;
				height: 25rpx;
				flex-shrink: 0;
			}
		}

		.unopen-content {
			padding: 73.5rpx $paddingLR 65rpx;

			.account-box {
				width: 100%;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.account-item {
					width: 220rpx;
					height: 80rpx;
					text-align: center;
					line-height: 80rpx;
					background: #f1f1f3;
					border-radius: 6rpx;

					font-size: 22rpx;
					font-family: PingFang SC, PingFang SC-Regular;
					font-weight: 400;
					text-align: center;
					color: #333333;
				}

				.account-link {
					flex: 1;
					display: flex;
					flex-direction: column;
					justify-content: space-around;
					align-items: center;


					font-size: 22rpx;
					font-family: PingFang SC, PingFang SC-Regular;
					font-weight: 400;
					color: #05c175;
					line-height: 30rpx;

					image {
						width: 30rpx;
						height: 26rpx;
					}
				}
			}

			.capital-type {
				width: 100%;
				height: 84rpx;
				border: 1rpx solid #b3b3b3;
				margin-top: 30rpx;
				padding: 0 20rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;

				.type-left {

					font-size: 24rpx;
					font-family: PingFang SC, PingFang SC-Regular;
					font-weight: 400;
					color: #05c175;
				}

				.type-rigth {
					font-size: 28rpx;
					font-family: PingFang SC, PingFang SC-Bold;
					font-weight: 700;
					color: #1a1a1a;
				}
			}

			// <view class="capital-nums">
			// 	<text class="num-title">可划转金额：</text>
			// 	<text class="num">29997.9123 USDT</text>
			// </view>
			.capital-nums {
				width: 100%;
				font-size: 28rpx;
				font-family: PingFang SC, PingFang SC-Regular;
				font-weight: 400;
				text-align: center;
				padding: 20rpx 0 30rpx;

				.num-title {


					color: #808080;
				}

				.num {

					color: #05C175;
				}
			}
			.capital-btn{
				width: 100%;
				height: 75rpx;
				background: #05c175;
				border-radius: 8rpx;
				font-size: 32rpx;
				font-family: PingFang SC, PingFang SC-Regular;
				font-weight: 400;
				color: #ffffff; 
				letter-spacing: 0.64rpx;
				text-align: center;
				line-height: 75rpx;
			}
		}

	}
</style>