<template>
	<view class="content">
		<view class="top">
			<view class="img">
				<image src="../../static/img/logo.png" mode=""></image>
			</view>
			<!-- <a href="http://yyhszh.yygrwhg.com/willsoft/deyy/MobileView.aspx?id=1"> -->
			<!-- <view class="info" @click="tocontrilist">
				<image src="../../static/img/list.png" mode=""></image>
			</view> -->
			<!-- </a> -->
		</view>

		<view class="cross">
			社会捐款通道
		</view>

		<view class="box">
			<view class="title">
				1.银行转账
			</view>
			<view class="detail" v-for="item in list" :key="item.id">
				<view class="detail-item">
					开户名：
					{{ item.name }}
					 <view class="copy" @click="copy(item.name)">复制开户名</view>
				</view>
				<!-- <view class="detail-spe">
					开户行：{{ item.count }} <view class="copyband" @click="copy(item.count)">复制开户行</view> 
				</view> -->
				<!-- <view class="copyband" @click="copy(item.count)">复制开户行</view> -->
				<view class="detail-item" >
					银行账户：{{ item.number}}  <view class="copy" @click="copy(item.number)">复制账号</view>
				</view>
				<view class="detail-spe">
					<view class="left">
						<!-- <view class="left1"> -->
							开户行：
						<!-- </view> -->
						
					</view>
					<view class="right">
						{{ item.count }}
						<view class="copyband" @click="copy(item.count)">复制开户行</view>
					</view>
					
				</view>
			</view>
			<!-- <view class="title">
				2.捐款二维码
			</view> -->
			<!-- <view class="erweima">
				<image src="../../static/img/channel.jpg" mode=""></image>
			</view> -->
			<!-- <view class="weixin">
				<image src="../../static/img/channel.jpg" mode=""></image>
			</view> -->
			<view class="love">
				
				<image src="../../static/img/danate01.png" mode=""></image>
			</view>
			<view class="title">
				2.现场捐款
			</view>
			<view class="detail">
				<view class="detail-item">
					负责人：李秀娟
				</view>
				<view class="detail-item">
					咨询电话：027-83891093
				</view>
				<view class="detail-item">
					地址：武汉市东西湖区径河街径西三路33号
				</view>
				
			<!-- 	<view class="phone">
					0574-62619095
				</view>
				<view class="phone">
					0574-62619330
				</view> -->
			</view>
		</view>
	</view>
</template>

<script>
	import uniCopy from '../../components/js_sdk/xb-copy/uni-copy.js';
	export default {
		data() {
			return {
				list:[
					{ id:0, 
					name:'武汉市东西湖区红十字会', 
					count:'中国邮政储蓄银行股份有限公司武汉市东西湖区支行', 
					number:'942002010069216669' }
				]
			}
		},

		methods: {
			tocontrilist() {
				uni.navigateTo({
					url: "/pages/applic/tocontrilist"
				})
			},
			copy(value) {
						let obj = this;
						let content = value; //需要复制的内容
						// content = typeof content === 'string' ? content : content.toString(); // 复制内容，必须字符串，数字需要转换为字符串
						const result = uniCopy(content);
						if (result === false) {
							uni.showToast({
								title: '不支持'
							});
						} else {
							uni.showToast({
								title: '复制成功',
								icon: 'none'
							});
						}
					},
					
		}
	}
</script>

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

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

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

			.img {
				width: 360rpx;
				height: 80rpx;
				margin-left: -22rpx;

				image {
					width: 360rpx;
					height: 80rpx;
				}
			}

			.info {
				width: 50rpx;
				height: 50rpx;

				image {
					width: 50rpx;
					height: 50rpx;
				}
			}
		}

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

		.box {
			padding: 0 0 24rpx;

			.title {
				font-size: 28rpx;
				margin: 26rpx 0;
				font-weight: 700;
			}
			.love{
				margin: 32rpx 0;
				width: 100%;
				height: 373rpx;
				image{
					width: 100%;
					height: 373rpx;
				}
			}
			.detail {
				font-size: 28rpx;
				line-height: 40rpx;

				.detail-spe {
					line-height: 46rpx;
					display: flex;
					margin-top: 12rpx;
					// align-items: center;
					// overflow: hidden;
					// text-overflow: ellipsis;
					// display: -webkit-box; //必须结合的属性，将对象作为弹性伸缩盒子模型显示
					// -webkit-line-clamp: 2; //控制文本的行数
					// -webkit-box-orient: vertical; //必须结合的属性，设置或检索伸缩盒对象的子元素的排列方式
					.left{
						width: 158rpx;
						// display: flex;
						// .left1{
						// 	width: 100%;
						// }
					}
					.right{
						line-height: 46rpx;
						// display: flex;
						// margin-top: 12rpx;
						align-items: center;
						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;
						background-color:  #F1F1F1;
						border-radius: 6rpx;
						line-height: 34rpx;
						font-size: 14rpx;
						color: #333;
						// padding: 0 24rpx;
						width: 164rpx;
						height: 34rpx;
						margin-top: 8rpx;
					}
				}
		
				.detail-item {
					margin-top: 12rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;
					// height: 40rpx;
					line-height: 46rpx;
					color: #000;
					.copy{
						display: flex;
						justify-content: center;
						background-color:  #F1F1F1;
						border-radius: 6rpx;
						line-height: 34rpx;
						font-size: 14rpx;
						color: #333;
						padding: 0 24rpx;
						// width: 144rpx;
						height: 34rpx;
					}
				}

				.phone {
					margin-left: 138rpx;
					height: 40rpx;
					color: #000;
				}
			}

			.erweima {
				.zhifu {
					margin-top: 24rpx;
					color: #4a9fdd;
					font-weight: 900;
					font-size: 48rpx;
				}

				display: flex;
				flex-direction: column;
				align-items: center;
				width: 100%;
				height: 100%;

				image {
					width: 490rpx;
					height: 524rpx;
				}

				.name {
					margin: 14rpx 0;
					color: #d32d26;
					font-weight: 900;
					font-size: 48rpx;
				}
			}

			.weixin {
				display: flex;
				flex-direction: column;
				align-items: center;
				width: 100%;
				height: 100%;

				.zhifu {
					margin-top: 24rpx;
					color: #428751;
					font-weight: 900;
					font-size: 48rpx;
				}

				image {
					width: 490rpx;
					height: 524rpx;
				}

				.name {
					margin: 14rpx 0;
					color: #d32d26;
					font-weight: 900;
					font-size: 48rpx;
				}
			}
		}
	}
</style>
