<template>
	<view class="lf-w-100 lf-h-100">
		<view class="pure_top">
			<view class="tips-top">
				<view class="lf-m-r-20">
					<image src="../../static/logo.png" style="width: 98rpx;height: 112rpx;" mode="aspectFill"></image>
				</view>
				<view>
					<view class="lf-color-555 lf-font-26">添加专属客服，咨询使用问题，投诉不正当会员，专属人工客服将为您服务</view>
					<view class="lf-color-555 lf-font-26 lf-m-t-20">线下红娘服务，私人订制服务，全方位助您脱单</view>
				</view>
			</view>
		</view>
		<view class="qrcode-content">
			<view class="lf-row-between lf-p-l-30 lf-p-r-30 content-title">
				<view class="lf-flex">
					<u-icon name="weixin-fill lf-m-r-15 lf-font-38"></u-icon><text class="lf-font-28 lf-color-222">微信：gyw38283</text>
				</view>
				<view class="content-btn" @click="copy(gyw38283)">
					复制
				</view>
			</view>
			<view class="qr-code">
				<tki-qrcode ref="qrcode" @result="qrR" :val="checkArea" :size="270" unit="px" background="#fff"
					foreground="#000" pdground="#000" :onval="true" :loadMake="true" />
			</view>
		</view>
	</view>
</template>


<script>
	import tkiQrcode from "tki-qrcode" // 二维码生成器
	export default {
		components: {
			tkiQrcode
		},
		data() {
			return {
				base64Img: '',
				checkArea: 'USI782936437829'
			}
		},
		methods: {
			//二维码回调
			qrR(data) {
				this.base64Img = data;
			},
			// 点击复制
			copy(text) {
				uni.setClipboardData({
					data: text
				});
			}
		}
	}
</script>

<style>
	page {
		background-color: #F5F5F5;
	}
	.pure_top {
		width: 100%;
		height: 210rpx;
		position: relative;
		z-index: -1;
	}

	.pure_top::after {
		content: '';
		width: 140%;
		height: 210rpx;
		position: absolute;
		left: -20%;
		top: 0;
		z-index: -1;
		border-radius: 0 0 55% 55%;
		background: linear-gradient(180deg, #FE3EA5 0%, #FE7749 100%);
	}
	
	.tips-top {
		width: 686rpx;
		height: 252rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
		margin: 0 auto;
		position: relative;
		top: 60rpx;
		padding: 50rpx 40rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	.qrcode-content {
		width: 686rpx;
		height: 703rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
		margin: 0 auto;
		margin-top: 133rpx;
	}
	
	.content-btn {
		width: 122rpx;
		height: 55rpx;
		border-radius: 28rpx;
		border: 1rpx solid #777777;
		font-size: 24rpx;
		color: #777;
		font-weight: 400;
		text-align: center;
		display: flex;
		align-items: center;
		justify-content: center;
		letter-spacing: 1rpx;
	}
	
	.content-title {
		height: 100rpx;
		border-bottom: 1rpx solid #F5F5F5;
	}
	
	.qr-code {
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 30rpx 0;
	}
</style>
