<template>
	<view class="content">
		<view class="box">
			<view class="title" style="margin-top: 0;">1.银行转账援助</view>
			<view class="detail">
				<view class="detail-item">
					银行账户：{{ userInfo.bank_card_no }}
					<view class="copy" @click="copy()">复制账号</view>
				</view>
				<view class="detail-spe">
					开户行：{{ userInfo.bank_of_deposit }}
					<view class="copyband" @click="copy()">复制开户行</view>
				</view>
			</view>
			<view class="title" v-if="userInfo.ali">2.支付宝扫码援助</view>
			<view v-if="userInfo.ali" class="erweima"><image :src="userInfo.ali" mode="widthFix"></image></view>
			<view v-if="userInfo.wechat" class="title">3.微信扫码援助</view>
			<view v-if="userInfo.wechat" class="erweima" ><image :src="userInfo.wechat" mode="widthFix"></image></view>
		</view>
	</view>
</template>

<script>
import { mapState, mapMutations } from 'vuex';
export default {
	computed: {
		...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
	},
	onLoad() {
		console.log(this.userInfo);
	}
};
</script>

<style lang="scss">
body,
page {
	height: 100%;
	background-color: #000;
}

.content {
	background-color: #000;
	line-height: 1;
	padding-top: 25rpx;
	padding: 24rpx 24rpx 90rpx;

	.cross {
		margin-left: 6rpx;
		height: 76rpx;
		line-height: 76rpx;
		color: #444444;
		border-bottom: 1rpx solid #cccccc;
	}

	.image {
		margin-top: 44rpx;
		margin-bottom: 48rpx;
		height: 404rpx;
		width: 100%;
		image {
			width: 100%;
			height: 100%;
		}
	}

	.box {
		padding: 20rpx 0 24rpx;
		color: #fff;
		.title {
			margin-top: 60rpx;
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: bold;
		}

		.detail {
			padding-top: 10rpx;
			font-size: 28rpx;
			line-height: 40rpx;
			.detail-spe {
				margin-top: 10rpx;
				line-height: 46rpx;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box; //必须结合的属性，将对象作为弹性伸缩盒子模型显示
				-webkit-line-clamp: 2; //控制文本的行数
				-webkit-box-orient: vertical; //必须结合的属性，设置或检索伸缩盒对象的子元素的排列方式

				.copyband {
					display: flex;
					float: right;
					// float: right;
					justify-content: center;
					border-radius: 10rpx;
					line-height: 34rpx;
					font-size: 24rpx;
					color: #fff;
					// padding: 0 24rpx;
					width: 168rpx;
					height: 34rpx;
					margin-top: 8rpx;
				}
			}

			.detail-item {
				display: flex;
				justify-content: space-between;
				align-items: center;
				// height: 40rpx;
				line-height: 46rpx;
				color: #fff;
				margin-top: 10rpx;

				.copy {
					width: 168rpx;
					display: flex;
					justify-content: center;
					background-color: #f1f1f1;
					border-radius: 10rpx;
					line-height: 34rpx;
					font-size: 24rpx;
					color: #333;
					padding: 0 24rpx;
					// width: 144rpx;
					height: 34rpx;
				}
			}

		}

		.erweima {
			width: 362rpx;
			margin: 26rpx auto;
			image {
				width: 100%;
			}
		}
		.zfb {
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #0b9edd;
			margin-top: 36rpx;
			text-align: center;
		}
		.weixin {
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #02974a;
			margin-top: 36rpx;
			text-align: center;
		}
	}
}
</style>
